| 353 |
*/!function(o,i){"use strict";a=[n(92)],void 0===(r=function(e){return function(e,t){var n=e.jQuery,a=e.console;function r(e,t){for(var n in t)e[n]=t[n];return e}var o=Array.prototype.slice;function i(e,t,l){if(!(this instanceof i))return new i(e,t,l);var s,c=e;("string"==typeof e&&(c=document.querySelectorAll(e)),c)?(this.elements=(s=c,Array.isArray(s)?s:"object"==typeof s&&"number"==typeof s.length?o.call(s):[s]),this.options=r({},this.options),"function"==typeof t?l=t:r(this.options,t),l&&this.on("always",l),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):a.error("Bad element for imagesLoaded "+(c||e))}i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),a=0;a<n.length;a++){var r=n[a];this.addImage(r)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(a=0;a<o.length;a++){var i=o[a];this.addElementBackgroundImages(i)}}}};var l={1:!0,9:!0,11:!0};function s(e){this.img=e}function c(e,t){this.url=e,this.element=t,this.img=new Image}return i.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,a=n.exec(t.backgroundImage);null!==a;){var r=a&&a[2];r&&this.addBackground(r,e),a=n.exec(t.backgroundImage)}},i.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},i.prototype.addBackground=function(e,t){var n=new c(e,t);this.images.push(n)},i.prototype.check=function(){var e=this;function t(t,n,a){setTimeout((function(){e.progress(t,n,a)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},i.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+n,e,t)},i.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=Object.create(t.prototype),s.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(s.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},i.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new i(this,e,t).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(o,e)}.apply(t,a))||(e.exports=r)}("undefined"!=typeof window?window:this)},function(e,t,n){var a=n(59),r=n(26),o=n(459),i=n(23),l=n(54),s=n(22),c=Object.prototype.hasOwnProperty,u=o((function(e,t){if(l(t)||i(t))r(t,s(t),e);else for(var n in t)c.call(t,n)&&a(e,n,t[n])}));e.exports=u},function(e,t,n){var a=n(460),r=n(461);e.exports=function(e){return a((function(t,n){var a=-1,o=n.length,i=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,l&&r(n[0],n[1],l)&&(i=o<3?void 0:i,o=1),t=Object(t);++a<o;){var s=n[a];s&&e(t,s,a,i)}return t}))}},function(e,t,n){var a=n(58),r=n(133),o=n(134);e.exports=function(e,t){return o(r(e,t,a),e+"")}},function(e,t,n){var a=n(49),r=n(23),o=n(53),i=n(7);e.exports=function(e,t,n){if(!i(n))return!1;var l=typeof t;return!!("number"==l?r(n)&&o(t,n.length):"string"==l&&t in n)&&a(n[t],e)}},function(e,t,n){"use strict";var a=n(274).forEach,r=n(463),o=n(464),i=n(465),l=n(466),s=n(467),c=n(275),u=n(468),p=n(470),d=n(471),m=n(472);function b(e){return Array.isArray(e)||void 0!==e.length}function f(e){if(Array.isArray(e))return e;var t=[];return a(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function h(e,t,n){var a=e[t];return null==a&&void 0!==n?n:a}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=i(),y=l({idGenerator:n,stateHandler:p});t=y}var w=e.reporter;w||(w=s(!1===w));var v=h(e,"batchProcessor",u({reporter:w})),k={};k.callOnAdd=!!h(e,"callOnAdd",!0),k.debug=!!h(e,"debug",!1);var _,S=o(t),T=r({stateHandler:p}),E=h(e,"strategy","object"),x=h(e,"important",!1),M={reporter:w,batchProcessor:v,stateHandler:p,idHandler:t,important:x};if("scroll"===E&&(c.isLegacyOpera()?(w.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),E="object"):c.isIE(9)&&(w.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),E="object")),"scroll"===E)_=m(M);else{if("object"!==E)throw new Error("Invalid strategy name: "+E);_=d(M)}var C={};return{listenTo:function(e,n,r){function o(e){var t=S.get(e);a(t,(function(t){t(e)}))}function i(e,t,n){S.add(t,n),e&&n(t)}if(r||(r=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(g(n))n=[n];else{if(!b(n))return w.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=f(n)}var l=0,s=h(e,"callOnAdd",k.callOnAdd),c=h(e,"onReady",(function(){})),u=h(e,"debug",k.debug);a(n,(function(e){p.getState(e)||(p.initState(e),t.set(e));var d=t.get(e);if(u&&w.log("Attaching listener to element",d,e),!T.isDetectable(e))return u&&w.log(d,"Not detectable."),T.isBusy(e)?(u&&w.log(d,"System busy making it detectable"),i(s,e,r),C[d]=C[d]||[],void C[d].push((function(){++l===n.length&&c()}))):(u&&w.log(d,"Making detectable..."),T.markBusy(e,!0),_.makeDetectable({debug:u,important:x},e,(function(e){if(u&&w.log(d,"onElementDetectable"),p.getState(e)){T.markAsDetectable(e),T.markBusy(e,!1),_.addListener(e,o),i(s,e,r);var t=p.getState(e);if(t&&t.startSize){var m=e.offsetWidth,b=e.offsetHeight;t.startSize.width===m&&t.startSize.height===b||o(e)}C[d]&&a(C[d],(function(e){e()}))}else u&&w.log(d,"Element uninstalled before being detectable.");delete C[d],++l===n.length&&c()})));u&&w.log(d,"Already detecable, adding listener."),i(s,e,r),l++})),l===n.length&&c()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(e){if(!e)return w.error("At least one element is required.");if(g(e))e=[e];else{if(!b(e))return w.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=f(e)}a(e,(function(e){S.removeAllListeners(e),_.uninstall(e),p.cleanState(e)}))},initDocument:function(e){_.initDocument&&_.initDocument(e)}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var a=e.get(n);return void 0===a?[]:t[a]||[]}return{get:n,add:function(n,a){var r=e.get(n);t[r]||(t[r]=[]),t[r].push(a)},removeListener:function(e,t){for(var a=n(e),r=0,o=a.length;r<o;++r)if(a[r]===t){a.splice(r,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var a=n(e);if(!a)throw new Error("setId required the element to have a resize detection state.");var r=t.generate();return a.id=r,r}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var a=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};a(n,"log"),a(n,"warn"),a(n,"error")}return n}},function(e,t,n){"use strict";var a=n(469);function r(){var e={},t=0,n=0,a=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<a&&(a=r),e[r]||(e[r]=[]),e[r].push(o),t++},process:function(){for(var t=a;t<=n;t++)for(var r=e[t],o=0;o<r.length;o++){(0,r[o])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=a.getOption(e,"async",!0),o=a.getOption(e,"auto",!0);o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var i,l=r(),s=!1;function c(){for(s=!0;l.size();){var e=l;l=r(),e.process()}s=!1}function u(){var e;e=c,i=setTimeout(e,0)}return{add:function(e,t){!s&&o&&n&&0===l.size()&&u(),l.add(e,t)},force:function(e){s||(void 0===e&&(e=n),i&&(clearTimeout(i),i=null),e?u():c())}}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var a=e[t];if(null==a&&void 0!==n)return n;return a}},function(e,t,n){"use strict";function a(e){return e._erd}e.exports={initState:function(e){return e._erd={},a(e)},getState:a,cleanState:function(e){delete e._erd}}},function(e,t,n){"use strict";var a=n(275);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function o(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function i(e){return r(e).object}return{makeDetectable:function(e,i,l){l||(l=i,i=e,e=null),(e=e||{}).debug,a.isIE(8)?l(i):function(i,l){var s=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,u=window.getComputedStyle(i),p=i.offsetWidth,d=i.offsetHeight;function m(){function n(){if("static"===u.position){i.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,a,r){var o=a[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",e.important?"important":""))};n(t,i,u,"top"),n(t,i,u,"right"),n(t,i,u,"bottom"),n(t,i,u,"left")}}""!==u.position&&(n(),c=!0);var o=document.createElement("object");o.style.cssText=s,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){c||n(),function e(t,n){if(!t.contentDocument){var a=r(t);return a.checkForObjectDocumentTimeoutId&&window.clearTimeout(a.checkForObjectDocumentTimeoutId),void(a.checkForObjectDocumentTimeoutId=setTimeout((function(){a.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){l(i)}))},a.isIE()||(o.data="about:blank"),r(i)&&(i.appendChild(o),r(i).object=o,a.isIE()&&(o.data="about:blank"))}r(i).startSize={width:p,height:d},n?n.add(m):m()}(i,l)},addListener:function(e,t){function n(){t(e)}if(a.isIE(8))r(e).object={proxy:n},e.attachEvent("onresize",n);else{var o=i(e);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(r(e)){var t=i(e);t&&(a.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),r(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(e).checkForObjectDocumentTimeoutId),delete r(e).object)}}}}},function(e,t,n){"use strict";var a=n(274).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var i=function(){var e=document.createElement("div");e.style.cssText=s(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=s(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,a=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:a}}();function l(e){!function(e,t,n){if(!e.getElementById(t)){var a=n+"_animation",r=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+s(["display: none"])+" }\n\n",o+="."+r+" { "+s(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+a,"animation-name: "+a])+" }\n",o+="@-webkit-keyframes "+a+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,a){a=a||function(t){e.head.appendChild(t)};var r=e.createElement("style");r.innerHTML=n,r.id=t,a(r)}(o+="@keyframes "+a+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function s(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function c(e,n,a){if(e.addEventListener)e.addEventListener(n,a);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,a)}}function u(e,n,a){if(e.removeEventListener)e.removeEventListener(n,a);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,a)}}function p(e){return r(e).container.childNodes[0].childNodes[0].childNodes[0]}function d(e){return r(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,u){function m(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var a=0;a<n.length;a++)t.log(n[a])}}function b(e){var t=r(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function f(){var e=window.getComputedStyle(l),t={};return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function g(){if(m("storeStyle invoked."),r(l)){var e=f();r(l).style=e}else m("Aborting because element has been uninstalled")}function h(e,t,n){r(e).lastWidth=t,r(e).lastHeight=n}function y(){return 2*i.width+1}function w(){return 2*i.height+1}function v(e){return e+10+y()}function k(e){return e+10+w()}function _(e,t,n){var a=p(e),r=d(e),o=v(t),i=k(n),l=function(e){return 2*e+y()}(t),s=function(e){return 2*e+w()}(n);a.scrollLeft=o,a.scrollTop=i,r.scrollLeft=l,r.scrollTop=s}function S(){var e=r(l).container;if(!e){(e=document.createElement("div")).className="erd_scroll_detection_container",e.style.cssText=s(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=e,function(e){e.className+=" erd_scroll_detection_container_animation_active"}(e),l.appendChild(e);var t=function(){r(l).onRendered&&r(l).onRendered()};c(e,"animationstart",t),r(l).onAnimationStart=t}return e}function T(){if(m("Injecting elements"),r(l)){!function(){var n=r(l).style;if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"");var a=function(e,t,n,a){var r=n[a];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+a+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+a+" will be set to 0. Element: ",t),t.style[a]=0)};a(t,l,n,"top"),a(t,l,n,"right"),a(t,l,n,"bottom"),a(t,l,n,"left")}}();var n=r(l).container;n||(n=S());var a,o,u,p,d=i.width,b=i.height,f=s(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=s(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(a=(a=-(1+d))?a+"px":"0"),"top: "+(o=(o=-(1+b))?o+"px":"0"),"right: "+(p=(p=-d)?p+"px":"0"),"bottom: "+(u=(u=-b)?u+"px":"0")])),h=s(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=s(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=s(["position: absolute","left: 0","top: 0"]),v=s(["position: absolute","width: 200%","height: 200%"]),k=document.createElement("div"),_=document.createElement("div"),T=document.createElement("div"),E=document.createElement("div"),x=document.createElement("div"),M=document.createElement("div");k.dir="ltr",k.style.cssText=f,k.className="erd_scroll_detection_container",_.className="erd_scroll_detection_container",_.style.cssText=g,T.style.cssText=h,E.style.cssText=w,x.style.cssText=y,M.style.cssText=v,T.appendChild(E),x.appendChild(M),_.appendChild(T),_.appendChild(x),k.appendChild(_),n.appendChild(k),c(T,"scroll",C),c(x,"scroll",O),r(l).onExpandScroll=C,r(l).onShrinkScroll=O}else m("Aborting because element has been uninstalled");function C(){r(l).onExpand&&r(l).onExpand()}function O(){r(l).onShrink&&r(l).onShrink()}}function E(){function i(t,n,a){var r=function(e){return p(e).childNodes[0]}(t),o=v(n),i=k(a);r.style.setProperty("width",o+"px",e.important?"important":""),r.style.setProperty("height",i+"px",e.important?"important":"")}function s(a){var s=l.offsetWidth,u=l.offsetHeight,p=s!==r(l).lastWidth||u!==r(l).lastHeight;m("Storing current size",s,u),h(l,s,u),n.add(0,(function(){if(p)if(r(l))if(c()){if(e.debug){var n=l.offsetWidth,a=l.offsetHeight;n===s&&a===u||t.warn(o.get(l),"Scroll: Size changed before updating detector elements.")}i(l,s,u)}else m("Aborting because element container has not been initialized");else m("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?_(l,s,u):m("Aborting because element container has not been initialized"):m("Aborting because element has been uninstalled")})),p&&a&&n.add(2,(function(){r(l)?c()?a():m("Aborting because element container has not been initialized"):m("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function u(){m("notifyListenersIfNeeded invoked");var e=r(l);return void 0===r(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?m("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?m("Not notifying: Size already notified"):(m("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void a(r(l).listeners,(function(e){e(l)})))}function f(){m("Scroll detected."),b(l)?m("Scroll event fired while unrendered. Ignoring..."):s(u)}if(m("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(m("startanimation triggered."),b(l))m("Ignoring since element is still unrendered...");else{m("Element rendered.");var e=p(l),t=d(l);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(m("Scrollbars out of sync. Updating detector elements..."),s(u))}},r(l).onExpand=f,r(l).onShrink=f;var g=r(l).style;i(l,g.width,g.height)}else m("Aborting because element has been uninstalled")}function x(){if(m("finalizeDomMutation invoked."),r(l)){var e=r(l).style;h(l,e.width,e.height),_(l,e.width,e.height)}else m("Aborting because element has been uninstalled")}function M(){u(l)}function C(){var e;m("Installing..."),r(l).listeners=[],e=f(),r(l).startSize={width:e.width,height:e.height},m("Element start size",r(l).startSize),n.add(0,g),n.add(1,T),n.add(2,E),n.add(3,x),n.add(4,M)}u||(u=l,l=e,e=null),e=e||{},m("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(l)?C():(m("Element is detached"),S(),m("Waiting until element is attached..."),r(l).onRendered=function(){m("Element is now attached"),C()})},addListener:function(e,t){if(!r(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(e).listeners.push(t)},uninstall:function(e){var t=r(e);t&&(t.onExpandScroll&&u(p(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&u(d(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&u(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},function(e,t,n){var a=n(7),r=n(474),o=n(138),i=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,p,d,m,b=0,f=!1,g=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,a=c;return s=c=void 0,b=t,p=e.apply(a,n)}function w(e){return b=e,d=setTimeout(k,t),f?y(e):p}function v(e){var n=e-m;return void 0===m||n>=t||n<0||g&&e-b>=u}function k(){var e=r();if(v(e))return _(e);d=setTimeout(k,function(e){var n=t-(e-m);return g?l(n,u-(e-b)):n}(e))}function _(e){return d=void 0,h&&s?y(e):(s=c=void 0,p)}function S(){var e=r(),n=v(e);if(s=arguments,c=this,m=e,n){if(void 0===d)return w(m);if(g)return clearTimeout(d),d=setTimeout(k,t),y(m)}return void 0===d&&(d=setTimeout(k,t)),p}return t=o(t)||0,a(n)&&(f=!!n.leading,u=(g="maxWait"in n)?i(o(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),S.cancel=function(){void 0!==d&&clearTimeout(d),b=0,s=m=c=d=void 0},S.flush=function(){return void 0===d?p:_(r())},S}},function(e,t,n){var a=n(6);e.exports=function(){return a.Date.now()}},function(e,t,n){"use strict";var a=n(3),r=n(476);if(void 0===a)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new a.Component).updater;e.exports=r(a.Component,a.isValidElement,o)},function(e,t,n){"use strict";var a=n(87),r=n(477),o=n(478);e.exports=function(e,t,n){var i=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},s={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=a({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=a({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=m(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=a({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var a=t[n];if(t.hasOwnProperty(n)){if(o(!(n in c),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var r=s.hasOwnProperty(n)?s[n]:null;return o("DEFINE_MANY_MERGED"===r,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=m(e[n],a))}e[n]=a}}}(e,t)},autobind:function(){}};function u(e,t){var n=l.hasOwnProperty(t)?l[t]:null;y.hasOwnProperty(t)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){o("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var a=e.prototype,r=a.__reactAutoBindPairs;for(var i in n.hasOwnProperty("mixins")&&c.mixins(e,n.mixins),n)if(n.hasOwnProperty(i)&&"mixins"!==i){var s=n[i],p=a.hasOwnProperty(i);if(u(p,i),c.hasOwnProperty(i))c[i](e,s);else{var d=l.hasOwnProperty(i);if("function"==typeof s&&!d&&!p&&!1!==n.autobind)r.push(i,s),a[i]=s;else if(p){var f=l[i];o(d&&("DEFINE_MANY_MERGED"===f||"DEFINE_MANY"===f),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",f,i),"DEFINE_MANY_MERGED"===f?a[i]=m(a[i],s):"DEFINE_MANY"===f&&(a[i]=b(a[i],s))}else a[i]=s}}}else;}function d(e,t){for(var n in o(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(o(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function m(e,t){return function(){var n=e.apply(this,arguments),a=t.apply(this,arguments);if(null==n)return a;if(null==a)return n;var r={};return d(r,n),d(r,a),r}}function b(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function f(e,t){return t.bind(e)}var g={componentDidMount:function(){this.__isMounted=!0}},h={componentWillUnmount:function(){this.__isMounted=!1}},y={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return a(w.prototype,e.prototype,y),function(e){var t=function(e,a,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var a=t[n],r=t[n+1];e[a]=f(e,r)}}(this),this.props=e,this.context=a,this.refs=r,this.updater=i||n,this.state=null;var l=this.getInitialState?this.getInitialState():null;o("object"==typeof l&&!Array.isArray(l),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=l};for(var a in t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i.forEach(p.bind(null,t)),p(t,g),p(t,e),p(t,h),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),o(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[a]||(t.prototype[a]=null);return t}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r,o,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,r,o,i,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){var a=n(58);e.exports=function(e){return"function"==typeof e?e:a}},function(e,t,n){"use strict";n.r(t);n(481),n(485),n(297),n(486);const a={};a.category=wp.element.createElement("svg",{className:"blockspare-svg blockspare-svg-blockspare",fill:"url(#blockspare-gradient)",width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},wp.element.createElement("g",{className:"blockspare-logo"},wp.element.createElement("g",null,wp.element.createElement("path",{class:"st0",d:"M1.6,9.2v21.4l18.3-9.2L20.2,0L1.6,9.2z M16.9,19.8L4.9,26V10.9l12-6.1V19.8z"}),wp.element.createElement("polygon",{id:"XMLID_3_",class:"st1",points:"19.9,21.4 16.9,23 26,27.7 13.8,33.8 4.9,29 1.6,30.7 13.9,36.9 32.4,27.7 "})),wp.element.createElement("g",null,wp.element.createElement("polygon",{id:"XMLID_2_",class:"st0",points:"23,1.5 23,19.8 32.4,24.6 32.4,9.4 35.3,10.9 35.3,29 38.4,30.7 38.4,9.2 29.4,4.8 29.2,19.7 26,18.4 26,3.1 "}),wp.element.createElement("polygon",{id:"XMLID_1_",class:"st1",points:"17,38.4 19.9,40 38.4,30.7 35.3,29 "})))),a.accordion=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-accordion",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("rect",{id:"XMLID_1_",x:"1.2",y:"6.8",width:"17.6",height:"12.6"}),wp.element.createElement("rect",{id:"XMLID_4_",x:"1.2",y:"3.6",width:"17.6",height:"2"}),wp.element.createElement("rect",{id:"XMLID_3_",x:"1.2",y:"0.6",width:"17.6",height:"2"}))),a.price=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-price",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_27_",d:"M5.3,12.6c0.8,0,1.6,0,2.3,0c0.1,0.8,0.7,1.2,1.4,1.4c0.8,0.2,1.6,0.2,2.3-0.2c0.6-0.3,0.9-0.8,0.8-1.4 c-0.1-0.5-0.4-0.7-0.8-0.9c-0.6-0.2-1.2-0.3-1.8-0.5c-0.7-0.2-1.4-0.3-2-0.6c-1.5-0.6-2.2-1.8-2-3.4c0.2-1.4,1-2.3,2.3-2.8 C8.2,4.2,8.6,4.1,9,4c0-0.7,0-1.4,0-2.2c0.7,0,1.4,0,2,0c0,0.7,0,1.4,0,2.2c1.2,0.2,2.2,0.7,2.9,1.7c0.4,0.5,0.5,1.1,0.6,1.7 c-0.8,0-1.5,0-2.3,0c-0.1-0.4-0.3-0.8-0.7-1.1c-0.5-0.3-1-0.4-1.5-0.4C9.5,5.9,9,6,8.6,6.2C8.2,6.5,8,6.9,8,7.4 c0,0.5,0.3,0.8,0.7,1c0.5,0.3,1.1,0.4,1.7,0.5C11.2,9,12,9.1,12.7,9.4c1.5,0.6,2.1,1.8,1.9,3.4c-0.2,1.5-1.2,2.6-2.7,3 c-0.3,0.1-0.6,0.1-0.9,0.2c0,0.7,0,1.4,0,2.2c-0.7,0-1.4,0-2.1,0c0-0.7,0-1.4,0.1-2.1c-0.5-0.2-1-0.3-1.5-0.5 c-1.3-0.5-2.1-1.5-2.2-2.9C5.3,12.7,5.3,12.6,5.3,12.6z"}))),a.container=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-container",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("circle",{id:"XMLID_3_",cx:"10",cy:"9.9",r:"5.5"}),wp.element.createElement("g",{id:"XMLID_4_"},wp.element.createElement("rect",{id:"XMLID_5_",x:"8.9",y:"6.1",class:"st0",width:"2.2",height:"7.9"}),wp.element.createElement("rect",{id:"XMLID_6_",x:"6",y:"9",class:"st0",width:"7.9",height:"2.2"}))),wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("path",{id:"XMLID_8_",d:"M20,20H0V0H20V20z M1,19H19V1H1V19z"}))),a.contentbox=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-contentbox",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("circle",{id:"XMLID_1_",cx:"5.7",cy:"10",r:"3.8"}),wp.element.createElement("g",{id:"XMLID_3_"},wp.element.createElement("rect",{id:"XMLID_5_",x:"10.7",y:"10.6",width:"7.3",height:"2"}),wp.element.createElement("rect",{id:"XMLID_8_",x:"10.7",y:"7.4",width:"7.3",height:"2"}))),wp.element.createElement("g",{id:"XMLID_7_"},wp.element.createElement("path",{id:"XMLID_4_",d:"M19.8,16.8H0.2V3.2h19.7V16.8z M0.9,16h18.2V4H0.9V16z"}))),a.userprofile=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-userprofile",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_3_",d:"M13.1,2.5c1.7,1.7,1.7,4.5,0,6.3s-4.5,1.7-6.3,0s-1.7-4.5,0-6.3C8.6,0.7,11.4,0.7,13.1,2.5"}),wp.element.createElement("path",{id:"XMLID_2_",d:"M16.8,13.2c-4-2.7-9.5-2.7-13.6,0c-0.6,0.4-1,1.1-1,1.8v3.8h15.5V15C17.7,14.3,17.4,13.6,16.8,13.2 L16.8,13.2z"}))),a.starrating=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-starrating",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("polygon",{id:"XMLID_6_",points:"17.4,8.2 12.3,7.5 10,2.8 7.7,7.5 2.6,8.2 6.3,11.8 5.4,16.9 10,14.5 14.6,16.9 13.7,11.8 "}),wp.element.createElement("polygon",{id:"XMLID_8_",class:"st0",points:"13.7,15.8 10,13.8 10,4.2 11.9,8 16,8.6 13,11.6 "}))),a.imagecarousel=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-imagecarousel",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_9_",d:"M16.4,16.4H3.6V3.6h12.7V16.4z M4.6,15.4h10.7V4.6H4.6V15.4z"})),wp.element.createElement("rect",{id:"XMLID_3_",x:"17.5",y:"4.1",width:"2.5",height:"11.7"}),wp.element.createElement("rect",{id:"XMLID_4_",x:"0",y:"4.1",width:"2.5",height:"11.7"}),wp.element.createElement("g",{id:"XMLID_7_"},wp.element.createElement("polygon",{id:"XMLID_2_",points:"5.1,14 8.6,7.9 12.1,14 "}),wp.element.createElement("polygon",{id:"XMLID_6_",points:"10.4,14 12.6,10.1 14.9,14 "}),wp.element.createElement("circle",{id:"XMLID_5_",cx:"12.4",cy:"7.1",r:"1.4"}))),a.imageslider=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-imageslider",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("path",{id:"XMLID_9_",d:"M16.4,16.4H3.6V3.6h12.7V16.4z M4.6,15.4h10.7V4.6H4.6V15.4z"}),wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("polygon",{id:"XMLID_5_",points:"5.1,14 8.6,7.9 12.1,14 "}),wp.element.createElement("polygon",{id:"XMLID_6_",points:"10.4,14 12.6,10.1 14.9,14 "}),wp.element.createElement("circle",{id:"XMLID_7_",cx:"12.4",cy:"7.1",r:"1.4"})),wp.element.createElement("path",{id:"XMLID_20_",d:"M1.1,10l1.5-0.9C2.7,9,2.7,8.9,2.7,8.7c0-0.1-0.1-0.3-0.2-0.4C2.4,8.2,2.2,8.2,2,8.3L0.1,9.5 C0,9.6,0,9.7,0,9.9v0.2c0,0.2,0,0.4,0.1,0.5L2,11.7c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.1-0.2,0.1-0.4 c0-0.2-0.1-0.3-0.2-0.4L1.1,10z"}),wp.element.createElement("path",{id:"XMLID_17_",d:"M19.9,9.5L18,8.3c-0.2-0.1-0.4-0.1-0.6,0.1c-0.1,0.1-0.1,0.2-0.1,0.4c0,0.2,0.1,0.3,0.2,0.4l1.5,0.9 l-1.5,0.9c-0.1,0.1-0.2,0.2-0.2,0.4c0,0.1,0.1,0.3,0.2,0.4c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1l1.8-1.1 c0.2-0.1,0.2-0.3,0.2-0.5V9.9C20,9.7,20,9.6,19.9,9.5z"})),a.postlist=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-postlist",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_5_",d:"M6.8,8.3H0.9V2h5.9V8.3z"})),wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("rect",{id:"XMLID_3_",x:"8.7",y:"3.1",width:"8.5",height:"1.4"}),wp.element.createElement("rect",{id:"XMLID_4_",x:"8.7",y:"5.8",width:"10.2",height:"1.4"})),wp.element.createElement("g",{id:"XMLID_14_"},wp.element.createElement("path",{id:"XMLID_15_",d:"M6.9,18.2H0.8v-6.6h6.1V18.2z"})),wp.element.createElement("g",{id:"XMLID_11_"},wp.element.createElement("rect",{id:"XMLID_13_",x:"8.7",y:"12.8",width:"8.5",height:"1.4"}),wp.element.createElement("rect",{id:"XMLID_12_",x:"8.7",y:"15.5",width:"10.2",height:"1.4"}))),a.postgrid=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-postgrid",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_5_"},wp.element.createElement("g",{id:"XMLID_14_"},wp.element.createElement("path",{id:"XMLID_15_",d:"M9,11.2H1V2.9h8V11.2z"})),wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("path",{id:"XMLID_3_",d:"M19,11.2h-8V2.9h8V11.2z"})),wp.element.createElement("rect",{id:"XMLID_1_",x:"1",y:"12.4",width:"7.2",height:"1.8"}),wp.element.createElement("rect",{id:"XMLID_6_",x:"1",y:"15.3",width:"8",height:"1.8"}),wp.element.createElement("rect",{id:"XMLID_8_",x:"11",y:"12.4",width:"7.2",height:"1.8"}),wp.element.createElement("rect",{id:"XMLID_7_",x:"11",y:"15.3",width:"8",height:"1.8"}))),a.postcarousel=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-postcarousel",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("g",{id:"XMLID_14_"},wp.element.createElement("path",{id:"XMLID_15_",d:"M16,11.4H4V1.7H16V11.4z"})),wp.element.createElement("rect",{id:"XMLID_5_",x:"4",y:"12.8",width:"10.8",height:"2.1"}),wp.element.createElement("rect",{id:"XMLID_6_",x:"4",y:"16.2",width:"12.1",height:"2.1"})),wp.element.createElement("path",{id:"XMLID_20_",d:"M1.1,10l1.5-0.9C2.7,9,2.7,8.9,2.7,8.7c0-0.1-0.1-0.3-0.2-0.4C2.4,8.2,2.2,8.2,2,8.3L0.1,9.5 C0,9.6,0,9.7,0,9.9v0.2c0,0.2,0,0.4,0.1,0.5L2,11.7c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.1-0.2,0.1-0.4 c0-0.2-0.1-0.3-0.2-0.4L1.1,10z"}),wp.element.createElement("path",{id:"XMLID_2_",d:"M19.9,9.5L18,8.3c-0.2-0.1-0.4-0.1-0.6,0.1c-0.1,0.1-0.1,0.2-0.1,0.4c0,0.2,0.1,0.3,0.2,0.4l1.5,0.9l-1.5,0.9 c-0.1,0.1-0.2,0.2-0.2,0.4c0,0.1,0.1,0.3,0.2,0.4c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1l1.8-1.1c0.2-0.1,0.2-0.3,0.2-0.5V9.9 C20,9.7,20,9.6,19.9,9.5z"})),a.iconblockspare=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-iconblockspare",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_23_",d:"M17.4,2c0.2,0,0.5,0,0.7,0c0.4,0,0.5,0.1,0.5,0.5c0,2.7-0.9,5-2.8,6.9c-0.8,0.8-1.7,1.5-2.5,2.3 c-0.1,0.1-0.2,0.3-0.2,0.4c-0.1,1.1-0.1,2.2-0.2,3.3c0,0.3-0.1,0.4-0.3,0.6c-1.2,0.7-2.5,1.4-3.7,2c-0.3,0.2-0.5,0.1-0.7-0.1 c-0.6-0.4-0.7-0.9-0.4-1.5c0.3-0.6,0.4-1.2,0.6-1.8c0.1-0.2,0-0.3-0.1-0.5c-0.8-0.8-1.7-1.6-2.5-2.4c-0.2-0.2-0.3-0.2-0.5-0.1 c-0.8,0.3-1.7,0.5-2.5,0.7c-0.3,0.1-0.4,0-0.6-0.2c-0.9-0.9-0.8-0.6-0.2-1.5c0.6-1,1.2-2,1.8-2.9C3.8,7.4,4,7.3,4.3,7.3 c1.2,0,2.3-0.1,3.5-0.2C8,7.1,8.2,7,8.3,6.9c1-1,2-2,3.1-2.9C13,2.7,14.9,2.1,17,2C17.1,2,17.3,2,17.4,2C17.4,2,17.4,2,17.4,2z M15.2,6.1c0.6,0,1-0.4,1-0.9c0-0.5-0.5-1-1-1c-0.5,0-1,0.4-1,1C14.2,5.6,14.7,6.1,15.2,6.1z"}))),a.iconlist=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-iconlist",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("path",{id:"XMLID_16_",d:"M2.4,3.3c0.7-0.7,1.3-1.3,2-2c0.1-0.1,0.1-0.1,0.2-0.2C4.8,1,5.1,1,5.3,1.1c0.2,0.2,0.2,0.4,0,0.6 c0,0-0.1,0.1-0.1,0.1C4.4,2.7,3.6,3.5,2.8,4.3C2.5,4.6,2.3,4.6,2,4.3C1.6,3.9,1.2,3.5,0.8,3.1C0.5,2.8,0.6,2.3,1,2.2 c0.2-0.1,0.4,0,0.5,0.2C1.8,2.7,2.1,3,2.4,3.3z"}),wp.element.createElement("rect",{id:"XMLID_1_",x:"6.4",y:"2.2",width:"13",height:"1.7"})),wp.element.createElement("g",{id:"XMLID_4_"},wp.element.createElement("path",{id:"XMLID_6_",d:"M2.4,10.6c0.7-0.7,1.3-1.3,2-2c0.1-0.1,0.1-0.1,0.2-0.2c0.2-0.2,0.5-0.2,0.7,0c0.2,0.2,0.2,0.4,0,0.6 c0,0-0.1,0.1-0.1,0.1c-0.8,0.8-1.6,1.6-2.4,2.4c-0.3,0.3-0.5,0.3-0.8,0c-0.4-0.4-0.8-0.8-1.2-1.2C0.5,10,0.6,9.6,1,9.5 c0.2-0.1,0.4,0,0.5,0.2C1.8,10,2.1,10.3,2.4,10.6z"}),wp.element.createElement("rect",{id:"XMLID_5_",x:"6.4",y:"9.5",width:"13",height:"1.7"})),wp.element.createElement("g",{id:"XMLID_7_"},wp.element.createElement("path",{id:"XMLID_9_",d:"M2.4,17.8c0.7-0.7,1.3-1.3,2-2c0.1-0.1,0.1-0.1,0.2-0.2c0.2-0.2,0.5-0.2,0.7,0c0.2,0.2,0.2,0.4,0,0.6 c0,0-0.1,0.1-0.1,0.1c-0.8,0.8-1.6,1.6-2.4,2.4c-0.3,0.3-0.5,0.3-0.8,0c-0.4-0.4-0.8-0.8-1.2-1.2c-0.3-0.3-0.2-0.7,0.2-0.8 c0.2-0.1,0.4,0,0.5,0.2C1.8,17.2,2.1,17.5,2.4,17.8z"}),wp.element.createElement("rect",{id:"XMLID_8_",x:"6.4",y:"16.7",width:"13",height:"1.7"}))),a.button=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-button",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("path",{id:"XMLID_2_",class:"st0",d:"M18,9.5H2c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2H18c1.1,0,2,0.9,2,2v2C20,8.6,19.1,9.5,18,9.5z"}),wp.element.createElement("g",{id:"XMLID_5_"},wp.element.createElement("path",{id:"XMLID_6_",class:"st1",d:"M12.8,20H9.7c-1,0-1.9-0.6-2.4-1.5L4.4,13l0.4-0.3c0.3-0.3,0.7-0.4,1.1-0.4 c0.4,0,0.8,0.2,1.1,0.6l0.5,0.6l0-6.2c0-0.6,0.5-1.2,1.1-1.2c0.6,0,1.1,0.5,1.1,1.2v3.2c0.2-0.2,0.5-0.4,0.8-0.4 c0.5,0,0.9,0.3,1.1,0.8c0.2-0.3,0.5-0.5,0.9-0.5c0.5,0,1,0.4,1.1,1c0.2-0.3,0.5-0.4,0.9-0.4h0c0.6,0,1.1,0.5,1.1,1.2l0,4.8 C15.6,18.7,14.4,20,12.8,20z M5.3,13.2l2.6,5c0.4,0.7,1.1,1.1,1.8,1.1h3.1c1.1,0,2.1-1,2.1-2.2l0-4.8c0-0.2-0.2-0.4-0.4-0.4h0 c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.3-0.3,0.6-0.6,0.6s-0.6-0.3-0.6-0.6v-1.1c0-0.2-0.2-0.4-0.4-0.4c-0.2,0-0.4,0.2-0.4,0.4v1.2 c0,0.3-0.3,0.6-0.6,0.6c-0.3,0-0.6-0.3-0.6-0.6v-1.5c0-0.2-0.2-0.4-0.4-0.4c-0.2,0-0.4,0.2-0.4,0.4V13c0,0.3-0.3,0.6-0.6,0.6 C9.3,13.6,9,13.4,9,13V7.3c0-0.2-0.2-0.4-0.4-0.4S8.3,7.1,8.3,7.3l0,6.6c0,0.3-0.2,0.5-0.4,0.6c-0.2,0.1-0.5,0-0.7-0.2l-0.8-1 C6.3,13.1,6.1,13,5.9,13C5.7,13,5.5,13,5.3,13.2z"})),wp.element.createElement("g",{id:"XMLID_4_"},wp.element.createElement("path",{id:"XMLID_3_",class:"st0",d:"M14.5,11.4L14.5,11.4c-0.4,0-0.8,0.3-0.8,0.8v0.6c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2 v-1.1c0-0.4-0.3-0.8-0.7-0.8c-0.4,0-0.7,0.4-0.7,0.8v1.2c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2v-1.5c0-0.4-0.3-0.8-0.7-0.8 h0c-0.4,0-0.7,0.3-0.7,0.8V13c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2v-1.7c0,0,0,0,0,0c0,0,0,0,0,0v-4 c0-0.4-0.3-0.8-0.7-0.8c-0.4,0-0.7,0.4-0.7,0.8l0,6.6c0,0.1-0.1,0.2-0.1,0.2c-0.1,0-0.2,0-0.2-0.1l-0.8-1c-0.2-0.3-0.5-0.4-0.8-0.4 c-0.3,0-0.6,0.1-0.9,0.3c0,0,0,0,0,0l-0.2,0.1l2.7,5.2c0.4,0.8,1.2,1.3,2.1,1.3h3.1c1.3,0,2.4-1.2,2.4-2.6c0-0.8,0-1.3,0-1.8 c0-1.2,0-1.7,0-3C15.2,11.7,14.9,11.4,14.5,11.4z"}))),a.cta=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-cta",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_17_"},wp.element.createElement("rect",{id:"XMLID_15_",x:"14.6",y:"4.1",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 1.7696 13.5544)",class:"st0",width:"5.3",height:"1.2"}),wp.element.createElement("rect",{id:"XMLID_14_",x:"16.4",y:"8.1",class:"st0",width:"3.5",height:"1.2"}),wp.element.createElement("rect",{id:"XMLID_13_",x:"14.6",y:"12.6",transform:"matrix(0.7071 0.7071 -0.7071 0.7071 14.3689 -8.3364)",class:"st0",width:"5.3",height:"1.2"}),wp.element.createElement("g",{id:"XMLID_16_"},wp.element.createElement("path",{id:"XMLID_1_",class:"st0",d:"M2.6,11.8H0.8c-0.4,0-0.7-0.3-0.7-0.7V7c0-0.4,0.3-0.7,0.7-0.7h1.8C3,6.3,3.3,6.6,3.3,7v4.2 C3.3,11.5,3,11.8,2.6,11.8z"}),wp.element.createElement("polygon",{id:"XMLID_24_",class:"st0",points:"7.3,12.8 4,12.2 4,6 7.3,5.4 "}),wp.element.createElement("polygon",{id:"XMLID_28_",class:"st0",points:"3.9,12.8 7.2,13.5 7.2,17.6 3.9,17.6 "}),wp.element.createElement("polygon",{id:"XMLID_26_",class:"st0",points:"13.3,14.2 8.1,12.8 8.1,5.2 13.3,3.8 "}),wp.element.createElement("circle",{id:"XMLID_25_",class:"st0",cx:"13.9",cy:"8.7",r:"1.8"})))),a.masonry=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-masonry",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#3C1A5B"},wp.element.createElement("rect",{id:"XMLID_1_",x:"1.2",y:"11.2",class:"st0",width:"8.2",height:"7.6"}),wp.element.createElement("rect",{id:"XMLID_4_",x:"1.2",y:"1.2",class:"st0",width:"8.2",height:"8.7"}),wp.element.createElement("rect",{id:"XMLID_3_",x:"10.6",y:"1.2",class:"st0",width:"8.2",height:"5"}),wp.element.createElement("rect",{id:"XMLID_5_",x:"10.6",y:"7.7",class:"st0",width:"8.2",height:"11.1"})),a.logobadge=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-logobadge",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#3C1A5B"},wp.element.createElement("path",{id:"XMLID_16_",d:"M3.1,2.8c0.3-0.1,0.5-0.2,0.8-0.3c0.8-0.3,1.6-0.6,2.5-0.8c0,0,0.1,0,0.2,0C7,1.9,7.5,2.1,8,2.3 c0.1,0,0.1,0,0.2,0C8.8,2,9.4,1.7,9.9,1.5c0.1,0,0.1,0,0.2,0c0.6,0.3,1.1,0.5,1.7,0.8c0.1,0,0.1,0,0.2,0c0.5-0.2,1-0.4,1.6-0.6 c0,0,0.1,0,0.1,0c1.1,0.4,2.1,0.7,3.2,1.1c0,0,0.1,0,0.1,0c-0.1,0.4-0.3,0.7-0.4,1.1c-0.2,0.8-0.4,1.6-0.3,2.4c0,0.5,0.1,1,0.2,1.5 c0.2,1,0.4,2.1,0.6,3.1c0.1,0.7,0.2,1.3,0.2,2c0,0.3,0,0.5-0.1,0.8c0,0.4-0.2,0.7-0.5,1c-0.4,0.5-1,0.9-1.5,1.3 c-0.8,0.5-1.7,0.9-2.6,1.3c-0.9,0.4-1.7,0.8-2.5,1.4c0,0-0.1,0.1-0.1,0C9,17.9,8.1,17.4,7,17c-0.8-0.4-1.7-0.8-2.4-1.2 c-0.5-0.3-0.9-0.7-1.3-1.1c-0.4-0.4-0.5-0.9-0.6-1.4c0-0.7,0-1.3,0.1-2C3,10,3.3,8.8,3.6,7.6C3.7,7,3.8,6.4,3.8,5.8 C3.8,4.8,3.5,3.8,3.1,2.8C3.1,2.8,3.1,2.8,3.1,2.8z"})),a.notice=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg",xmlns:"http://www.w3.org/2000/svg",fill:"#8B249C",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_4_"}),wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_3_",className:"st0",d:"M10,20C4.5,20,0,15.5,0,10C0,4.5,4.5,0,10,0c5.5,0,10,4.5,10,10C20,15.5,15.5,20,10,20z M10,1 C5,1,1,5,1,10s4.1,9,9,9s9-4.1,9-9S15,1,10,1z"})),wp.element.createElement("path",{id:"XMLID_10_",className:"st0",d:"M11.7,4.4C11.7,5.3,11,6,10,6C9,6,8.3,5.3,8.3,4.4C8.3,3.5,9,2.7,10,2.7 C11,2.7,11.7,3.5,11.7,4.4z"}),wp.element.createElement("rect",{id:"XMLID_9_",x:"8.8",y:"7.1",className:"st0",width:"2.5",height:"9.6"})),a.progressBar=wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#8B249C",className:"blockspare-svg"},wp.element.createElement("g",{id:"XMLID_4_"}),wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_5_",className:"st0",d:"M20,3.9H0V0h20V3.9z M0.5,3.4h19V0.5h-19V3.4z"})),wp.element.createElement("rect",{id:"XMLID_3_",x:"0.9",y:"0.9",className:"st0",width:"16.6",height:"2.1"})),wp.element.createElement("g",{id:"XMLID_9_"},wp.element.createElement("g",{id:"XMLID_11_"},wp.element.createElement("path",{id:"XMLID_12_",className:"st0",d:"M20,9.3H0V5.4h20V9.3z M0.5,8.8h19V5.9h-19V8.8z"})),wp.element.createElement("rect",{id:"XMLID_10_",x:"0.9",y:"6.3",className:"st0",width:"10.2",height:"2.1"})),wp.element.createElement("g",{id:"XMLID_15_"},wp.element.createElement("g",{id:"XMLID_17_"},wp.element.createElement("path",{id:"XMLID_18_",className:"st0",d:"M20,14.6H0v-3.9h20V14.6z M0.5,14.1h19v-2.9h-19V14.1z"})),wp.element.createElement("rect",{id:"XMLID_16_",x:"0.9",y:"11.6",className:"st0",width:"14.4",height:"2.1"})),wp.element.createElement("g",{id:"XMLID_21_"},wp.element.createElement("g",{id:"XMLID_23_"},wp.element.createElement("path",{id:"XMLID_24_",className:"st0",d:"M20,20H0v-3.9h20V20z M0.5,19.5h19v-2.9h-19V19.5z"})),wp.element.createElement("rect",{id:"XMLID_22_",x:"0.9",y:"17",className:"st0",width:"16.6",height:"2.1"}))),a.pricingTable=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-pricing-table",xmlns:"http://www.w3.org/2000/svg",viewBox:"-469 271 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_34_",class:"st0",d:"M-455.6,291h-6.8v-20h6.8V291z"})),wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("path",{id:"XMLID_31_",class:"st0",d:"M-462.8,289h-5.9V273h5.9V289z"})),wp.element.createElement("g",{id:"XMLID_3_"},wp.element.createElement("path",{id:"XMLID_28_",class:"st0",d:"M-449.3,289h-5.9V273h5.9V289z"})),wp.element.createElement("path",{id:"XMLID_25_",class:"st1",d:"M-464.4,287.5h-2.7c-0.3,0-0.5-0.2-0.5-0.5l0,0c0-0.3,0.2-0.5,0.5-0.5h2.7 c0.3,0,0.5,0.2,0.5,0.5l0,0C-463.9,287.3-464.1,287.5-464.4,287.5z"}),wp.element.createElement("path",{id:"XMLID_26_",class:"st1",d:"M-457.7,287.5h-2.6c-0.3,0-0.5-0.2-0.5-0.5l0,0c0-0.3,0.2-0.5,0.5-0.5h2.7 c0.3,0,0.5,0.2,0.5,0.5l0,0C-457.1,287.3-457.4,287.5-457.7,287.5z"}),wp.element.createElement("path",{id:"XMLID_27_",class:"st1",d:"M-451,287.5h-2.7c-0.3,0-0.5-0.2-0.5-0.5l0,0c0-0.3,0.2-0.5,0.5-0.5h2.7c0.3,0,0.5,0.2,0.5,0.5 l0,0C-450.4,287.3-450.7,287.5-451,287.5z"}),wp.element.createElement("g",null,wp.element.createElement("path",{class:"st1",d:"M-466.1,283.3v-1c-0.6,0-1.2-0.2-1.5-0.4l0.2-0.7c0.4,0.2,0.9,0.4,1.4,0.4c0.7,0,1.2-0.4,1.2-1 c0-0.5-0.4-0.9-1.1-1.2c-1-0.4-1.6-0.9-1.6-1.7c0-0.8,0.6-1.4,1.5-1.6v-1h0.6v1c0.6,0,1,0.2,1.3,0.3l-0.2,0.7 c-0.2-0.1-0.6-0.3-1.2-0.3c-0.8,0-1,0.5-1,0.9c0,0.5,0.4,0.8,1.2,1.1c1,0.4,1.5,0.9,1.5,1.8c0,0.8-0.5,1.5-1.6,1.7v1H-466.1z"})),wp.element.createElement("g",null,wp.element.createElement("path",{class:"st1",d:"M-459.3,282.3v-1c-0.6,0-1.2-0.2-1.5-0.4l0.2-0.7c0.4,0.2,0.9,0.4,1.4,0.4c0.7,0,1.2-0.4,1.2-1 c0-0.5-0.4-0.9-1.1-1.2c-1-0.4-1.6-0.9-1.6-1.7c0-0.8,0.6-1.4,1.5-1.6v-1h0.6v1c0.6,0,1,0.2,1.3,0.3l-0.2,0.7 c-0.2-0.1-0.6-0.3-1.2-0.3c-0.8,0-1,0.5-1,0.9c0,0.5,0.4,0.8,1.2,1.1c1,0.4,1.5,0.9,1.5,1.8c0,0.8-0.5,1.5-1.6,1.7v1H-459.3z"})),wp.element.createElement("g",null,wp.element.createElement("path",{class:"st1",d:"M-452.6,283.3v-1c-0.6,0-1.2-0.2-1.5-0.4l0.2-0.7c0.4,0.2,0.9,0.4,1.4,0.4c0.7,0,1.2-0.4,1.2-1 c0-0.5-0.4-0.9-1.1-1.2c-1-0.4-1.6-0.9-1.6-1.7c0-0.8,0.6-1.4,1.5-1.6v-1h0.6v1c0.6,0,1,0.2,1.3,0.3l-0.2,0.7 c-0.2-0.1-0.6-0.3-1.2-0.3c-0.8,0-1,0.5-1,0.9c0,0.5,0.4,0.8,1.2,1.1c1,0.4,1.5,0.9,1.5,1.8c0,0.8-0.5,1.5-1.6,1.7v1H-452.6z"}))),a.pricingList=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#3C1A5B"},wp.element.createElement("circle",{cx:"3.3",cy:"2.6",r:"2.6"}),wp.element.createElement("rect",{x:"7.1",y:"1.4",className:"st0",width:"9.8",height:"0.8"}),wp.element.createElement("rect",{x:"17.7",y:"1.4",className:"st0",width:"2.3",height:"0.8"}),wp.element.createElement("rect",{x:"7.1",y:"3.1",className:"st0",width:"12.9",height:"0.8"}),wp.element.createElement("circle",{className:"st0",cx:"3.3",cy:"9.7",r:"2.6"}),wp.element.createElement("rect",{x:"7.1",y:"8.9",className:"st0",width:"9.8",height:"0.8"}),wp.element.createElement("rect",{x:"17.7",y:"8.9",className:"st0",width:"2.3",height:"0.8"}),wp.element.createElement("rect",{x:"7.1",y:"10.5",className:"st0",width:"12.9",height:"0.8"}),wp.element.createElement("circle",{className:"st0",cx:"3.3",cy:"17.4",r:"2.6"}),wp.element.createElement("rect",{x:"7.1",y:"16.3",className:"st0",width:"9.8",height:"0.8"}),wp.element.createElement("rect",{x:"17.7",y:"16.3",className:"st0",width:"2.3",height:"0.8"}),wp.element.createElement("rect",{x:"7.1",y:"17.9",className:"st0",width:"12.9",height:"0.8"})),a.socialShare=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#3C1A5B"},wp.element.createElement("path",{id:"XMLID_7_",class:"st0",d:"M16,12.8c-0.9,0-1.8,0.4-2.3,1l-6.4-3.7c0-0.1,0-0.1,0-0.2c0-0.1,0-0.2,0-0.3l6.3-3.6 C14.1,6.8,15,7.3,16,7.3c1.7,0,3.2-1.4,3.2-3.2C19.1,2.4,17.7,1,16,1s-3.2,1.4-3.2,3.2c0,0.3,0,0.5,0.1,0.8L6.7,8.4 C6.2,7.5,5.2,6.8,4.1,6.8c-1.7,0-3.2,1.4-3.2,3.2c0,1.7,1.4,3.2,3.2,3.2c1.2,0,2.2-0.7,2.7-1.6L13,15c-0.1,0.3-0.2,0.6-0.2,0.9 c0,1.7,1.4,3.2,3.2,3.2s3.2-1.4,3.2-3.2C19.1,14.2,17.7,12.8,16,12.8z"})),a.sociallinks=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg blockspare-svg-sociallinks",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#3C1A5B"},wp.element.createElement("rect",{id:"XMLID_1_",x:"0.5",y:"0.5",width:"9",height:"9"}),wp.element.createElement("rect",{id:"XMLID_10_",x:"10.5",y:"0.5",width:"9",height:"9"}),wp.element.createElement("rect",{id:"XMLID_12_",x:"0.5",y:"10.5",width:"9",height:"9"}),wp.element.createElement("rect",{id:"XMLID_11_",x:"10.5",y:"10.5",width:"9",height:"9"}),wp.element.createElement("g",{id:"XMLID_7_"},wp.element.createElement("path",{id:"XMLID_70_",class:"st0",d:"M11.2,15.1c0-0.6,0-1.1,0-1.5c0-0.4,0-0.7,0.2-1c0.2-0.6,0.7-1,1.3-1.2 c0.2-0.1,0.5-0.1,0.8-0.1c1,0,2,0,2.9,0c0.3,0,0.7,0,1,0.1c0.6,0.2,1,0.6,1.2,1.2c0.1,0.3,0.2,0.5,0.2,0.8c0,0.4,0,0.8,0,1.3 c0,0.6,0,1.1,0,1.7c0,0.3,0,0.6-0.1,1c-0.2,0.7-0.7,1.2-1.4,1.4c-0.2,0.1-0.5,0.1-0.7,0.1c-1,0-1.9,0-2.9,0c-0.3,0-0.7,0-1-0.1 c-0.7-0.2-1.1-0.7-1.3-1.4c-0.1-0.2-0.1-0.5-0.1-0.7C11.2,16,11.2,15.5,11.2,15.1z M18.1,15C18.1,15,18.1,15,18.1,15 c0-0.3,0-0.7,0-1c0-0.3,0-0.7-0.1-1c-0.1-0.3-0.2-0.5-0.4-0.7c-0.2-0.2-0.4-0.3-0.7-0.3c-0.4-0.1-0.8-0.1-1.1-0.1 c-0.6,0-1.1,0-1.7,0c-0.3,0-0.7,0-1,0.1c-0.3,0.1-0.5,0.2-0.7,0.4C12.1,12.5,12,12.8,12,13c-0.1,0.4-0.1,0.7-0.1,1.1 c0,0.6,0,1.2,0,1.8c0,0.4,0,0.7,0.1,1.1c0.1,0.3,0.2,0.5,0.4,0.7c0.2,0.2,0.5,0.3,0.7,0.3c0.4,0.1,0.7,0.1,1.1,0.1 c0.6,0,1.2,0,1.7,0c0.3,0,0.7,0,1-0.1c0.3-0.1,0.5-0.2,0.7-0.4c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3,0.1-0.6,0.1-0.9 C18.1,15.7,18.1,15.4,18.1,15z"}),wp.element.createElement("path",{id:"XMLID_63_",class:"st0",d:"M16.9,15c0,1-0.8,2-2,2c-1,0-2-0.8-2-2c0-1,0.8-1.9,2-2C16.1,13,17,14,16.9,15z M15,13.7 c-0.7,0-1.3,0.6-1.3,1.3c0,0.7,0.6,1.3,1.3,1.3c0.7,0,1.3-0.6,1.3-1.3C16.3,14.3,15.7,13.7,15,13.7z"}),wp.element.createElement("path",{id:"XMLID_62_",class:"st0",d:"M17.5,13c0,0.2-0.2,0.5-0.5,0.5c-0.2,0-0.5-0.2-0.5-0.5c0-0.2,0.2-0.5,0.5-0.4 C17.3,12.5,17.5,12.7,17.5,13z"})),wp.element.createElement("g",{id:"XMLID_4_"},wp.element.createElement("path",{id:"XMLID_35_",class:"st0",d:"M13.5,6.7c-0.8,0-1.3-0.6-1.5-1.1c0.2,0,0.5,0,0.7,0c-0.4-0.1-0.7-0.3-0.9-0.6 c-0.2-0.3-0.3-0.6-0.3-1c0.1,0,0.2,0.1,0.3,0.1c0.1,0,0.2,0.1,0.4,0.1C11.8,4,11.5,3.6,11.5,3c0-0.3,0.1-0.6,0.2-0.9 c0.8,1,1.9,1.5,3.2,1.6c0-0.1,0-0.1,0-0.2c0-0.6,0.2-1,0.6-1.4c0.6-0.5,1.5-0.4,2.1,0.1c0,0,0,0,0.1,0C18,2.3,18.3,2.2,18.6,2 c0,0,0,0,0,0c-0.1,0.2-0.1,0.3-0.3,0.5c-0.1,0.1-0.3,0.3-0.4,0.4c0.3,0,0.6-0.1,0.9-0.2c0,0,0,0,0,0c-0.2,0.3-0.4,0.5-0.7,0.7 c0,0,0,0,0,0.1c0,0.7-0.1,1.4-0.4,2c-0.3,0.7-0.8,1.3-1.4,1.8c-0.5,0.3-1,0.6-1.6,0.7c-0.6,0.1-1.3,0.2-1.9,0 c-0.5-0.1-1-0.3-1.5-0.6c0,0,0,0,0,0c0.6,0.1,1.2,0,1.8-0.3C13.2,7,13.3,6.9,13.5,6.7z"})),wp.element.createElement("g",{id:"XMLID_3_"},wp.element.createElement("path",{id:"XMLID_37_",class:"st0",d:"M4.2,5.3c-0.4,0-0.8,0-1.2,0C3,4.9,3,4.4,3,4c0.4,0,0.8,0,1.2,0c0,0,0,0,0-0.1 c0-0.4,0-0.7,0-1.1c0-0.4,0.1-0.7,0.3-1C4.7,1.4,5,1.3,5.4,1.2c0.2-0.1,0.5-0.1,0.7-0.1c0.3,0,0.6,0,0.9,0c0,0,0,0,0,0 C7,1.6,7,2,7,2.4c0,0,0,0,0,0c0,0,0,0-0.1,0c-0.3,0-0.5,0-0.8,0c-0.1,0-0.1,0-0.2,0C5.8,2.5,5.6,2.6,5.6,2.9c0,0.1,0,0.2,0,0.3 c0,0.2,0,0.5,0,0.7c0,0,0,0,0,0.1c0.5,0,0.9,0,1.4,0C6.9,4.4,6.8,4.9,6.8,5.3c-0.4,0-0.8,0-1.2,0c0,1.2,0,2.4,0,3.6 c-0.5,0-1,0-1.4,0C4.2,7.7,4.2,6.5,4.2,5.3z"})),wp.element.createElement("g",{id:"XMLID_5_"},wp.element.createElement("path",{id:"XMLID_33_",class:"st0",d:"M8.6,18.6C8.6,18.6,8.6,18.6,8.6,18.6c-0.5,0-1,0-1.4,0c0,0,0,0,0,0c0,0,0,0,0,0 c0-0.8,0-1.6,0-2.4c0-0.2,0-0.4,0-0.6c0-0.1-0.1-0.2-0.1-0.3C6.8,15.1,6.7,15,6.5,15c-0.2,0-0.3,0-0.5,0c-0.2,0.1-0.4,0.2-0.5,0.4 c-0.1,0.1-0.1,0.3-0.1,0.4c0,0.1,0,0.3,0,0.4c0,0.8,0,1.5,0,2.3c0,0,0,0,0,0c-0.5,0-1,0-1.5,0c0-1.6,0-3.2,0-4.8c0.5,0,0.9,0,1.4,0 c0,0.2,0,0.4,0,0.6c0,0,0,0,0,0c0,0,0,0,0,0C5.6,14.2,5.8,14,6,13.8c0.2-0.1,0.5-0.2,0.8-0.2c0.3,0,0.5,0,0.7,0.1 c0.4,0.1,0.7,0.4,0.8,0.8c0.1,0.2,0.1,0.5,0.1,0.7c0,0.1,0,0.3,0,0.4c0,0,0,0,0,0C8.6,16.7,8.6,17.6,8.6,18.6z"}),wp.element.createElement("path",{id:"XMLID_32_",class:"st0",d:"M2.3,11.4c0,0,0.1,0,0.1,0c0.4,0.1,0.7,0.4,0.7,0.8c0,0.4-0.3,0.8-0.7,0.8 c-0.5,0.1-0.9-0.2-1-0.7c0,0,0,0,0-0.1c0,0,0-0.1,0-0.1c0,0,0,0,0,0c0-0.3,0.3-0.6,0.6-0.7c0.1,0,0.1,0,0.2,0 C2.2,11.4,2.3,11.4,2.3,11.4z"}),wp.element.createElement("path",{id:"XMLID_30_",class:"st0",d:"M3,18.6c-0.5,0-1,0-1.5,0c0-1.6,0-3.2,0-4.8c0.5,0,1,0,1.5,0C3,15.4,3,17,3,18.6z"}))),a.tabs=wp.element.createElement("svg",{className:"blockspare-svg blockspare-svg-tabs",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("rect",{id:"XMLID_1_",x:"1.2",y:"4.9",width:"17.6",height:"14"}),wp.element.createElement("rect",{id:"XMLID_4_",x:"1.2",y:"1.3",width:"8.2",height:"3.6"}),wp.element.createElement("rect",{id:"XMLID_3_",x:"10.6",y:"1.3",width:"8.2",height:"2.5"}))),a.shapediviver=wp.element.createElement("svg",{className:"blockspare-svg blockspare-svg-shape-diviver",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("path",{id:"XMLID_6_",d:"M20,20H0V0h20V20z M1,19h18V1H1V19z"}),wp.element.createElement("path",{id:"XMLID_10_",d:"M0,10.8c0,0,6.3-3.3,10.6,1.1c5.3,5.5,9.4-2,9.4-2V20L0,20V10.8z"})),a.counter=wp.element.createElement("svg",{className:"blockspare-svg blockspare-svg-shape-counter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("rect",{id:"XMLID_4_",x:"1.3",y:"1",width:"8",height:"18"}),wp.element.createElement("rect",{id:"XMLID_8_",x:"10.7",y:"1",width:"8",height:"18"}),wp.element.createElement("g",{id:"XMLID_23_"},wp.element.createElement("path",{id:"XMLID_25_",class:"st0",d:"M8.4,10c0,0.7-0.1,1.3-0.2,1.8c-0.1,0.5-0.3,1-0.5,1.3c-0.2,0.3-0.6,0.6-1,0.8 c-0.4,0.2-0.9,0.3-1.4,0.3c-0.6,0-1-0.1-1.4-0.3c-0.4-0.2-0.7-0.4-1-0.8c-0.2-0.4-0.4-0.8-0.5-1.3c-0.1-0.5-0.2-1.1-0.2-1.8 c0-0.7,0.1-1.3,0.2-1.8c0.1-0.5,0.3-0.9,0.5-1.3c0.3-0.4,0.6-0.6,1-0.8c0.4-0.2,0.9-0.3,1.4-0.3c0.6,0,1.1,0.1,1.5,0.3 s0.7,0.5,1,0.8C8,7.2,8.2,7.7,8.3,8.2C8.4,8.7,8.4,9.3,8.4,10z M6.4,10c0-1-0.1-1.7-0.2-2.1C6,7.5,5.7,7.3,5.3,7.3 c-0.4,0-0.7,0.2-0.8,0.6C4.3,8.3,4.3,9,4.3,10c0,1,0.1,1.7,0.2,2.1c0.2,0.4,0.4,0.6,0.8,0.6s0.7-0.2,0.8-0.6 C6.3,11.7,6.4,11,6.4,10z"})),wp.element.createElement("g",{id:"XMLID_3_"},wp.element.createElement("path",{id:"XMLID_9_",class:"st0",d:"M17.6,7.6L14.2,14H12l3.6-6.5h-3.8V6h5.9V7.6z"})),wp.element.createElement("path",{id:"XMLID_26_",class:"st0",d:"M15.1,2.1c-0.2,0.4-0.4,0.5-0.8,0.5c-0.4,0-0.6-0.1-0.8-0.5C13.4,1.9,13.3,1,13.3,1h-1.9 c0,0,0.1,0.6,0.1,0.9c0.1,0.5,0.3,0.8,0.5,1.2c0.2,0.3,0.5,0.6,0.9,0.7C13.3,3.9,13.8,4,14.3,4c0.5,0,1-0.1,1.4-0.3 C16,3.6,16.3,3.3,16.5,3c0.2-0.3,0.4-0.6,0.5-1.1C17.1,1.6,17.1,1,17.2,1h-1.9C15.2,1,15.2,1.9,15.1,2.1z"})),a.testimonial=wp.element.createElement("svg",{className:"blockspare-svg blockspare-svg-testimonial",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("g",{id:"XMLID_1_"},wp.element.createElement("path",{id:"XMLID_2_",class:"st0",d:"M17.5,14.1H2.5c-1.3,0-2.3-1-2.3-2.3V6.3C0.2,5,1.3,4,2.5,4h14.9c1.3,0,2.3,1,2.3,2.3v5.6 C19.8,13.1,18.7,14.1,17.5,14.1z"}),wp.element.createElement("polygon",{id:"XMLID_3_",class:"st0",points:"1.8,13 4.1,17 6.4,13 "}))),a.upload=wp.element.createElement("svg",{width:"50px",height:"50px",viewBox:"0 0 20 20",className:"blockspare-svg",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M17.9,4c-1,0-2,0-3,0c-0.2,0-0.3,0-0.3-0.3c-0.1-0.9-1-1.5-1.8-1.5c-1.9,0-3.8,0-5.7,0 c-0.8,0-1.6,0.6-1.7,1.5C5.4,3.9,5.3,4,5,4c-1,0-1.9,0-2.9,0C1.1,4,0.1,5,0.1,6c0,3.2,0,6.5,0,9.7c0,0.2,0.1,0.5,0.2,0.7 c0.4,0.9,1.2,1.4,2.2,1.4c2.5,0,5.1,0,7.6,0c2.5,0,4.9,0,7.4,0c0.3,0,0.5,0,0.8-0.1c0.9-0.2,1.7-1.1,1.8-2c0-3.3,0-6.5,0-9.8 C19.9,5,18.9,4,17.9,4z M19,15.3c0,0.4-0.1,0.9-0.5,1.2c-0.3,0.3-0.7,0.3-1.1,0.3c-2.5,0-4.9,0-7.4,0c-2.5,0-4.9,0-7.4,0 c-0.4,0-0.9,0-1.2-0.4c-0.2-0.2-0.4-0.5-0.4-0.9c0-3.1,0-6.3,0-9.4C1.1,5.5,1.6,5,2.3,5c1.1,0,2.3,0,3.4,0c0.6,0,0.8-0.2,0.8-0.8 c0,0,0-0.1,0-0.1C6.4,3.3,6.8,3.1,7.3,3.1c1.8,0,3.8,0,5.6,0c0.6,0,1.1,0.3,1.1,1c0,0.1,0,0.1,0,0.2C14,4.8,14,5,14.5,5 c1.1,0,2.1,0,3.2,0c0.9,0,1.4,0.5,1.4,1.5C19.1,9.4,19,12.3,19,15.3z"}),wp.element.createElement("path",{d:"M10,6.2c-2.6,0-4.7,2.1-4.7,4.6c0,2.6,2.1,4.7,4.6,4.7c2.6,0,4.7-2.1,4.7-4.6C14.7,8.3,12.6,6.2,10,6.2z M10,14.5c-1.9,0-3.6-1.4-3.6-3.6c0-2,1.6-3.6,3.6-3.6c2,0,3.6,1.5,3.6,3.7C13.6,13,12,14.5,10,14.5z"}),wp.element.createElement("path",{d:"M16.7,6.2c-0.5,0-0.9,0.4-0.9,0.9c0,0.5,0.4,0.9,0.9,0.9c0.5,0,0.9-0.5,0.9-0.9C17.7,6.6,17.2,6.2,16.7,6.2 z"})),a.sectionHeader=wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#3C1A5B",className:"blockspare-svg"},wp.element.createElement("g",{id:"XMLID_2_"},wp.element.createElement("path",{id:"XMLID_3_",d:"M17,2.2v15.6h-4.3v-6.3H7.4v6.3H3V2.2h4.3V8h5.3V2.2H17z"}))),a.services=wp.element.createElement("svg",{width:"20px",height:"20px",className:"blockspare-svg blockspare-svg-services",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},wp.element.createElement("circle",{id:"XMLID_1_",cx:"4.5",cy:"5",r:"3.4"}),wp.element.createElement("circle",{id:"XMLID_9_",cx:"15.5",cy:"5",r:"3.4"}),wp.element.createElement("rect",{id:"XMLID_2_",y:"10",width:"9",height:"1.7"}),wp.element.createElement("rect",{id:"XMLID_8_",x:"11",y:"9.8",width:"9",height:"1.7"}),wp.element.createElement("rect",{id:"XMLID_4_",y:"13.3",width:"9",height:"6.7"}),wp.element.createElement("rect",{id:"XMLID_7_",x:"11",y:"13.1",width:"9",height:"6.9"})),a.emptySpaces=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{className:"cls-1",x:"1.5",y:"1.5",width:"13",height:"13"})),a.layouts=wp.element.createElement("svg",{version:"1.1",className:"blockspare-svg",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fill:"#333333",d:"M0.4,15.1V0.7c0-0.2,0.1-0.3,0.3-0.3h8.8c0.2,0,0.3,0.1,0.3,0.3v14.4c0,0.2-0.1,0.3-0.3,0.3H0.7 C0.6,15.4,0.4,15.3,0.4,15.1z"}),wp.element.createElement("path",{fill:"#333333",d:"M10.2,7.2V0.7c0-0.2,0.1-0.3,0.3-0.3h8.8c0.2,0,0.3,0.1,0.3,0.3v6.5c0,0.2-0.1,0.3-0.3,0.3h-8.8 C10.3,7.5,10.2,7.3,10.2,7.2z"}),wp.element.createElement("path",{fill:"#333333",d:"M10.3,15.1V8.2c0-0.2,0.1-0.3,0.3-0.3h3.8c0.2,0,0.3,0.1,0.3,0.3v6.9c0,0.2-0.1,0.3-0.3,0.3h-3.8 C10.4,15.4,10.3,15.3,10.3,15.1z"}),wp.element.createElement("path",{fill:"#333333",d:"M0.8,15.8h18.4c0.2,0,0.3,0.1,0.3,0.3v3.3c0,0.2-0.1,0.3-0.3,0.3H0.8c-0.2,0-0.3-0.1-0.3-0.3 v-3.3C0.5,15.9,0.7,15.8,0.8,15.8z"}),wp.element.createElement("path",{fill:"#333333",d:"M15.2,15.1V8.2c0-0.2,0.1-0.3,0.3-0.3h3.7c0.2,0,0.3,0.1,0.3,0.3v6.9c0,0.2-0.1,0.3-0.3,0.3h-3.7 C15.3,15.4,15.2,15.3,15.2,15.1z"})),a.flipX=wp.element.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m11 18h3v-2h-3zm3-12h2v-2h-2zm-14-2v12c0 1.1.9 2 2 2h3v-2h-3v-12h3v-2h-3c-1.1 0-2 .9-2 2zm14-2v2h2c0-1.1-.9-2-2-2zm-7 18h2v-20h-2zm7-4h2v-2h-2zm-3-12h3v-2h-3zm3 8h2v-4h-2zm0 6c1.1 0 2-.9 2-2h-2z",transform:"translate(2)"})),a.flipY=wp.element.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m13 16h3v-2h-3zm3-12h2v-2h-2zm-14-2v12c0 1.1.9 2 2 2h3v-2h-3v-12h3v-2h-3c-1.1 0-2 .9-2 2zm14-2v2h2c0-1.1-.9-2-2-2zm-7 18h2v-20h-2zm7-4h2v-2h-2zm-3-12h3v-2h-3zm3 8h2v-4h-2zm0 6c1.1 0 2-.9 2-2h-2z",transform:"matrix(0 1 -1 0 18 0)"})),a.edit='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><Path d="m11 5.9125c-2.784375 0-5.01875 2.26875-5.01875 5.01875 0 2.784375 2.26875 5.01875 5.01875 5.01875 2.784375 0 5.01875-2.26875 5.01875-5.01875s-2.234375-5.01875-5.01875-5.01875zm.378125 6.325-1.134375 1.134375-1.134375-1.134375-1.1-1.1 1.134375-1.134375 1.1 1.1 2.6125-2.6125 1.134375 1.134375zm9.659375-2.715625c-.446875-.4125-.61875-1.065625-.378125-1.615625l.20625-.515625c.34375-.790625-.103125-1.684375-.928125-1.925l-.55-.1375c-.584375-.171875-.996875-.6875-1.03125-1.30625v-.584375c-.034375-.859375-.825-1.478125-1.65-1.340625l-.55.103125c-.61875.103125-1.203125-.171875-1.478125-.721875l-.275-.48125c-.4125-.75625-1.375-.9625-2.0625-.48125l-.446875.309375c-.48125.34375-1.16875.34375-1.65 0l-.446875-.34375c-.6875-.515625-1.684375-.275-2.096875.48125l-.275.48125c-.309375.55-.89375.825-1.5125.721875l-.55-.103125c-.859375-.1375-1.615625.48125-1.684375 1.340625l-.034375.55c-.034375.61875-.446875 1.134375-1.03125 1.30625l-.55.171875c-.825.240625-1.271875 1.134375-.928125 1.925l.20625.515625c.240625.55.06875 1.203125-.378125 1.615625l-.4125.378125c-.653125.55-.653125 1.58125 0 2.13125l.4125.378125c.446875.4125.61875 1.065625.378125 1.615625l-.20625.515625c-.34375.790625.103125 1.684375.928125 1.925l.55.1375c.584375.171875.996875.6875 1.03125 1.30625l.034375.55c.034375.859375.825 1.478125 1.65 1.340625l.55-.103125c.61875-.103125 1.203125.171875 1.478125.721875l.275.48125c.4125.75625 1.375.9625 2.0625.48125l.446875-.309375c.48125-.34375 1.16875-.34375 1.65 0l.446875.34375c.6875.515625 1.684375.275 2.096875-.48125l.275-.48125c.309375-.55.89375-.825 1.5125-.721875l.55.103125c.859375.1375 1.615625-.48125 1.684375-1.340625l.034375-.55c.034375-.61875.446875-1.134375 1.03125-1.30625l.55-.1375c.825-.240625 1.271875-1.134375.928125-1.925l-.20625-.515625c-.240625-.55-.06875-1.203125.378125-1.615625l.4125-.378125c.653125-.55.653125-1.58125 0-2.13125zm-10.0375 8.3875c-3.85 0-6.94375-3.128125-6.94375-6.94375 0-3.85 3.128125-6.94375 6.94375-6.94375 3.85 0 6.94375 3.128125 6.94375 6.94375s-3.09375 6.94375-6.94375 6.94375z" transform="translate(1 1)" /></svg>;',a.blockspare_placeholder=wp.element.createElement("svg",{viewBox:"0 0 384 384",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M203.3,384c-7.5,0-15,0-22.5,0c-7.9-1.1-15.8-1.9-23.7-3.3C78.7,366.6,16.4,303.8,3,225.4c-1.2-7.1-2-14.3-3-21.4 c0-8,0-16,0-24c0.2-1,0.6-1.9,0.6-2.9c1.4-18.8,5.7-36.9,12.4-54.5c0.6-1.5,0.6-3.3,0.9-4.7c1-1.5,2.3-2.9,3-4.5 C26,93.3,38,75.2,53.4,59.3C82.7,29,118.1,10.1,159.6,2.9c7.2-1.2,14.6-2,21.9-2.9c7.3,0,14.5,0,21.8,0c1,0.2,1.9,0.4,2.9,0.6 c12.3,2.1,25,2.8,36.8,6.5c75.8,23.3,122,74.1,138.1,151.9c1.4,6.9,2,14,3,21.1c0,8,0,16,0,24c-0.2,1-0.5,1.9-0.6,2.9 c-1.3,8.8-2.1,17.6-3.9,26.3c-15.7,75.1-78.8,135.5-154.4,147.9C217.8,382.3,210.5,383,203.3,384z M20.8,140.3 c-22.5,68.7,1.5,162.7,85.2,208.8c80.6,44.3,178.3,19.1,229.2-49.9c-3.4-3.2-6.6-6.7-10.2-9.8c-3.9-3.3-5.5-7-5.1-12.1 c0.4-5.5,0.2-11,0-16.5c-0.1-2-0.5-4.2-1.4-6.1c-5-10.2-9.6-20.6-15.4-30.4c-7-11.8-10.4-24.1-8.9-37.8c0.2-1.6-0.5-4.2-1.6-4.8 c-4.9-2.6-8.3-8.1-14.7-7.8c-0.5,0-1,0.2-1.5,0.3c-6.1,1.5-12.1,3.1-18.2,4.4c-1.7,0.4-3.8,0.4-5.4-0.3 c-14.6-6.1-29.2-12.3-43.7-18.8c-1.9-0.9-4.1-3.4-4.4-5.4c-2.4-14.4-4.2-28.9-6.3-43.4c-0.4-3,0.4-5.3,2.5-7.4 c5.9-5.8,11.6-11.8,17.6-17.4c1.6-1.5,4.1-2.6,6.2-2.6c12.1-0.2,24.2-0.1,36.4-0.1c3,0,5.2,1.2,6.9,3.7c3,4.6,6,9.2,9.2,13.7 c0.9,1.3,2.6,2.4,4.1,2.7c6,1.2,12,2.1,18.1,3.1c4.7,0.7,9.7,2.8,14,1.7c10.4-2.5,20.4-6.5,31.4-10.2c-6.7-8.9-13-17.3-19.3-25.8 c-5,3.4-9.3,6.4-13.8,9.1c-1.8,1.1-4.3,2-6.2,1.6c-15.8-3.2-31.8-5.3-46.9-11.2c-1.7-0.7-3.9-0.7-5.8-0.3 c-6.3,1.4-12.6,3.2-18.9,4.6c-2.1,0.5-4.5,0.6-6.6,0c-5.9-1.7-11.7-3.7-17.4-5.7c-5-1.7-6.4-5.3-4.1-10c3.9-8,7.9-15.8,11.8-23.8 c1.6-3.2,3.9-4.5,7.5-4.4c5.9,0.1,11.8-0.3,17.6,0.1c6.4,0.4,10.9-3.3,16.4-5.8c-27.7-15.5-93.9-17.9-122.5-4.2 c3.5,1.6,6.2,3.4,9.2,4c11,2.1,22.1,3.8,33.2,5.8c5.7,1,7.5,4.2,5.7,9.8c-1.8,5.6-3.7,11.1-5.5,16.7c-0.9,2.9-2.6,4.7-5.5,5.6 c-4.2,1.3-8.4,2.5-12.4,4.3c-2,0.9-4.1,2.3-5.3,4.1c-5.2,8.2-10,16.7-15.2,25c-1.3,2-3.1,3.9-5.2,5.2c-9.3,5.8-18.8,11.4-28.3,17 c-1.8,1-3.9,1.8-5.9,2.1c-11.5,1.8-23,3.5-34.5,5c-2.6,0.3-3.1,1.4-3.3,3.8c-0.5,5.4,0.8,9.7,5.3,13c1.7,1.2,3.4,2.8,4.5,4.5 c1.4,2.2,2.5,4.7,3,7.3c0.5,2.4,0.1,5,0.1,7.6c0.3,0.1,0.7,0.2,1,0.3c2.1-2.2,4.2-4.6,6.4-6.7c4.4-4.3,8.9-3.6,11.7,2 c3.1,6,6.1,12,9,18.1c1,2.1,2.2,2.8,4.6,2.8c11.9-0.1,23.7,0.1,35.6-0.1c4.1-0.1,6.7,1.5,8.8,5.1c4.6,8,9.6,15.8,14.1,23.8 c1.4,2.5,3.1,3.4,6,3.3c5.4-0.2,10.7-0.1,16.1-0.1c6.7,0,9,2.8,7.8,9.5c-0.8,4.4-2.3,8.8-2.6,13.2c-0.8,13.7-6.8,24.4-17.6,32.6 c-0.3,0.2-0.5,0.6-0.8,0.8c-8.7,6.2-12.3,14.4-10.5,25c0.6,3.6-1.1,6.2-4,8.3c-6.5,4.7-12.9,9.5-19.2,14.4c-1.2,1-2.2,3-2.2,4.6 c-0.2,8.2,0,16.5-0.1,24.7c-0.1,6-3.8,8.7-9.5,6.8c-5.6-1.8-11.1-3.7-16.7-5.5c-3-0.9-4.8-2.7-6-5.7c-3.7-9.5-7.6-19-11.3-28.5 c-0.8-2.2-1.3-4.6-1.3-6.9C96,287.3,96,269.9,96,252.6c0-1.3,0-2.7,0-4.1c-8.2-1.6-16-3.3-23.8-4.7c-4.2-0.7-7-2.5-8.8-6.5 c-2-4.7-4.2-9.4-6.9-13.7c-4.4-7.2-5.6-14.8-5.6-23.2c0-7.5,1.2-13.8,7.6-18.3c0.6-0.4,1-1.1,1.7-1.9c-1.3-0.9-2.4-1.7-3.5-2.4 c-8.8-5.9-17.8-11.6-26.4-17.8c-2.1-1.5-3.8-3.9-4.8-6.3C23.6,149.5,22.4,145.1,20.8,140.3z M342.3,288.8 c36.6-54.1,37.1-128,8.3-179.1c-10.8,3.6-21.7,7.3-32.6,10.8c-2.2,0.7-4.7,1.1-6.9,0.8c-10.5-1.5-20.9-3.7-31.4-5 c-5.8-0.8-9.9-3-12.8-8.3c-2.2-4.1-4.5-9.3-8.2-11.3c-3.7-2-9.3-0.6-14-0.6c-6,0-12.6-1.5-17.8,0.7c-5.1,2.1-8.7,8-13,12.2 c-0.2,0.2-0.4,0.3-0.5,0.5c-0.5,1.4-1.4,2.9-1.2,4.2c1.4,10.9,3.1,21.8,4.5,32.7c0.3,2.2,1.2,3.2,3.1,4c11.5,4.8,22.9,9.9,34.4,14.7 c1.5,0.6,3.4,0.7,5,0.4c6.5-1.4,12.9-3.1,19.2-4.8c3-0.8,5.6-0.4,8.1,1.4c5.4,3.8,10.9,7.5,16.5,11c2.9,1.9,4.2,4.4,4.2,7.8 c-0.1,6.2-0.2,12.5,0.1,18.7c0.1,2.4,0.6,5,1.7,7.1c4.6,9.7,9,19.6,14.5,28.8c7.5,12.6,11.2,25.7,9.4,40.3c-0.1,0.5-0.1,1,0,1.5 c0.4,1.1,0.7,2.4,1.4,3.2C336.8,283.2,339.4,285.8,342.3,288.8z M87.8,170.8c-7.8,7.8-15.2,15.1-22.4,22.6c-0.9,0.9-1.3,2.6-1.4,4 c-0.9,8,0.5,15.6,5,22.5c1.8,2.7,2.7,5.9,4.5,8.6c1,1.4,2.7,2.9,4.4,3.2c8,1.8,16.1,3.3,24.2,5c5.2,1.1,6.7,2.9,6.7,8.2 c0,12,0.7,24-0.2,36c-1.2,17.1,2,33,9.3,48.5c2.3,4.8,5.4,6.2,10.2,7c0-6.3,0.4-12.5-0.1-18.5c-0.4-5.5,1.5-9.3,6.2-12.1 c2.9-1.7,5.4-4,8.1-6c3.7-2.8,8.8-4.9,10.6-8.6c1.9-3.8,0.8-9.3,0.7-14c-0.1-3.3,1-5.7,3.3-7.9c7-6.8,13.8-13.7,20.7-20.6 c0.7-0.7,1.8-1.4,1.9-2.2c1.6-7.2,3-14.5,4.6-22.2c-5.8,0-10.9-0.1-16,0c-3.8,0.1-6.3-1.4-8.2-4.7c-4.8-8.3-9.9-16.5-14.7-24.8 c-1.1-2-2.4-2.7-4.7-2.7c-12.1,0.1-24.2,0-36.4,0.1c-4,0-6.6-1.5-8.3-5.1C93.4,181.7,90.7,176.5,87.8,170.8z M170.7,43.7 c-1.7-0.3-3.1-0.7-4.6-0.9c-14.6-2.6-30-2.8-41.8-14c-1.5-1.5-3.1-1.4-5.1-0.5c-41.2,18.9-71.3,48.9-90.4,90 c-0.6,1.3-0.7,3.2-0.3,4.5c2.6,8.2,5.3,16.4,8.2,24.5c0.5,1.4,1.6,2.8,2.9,3.6c7.1,4.9,14.3,9.6,21.5,14.4c0.8,0.5,1.6,0.9,2.6,1.3 c1.1-9.7,1.1-9.7-5.1-15.9c-1.5-1.5-3.3-2.8-4.4-4.6c-1.3-2.1-2.6-4.6-2.8-7c-0.4-5.1-0.1-10.2-0.1-15.4c0-6.1,1.6-8,7.7-8.9 c7.8-1.1,15.6-2.2,23.4-3.3c10-1.4,19.4-3.3,28.6-8.5c13.2-7.6,24.1-16.5,30.1-30.7c4.5-10.6,12.1-17,23.5-18.8 c0.6-0.1,1.3-0.2,1.8-0.6c0.7-0.6,1.6-1.2,1.9-2C169.1,48.7,169.8,46.3,170.7,43.7z M220.4,60c7.9,3.8,9.6,4,17.3,2.1 c5.1-1.3,10.1-2.7,15.2-3.7c2-0.4,4.3-0.5,6.2,0.2c14.2,5.4,29,8.1,43.8,11c1.3,0.2,2.9,0.3,3.9-0.2c3.1-1.8,6-3.9,9.5-6.2 c-1.2-1.1-2.2-1.9-3.1-2.7c-10.8-9.9-22.6-18.4-35.4-25.5c-2.3-1.3-4.2-1.5-6.5-0.1c-12.4,7.9-25.7,12.3-40.7,10.2 c-0.4-0.1-0.8-0.1-1.1,0c-0.8,0.4-1.9,0.8-2.3,1.4C224.9,50.9,222.7,55.4,220.4,60z"})),a.premium=wp.element.createElement("svg",{className:"blockspare-svg-blockspare",fill:"url(#blockspare-gradient)",width:"50px",height:"50px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},wp.element.createElement("g",{className:"blockspare-logo"},wp.element.createElement("g",null,wp.element.createElement("path",{className:"st0",d:"M1.6,9.2v21.4l18.3-9.2L20.2,0L1.6,9.2z M16.9,19.8L4.9,26V10.9l12-6.1V19.8z"}),wp.element.createElement("polygon",{id:"XMLID_3_",className:"st1",points:"19.9,21.4 16.9,23 26,27.7 13.8,33.8 4.9,29 1.6,30.7 13.9,36.9 32.4,27.7 "})),wp.element.createElement("g",null,wp.element.createElement("polygon",{id:"XMLID_2_",className:"st0",points:"23,1.5 23,19.8 32.4,24.6 32.4,9.4 35.3,10.9 35.3,29 38.4,30.7 38.4,9.2 29.4,4.8 29.2,19.7 26,18.4 26,3.1 "}),wp.element.createElement("polygon",{id:"XMLID_1_",className:"st1",points:"17,38.4 19.9,40 38.4,30.7 35.3,29 "}))));var r=a,o=n(0),i=n.n(o);const l=wp.blocks,s=l.getCategories,c=l.setCategories,u=wp.i18n.__;c([{icon:r.category,slug:"blockspare",title:u("Blockspare","blockspare")},...s().filter(({slug:e})=>"blockspare"!==e)]);const p=wp.hooks.addFilter,d=wp.compose.createHigherOrderComponent,m=["blockspare/blockspare-shape-divider"];const b=d(e=>t=>{const n=t.name;if(m.includes(n)&&(t.attributes.blockspare=t.attributes.blockspare||{},void 0===t.attributes.blockspare.id)){const e=new Date;t.attributes.blockspare=Object.assign({},t.attributes.blockspare,{id:""+e.getMonth()+e.getDate()+e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()})}return wp.element.createElement(e,t)},"withAttributes");p("blocks.registerBlockType","blockspare/custom/attributes",(function(e){return m.includes(e.name)&&void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{blockspare:{type:"object"}})),e})),p("editor.BlockEdit","blockspare/attributes",b);n(487),n(488);var f=n(95),g=["fa fa-plus","fa fa-plus-circle","fas fa-arrow-up"];const h=wp.i18n.__,y=wp.element,w=y.Component,v=y.Fragment;var k=class extends w{constructor(e){super(e),this.state={isOpen:!1,filterText:"",showIcons:!1}}render(){const e=this.props,t=e.value,n=e.disableToggle,a=e.colorSettings,r=e.iconColor,o=e.onColorChange,i=this.state.filterText;var l=[];return i.length>2?g.forEach(e=>{e.includes(i)&&l.push(e)}):l=g,wp.element.createElement("div",{className:"blockspare-field blockspare-field-icon-list "+(n?"":"blockspare-toggle-enabled")},this.props.label&&wp.element.createElement(v,null,n?wp.element.createElement("label",null,this.props.label):wp.element.createElement(Toggle,{label:this.props.label,className:"blockspare-icon-list-toggle",value:!!this.props.value,onChange:()=>this.props.onChange(this.props.value?"":" ")})),a&&wp.element.createElement(Color,{label:h(" Color"),value:r||"#ccc",onChange:e=>o(e)}),(n||""!=this.props.value)&&wp.element.createElement("div",{className:"blockspare-icon-list-wrapper"},wp.element.createElement("input",{type:"text",value:this.state.filterText,placeholder:"Search...",onChange:e=>this.setState({filterText:e.target.value}),autoComplete:"off"}),wp.element.createElement("div",{className:"blockspare-icon-list-icons"},l.map(e=>wp.element.createElement("span",{className:t==e?"blockspare-active":"",onClick:t=>{this.props.onChange(e)}},wp.element.createElement("span",{className:e}))))))}};n(489);wp.i18n.__;const _=wp.element.Fragment;var S=e=>wp.element.createElement(_,null,wp.element.createElement("div",{className:"premium-feature"},wp.element.createElement("p",null,r.premium),wp.element.createElement("span",null,"Upgrade to Pro"),wp.element.createElement("h4",null,"Blockspare - Beautiful Page Building Gutenberg Blocks for WordPress."),wp.element.createElement("p",null,"Want more advanced controls for this block?"),wp.element.createElement("p",{className:"butten-text"}," ",wp.element.createElement("a",{href:"https://blockspare.com/block/"+e.demoLink,target:"_blank"},"Explore More"))));const T=wp.i18n.__,E=wp.compose.compose,x=wp.data,M=x.withSelect,C=x.withDispatch,O=wp.element,L=O.Component,F=O.Fragment,D=wp.components,P=D.Button,j=D.PanelBody,N=(D.SelectControl,D.RangeControl,wp.blockEditor),z=N.InnerBlocks,Y=N.RichText,B=N.InspectorControls,A=N.PanelColorSettings;var I=E([M((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlockHierarchyRootClientId,o=a.getBlock,i=a.isBlockSelected,l=a.hasSelectedInnerBlock;return{block:o(n),isSelectedBlockInRoot:i(n)||l(n,!0),rootBlock:n?o(r(n)):null}}),C(e=>{const t=e("core/block-editor");return{removeBlock:t.removeBlock,updateBlockAttributes:t.updateBlockAttributes}})])(class extends L{constructor(){super(...arguments),this.findParentAccordion=this.findParentAccordion.bind(this),this.state={device:"md"}}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}findParentAccordion(e){const t=this.props.block;let n=!1;return e.innerBlocks&&e.innerBlocks.length&&e.innerBlocks.forEach(a=>{n||a.clientId!==t.clientId?n||(n=this.findParentAccordion(a)):n=e}),n}setGlobalSettings(e,t){const n=this.props.updateBlockAttributes,a=this.findParentAccordion(this.props.rootBlock);a.innerBlocks&&a.innerBlocks.length&&a.innerBlocks.forEach(a=>{n(a.clientId,{[e]:t})})}updateRootBlock(e,t){(0,this.props.updateBlockAttributes)(this.findParentAccordion(this.props.rootBlock).clientId,{[e]:t})}updateItemNumber(e){const t=this.props.updateBlockAttributes,n=this.findParentAccordion(this.props.rootBlock);for(;e<n.innerBlocks.length;)t(n.innerBlocks[e].clientId,{itemNumber:n.innerBlocks[e].attributes.itemNumber-1}),e++}_onClickLabel(){const e=this.props,t=e.clientId,n=e.rootBlock,a=e.attributes,r=e.setAttributes,o=e.updateBlockAttributes,i=this.findParentAccordion(this.props.rootBlock);n.attributes.itemToggle?i.innerBlocks.forEach(e=>{const n=e.clientId==t&&!a.active;o(e.clientId,{active:n})}):r({active:!a.active})}render(){const e=this.props,t=(e.rootBlock,e.attributes),n=t.active,a=t.uniqueId,r=t.itemNumber,o=t.defaultText,i=t.fillType,l=t.heading,s=t.name,c=t.iconPosition,u=t.panelColor,p=t.panelActiveColor,d=t.textColor,m=t.marginBottom,b=t.activeTextColor,f=t.panelBackGroundColor,g=e.setAttributes,h=e.isSelected,y=e.isSelectedBlockInRoot;let w="";w=p||"#8b249c";let v="#3c1a5b";u&&(v=u);let _="#fff";b&&(_=b);let E="#fff";d&&(E=d);let x="#fff";f&&(x=f);const M=`blockspare-accordion-item blockspare-type-${i} ${n?"blockspare-accordion-active":""}`,C={backgroundColor:1==n?w:v},O=(T("Left","blockspare"),T("Right","blockspare"),{marginBottom:m+"px"});return wp.element.createElement(F,null,wp.element.createElement(B,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"accordion"}),wp.element.createElement(j,{title:T("Color settings","blockspare"),initialOpen:!0},wp.element.createElement(A,{title:T("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:d,onChange:e=>this.setGlobalSettings("textColor",e),label:T("Text Color","blockspare")},{value:b,onChange:e=>this.setGlobalSettings("activeTextColor",e),label:T("Active Text Color","blockspare")},{value:p,onChange:e=>this.setGlobalSettings("panelActiveColor",e),label:T("Active Panel Color","blockspare")},{value:u,onChange:e=>this.setGlobalSettings("panelColor",e),label:T("Panel Color","blockspare")}]})),wp.element.createElement(j,{title:T("Icon settings","blockspare"),initialOpen:!1},wp.element.createElement(k,{value:s,onChange:e=>this.setGlobalSettings("name",e)})))),wp.element.createElement("div",{className:"blockspare-block-"+a},wp.element.createElement("div",{className:M,style:O},wp.element.createElement("div",{className:"blockspare-accordion-panel "+c,style:C},wp.element.createElement("span",{className:"blockspare-accordion-panel-handler",onClick:()=>this._onClickLabel(),role:"button",style:{color:n?_:E}},s&&wp.element.createElement("span",{className:"blockspare-accordion-icon "+s}),wp.element.createElement(Y,{tagName:"span",placeholder:T("Add Accordion Item.."),className:"blockspare-accordion-panel-handler-label",value:l,onChange:e=>g({heading:e}),allowedFormats:["bold","italic","strikethrough"],isSelected:h,keepPlaceholderOnFocus:!0,onClick:()=>this.updateLabel()})),y&&wp.element.createElement(P,{onClick:()=>{const e=this.findParentAccordion(this.props.rootBlock);e&&e.clientId&&(this.updateItemNumber(r),this.props.removeBlock(this.props.clientId),e.innerBlocks.length<=1&&this.props.removeBlock(e.clientId))},className:"blockspare-accordion-item-remove-button"},wp.element.createElement("i",{className:"fa fa-times"}))),wp.element.createElement("div",{className:"blockspare-accordion-body",style:{backgroundColor:x},"data-bg":x},wp.element.createElement(z,{template:o?[["core/paragraph",{content:o,customFontSize:16}]]:"",templateLock:!1})))))}});const R=wp.element.Component,H=wp.blockEditor,W=H.InnerBlocks,G=H.RichText;var U=class extends R{render(){const e=this.props.attributes,t=e.uniqueId,n=(e.itemNumber,e.heading),a=e.name,r=e.iconPosition,o=e.fillType,i=(e.active,e.openFirstItem,e.panelColor),l=e.panelActiveColor,s=e.textColor,c=e.marginBottom,u=e.activeTextColor,p=e.panelBackGroundColor;e.defaultTextSize;let d="";d=l||"#8b249c";let m="#3c1a5b";i&&(m=i);let b="#fff";u&&(b=u);let f="#fff";s&&(f=s);const g=`blockspare-accordion-item blockspare-type-${o} `,h={backgroundColor:m},y={marginBottom:c+"px"};let w="#fff";return p&&(w=p),wp.element.createElement("div",{className:"blockspare-block-"+t},wp.element.createElement("div",{className:g,"data-act-color":b,"data-txt-color":f,"data-active":d,"data-pan":m,style:y},wp.element.createElement("div",{className:"blockspare-accordion-panel "+r,style:h},wp.element.createElement("span",{className:"blockspare-accordion-panel-handler",role:"button",style:{color:f}},a&&wp.element.createElement("span",{className:"blockspare-accordion-icon "+a}),wp.element.createElement(G.Content,{tagName:"span",className:"blockspare-accordion-panel-handler-label",value:n}))),wp.element.createElement("div",{className:"blockspare-accordion-body",style:{backgroundColor:w},"data-bg":w},wp.element.createElement(W.Content,null))))}};const q=wp.i18n.__,V=wp.blocks.registerBlockType,$=f.category,J=f.attributes,X={title:q("Accordion","blockspare"),description:q("Display creative collapsible texts Accordion.","blockspare"),parent:["blockspare/blockspare-accordion"],icon:"link",category:$,supports:{html:!1,inserter:!1,reusable:!1},attributes:J,edit:I,save:U};V("blockspare/accordion-item",X);wp.i18n.__;const K=wp.element,Q=K.Component,Z=K.Fragment,ee=(wp.components.IconButton,wp.blockEditor.InnerBlocks),te=wp.blocks.createBlock,ne=wp.compose.compose,ae=wp.data,re=ae.withSelect,oe=ae.withDispatch;var ie=ne([re((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),oe(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}})])(class extends Q{constructor(...e){var t,n,a;super(...e),a=e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++){const n="Ipsam per dolores minus natoque? Rutrum dolorem voluptates euismod pharetra! Rhoncus distinctio cupiditate accusantium. Cillum aliquid.";t.push(["blockspare/accordion-item",{itemNumber:e,defaultText:n,customFontSize:16}])}return t},(n="getAccordionTemplate")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertAccordionItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes,n=t.itemNumber+1,a=X.heading;e=Object.assign({},t,{itemNumber:n,heading:a,active:!1,defaultText:""})}else e=X;a(te("blockspare/accordion-item",e),void 0,n)}render(){const e=this.props,t=(e.name,e.attributes),n=(e.isSelectedBlockInRoot,e.setAttributes,e.attributes.uniqueId);return wp.element.createElement(Z,null,wp.element.createElement("div",{className:"blockspare-block-accordion blockspare-block-"+n},wp.element.createElement(ee,{template:this.getAccordionTemplate(t),allowedBlocks:["blockspare/accordion-item"]})))}});const le=wp.element.Component,se=wp.blockEditor.InnerBlocks;var ce=class extends le{render(){const e=this.props.attributes,t=e.uniqueId,n=e.itemToggle,a="blockspare-block-accordion blockspare-block blockspare-block-"+t;return wp.element.createElement("div",{className:a,"data-item-toggle":n},wp.element.createElement(se.Content,null))}},ue=n(64);const pe=wp.i18n.__,de=wp.blocks.registerBlockType,me=ue.name,be=ue.category,fe=ue.attributes;de(me,{title:pe("BS Accordion","blockspare"),description:pe("Display creative collapsible Accordion.","blockspare"),category:be,icon:r.accordion,keywords:[pe("accordion","blockspare"),pe("block","blockspare"),pe("collapsible","blockspare"),pe("collapse","blockspare")],supports:{html:!1,className:!1,align:["center","wide","full"]},attributes:fe,edit:ie,save:ce});n(490),n(491);var ge=n(65);const he=wp.i18n.__,ye=wp.element.Fragment,we=wp.components,ve=we.SelectControl,ke=we.ToggleControl,_e=we.RangeControl,Se=wp.blockEditor.PanelColorSettings;function Te(e){const t=e.enableGradient,n=e.enablehover,a=void 0===n||n,r=e.enableButtonBackgroundColor,o=void 0===r||r,i=e.buttonBackgroundColor,l=void 0===i||i,s=e.onChangeButtonColor,c=void 0===s?()=>{}:s,u=e.buttonTextColor,p=e.onChangeButtonTextColor,d=void 0===p?()=>{}:p,m=e.enableButtonShape,b=e.buttonShape,f=e.onChangeButtonShape,g=void 0===f?()=>{}:f,h=e.enableButtonStyle,y=e.buttonStyle,w=e.onChangeBorderStyle,v=void 0===w?()=>{}:w,k=e.enableButtonTarget,_=e.buttonTarget,S=e.onChangeButtonTarget,T=void 0===S?()=>{}:S,E=e.borderColor,x=e.onchangeBorderColor,M=void 0===x?()=>{}:x,C=e.borderBtnTextColor,O=e.onChangeBorderBtnTextColor,L=void 0===O?()=>{}:O,F=e.enableBtnBorderWidth,D=e.btnBorderWidth,P=e.onchangebtnBorderWidth,j=void 0===P?()=>{}:P,N=e.buttonHoverEffect,z=e.onchangeButtonHoverEffect,Y=void 0===z?()=>{}:z,B=(he("Small","blockspare"),he("Medium","blockspare"),he("Large","blockspare"),he("Extra Large","blockspare"),[{value:"blockspare-button-shape-square",label:he("Square","blockspare")},{value:"blockspare-button-shape-rounded",label:he("Rounded Square","blockspare")},{value:"blockspare-button-shape-circular",label:he("Circular","blockspare")}]),A=[{value:"none",label:he("Fill","blockspare")},{value:"solid",label:he("Border","blockspare")}],I=(he("Normal","blockspare"),he("Bold","blockspare"),[{value:"",label:he("None","blockspare")},{value:"hover-style-1",label:he("Dim","blockspare")},{value:"hover-style-2",label:he("Raise","blockspare")},{value:"hover-style-3",label:he("Scale","blockspare")},{value:"hover-style-4",label:he("Shadow","blockspare")},{value:"hover-style-5",label:he("Stretch","blockspare")}]);return wp.element.createElement(ye,null,0!=k&&wp.element.createElement(ke,{label:he("Open link in new window","blockspare"),checked:_,onChange:T}),0!=m&&wp.element.createElement(ve,{label:he("Button Shape","blockspare"),value:b,options:B.map(({value:e,label:t})=>({value:e,label:t})),onChange:g}),0!=h&&wp.element.createElement(ve,{label:he("Border Style","blockspare"),value:y,options:A.map(({value:e,label:t})=>({value:e,label:t})),onChange:v}),1==a&&wp.element.createElement(ve,{label:he("Hover Option","blockspare"),value:N,options:I.map(({value:e,label:t})=>({value:e,label:t})),onChange:Y}),0!=F&&"solid"===y&&wp.element.createElement(_e,{label:he("Border Width","blockspare"),value:D,min:1,step:1,max:5,onChange:j}),0!=o&&"none"===y&&1==t&&wp.element.createElement(Se,{title:he("Color","blockspare"),initialOpen:!1,colorSettings:[{value:u,onChange:d,label:he("Text Color","blockspare")}]}),0!=o&&"none"===y&&0==t&&wp.element.createElement(Se,{title:he("Color","blockspare"),initialOpen:!1,colorSettings:[{value:l,onChange:c,label:he("Background Color","blockspare")},{value:u,onChange:d,label:he("Text Color","blockspare")}]}),0!=o&&"solid"===y&&wp.element.createElement(Se,{title:he("Border Color","blockspare"),initialOpen:!0,colorSettings:[{value:E,onChange:M,label:he("Border Color","blockspare")},{value:C,onChange:L,label:he("Texts Color","blockspare")}]}))}const Ee=wp.i18n.__,xe=wp.element.Fragment,Me=wp.components.RangeControl,Ce=wp.blockEditor.PanelColorSettings;function Oe(e){const t=e.backgroundColor1,n=e.backgroundColor2,a=e.gradientAngle,r=e.colorLocation1,o=e.colorLocation2,i=e.onChangeBackgroundColor1,l=void 0===i?()=>{}:i,s=e.onChangeBackgroundColor2,c=void 0===s?()=>{}:s,u=e.onChangeGradientAngle,p=void 0===u?()=>{}:u,d=e.onChangeColorLocation1,m=void 0===d?()=>{}:d,b=e.onChangeColorLocation2,f=void 0===b?()=>{}:b;return wp.element.createElement(xe,null,wp.element.createElement(Ce,{title:Ee("Gradient Color Option ","blockspare"),initialOpen:!0,colorSettings:[{value:t,onChange:l,label:Ee("Background Color #1","blockspare")},{value:n,onChange:c,label:Ee("Background Color #2","blockspare")}]}),wp.element.createElement(Me,{label:Ee("Gradient Angle","blockspare"),value:a,onChange:p,min:-180,step:1,max:180}),wp.element.createElement(Me,{label:Ee("Location #1","blockspare"),value:r,onChange:m,min:0,step:1,max:100}),wp.element.createElement(Me,{label:Ee("Location #2","blockspare"),value:o,onChange:f,min:0,step:1,max:100}))}const Le=wp.i18n.__,Fe=wp.element.Fragment,De=wp.components.RangeControl;function Pe(e){const t=e.padding,n=e.paddingTitle,a=e.paddingHelp,r=e.paddingMin,o=e.paddingMax,i=e.paddingEnable,l=e.onChangePadding,s=void 0===l?()=>{}:l,c=e.paddingTop,u=e.paddingTopMin,p=e.paddingTopMax,d=e.paddingEnableTop,m=e.onChangePaddingTop,b=void 0===m?()=>{}:m,f=e.paddingRight,g=e.paddingRightMin,h=e.paddingRightMax,y=e.paddingEnableRight,w=e.onChangePaddingRight,v=void 0===w?()=>{}:w,k=e.paddingBottom,_=e.paddingBottomMin,S=e.paddingBottomMax,T=e.paddingEnableBottom,E=e.onChangePaddingBottom,x=void 0===E?()=>{}:E,M=e.paddingLeft,C=e.paddingLeftMin,O=e.paddingLeftMax,L=e.paddingEnableLeft,F=e.onChangePaddingLeft,D=void 0===F?()=>{}:F,P=e.paddingVertical,j=e.paddingEnableVertical,N=e.paddingVerticalMin,z=e.paddingVerticalMax,Y=e.onChangePaddingVertical,B=void 0===Y?()=>{}:Y,A=e.paddingHorizontal,I=e.paddingEnableHorizontal,R=e.paddingHorizontalMin,H=e.paddingHorizontalMax,W=e.onChangePaddingHorizontal,G=void 0===W?()=>{}:W;return wp.element.createElement(Fe,null,i&&wp.element.createElement(De,{label:n||Le("Padding","blockspare"),help:a||null,value:t,min:r,max:o,onChange:s}),d&&wp.element.createElement(De,{label:Le("Padding Top","blockspare"),value:c,min:u,max:p,onChange:b}),y&&wp.element.createElement(De,{label:Le("Padding Right","blockspare"),value:f,min:g,max:h,onChange:v}),T&&wp.element.createElement(De,{label:Le("Padding Bottom","blockspare"),value:k,min:_,max:S,onChange:x}),L&&wp.element.createElement(De,{label:Le("Padding Left","blockspare"),value:M,min:C,max:O,onChange:D}),j&&wp.element.createElement(De,{label:Le("Padding Vertical","blockspare"),value:P,min:N,max:z,onChange:B}),I&&wp.element.createElement(De,{label:Le("Padding Horizontal","blockspare"),value:A,min:R,max:H,onChange:G}))}const je=wp.i18n.__,Ne=wp.element.Fragment,ze=wp.components.RangeControl;function Ye(e){const t=e.margin,n=e.marginTitle,a=e.marginHelp,r=e.marginMin,o=e.marginMax,i=e.marginEnable,l=e.onChangeMargin,s=void 0===l?()=>{}:l,c=e.marginTop,u=e.marginTopMin,p=e.marginTopMax,d=e.marginEnableTop,m=e.onChangeMarginTop,b=void 0===m?()=>{}:m,f=e.marginBottom,g=e.marginBottomMin,h=e.marginBottomMax,y=e.marginEnableBottom,w=e.onChangeMarginBottom,v=void 0===w?()=>{}:w;return wp.element.createElement(Ne,null,i&&wp.element.createElement(ze,{label:n||je("Margin","blockspare"),help:a||null,value:t,min:r,max:o,onChange:s}),d&&wp.element.createElement(ze,{label:je("Margin Top","blockspare"),value:c,min:u,max:p,onChange:b}),y&&wp.element.createElement(ze,{label:je("Margin Bottom","blockspare"),value:f,min:g,max:h,onChange:v}))}var Be=n(8),Ae=n.n(Be);const Ie={ABeeZee:{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},Abel:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Abhaya Libre":{v:["regular","500","600","700","800"],subset:["latin-ext","sinhala","latin"],weight:["400","500","600","700","800"],i:["normal"]},"Abril Fatface":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Aclonica:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Acme:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Actor:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Adamina:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Advent Pro":{v:["100","200","300","regular","500","600","700"],subset:["latin-ext","greek","latin"],weight:["100","200","300","400","500","600","700"],i:["normal"]},"Aguafina Script":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Akronim:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Aladin:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Aldrich:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Alef:{v:["regular","700"],subset:["hebrew","latin"],weight:["400","700"],i:["normal"]},Alegreya:{v:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["400","500","700","800","900"],i:["normal","italic"]},"Alegreya SC":{v:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["400","500","700","800","900"],i:["normal","italic"]},"Alegreya Sans":{v:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","300","400","500","700","800","900"],i:["normal","italic"]},"Alegreya Sans SC":{v:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","300","400","500","700","800","900"],i:["normal","italic"]},"Alex Brush":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Alfa Slab One":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Alice:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin"],weight:["400"],i:["normal"]},Alike:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Alike Angular":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Allan:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},Allerta:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Allerta Stencil":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Allura:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Almendra:{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"Almendra Display":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Almendra SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Amarante:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Amaranth:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},"Amatic SC":{v:["regular","700"],subset:["cyrillic","latin-ext","hebrew","vietnamese","latin"],weight:["400","700"],i:["normal"]},Amethysta:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Amiko:{v:["regular","600","700"],subset:["latin-ext","devanagari","latin"],weight:["400","600","700"],i:["normal"]},Amiri:{v:["regular","italic","700","700italic"],subset:["latin-ext","arabic","latin"],weight:["400","700"],i:["normal","italic"]},Amita:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},Anaheim:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Andada:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Andika:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Angkor:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Annie Use Your Telescope":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Anonymous Pro":{v:["regular","italic","700","700italic"],subset:["cyrillic","latin-ext","greek","latin"],weight:["400","700"],i:["normal","italic"]},Antic:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Antic Didone":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Antic Slab":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Anton:{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Arapey:{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},Arbutus:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Arbutus Slab":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Architects Daughter":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Archivo:{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","600","700"],i:["normal","italic"]},"Archivo Black":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Archivo Narrow":{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","500","600","700"],i:["normal","italic"]},"Aref Ruqaa":{v:["regular","700"],subset:["arabic","latin"],weight:["400","700"],i:["normal"]},"Arima Madurai":{v:["100","200","300","regular","500","700","800","900"],subset:["latin-ext","tamil","vietnamese","latin"],weight:["100","200","300","400","500","700","800","900"],i:["normal"]},Arimo:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","hebrew","greek","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},Arizonia:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Armata:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Arsenal:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},Artifika:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Arvo:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},Arya:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},Asap:{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","600","700"],i:["normal","italic"]},"Asap Condensed":{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","600","700"],i:["normal","italic"]},Asar:{v:["regular"],subset:["latin-ext","devanagari","latin"],weight:["400"],i:["normal"]},Asset:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Assistant:{v:["200","300","regular","600","700","800"],subset:["hebrew","latin"],weight:["200","300","400","600","700","800"],i:["normal"]},Astloch:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Asul:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Athiti:{v:["200","300","regular","500","600","700"],subset:["latin-ext","thai","vietnamese","latin"],weight:["200","300","400","500","600","700"],i:["normal"]},Atma:{v:["300","regular","500","600","700"],subset:["latin-ext","bengali","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Atomic Age":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Aubrey:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Audiowide:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Autour One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Average:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Average Sans":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Averia Gruesa Libre":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Averia Libre":{v:["300","300italic","regular","italic","700","700italic"],subset:["latin"],weight:["300","400","700"],i:["normal","italic"]},"Averia Sans Libre":{v:["300","300italic","regular","italic","700","700italic"],subset:["latin"],weight:["300","400","700"],i:["normal","italic"]},"Averia Serif Libre":{v:["300","300italic","regular","italic","700","700italic"],subset:["latin"],weight:["300","400","700"],i:["normal","italic"]},"Bad Script":{v:["regular"],subset:["cyrillic","latin"],weight:["400"],i:["normal"]},Bahiana:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Baloo:{v:["regular"],subset:["latin-ext","devanagari","vietnamese","latin"],weight:["400"],i:["normal"]},"Baloo Bhai":{v:["regular"],subset:["latin-ext","gujarati","vietnamese","latin"],weight:["400"],i:["normal"]},"Baloo Bhaijaan":{v:["regular"],subset:["latin-ext","arabic","vietnamese","latin"],weight:["400"],i:["normal"]},"Baloo Bhaina":{v:["regular"],subset:["latin-ext","oriya","vietnamese","latin"],weight:["400"],i:["normal"]},"Baloo Chettan":{v:["regular"],subset:["malayalam","latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Baloo Da":{v:["regular"],subset:["latin-ext","vietnamese","bengali","latin"],weight:["400"],i:["normal"]},"Baloo Paaji":{v:["regular"],subset:["latin-ext","gurmukhi","vietnamese","latin"],weight:["400"],i:["normal"]},"Baloo Tamma":{v:["regular"],subset:["latin-ext","vietnamese","latin","kannada"],weight:["400"],i:["normal"]},"Baloo Tammudu":{v:["regular"],subset:["latin-ext","telugu","vietnamese","latin"],weight:["400"],i:["normal"]},"Baloo Thambi":{v:["regular"],subset:["latin-ext","tamil","vietnamese","latin"],weight:["400"],i:["normal"]},Balthazar:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Bangers:{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Barlow:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Barlow Condensed":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Barlow Semi Condensed":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},Barrio:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Basic:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Battambang:{v:["regular","700"],subset:["khmer"],weight:["400","700"],i:["normal"]},Baumans:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Bayon:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Belgrano:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Bellefair:{v:["regular"],subset:["latin-ext","hebrew","latin"],weight:["400"],i:["normal"]},Belleza:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},BenchNine:{v:["300","regular","700"],subset:["latin-ext","latin"],weight:["300","400","700"],i:["normal"]},Bentham:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Berkshire Swash":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Bevan:{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Bigelow Rules":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Bigshot One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Bilbo:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Bilbo Swash Caps":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},BioRhyme:{v:["200","300","regular","700","800"],subset:["latin-ext","latin"],weight:["200","300","400","700","800"],i:["normal"]},"BioRhyme Expanded":{v:["200","300","regular","700","800"],subset:["latin-ext","latin"],weight:["200","300","400","700","800"],i:["normal"]},Biryani:{v:["200","300","regular","600","700","800","900"],subset:["latin-ext","devanagari","latin"],weight:["200","300","400","600","700","800","900"],i:["normal"]},Bitter:{v:["regular","italic","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"Black And White Picture":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Black Han Sans":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Black Ops One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Bokor:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Bonbon:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Boogaloo:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Bowlby One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Bowlby One SC":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Brawler:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Bree Serif":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Bubblegum Sans":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Bubbler One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Buda:{v:["300"],subset:["latin"],weight:["300"],i:[]},Buenard:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},Bungee:{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Bungee Hairline":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Bungee Inline":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Bungee Outline":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Bungee Shade":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Butcherman:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Butterfly Kids":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Cabin:{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","600","700"],i:["normal","italic"]},"Cabin Condensed":{v:["regular","500","600","700"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","600","700"],i:["normal"]},"Cabin Sketch":{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},"Caesar Dressing":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Cagliostro:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Cairo:{v:["200","300","regular","600","700","900"],subset:["latin-ext","arabic","latin"],weight:["200","300","400","600","700","900"],i:["normal"]},Calligraffitti:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Cambay:{v:["regular","italic","700","700italic"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal","italic"]},Cambo:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Candal:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Cantarell:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},"Cantata One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Cantora One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Capriola:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Cardo:{v:["regular","italic","700"],subset:["greek-ext","latin-ext","greek","latin"],weight:["400","700"],i:["normal","italic"]},Carme:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Carrois Gothic":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Carrois Gothic SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Carter One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Catamaran:{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","tamil","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},Caudex:{v:["regular","italic","700","700italic"],subset:["greek-ext","latin-ext","greek","latin"],weight:["400","700"],i:["normal","italic"]},Caveat:{v:["regular","700"],subset:["cyrillic","latin-ext","latin"],weight:["400","700"],i:["normal"]},"Caveat Brush":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Cedarville Cursive":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Ceviche One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Changa:{v:["200","300","regular","500","600","700","800"],subset:["latin-ext","arabic","latin"],weight:["200","300","400","500","600","700","800"],i:["normal"]},"Changa One":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},Chango:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Chathura:{v:["100","300","regular","700","800"],subset:["telugu","latin"],weight:["100","300","400","700","800"],i:["normal"]},"Chau Philomene One":{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},"Chela One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Chelsea Market":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Chenla:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Cherry Cream Soda":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Cherry Swash":{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},Chewy:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Chicle:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Chivo:{v:["300","300italic","regular","italic","700","700italic","900","900italic"],subset:["latin-ext","latin"],weight:["300","400","700","900"],i:["normal","italic"]},Chonburi:{v:["regular"],subset:["latin-ext","thai","vietnamese","latin"],weight:["400"],i:["normal"]},Cinzel:{v:["regular","700","900"],subset:["latin-ext","latin"],weight:["400","700","900"],i:["normal"]},"Cinzel Decorative":{v:["regular","700","900"],subset:["latin"],weight:["400","700","900"],i:["normal"]},"Clicker Script":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Coda:{v:["regular","800"],subset:["latin-ext","latin"],weight:["400","800"],i:["normal"]},"Coda Caption":{v:["800"],subset:["latin-ext","latin"],weight:["800"],i:[]},Codystar:{v:["300","regular"],subset:["latin-ext","latin"],weight:["300","400"],i:["normal"]},Coiny:{v:["regular"],subset:["latin-ext","tamil","vietnamese","latin"],weight:["400"],i:["normal"]},Combo:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Comfortaa:{v:["300","regular","700"],subset:["cyrillic","cyrillic-ext","latin-ext","greek","vietnamese","latin"],weight:["300","400","700"],i:["normal"]},"Coming Soon":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Concert One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Condiment:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Content:{v:["regular","700"],subset:["khmer"],weight:["400","700"],i:["normal"]},"Contrail One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Convergence:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Cookie:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Copse:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Corben:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},Cormorant:{v:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["300","400","500","600","700"],i:["normal","italic"]},"Cormorant Garamond":{v:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["300","400","500","600","700"],i:["normal","italic"]},"Cormorant Infant":{v:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["300","400","500","600","700"],i:["normal","italic"]},"Cormorant SC":{v:["300","regular","500","600","700"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Cormorant Unicase":{v:["300","regular","500","600","700"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Cormorant Upright":{v:["300","regular","500","600","700"],subset:["latin-ext","vietnamese","latin"],weight:["300","400","500","600","700"],i:["normal"]},Courgette:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Cousine:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","hebrew","greek","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},Coustard:{v:["regular","900"],subset:["latin"],weight:["400","900"],i:["normal"]},"Covered By Your Grace":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Crafty Girls":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Creepster:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Crete Round":{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},"Crimson Text":{v:["regular","italic","600","600italic","700","700italic"],subset:["latin"],weight:["400","600","700"],i:["normal","italic"]},"Croissant One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Crushed:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Cuprum:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},"Cute Font":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Cutive:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Cutive Mono":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Damion:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Dancing Script":{v:["regular","700"],subset:["latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal"]},Dangrek:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"David Libre":{v:["regular","500","700"],subset:["latin-ext","hebrew","vietnamese","latin"],weight:["400","500","700"],i:["normal"]},"Dawning of a New Day":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Days One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Dekko:{v:["regular"],subset:["latin-ext","devanagari","latin"],weight:["400"],i:["normal"]},Delius:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Delius Swash Caps":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Delius Unicase":{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},"Della Respira":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Denk One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Devonshire:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Dhurjati:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},"Didact Gothic":{v:["regular"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","latin"],weight:["400"],i:["normal"]},Diplomata:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Diplomata SC":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Do Hyeon":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Dokdo:{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Domine:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Donegal One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Doppio One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Dorsa:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Dosis:{v:["200","300","regular","500","600","700","800"],subset:["latin-ext","latin"],weight:["200","300","400","500","600","700","800"],i:["normal"]},"Dr Sugiyama":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Duru Sans":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Dynalight:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"EB Garamond":{v:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["400","500","600","700","800"],i:["normal","italic"]},"Eagle Lake":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"East Sea Dokdo":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Eater:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Economica:{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Eczar:{v:["regular","500","600","700","800"],subset:["latin-ext","devanagari","latin"],weight:["400","500","600","700","800"],i:["normal"]},"El Messiri":{v:["regular","500","600","700"],subset:["cyrillic","arabic","latin"],weight:["400","500","600","700"],i:["normal"]},Electrolize:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Elsie:{v:["regular","900"],subset:["latin-ext","latin"],weight:["400","900"],i:["normal"]},"Elsie Swash Caps":{v:["regular","900"],subset:["latin-ext","latin"],weight:["400","900"],i:["normal"]},"Emblema One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Emilys Candy":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Encode Sans":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Encode Sans Condensed":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Encode Sans Expanded":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Encode Sans Semi Condensed":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Encode Sans Semi Expanded":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},Engagement:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Englebert:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Enriqueta:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Erica One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Esteban:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Euphoria Script":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Ewert:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Exo:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Exo 2":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","latin-ext","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Expletus Sans":{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin"],weight:["400","500","600","700"],i:["normal","italic"]},"Fanwood Text":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},Farsan:{v:["regular"],subset:["latin-ext","gujarati","vietnamese","latin"],weight:["400"],i:["normal"]},Fascinate:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Fascinate Inline":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Faster One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Fasthand:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Fauna One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Faustina:{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","600","700"],i:["normal","italic"]},Federant:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Federo:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Felipa:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Fenix:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Finger Paint":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Fira Mono":{v:["regular","500","700"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","latin"],weight:["400","500","700"],i:["normal"]},"Fira Sans":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Fira Sans Condensed":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Fira Sans Extra Condensed":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Fjalla One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Fjord One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Flamenco:{v:["300","regular"],subset:["latin"],weight:["300","400"],i:["normal"]},Flavors:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Fondamento:{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},"Fontdiner Swanky":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Forum:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400"],i:["normal"]},"Francois One":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Frank Ruhl Libre":{v:["300","regular","500","700","900"],subset:["latin-ext","hebrew","latin"],weight:["300","400","500","700","900"],i:["normal"]},"Freckle Face":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Fredericka the Great":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Fredoka One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Freehand:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Fresca:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Frijole:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Fruktur:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Fugaz One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"GFS Didot":{v:["regular"],subset:["greek"],weight:["400"],i:["normal"]},"GFS Neohellenic":{v:["regular","italic","700","700italic"],subset:["greek"],weight:["400","700"],i:["normal","italic"]},Gabriela:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin"],weight:["400"],i:["normal"]},Gaegu:{v:["300","regular","700"],subset:["korean","latin"],weight:["300","400","700"],i:["normal"]},Gafata:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Galada:{v:["regular"],subset:["bengali","latin"],weight:["400"],i:["normal"]},Galdeano:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Galindo:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Gamja Flower":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Gentium Basic":{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"Gentium Book Basic":{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Geo:{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},Geostar:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Geostar Fill":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Germania One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Gidugu:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},"Gilda Display":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Give You Glory":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Glass Antiqua":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Glegoo:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},"Gloria Hallelujah":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Goblin One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Gochi Hand":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Gorditas:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},"Gothic A1":{v:["100","200","300","regular","500","600","700","800","900"],subset:["korean","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Goudy Bookletter 1911":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Graduate:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Grand Hotel":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Gravitas One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Great Vibes":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Griffy:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Gruppo:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Gudea:{v:["regular","italic","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Gugi:{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Gurajada:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Habibi:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Halant:{v:["300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Hammersmith One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Hanalei:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Hanalei Fill":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Handlee:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Hanuman:{v:["regular","700"],subset:["khmer"],weight:["400","700"],i:["normal"]},"Happy Monkey":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Harmattan:{v:["regular"],subset:["arabic","latin"],weight:["400"],i:["normal"]},"Headland One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Heebo:{v:["100","300","regular","500","700","800","900"],subset:["hebrew","latin"],weight:["100","300","400","500","700","800","900"],i:["normal"]},"Henny Penny":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Herr Von Muellerhoff":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Hi Melody":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Hind:{v:["300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Hind Guntur":{v:["300","regular","500","600","700"],subset:["latin-ext","telugu","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Hind Madurai":{v:["300","regular","500","600","700"],subset:["latin-ext","tamil","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Hind Siliguri":{v:["300","regular","500","600","700"],subset:["latin-ext","bengali","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Hind Vadodara":{v:["300","regular","500","600","700"],subset:["latin-ext","gujarati","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Holtwood One SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Homemade Apple":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Homenaje:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"IBM Plex Mono":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700"],i:["normal","italic"]},"IBM Plex Sans":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700"],i:["normal","italic"]},"IBM Plex Sans Condensed":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700"],i:["normal","italic"]},"IBM Plex Serif":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700"],i:["normal","italic"]},"IM Fell DW Pica":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},"IM Fell DW Pica SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"IM Fell Double Pica":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},"IM Fell Double Pica SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"IM Fell English":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},"IM Fell English SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"IM Fell French Canon":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},"IM Fell French Canon SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"IM Fell Great Primer":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},"IM Fell Great Primer SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Iceberg:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Iceland:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Imprima:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Inconsolata:{v:["regular","700"],subset:["latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal"]},Inder:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Indie Flower":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Inika:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Inknut Antiqua":{v:["300","regular","500","600","700","800","900"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700","800","900"],i:["normal"]},"Irish Grover":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Istok Web":{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Italiana:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Italianno:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Itim:{v:["regular"],subset:["latin-ext","thai","vietnamese","latin"],weight:["400"],i:["normal"]},"Jacques Francois":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Jacques Francois Shadow":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Jaldi:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},"Jim Nightshade":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Jockey One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Jolly Lodger":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Jomhuria:{v:["regular"],subset:["latin-ext","arabic","latin"],weight:["400"],i:["normal"]},"Josefin Sans":{v:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["100","300","400","600","700"],i:["normal","italic"]},"Josefin Slab":{v:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],subset:["latin"],weight:["100","300","400","600","700"],i:["normal","italic"]},"Joti One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Jua:{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Judson:{v:["regular","italic","700"],subset:["latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},Julee:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Julius Sans One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Junge:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Jura:{v:["300","regular","500","600","700"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Just Another Hand":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Just Me Again Down Here":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Kadwa:{v:["regular","700"],subset:["devanagari","latin"],weight:["400","700"],i:["normal"]},Kalam:{v:["300","regular","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","700"],i:["normal"]},Kameron:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Kanit:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","thai","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},Kantumruy:{v:["300","regular","700"],subset:["khmer"],weight:["300","400","700"],i:["normal"]},Karla:{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Karma:{v:["300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700"],i:["normal"]},Katibeh:{v:["regular"],subset:["latin-ext","arabic","latin"],weight:["400"],i:["normal"]},"Kaushan Script":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Kavivanar:{v:["regular"],subset:["latin-ext","tamil","latin"],weight:["400"],i:["normal"]},Kavoon:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Kdam Thmor":{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Keania One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Kelly Slab":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},Kenia:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Khand:{v:["300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700"],i:["normal"]},Khmer:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Khula:{v:["300","regular","600","700","800"],subset:["latin-ext","devanagari","latin"],weight:["300","400","600","700","800"],i:["normal"]},"Kirang Haerang":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Kite One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Knewave:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Kosugi:{v:["regular"],subset:["cyrillic","japanese","latin"],weight:["400"],i:["normal"]},"Kosugi Maru":{v:["regular"],subset:["cyrillic","japanese","latin"],weight:["400"],i:["normal"]},"Kotta One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Koulen:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Kranky:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Kreon:{v:["300","regular","700"],subset:["latin"],weight:["300","400","700"],i:["normal"]},Kristi:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Krona One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Kumar One":{v:["regular"],subset:["latin-ext","gujarati","latin"],weight:["400"],i:["normal"]},"Kumar One Outline":{v:["regular"],subset:["latin-ext","gujarati","latin"],weight:["400"],i:["normal"]},Kurale:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","devanagari","latin"],weight:["400"],i:["normal"]},"La Belle Aurore":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Laila:{v:["300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700"],i:["normal"]},"Lakki Reddy":{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Lalezar:{v:["regular"],subset:["latin-ext","arabic","vietnamese","latin"],weight:["400"],i:["normal"]},Lancelot:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Lateef:{v:["regular"],subset:["arabic","latin"],weight:["400"],i:["normal"]},Lato:{v:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],subset:["latin-ext","latin"],weight:["100","300","400","700","900"],i:["normal","italic"]},"League Script":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Leckerli One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Ledger:{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},Lekton:{v:["regular","italic","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Lemon:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Lemonada:{v:["300","regular","600","700"],subset:["latin-ext","arabic","vietnamese","latin"],weight:["300","400","600","700"],i:["normal"]},"Libre Barcode 128":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Libre Barcode 128 Text":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Libre Barcode 39":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Libre Barcode 39 Extended":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Libre Barcode 39 Extended Text":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Libre Barcode 39 Text":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Libre Baskerville":{v:["regular","italic","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"Libre Franklin":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Life Savers":{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Lilita One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Lily Script One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Limelight:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Linden Hill":{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},Lobster:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Lobster Two":{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},"Londrina Outline":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Londrina Shadow":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Londrina Sketch":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Londrina Solid":{v:["100","300","regular","900"],subset:["latin"],weight:["100","300","400","900"],i:["normal"]},Lora:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},"Love Ya Like A Sister":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Loved by the King":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Lovers Quarrel":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Luckiest Guy":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Lusitana:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Lustria:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"M PLUS 1p":{v:["100","300","regular","500","700","800","900"],subset:["cyrillic","cyrillic-ext","greek-ext","japanese","latin-ext","hebrew","greek","vietnamese","latin"],weight:["100","300","400","500","700","800","900"],i:["normal"]},"M PLUS Rounded 1c":{v:["100","300","regular","500","700","800","900"],subset:["cyrillic","cyrillic-ext","greek-ext","japanese","latin-ext","hebrew","greek","vietnamese","latin"],weight:["100","300","400","500","700","800","900"],i:["normal"]},Macondo:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Macondo Swash Caps":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Mada:{v:["200","300","regular","500","600","700","900"],subset:["arabic","latin"],weight:["200","300","400","500","600","700","900"],i:["normal"]},Magra:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Maiden Orange":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Maitree:{v:["200","300","regular","500","600","700"],subset:["latin-ext","thai","vietnamese","latin"],weight:["200","300","400","500","600","700"],i:["normal"]},Mako:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Mallanna:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Mandali:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Manuale:{v:["regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","600","700"],i:["normal","italic"]},Marcellus:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Marcellus SC":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Marck Script":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},Margarine:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Markazi Text":{v:["regular","500","600","700"],subset:["latin-ext","arabic","vietnamese","latin"],weight:["400","500","600","700"],i:["normal"]},"Marko One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Marmelad:{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},Martel:{v:["200","300","regular","600","700","800","900"],subset:["latin-ext","devanagari","latin"],weight:["200","300","400","600","700","800","900"],i:["normal"]},"Martel Sans":{v:["200","300","regular","600","700","800","900"],subset:["latin-ext","devanagari","latin"],weight:["200","300","400","600","700","800","900"],i:["normal"]},Marvel:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},Mate:{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},"Mate SC":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Maven Pro":{v:["regular","500","700","900"],subset:["latin-ext","vietnamese","latin"],weight:["400","500","700","900"],i:["normal"]},McLaren:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Meddon:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},MedievalSharp:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Medula One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Meera Inimai":{v:["regular"],subset:["tamil","latin"],weight:["400"],i:["normal"]},Megrim:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Meie Script":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Merienda:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Merienda One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Merriweather:{v:["300","300italic","regular","italic","700","700italic","900","900italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["300","400","700","900"],i:["normal","italic"]},"Merriweather Sans":{v:["300","300italic","regular","italic","700","700italic","800","800italic"],subset:["latin-ext","latin"],weight:["300","400","700","800"],i:["normal","italic"]},Metal:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Metal Mania":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Metamorphous:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Metrophobic:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Michroma:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Milonga:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Miltonian:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Miltonian Tattoo":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Mina:{v:["regular","700"],subset:["latin-ext","bengali","latin"],weight:["400","700"],i:["normal"]},Miniver:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Miriam Libre":{v:["regular","700"],subset:["latin-ext","hebrew","latin"],weight:["400","700"],i:["normal"]},Mirza:{v:["regular","500","600","700"],subset:["latin-ext","arabic","latin"],weight:["400","500","600","700"],i:["normal"]},"Miss Fajardose":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Mitr:{v:["200","300","regular","500","600","700"],subset:["latin-ext","thai","vietnamese","latin"],weight:["200","300","400","500","600","700"],i:["normal"]},Modak:{v:["regular"],subset:["latin-ext","devanagari","latin"],weight:["400"],i:["normal"]},"Modern Antiqua":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Mogra:{v:["regular"],subset:["latin-ext","gujarati","latin"],weight:["400"],i:["normal"]},Molengo:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Molle:{v:["italic"],subset:["latin-ext","latin"],weight:[],i:["italic"]},Monda:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},Monofett:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Monoton:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Monsieur La Doulaise":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Montaga:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Montez:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Montserrat:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Montserrat Alternates":{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Montserrat Subrayada":{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Moul:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Moulpali:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Mountains of Christmas":{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},"Mouse Memoirs":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Mr Bedfort":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Mr Dafoe":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Mr De Haviland":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Mrs Saint Delafield":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Mrs Sheppards":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Mukta:{v:["200","300","regular","500","600","700","800"],subset:["latin-ext","devanagari","latin"],weight:["200","300","400","500","600","700","800"],i:["normal"]},"Mukta Mahee":{v:["200","300","regular","500","600","700","800"],subset:["latin-ext","gurmukhi","latin"],weight:["200","300","400","500","600","700","800"],i:["normal"]},"Mukta Malar":{v:["200","300","regular","500","600","700","800"],subset:["latin-ext","tamil","latin"],weight:["200","300","400","500","600","700","800"],i:["normal"]},"Mukta Vaani":{v:["200","300","regular","500","600","700","800"],subset:["latin-ext","gujarati","latin"],weight:["200","300","400","500","600","700","800"],i:["normal"]},Muli:{v:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","vietnamese","latin"],weight:["200","300","400","600","700","800","900"],i:["normal","italic"]},"Mystery Quest":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},NTR:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},"Nanum Brush Script":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Nanum Gothic":{v:["regular","700","800"],subset:["korean","latin"],weight:["400","700","800"],i:["normal"]},"Nanum Gothic Coding":{v:["regular","700"],subset:["korean","latin"],weight:["400","700"],i:["normal"]},"Nanum Myeongjo":{v:["regular","700","800"],subset:["korean","latin"],weight:["400","700","800"],i:["normal"]},"Nanum Pen Script":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Neucha:{v:["regular"],subset:["cyrillic","latin"],weight:["400"],i:["normal"]},Neuton:{v:["200","300","regular","italic","700","800"],subset:["latin-ext","latin"],weight:["200","300","400","700","800"],i:["normal","italic"]},"New Rocker":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"News Cycle":{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},Niconne:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Nixie One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Nobile:{v:["regular","italic","500","500italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","500","700"],i:["normal","italic"]},Nokora:{v:["regular","700"],subset:["khmer"],weight:["400","700"],i:["normal"]},Norican:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Nosifer:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Nothing You Could Do":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Noticia Text":{v:["regular","italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},"Noto Sans":{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","devanagari","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},"Noto Sans JP":{v:["100","300","regular","500","700","900"],subset:["japanese","latin"],weight:["100","300","400","500","700","900"],i:["normal"]},"Noto Sans KR":{v:["100","300","regular","500","700","900"],subset:["korean","latin"],weight:["100","300","400","500","700","900"],i:["normal"]},"Noto Serif":{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},"Noto Serif JP":{v:["200","300","regular","500","600","700","900"],subset:["japanese","latin"],weight:["200","300","400","500","600","700","900"],i:["normal"]},"Noto Serif KR":{v:["200","300","regular","500","600","700","900"],subset:["korean","latin"],weight:["200","300","400","500","600","700","900"],i:["normal"]},"Nova Cut":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Nova Flat":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Nova Mono":{v:["regular"],subset:["greek","latin"],weight:["400"],i:["normal"]},"Nova Oval":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Nova Round":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Nova Script":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Nova Slim":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Nova Square":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Numans:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Nunito:{v:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","vietnamese","latin"],weight:["200","300","400","600","700","800","900"],i:["normal","italic"]},"Nunito Sans":{v:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","vietnamese","latin"],weight:["200","300","400","600","700","800","900"],i:["normal","italic"]},"Odor Mean Chey":{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Offside:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Old Standard TT":{v:["regular","italic","700"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},Oldenburg:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Oleo Script":{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Oleo Script Swash Caps":{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Open Sans":{v:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["300","400","600","700","800"],i:["normal","italic"]},"Open Sans Condensed":{v:["300","300italic","700"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["300","700"],i:[]},Oranienbaum:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400"],i:["normal"]},Orbitron:{v:["regular","500","700","900"],subset:["latin"],weight:["400","500","700","900"],i:["normal"]},Oregano:{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},Orienta:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Original Surfer":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Oswald:{v:["200","300","regular","500","600","700"],subset:["cyrillic","latin-ext","vietnamese","latin"],weight:["200","300","400","500","600","700"],i:["normal"]},"Over the Rainbow":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Overlock:{v:["regular","italic","700","700italic","900","900italic"],subset:["latin-ext","latin"],weight:["400","700","900"],i:["normal","italic"]},"Overlock SC":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Overpass:{v:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","latin"],weight:["100","200","300","400","600","700","800","900"],i:["normal","italic"]},"Overpass Mono":{v:["300","regular","600","700"],subset:["latin-ext","latin"],weight:["300","400","600","700"],i:["normal"]},Ovo:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Oxygen:{v:["300","regular","700"],subset:["latin-ext","latin"],weight:["300","400","700"],i:["normal"]},"Oxygen Mono":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"PT Mono":{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400"],i:["normal"]},"PT Sans":{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"PT Sans Caption":{v:["regular","700"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400","700"],i:["normal"]},"PT Sans Narrow":{v:["regular","700"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400","700"],i:["normal"]},"PT Serif":{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"PT Serif Caption":{v:["regular","italic"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400"],i:["normal","italic"]},Pacifico:{v:["regular"],subset:["cyrillic","latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Padauk:{v:["regular","700"],subset:["myanmar","latin"],weight:["400","700"],i:["normal"]},Palanquin:{v:["100","200","300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["100","200","300","400","500","600","700"],i:["normal"]},"Palanquin Dark":{v:["regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["400","500","600","700"],i:["normal"]},Pangolin:{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Paprika:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Parisienne:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Passero One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Passion One":{v:["regular","700","900"],subset:["latin-ext","latin"],weight:["400","700","900"],i:["normal"]},"Pathway Gothic One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Patrick Hand":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Patrick Hand SC":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Pattaya:{v:["regular"],subset:["cyrillic","latin-ext","thai","vietnamese","latin"],weight:["400"],i:["normal"]},"Patua One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Pavanam:{v:["regular"],subset:["latin-ext","tamil","latin"],weight:["400"],i:["normal"]},"Paytone One":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Peddana:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Peralta:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Permanent Marker":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Petit Formal Script":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Petrona:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Philosopher:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},Piedra:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Pinyon Script":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Pirata One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Plaster:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Play:{v:["regular","700"],subset:["cyrillic","cyrillic-ext","latin-ext","greek","vietnamese","latin"],weight:["400","700"],i:["normal"]},Playball:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Playfair Display":{v:["regular","italic","700","700italic","900","900italic"],subset:["cyrillic","latin-ext","vietnamese","latin"],weight:["400","700","900"],i:["normal","italic"]},"Playfair Display SC":{v:["regular","italic","700","700italic","900","900italic"],subset:["cyrillic","latin-ext","vietnamese","latin"],weight:["400","700","900"],i:["normal","italic"]},Podkova:{v:["regular","500","600","700","800"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400","500","600","700","800"],i:["normal"]},"Poiret One":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},"Poller One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Poly:{v:["regular","italic"],subset:["latin"],weight:["400"],i:["normal","italic"]},Pompiere:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Pontano Sans":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Poor Story":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},Poppins:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","devanagari","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Port Lligat Sans":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Port Lligat Slab":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Pragati Narrow":{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},Prata:{v:["regular"],subset:["cyrillic","cyrillic-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Preahvihear:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Press Start 2P":{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","greek","latin"],weight:["400"],i:["normal"]},Pridi:{v:["200","300","regular","500","600","700"],subset:["latin-ext","thai","vietnamese","latin"],weight:["200","300","400","500","600","700"],i:["normal"]},"Princess Sofia":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Prociono:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Prompt:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","thai","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Prosto One":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},"Proza Libre":{v:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],subset:["latin-ext","latin"],weight:["400","500","600","700","800"],i:["normal","italic"]},Puritan:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},"Purple Purse":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Quando:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Quantico:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},Quattrocento:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Quattrocento Sans":{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Questrial:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Quicksand:{v:["300","regular","500","700"],subset:["latin-ext","vietnamese","latin"],weight:["300","400","500","700"],i:["normal"]},Quintessential:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Qwigley:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Racing Sans One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Radley:{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},Rajdhani:{v:["300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700"],i:["normal"]},Rakkas:{v:["regular"],subset:["latin-ext","arabic","latin"],weight:["400"],i:["normal"]},Raleway:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},"Raleway Dots":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Ramabhadra:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Ramaraja:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Rambla:{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"Rammetto One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Ranchers:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Rancho:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Ranga:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},Rasa:{v:["300","regular","500","600","700"],subset:["latin-ext","gujarati","latin"],weight:["300","400","500","600","700"],i:["normal"]},Rationale:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Ravi Prakash":{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Redressed:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Reem Kufi":{v:["regular"],subset:["arabic","latin"],weight:["400"],i:["normal"]},"Reenie Beanie":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Revalia:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Rhodium Libre":{v:["regular"],subset:["latin-ext","devanagari","latin"],weight:["400"],i:["normal"]},Ribeye:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Ribeye Marrow":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Righteous:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Risque:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Roboto:{v:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","300","400","500","700","900"],i:["normal","italic"]},"Roboto Condensed":{v:["300","300italic","regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["300","400","700"],i:["normal","italic"]},"Roboto Mono":{v:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","300","400","500","700"],i:["normal","italic"]},"Roboto Slab":{v:["100","300","regular","700"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["100","300","400","700"],i:["normal"]},Rochester:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Rock Salt":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Rokkitt:{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},Romanesco:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Ropa Sans":{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},Rosario:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},Rosarivo:{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},"Rouge Script":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Rozha One":{v:["regular"],subset:["latin-ext","devanagari","latin"],weight:["400"],i:["normal"]},Rubik:{v:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],subset:["cyrillic","latin-ext","hebrew","latin"],weight:["300","400","500","700","900"],i:["normal","italic"]},"Rubik Mono One":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},Ruda:{v:["regular","700","900"],subset:["latin-ext","latin"],weight:["400","700","900"],i:["normal"]},Rufina:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Ruge Boogie":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Ruluko:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Rum Raisin":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Ruslan Display":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},"Russo One":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},Ruthie:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Rye:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Sacramento:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Sahitya:{v:["regular","700"],subset:["devanagari","latin"],weight:["400","700"],i:["normal"]},Sail:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Saira:{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Saira Condensed":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Saira Extra Condensed":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Saira Semi Condensed":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},Salsa:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Sanchez:{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},Sancreek:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Sansita:{v:["regular","italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","latin"],weight:["400","700","800","900"],i:["normal","italic"]},Sarala:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},Sarina:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Sarpanch:{v:["regular","500","600","700","800","900"],subset:["latin-ext","devanagari","latin"],weight:["400","500","600","700","800","900"],i:["normal"]},Satisfy:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Sawarabi Gothic":{v:["regular"],subset:["cyrillic","japanese","latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Sawarabi Mincho":{v:["regular"],subset:["japanese","latin-ext","latin"],weight:["400"],i:["normal"]},Scada:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},Scheherazade:{v:["regular","700"],subset:["arabic","latin"],weight:["400","700"],i:["normal"]},Schoolbell:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Scope One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Seaweed Script":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Secular One":{v:["regular"],subset:["latin-ext","hebrew","latin"],weight:["400"],i:["normal"]},"Sedgwick Ave":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Sedgwick Ave Display":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Sevillana:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Seymour One":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},"Shadows Into Light":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Shadows Into Light Two":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Shanti:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Share:{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},"Share Tech":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Share Tech Mono":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Shojumaru:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Short Stack":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Shrikhand:{v:["regular"],subset:["latin-ext","gujarati","latin"],weight:["400"],i:["normal"]},Siemreap:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Sigmar One":{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Signika:{v:["300","regular","600","700"],subset:["latin-ext","latin"],weight:["300","400","600","700"],i:["normal"]},"Signika Negative":{v:["300","regular","600","700"],subset:["latin-ext","latin"],weight:["300","400","600","700"],i:["normal"]},Simonetta:{v:["regular","italic","900","900italic"],subset:["latin-ext","latin"],weight:["400","900"],i:["normal","italic"]},Sintony:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Sirin Stencil":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Six Caps":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Skranji:{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]},"Slabo 13px":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Slabo 27px":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Slackey:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Smokum:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Smythe:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Sniglet:{v:["regular","800"],subset:["latin-ext","latin"],weight:["400","800"],i:["normal"]},Snippet:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Snowburst One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Sofadi One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Sofia:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Song Myung":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Sonsie One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Sorts Mill Goudy":{v:["regular","italic"],subset:["latin-ext","latin"],weight:["400"],i:["normal","italic"]},"Source Code Pro":{v:["200","300","regular","500","600","700","900"],subset:["latin-ext","latin"],weight:["200","300","400","500","600","700","900"],i:["normal"]},"Source Sans Pro":{v:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","vietnamese","latin"],weight:["200","300","400","600","700","900"],i:["normal","italic"]},"Source Serif Pro":{v:["regular","600","700"],subset:["latin-ext","latin"],weight:["400","600","700"],i:["normal"]},"Space Mono":{v:["regular","italic","700","700italic"],subset:["latin-ext","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},"Special Elite":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Spectral:{v:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],subset:["cyrillic","latin-ext","vietnamese","latin"],weight:["200","300","400","500","600","700","800"],i:["normal","italic"]},"Spectral SC":{v:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],subset:["cyrillic","latin-ext","vietnamese","latin"],weight:["200","300","400","500","600","700","800"],i:["normal","italic"]},"Spicy Rice":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Spinnaker:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Spirax:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Squada One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Sree Krushnadevaraya":{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Sriracha:{v:["regular"],subset:["latin-ext","thai","vietnamese","latin"],weight:["400"],i:["normal"]},Stalemate:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Stalinist One":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},"Stardos Stencil":{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},"Stint Ultra Condensed":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Stint Ultra Expanded":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Stoke:{v:["300","regular"],subset:["latin-ext","latin"],weight:["300","400"],i:["normal"]},Strait:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Stylish:{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Sue Ellen Francisco":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Suez One":{v:["regular"],subset:["latin-ext","hebrew","latin"],weight:["400"],i:["normal"]},Sumana:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},Sunflower:{v:["300","500","700"],subset:["korean","latin"],weight:["300","500","700"],i:[]},Sunshiney:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Supermercado One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Sura:{v:["regular","700"],subset:["latin-ext","devanagari","latin"],weight:["400","700"],i:["normal"]},Suranna:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Suravaram:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Suwannaphum:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},"Swanky and Moo Moo":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Syncopate:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Tajawal:{v:["200","300","regular","500","700","800","900"],subset:["arabic","latin"],weight:["200","300","400","500","700","800","900"],i:["normal"]},Tangerine:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Taprom:{v:["regular"],subset:["khmer"],weight:["400"],i:["normal"]},Tauri:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Taviraj:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","thai","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},Teko:{v:["300","regular","500","600","700"],subset:["latin-ext","devanagari","latin"],weight:["300","400","500","600","700"],i:["normal"]},Telex:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Tenali Ramakrishna":{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},"Tenor Sans":{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},"Text Me One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"The Girl Next Door":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Tienne:{v:["regular","700","900"],subset:["latin"],weight:["400","700","900"],i:["normal"]},Tillana:{v:["regular","500","600","700","800"],subset:["latin-ext","devanagari","latin"],weight:["400","500","600","700","800"],i:["normal"]},Timmana:{v:["regular"],subset:["telugu","latin"],weight:["400"],i:["normal"]},Tinos:{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","hebrew","greek","vietnamese","latin"],weight:["400","700"],i:["normal","italic"]},"Titan One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Titillium Web":{v:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],subset:["latin-ext","latin"],weight:["200","300","400","600","700","900"],i:["normal","italic"]},"Trade Winds":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Trirong:{v:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],subset:["latin-ext","thai","vietnamese","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal","italic"]},Trocchi:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Trochut:{v:["regular","italic","700"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},Trykker:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Tulpen One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Ubuntu:{v:["300","300italic","regular","italic","500","500italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","latin"],weight:["300","400","500","700"],i:["normal","italic"]},"Ubuntu Condensed":{v:["regular"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","latin"],weight:["400"],i:["normal"]},"Ubuntu Mono":{v:["regular","italic","700","700italic"],subset:["cyrillic","cyrillic-ext","greek-ext","latin-ext","greek","latin"],weight:["400","700"],i:["normal","italic"]},Ultra:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Uncial Antiqua":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Underdog:{v:["regular"],subset:["cyrillic","latin-ext","latin"],weight:["400"],i:["normal"]},"Unica One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},UnifrakturCook:{v:["700"],subset:["latin"],weight:["700"],i:[]},UnifrakturMaguntia:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Unkempt:{v:["regular","700"],subset:["latin"],weight:["400","700"],i:["normal"]},Unlock:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Unna:{v:["regular","italic","700","700italic"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal","italic"]},VT323:{v:["regular"],subset:["latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},"Vampiro One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Varela:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Varela Round":{v:["regular"],subset:["latin-ext","hebrew","vietnamese","latin"],weight:["400"],i:["normal"]},"Vast Shadow":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Vesper Libre":{v:["regular","500","700","900"],subset:["latin-ext","devanagari","latin"],weight:["400","500","700","900"],i:["normal"]},Vibur:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Vidaloka:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Viga:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Voces:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Volkhov:{v:["regular","italic","700","700italic"],subset:["latin"],weight:["400","700"],i:["normal","italic"]},Vollkorn:{v:["regular","italic","600","600italic","700","700italic","900","900italic"],subset:["cyrillic","cyrillic-ext","latin-ext","greek","vietnamese","latin"],weight:["400","600","700","900"],i:["normal","italic"]},"Vollkorn SC":{v:["regular","600","700","900"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400","600","700","900"],i:["normal"]},Voltaire:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Waiting for the Sunrise":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Wallpoet:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Walter Turncoat":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Warnes:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},Wellfleet:{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Wendy One":{v:["regular"],subset:["latin-ext","latin"],weight:["400"],i:["normal"]},"Wire One":{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Work Sans":{v:["100","200","300","regular","500","600","700","800","900"],subset:["latin-ext","latin"],weight:["100","200","300","400","500","600","700","800","900"],i:["normal"]},"Yanone Kaffeesatz":{v:["200","300","regular","700"],subset:["cyrillic","latin-ext","vietnamese","latin"],weight:["200","300","400","700"],i:["normal"]},Yantramanav:{v:["100","300","regular","500","700","900"],subset:["latin-ext","devanagari","latin"],weight:["100","300","400","500","700","900"],i:["normal"]},"Yatra One":{v:["regular"],subset:["latin-ext","devanagari","latin"],weight:["400"],i:["normal"]},Yellowtail:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Yeon Sung":{v:["regular"],subset:["korean","latin"],weight:["400"],i:["normal"]},"Yeseva One":{v:["regular"],subset:["cyrillic","cyrillic-ext","latin-ext","vietnamese","latin"],weight:["400"],i:["normal"]},Yesteryear:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},Yrsa:{v:["300","regular","500","600","700"],subset:["latin-ext","latin"],weight:["300","400","500","600","700"],i:["normal"]},Zeyada:{v:["regular"],subset:["latin"],weight:["400"],i:["normal"]},"Zilla Slab":{v:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],subset:["latin-ext","latin"],weight:["300","400","500","600","700"],i:["normal","italic"]},"Zilla Slab Highlight":{v:["regular","700"],subset:["latin-ext","latin"],weight:["400","700"],i:["normal"]}};var Re=Ie;n(363),n(365),n(366),n(370),n(374);function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ge(e,t,n){return t&&We(e.prototype,t),n&&We(e,n),e}n(375);function Ue(e,t){return(Ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ue(e,t)}function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Je(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?$e(e):t}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=n(3),Qe=n.n(Ke);function Ze(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var et=function(e,t){var n;void 0===t&&(t=Ze);var a,r=[],o=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return o&&n===this&&t(i,r)||(a=e.apply(this,i),o=!0,n=this,r=i),a}};var tt=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var a=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(a);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);r.insertRule(e,o?0:r.cssRules.length)}catch(e){0}}else a.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var nt=function(e){function t(e,t,a){var r=t.trim().split(b);t=r;var o=r.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<o;++l)t[l]=n(e,t[l],a).trim();break;default:var s=l=0;for(t=[];l<o;++l)for(var c=0;c<i;++c)t[s++]=n(e[c]+" ",r[l],a).trim()}return t}function n(e,t,n){var a=t.charCodeAt(0);switch(33>a&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(f,"$1"+e.trim());case 58:return e.trim()+t.replace(f,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(f,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,o){var i=e+";",l=2*t+3*n+4*o;if(944===l){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===O||2===O&&r(s,1)?"-webkit-"+s+s:s}if(0===O||2===O&&!r(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(E,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return d.test(i)?i.replace(p,":-webkit-")+i.replace(p,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(w,"tb");break;case 232:s=i.replace(w,"tb-rl");break;case 220:s=i.replace(w,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,l=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(_,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(_,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+o&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function r(e,t){var n=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),P(2!==t?a:a.replace(S,"$1"),n,t)}function o(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function i(e,t,n,a,r,o,i,l,c,u){for(var p,d=0,m=t;d<D;++d)switch(p=F[d].call(s,e,m,n,a,r,o,i,l,c,u)){case void 0:case!1:case!0:case null:break;default:m=p}if(m!==t)return m}function l(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?O=1:(O=2,P=e):O=0),l}function s(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<D){var s=i(-1,n,l,l,M,x,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var p=function e(n,l,s,p,d){for(var m,b,f,w,k,_=0,S=0,T=0,E=0,F=0,P=0,N=f=m=0,z=0,Y=0,B=0,A=0,I=s.length,R=I-1,H="",W="",G="",U="";z<I;){if(b=s.charCodeAt(z),z===R&&0!==S+E+T+_&&(0!==S&&(b=47===S?10:47),E=T=_=0,I++,R++),0===S+E+T+_){if(z===R&&(0<Y&&(H=H.replace(u,"")),0<H.trim().length)){switch(b){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(z)}b=59}switch(b){case 123:for(m=(H=H.trim()).charCodeAt(0),f=1,A=++z;z<I;){switch(b=s.charCodeAt(z)){case 123:f++;break;case 125:f--;break;case 47:switch(b=s.charCodeAt(z+1)){case 42:case 47:e:{for(N=z+1;N<R;++N)switch(s.charCodeAt(N)){case 47:if(42===b&&42===s.charCodeAt(N-1)&&z+2!==N){z=N+1;break e}break;case 10:if(47===b){z=N+1;break e}}z=N}}break;case 91:b++;case 40:b++;case 34:case 39:for(;z++<R&&s.charCodeAt(z)!==b;);}if(0===f)break;z++}switch(f=s.substring(A,z),0===m&&(m=(H=H.replace(c,"").trim()).charCodeAt(0)),m){case 64:switch(0<Y&&(H=H.replace(u,"")),b=H.charCodeAt(1)){case 100:case 109:case 115:case 45:Y=l;break;default:Y=L}if(A=(f=e(l,Y,f,b,d+1)).length,0<D&&(k=i(3,f,Y=t(L,H,B),l,M,x,A,b,d,p),H=Y.join(""),void 0!==k&&0===(A=(f=k.trim()).length)&&(b=0,f="")),0<A)switch(b){case 115:H=H.replace(v,o);case 100:case 109:case 45:f=H+"{"+f+"}";break;case 107:f=(H=H.replace(g,"$1 $2"))+"{"+f+"}",f=1===O||2===O&&r("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=H+f,112===p&&(W+=f,f="")}else f="";break;default:f=e(l,t(l,H,B),f,p,d+1)}G+=f,f=B=Y=N=m=0,H="",b=s.charCodeAt(++z);break;case 125:case 59:if(1<(A=(H=(0<Y?H.replace(u,""):H).trim()).length))switch(0===N&&(m=H.charCodeAt(0),45===m||96<m&&123>m)&&(A=(H=H.replace(" ",":")).length),0<D&&void 0!==(k=i(1,H,l,n,M,x,W.length,p,d,p))&&0===(A=(H=k.trim()).length)&&(H="\0\0"),m=H.charCodeAt(0),b=H.charCodeAt(1),m){case 0:break;case 64:if(105===b||99===b){U+=H+s.charAt(z);break}default:58!==H.charCodeAt(A-1)&&(W+=a(H,m,b,H.charCodeAt(2)))}B=Y=N=m=0,H="",b=s.charCodeAt(++z)}}switch(b){case 13:case 10:47===S?S=0:0===1+m&&107!==p&&0<H.length&&(Y=1,H+="\0"),0<D*j&&i(0,H,l,n,M,x,W.length,p,d,p),x=1,M++;break;case 59:case 125:if(0===S+E+T+_){x++;break}default:switch(x++,w=s.charAt(z),b){case 9:case 32:if(0===E+_+S)switch(F){case 44:case 58:case 9:case 32:w="";break;default:32!==b&&(w=" ")}break;case 0:w="\\0";break;case 12:w="\\f";break;case 11:w="\\v";break;case 38:0===E+S+_&&(Y=B=1,w="\f"+w);break;case 108:if(0===E+S+_+C&&0<N)switch(z-N){case 2:112===F&&58===s.charCodeAt(z-3)&&(C=F);case 8:111===P&&(C=P)}break;case 58:0===E+S+_&&(N=z);break;case 44:0===S+T+E+_&&(Y=1,w+="\r");break;case 34:case 39:0===S&&(E=E===b?0:0===E?b:E);break;case 91:0===E+S+T&&_++;break;case 93:0===E+S+T&&_--;break;case 41:0===E+S+_&&T--;break;case 40:if(0===E+S+_){if(0===m)switch(2*F+3*P){case 533:break;default:m=1}T++}break;case 64:0===S+T+E+_+N+f&&(f=1);break;case 42:case 47:if(!(0<E+_+T))switch(S){case 0:switch(2*b+3*s.charCodeAt(z+1)){case 235:S=47;break;case 220:A=z,S=42}break;case 42:47===b&&42===F&&A+2!==z&&(33===s.charCodeAt(A+2)&&(W+=s.substring(A,z+1)),w="",S=0)}}0===S&&(H+=w)}P=F,F=b,z++}if(0<(A=W.length)){if(Y=l,0<D&&(void 0!==(k=i(2,W,Y,n,M,x,A,p,d,p))&&0===(W=k).length))return U+W+G;if(W=Y.join(",")+"{"+W+"}",0!=O*C){switch(2!==O||r(W,2)||(C=0),C){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(h,"::-webkit-input-$1")+W.replace(h,"::-moz-$1")+W.replace(h,":-ms-input-$1")+W}C=0}}return U+W+G}(L,l,n,0,0);return 0<D&&(void 0!==(s=i(-2,p,l,l,M,x,p.length,0,0,0))&&(p=s)),"",C=0,x=M=1,p}var c=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,m=/([,: ])(transform)/g,b=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,h=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,_=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,x=1,M=1,C=0,O=1,L=[],F=[],D=0,P=null,j=0;return s.use=function e(t){switch(t){case void 0:case null:D=F.length=0;break;default:if("function"==typeof t)F[D++]=t;else if("object"==typeof t)for(var n=0,a=t.length;n<a;++n)e(t[n]);else j=0|!!t}return e},s.set=l,void 0!==e&&l(e),s};function at(e){e&&rt.current.insert(e+"}")}var rt={current:null},ot=function(e,t,n,a,r,o,i,l,s,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return rt.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return rt.current.insert(n[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(at)}},it=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var a=new nt(t);var r,o={};r=e.container||document.head;var i,l=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(l,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),a.use(e.stylisPlugins)(ot),i=function(e,t,n,r){var o=t.name;rt.current=n,a(e,t.styles),r&&(s.inserted[o]=!0)};var s={key:n,sheet:new tt({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:i};return s};n(377);function lt(e,t,n){var a="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):a+=n+" "})),a}var st=function(e,t,n){var a=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[a]&&(e.registered[a]=t.styles),void 0===e.inserted[t.name]){var r=t;do{e.insert("."+a,r,e.sheet,!0);r=r.next}while(void 0!==r)}};var ct=function(e){for(var t,n=0,a=0,r=e.length;r>=4;++a,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(a+2))<<16;case 2:n^=(255&e.charCodeAt(a+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(a)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},ut={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var pt=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mt=function(e){return 45===e.charCodeAt(1)},bt=function(e){return null!=e&&"boolean"!=typeof e},ft=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return mt(e)?e:e.replace(pt,"-$&").toLowerCase()})),gt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,(function(e,t,n){return yt={name:t,styles:n,next:yt},t}))}return 1===ut[e]||mt(e)||"number"!=typeof t||0===t?t:t+"px"};function ht(e,t,n,a){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return yt={name:n.name,styles:n.styles,next:yt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)yt={name:r.name,styles:r.styles,next:yt},r=r.next;return n.styles+";"}return function(e,t,n){var a="";if(Array.isArray(n))for(var r=0;r<n.length;r++)a+=ht(e,t,n[r],!1);else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?a+=o+"{"+t[i]+"}":bt(i)&&(a+=ft(o)+":"+gt(o,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=ht(e,t,i,!1);switch(o){case"animation":case"animationName":a+=ft(o)+":"+l+";";break;default:a+=o+"{"+l+"}"}}else for(var s=0;s<i.length;s++)bt(i[s])&&(a+=ft(o)+":"+gt(o,i[s])+";")}return a}(e,t,n);case"function":if(void 0!==e){var o=yt,i=n(e);return yt=o,ht(e,t,i,a)}break;case"string":}if(null==t)return n;var l=t[n];return void 0===l||a?n:l}var yt,wt=/label:\s*([^\s;\n{]+)\s*;/g;var vt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,r="";yt=void 0;var o=e[0];null==o||void 0===o.raw?(a=!1,r+=ht(n,t,o,!1)):r+=o[0];for(var i=1;i<e.length;i++)r+=ht(n,t,e[i],46===r.charCodeAt(r.length-1)),a&&(r+=o[i]);wt.lastIndex=0;for(var l,s="";null!==(l=wt.exec(r));)s+="-"+l[1];return{name:ct(r)+s,styles:r,next:yt}},kt=Object.prototype.hasOwnProperty,_t=Object(Ke.createContext)("undefined"!=typeof HTMLElement?it():null),St=Object(Ke.createContext)({}),Tt=_t.Provider,Et=function(e){var t=function(t,n){return Object(Ke.createElement)(_t.Consumer,null,(function(a){return e(t,a,n)}))};return Object(Ke.forwardRef)(t)},xt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mt=function(e,t){var n={};for(var a in t)kt.call(t,a)&&(n[a]=t[a]);return n[xt]=e,n},Ct=function(e,t,n,a){var r=null===n?t.css:t.css(n);"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var o=t[xt],i=[r],l="";"string"==typeof t.className?l=lt(e.registered,i,t.className):null!=t.className&&(l=t.className+" ");var s=vt(i);st(e,s,"string"==typeof o);l+=e.key+"-"+s.name;var c={};for(var u in t)kt.call(t,u)&&"css"!==u&&u!==xt&&(c[u]=t[u]);return c.ref=a,c.className=l,Object(Ke.createElement)(o,c)},Ot=Et((function(e,t,n){return"function"==typeof e.css?Object(Ke.createElement)(St.Consumer,null,(function(a){return Ct(t,e,a,n)})):Ct(t,e,null,n)}));var Lt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vt(t)},Ft=function(e,t){var n=arguments;if(null==t||!kt.call(t,"css"))return Ke.createElement.apply(void 0,n);var a=n.length,r=new Array(a);r[0]=Ot,r[1]=Mt(e,t);for(var o=2;o<a;o++)r[o]=n[o];return Ke.createElement.apply(null,r)},Dt=(Ke.Component,function e(t){for(var n=t.length,a=0,r="";a<n;a++){var o=t[a];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var l in i="",o)o[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=o}i&&(r&&(r+=" "),r+=i)}}return r});function Pt(e,t,n){var a=[],r=lt(e,a,n);return a.length<2?n:r+t(a)}var jt=Et((function(e,t){return Object(Ke.createElement)(St.Consumer,null,(function(n){var a=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];var r=vt(n,t.registered);return st(t,r,!1),t.key+"-"+r.name},r={css:a,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Pt(t.registered,a,Dt(n))},theme:n},o=e.children(r);return!0,o}))})),Nt=n(16);n(381);function zt(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yt(){return(Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function At(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return n}}(e,t)||At(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e){return function(e){if(Array.isArray(e))return Bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||At(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=n(94),Gt=n.n(Wt),Ut=function(){};function qt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Vt(e,t,n){var a=[n];if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&a.push("".concat(qt(e,r)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var $t=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ve(e)&&null!==e?[e]:[]};function Jt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Xt(e){return Jt(e)?window.pageYOffset:e.scrollTop}function Kt(e,t){Jt(e)?window.scrollTo(0,t):e.scrollTop=t}function Qt(e,t,n,a){return n*((e=e/a-1)*e*e+1)+t}function Zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ut,r=Xt(e),o=t-r,i=10,l=0;function s(){var t=Qt(l+=i,r,o,n);Kt(e,t),l<n?window.requestAnimationFrame(s):a(e)}s()}function en(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}function rn(e){var t=e.maxHeight,n=e.menuEl,a=e.minHeight,r=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,a=/(auto|scroll)/,r=document.documentElement;if("fixed"===t.position)return r;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&a.test(t.overflow+t.overflowY+t.overflowX))return o;return r}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,m=p.height,b=p.top,f=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,h=Xt(s),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),v=f-w,k=g-b,_=v+h,S=u-h-b,T=d-g+h+y,E=h+b-w;switch(r){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:t};if(S>=m&&!i)return o&&Zt(s,T,160),{placement:"bottom",maxHeight:t};if(!i&&S>=a||i&&k>=a)return o&&Zt(s,T,160),{placement:"bottom",maxHeight:i?k-y:S-y};if("auto"===r||i){var x=t,M=i?v:_;return M>=a&&(x=Math.min(M-y-l.controlHeight,t)),{placement:"top",maxHeight:x}}if("bottom"===r)return Kt(s,T),{placement:"bottom",maxHeight:t};break;case"top":if(v>=m)return{placement:"top",maxHeight:t};if(_>=m&&!i)return o&&Zt(s,E,160),{placement:"top",maxHeight:t};if(!i&&_>=a||i&&v>=a){var C=t;return(!i&&_>=a||i&&v>=a)&&(C=i?v-w:_-w),o&&Zt(s,E,160),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}var on=function(e){return"auto"===e?"bottom":e},ln=Object(Ke.createContext)({getPortalPlacement:null}),sn=function(e){qe(n,e);var t=an(n);function n(){var e;He(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,a=n.minMenuHeight,r=n.maxMenuHeight,o=n.menuPlacement,i=n.menuPosition,l=n.menuShouldScrollIntoView,s=n.theme;if(t){var c="fixed"===i,u=rn({maxHeight:r,menuEl:t,minHeight:a,placement:o,shouldScroll:l&&!c,isFixedPosition:c,theme:s}),p=e.context.getPortalPlacement;p&&p(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||on(t);return nn(nn({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Ge(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(Ke.Component);sn.contextType=ln;var cn=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},un=cn,pn=cn,dn=function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.innerProps;return Ft("div",Yt({css:r("noOptionsMessage",e),className:a({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};dn.defaultProps={children:"No options"};var mn=function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.innerProps;return Ft("div",Yt({css:r("loadingMessage",e),className:a({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};mn.defaultProps={children:"Loading..."};var bn=function(e){qe(n,e);var t=an(n);function n(){var e;He(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==on(e.props.menuPlacement)&&e.setState({placement:n})},e}return Ge(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,a=e.controlElement,r=e.menuPlacement,o=e.menuPosition,i=e.getStyles,l="fixed"===o;if(!t&&!l||!a)return null;var s=this.state.placement||on(r),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),u=l?0:window.pageYOffset,p=c[s]+u,d=Ft("div",{css:i("menuPortal",{offset:p,position:o,rect:c})},n);return Ft(ln.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(Nt.createPortal)(d,t):d)}}]),n}(Ke.Component),fn=Array.isArray,gn=Object.keys,hn=Object.prototype.hasOwnProperty;function yn(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Ve(t)&&"object"==Ve(n)){var a,r,o,i=fn(t),l=fn(n);if(i&&l){if((r=t.length)!=n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(i!=l)return!1;var s=t instanceof Date,c=n instanceof Date;if(s!=c)return!1;if(s&&c)return t.getTime()==n.getTime();var u=t instanceof RegExp,p=n instanceof RegExp;if(u!=p)return!1;if(u&&p)return t.toString()==n.toString();var d=gn(t);if((r=d.length)!==gn(n).length)return!1;for(a=r;0!=a--;)if(!hn.call(n,d[a]))return!1;for(a=r;0!=a--;)if(!("_owner"===(o=d[a])&&t.$$typeof||e(t[o],n[o])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function wn(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return wn=function(){return n},n}var vn={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},kn=function(e){var t=e.size,n=zt(e,["size"]);return Ft("svg",Yt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vn},n))},_n=function(e){return Ft(kn,Yt({size:20},e),Ft("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Sn=function(e){return Ft(kn,Yt({size:20},e),Ft("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Tn=function(e){var t=e.isFocused,n=e.theme,a=n.spacing.baseUnit,r=n.colors;return{label:"indicatorContainer",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*a,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},En=Tn,xn=Tn,Mn=function(){var e=Lt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(wn()),Cn=function(e){var t=e.delay,n=e.offset;return Ft("span",{css:Lt({animation:"".concat(Mn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},On=function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.innerProps,o=e.isRtl;return Ft("div",Yt({},r,{css:a("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Ft(Cn,{delay:0,offset:o}),Ft(Cn,{delay:160,offset:!0}),Ft(Cn,{delay:320,offset:!o}))};On.defaultProps={size:4};function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jn=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yn=function(e){var t=e.children,n=e.innerProps;return Ft("div",n,t)},Bn=Yn,An=Yn;var In=function(e){var t=e.children,n=e.className,a=e.components,r=e.cx,o=e.data,i=e.getStyles,l=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,p=a.Container,d=a.Label,m=a.Remove;return Ft(jt,null,(function(a){var b=a.css,f=a.cx;return Ft(p,{data:o,innerProps:zn(zn({},l),{},{className:f(b(i("multiValue",e)),r({"multi-value":!0,"multi-value--is-disabled":s},n))}),selectProps:u},Ft(d,{data:o,innerProps:{className:f(b(i("multiValueLabel",e)),r({"multi-value__label":!0},n))},selectProps:u},t),Ft(m,{data:o,innerProps:zn({className:f(b(i("multiValueRemove",e)),r({"multi-value__remove":!0},n))},c),selectProps:u}))}))};In.defaultProps={cropWithEllipsis:!0};function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}for(var Wn={ClearIndicator:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.innerProps;return Ft("div",Yt({},o,{css:r("clearIndicator",e),className:a({indicator:!0,"clear-indicator":!0},n)}),t||Ft(_n,null))},Control:function(e){var t=e.children,n=e.cx,a=e.getStyles,r=e.className,o=e.isDisabled,i=e.isFocused,l=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return Ft("div",Yt({ref:l,css:a("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":c},r)},s),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.innerProps;return Ft("div",Yt({},o,{css:r("dropdownIndicator",e),className:a({indicator:!0,"dropdown-indicator":!0},n)}),t||Ft(Sn,null))},DownChevron:Sn,CrossIcon:_n,Group:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.Heading,i=e.headingProps,l=e.label,s=e.theme,c=e.selectProps;return Ft("div",{css:r("group",e),className:a({group:!0},n)},Ft(o,Yt({},i,{selectProps:c,theme:s,getStyles:r,cx:a}),l),Ft("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.theme,o=(e.selectProps,zt(e,["className","cx","getStyles","theme","selectProps"]));return Ft("div",Yt({css:a("groupHeading",Fn({theme:r},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles;return Ft("div",{css:r("indicatorsContainer",e),className:a({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.innerProps;return Ft("span",Yt({},r,{css:a("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.innerRef,o=e.isHidden,i=e.isDisabled,l=e.theme,s=(e.selectProps,zt(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Ft("div",{css:a("input",Pn({theme:l},s))},Ft(Gt.a,Yt({className:n({input:!0},t),inputRef:r,inputStyle:jn(o),disabled:i},s)))},LoadingIndicator:On,Menu:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.innerRef,i=e.innerProps;return Ft("div",Yt({css:r("menu",e),className:a({menu:!0},n)},i,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.isMulti,i=e.innerRef;return Ft("div",{css:r("menuList",e),className:a({"menu-list":!0,"menu-list--is-multi":o},n),ref:i},t)},MenuPortal:bn,LoadingMessage:mn,NoOptionsMessage:dn,MultiValue:In,MultiValueContainer:Bn,MultiValueLabel:An,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ft("div",n,t||Ft(_n,{size:14}))},Option:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.isDisabled,i=e.isFocused,l=e.isSelected,s=e.innerRef,c=e.innerProps;return Ft("div",Yt({css:r("option",e),className:a({option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":l},n),ref:s},c),t)},Placeholder:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.innerProps;return Ft("div",Yt({css:r("placeholder",e),className:a({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.innerProps,i=e.isDisabled,l=e.isRtl;return Ft("div",Yt({css:r("container",e),className:a({"--is-disabled":i,"--is-rtl":l},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,o=e.isDisabled,i=e.innerProps;return Ft("div",Yt({css:r("singleValue",e),className:a({"single-value":!0,"single-value--is-disabled":o},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,a=e.cx,r=e.isMulti,o=e.getStyles,i=e.hasValue;return Ft("div",{css:o("valueContainer",e),className:a({"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i},n)},t)}},Gn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Un=new RegExp("["+Gn.map((function(e){return e.letters})).join("")+"]","g"),qn={},Vn=0;Vn<Gn.length;Vn++)for(var $n=Gn[Vn],Jn=0;Jn<$n.letters.length;Jn++)qn[$n.letters[Jn]]=$n.base;var Xn=function(e){return e.replace(Un,(function(e){return qn[e]}))};function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var Qn=function(e){return e.replace(/^\s+|\s+$/g,"")},Zn=function(e){return"".concat(e.label," ").concat(e.value)};var ea={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},ta=function(e){return Ft("span",Yt({css:ea},e))};function na(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,zt(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Ft("input",Yt({ref:t},n,{css:Lt({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function aa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}var ra=function(e){qe(n,e);var t=aa(n);function n(){return He(this,n),t.apply(this,arguments)}return Ge(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(Nt.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(Ke.Component),oa=["boxSizing","height","overflow","paddingRight","position"],ia={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function la(e){e.preventDefault()}function sa(e){e.stopPropagation()}function ca(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ua(){return"ontouchstart"in window||navigator.maxTouchPoints}function pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}var da=!(!window.document||!window.document.createElement),ma=0,ba=function(e){qe(n,e);var t=pa(n);function n(){var e;He(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return Ge(n,[{key:"componentDidMount",value:function(){var e=this;if(da){var t=this.props,n=t.accountForScrollbars,a=t.touchScrollTarget,r=document.body,o=r&&r.style;if(n&&oa.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&ma<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,s=window.innerWidth-l+i||0;Object.keys(ia).forEach((function(e){var t=ia[e];o&&(o[e]=t)})),o&&(o.paddingRight="".concat(s,"px"))}r&&ua()&&(r.addEventListener("touchmove",la,this.listenerOptions),a&&(a.addEventListener("touchstart",ca,this.listenerOptions),a.addEventListener("touchmove",sa,this.listenerOptions))),ma+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(da){var t=this.props,n=t.accountForScrollbars,a=t.touchScrollTarget,r=document.body,o=r&&r.style;ma=Math.max(ma-1,0),n&&ma<1&&oa.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),r&&ua()&&(r.removeEventListener("touchmove",la,this.listenerOptions),a&&(a.removeEventListener("touchstart",ca,this.listenerOptions),a.removeEventListener("touchmove",sa,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(Ke.Component);function fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}ba.defaultProps={accountForScrollbars:!0};var ga={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},ha=function(e){qe(n,e);var t=fa(n);function n(){var e;He(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return Ge(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,a=this.state.touchScrollTarget;return n?Ft("div",null,Ft("div",{onClick:this.blurSelectInput,css:ga}),Ft(ra,{innerRef:this.getScrollTarget},t),a?Ft(ba,{touchScrollTarget:a}):null):t}}]),n}(Ke.PureComponent);function ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}var wa=function(e){qe(n,e);var t=ya(n);function n(){var e;He(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var a=e.props,r=a.onBottomArrive,o=a.onBottomLeave,i=a.onTopArrive,l=a.onTopLeave,s=e.scrollTarget,c=s.scrollTop,u=s.scrollHeight,p=s.clientHeight,d=e.scrollTarget,m=n>0,b=u-p-c,f=!1;b>n&&e.isBottom&&(o&&o(t),e.isBottom=!1),m&&e.isTop&&(l&&l(t),e.isTop=!1),m&&n>b?(r&&!e.isBottom&&r(t),d.scrollTop=u,f=!0,e.isBottom=!0):!m&&-n>c&&(i&&!e.isTop&&i(t),d.scrollTop=0,f=!0,e.isTop=!0),f&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return Ge(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return Qe.a.createElement(ra,{innerRef:this.getScrollTarget},this.props.children)}}]),n}(Ke.Component);function va(e){var t=e.isEnabled,n=void 0===t||t,a=zt(e,["isEnabled"]);return n?Qe.a.createElement(wa,a):a.children}var ka=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,a=t.isMulti,r=t.label,o=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(r||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},_a=function(e,t){var n=t.value,a=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,a?" is disabled. Select another option.":", selected.")}},Sa=function(e){return!!e.isDisabled};var Ta={clearIndicator:xn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,a=e.theme,r=a.colors,o=a.borderRadius,i=a.spacing;return{label:"control",alignItems:"center",backgroundColor:t?r.neutral5:r.neutral0,borderColor:t?r.neutral10:n?r.primary:r.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(r.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?r.primary:r.neutral30}}},dropdownIndicator:En,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,a=n.spacing.baseUnit,r=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*a,marginTop:2*a,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,a=n.spacing,r=n.colors;return{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,visibility:t?"hidden":"visible",color:r.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,a=e.theme,r=a.colors,o=a.spacing.baseUnit;return{label:"loadingIndicator",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:pn,menu:function(e){var t,n=e.placement,a=e.theme,r=a.borderRadius,o=a.spacing,i=a.colors;return Ht(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Ht(t,"backgroundColor",i.neutral0),Ht(t,"borderRadius",r),Ht(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Ht(t,"marginBottom",o.menuGutter),Ht(t,"marginTop",o.menuGutter),Ht(t,"position","absolute"),Ht(t,"width","100%"),Ht(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,a=e.position;return{left:t.left,position:a,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,a=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:a/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,a=t.colors,r=e.cropWithEllipsis;return{borderRadius:n/2,color:a.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:r?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,a=t.borderRadius,r=t.colors;return{alignItems:"center",borderRadius:a/2,backgroundColor:e.isFocused&&r.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}}},noOptionsMessage:un,option:function(e){var t=e.isDisabled,n=e.isFocused,a=e.isSelected,r=e.theme,o=r.spacing,i=r.colors;return{label:"option",backgroundColor:a?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:a?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(a?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,a=n.spacing,r=n.colors;return{label:"singleValue",color:t?r.neutral40:r.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2,maxWidth:"calc(100% - ".concat(2*a.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Ea={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}var Oa,La={backspaceRemovesValue:!0,blurInputOnSelect:en(),captureMenuScroll:!en(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Zn,trim:!0,matchFrom:"any"},Oa),a=n.ignoreCase,r=n.ignoreAccents,o=n.stringify,i=n.trim,l=n.matchFrom,s=i?Qn(t):t,c=i?Qn(o(e)):o(e);return a&&(s=s.toLowerCase(),c=c.toLowerCase()),r&&(s=Xn(s),c=Xn(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Sa,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Fa=1,Da=function(e){qe(n,e);var t=Ca(n);function n(e){var a;He(this,n),(a=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},a.blockOptionHover=!1,a.isComposing=!1,a.clearFocusValueOnUpdate=!1,a.commonProps=void 0,a.components=void 0,a.hasGroups=!1,a.initialTouchX=0,a.initialTouchY=0,a.inputIsHiddenAfterUpdate=void 0,a.instancePrefix="",a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.controlRef=null,a.getControlRef=function(e){a.controlRef=e},a.focusedOptionRef=null,a.getFocusedOptionRef=function(e){a.focusedOptionRef=e},a.menuListRef=null,a.getMenuListRef=function(e){a.menuListRef=e},a.inputRef=null,a.getInputRef=function(e){a.inputRef=e},a.cacheComponents=function(e){var t;a.components=(t={components:e},Hn(Hn({},Wn),t.components))},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(e,t){var n=a.props,r=n.onChange,o=n.name;r(e,Ma(Ma({},t),{},{name:o}))},a.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,r=a.props,o=r.closeMenuOnSelect,i=r.isMulti;a.onInputChange("",{action:"set-value"}),o&&(a.inputIsHiddenAfterUpdate=!i,a.onMenuClose()),a.clearFocusValueOnUpdate=!0,a.onChange(e,{action:t,option:n})},a.selectOption=function(e){var t=a.props,n=t.blurInputOnSelect,r=t.isMulti,o=a.state.selectValue;if(r)if(a.isOptionSelected(e,o)){var i=a.getOptionValue(e);a.setValue(o.filter((function(e){return a.getOptionValue(e)!==i})),"deselect-option",e),a.announceAriaLiveSelection({event:"deselect-option",context:{value:a.getOptionLabel(e)}})}else a.isOptionDisabled(e,o)?a.announceAriaLiveSelection({event:"select-option",context:{value:a.getOptionLabel(e),isDisabled:!0}}):(a.setValue([].concat(Rt(o),[e]),"select-option",e),a.announceAriaLiveSelection({event:"select-option",context:{value:a.getOptionLabel(e)}}));else a.isOptionDisabled(e,o)?a.announceAriaLiveSelection({event:"select-option",context:{value:a.getOptionLabel(e),isDisabled:!0}}):(a.setValue(e,"select-option"),a.announceAriaLiveSelection({event:"select-option",context:{value:a.getOptionLabel(e)}}));n&&a.blurInput()},a.removeValue=function(e){var t=a.state.selectValue,n=a.getOptionValue(e),r=t.filter((function(e){return a.getOptionValue(e)!==n}));a.onChange(r.length?r:null,{action:"remove-value",removedValue:e}),a.announceAriaLiveSelection({event:"remove-value",context:{value:e?a.getOptionLabel(e):""}}),a.focusInput()},a.clearValue=function(){var e=a.props.isMulti;a.onChange(e?[]:null,{action:"clear"})},a.popValue=function(){var e=a.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);a.announceAriaLiveSelection({event:"pop-value",context:{value:t?a.getOptionLabel(t):""}}),a.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},a.getOptionLabel=function(e){return a.props.getOptionLabel(e)},a.getOptionValue=function(e){return a.props.getOptionValue(e)},a.getStyles=function(e,t){var n=Ta[e](t);n.boxSizing="border-box";var r=a.props.styles[e];return r?r(n,t):n},a.getElementId=function(e){return"".concat(a.instancePrefix,"-").concat(e)},a.getActiveDescendentId=function(){var e=a.props.menuIsOpen,t=a.state,n=t.menuOptions,r=t.focusedOption;if(r&&e){var o=n.focusable.indexOf(r),i=n.render[o];return i&&i.key}},a.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;a.setState({ariaLiveSelection:_a(t,n)})},a.announceAriaLiveContext=function(e){var t=e.event,n=e.context;a.setState({ariaLiveContext:ka(t,Ma(Ma({},n),{},{label:a.props["aria-label"]}))})},a.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),a.focusInput())},a.onMenuMouseMove=function(e){a.blockOptionHover=!1},a.onControlMouseDown=function(e){var t=a.props.openMenuOnClick;a.state.isFocused?a.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&a.onMenuClose():t&&a.openMenu("first"):(t&&(a.openAfterFocus=!0),a.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},a.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||a.props.isDisabled)){var t=a.props,n=t.isMulti,r=t.menuIsOpen;a.focusInput(),r?(a.inputIsHiddenAfterUpdate=!n,a.onMenuClose()):a.openMenu("first"),e.preventDefault(),e.stopPropagation()}},a.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(a.clearValue(),e.stopPropagation(),a.openAfterFocus=!1,"touchend"===e.type?a.focusInput():setTimeout((function(){return a.focusInput()})))},a.onScroll=function(e){"boolean"==typeof a.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Jt(e.target)&&a.props.onMenuClose():"function"==typeof a.props.closeMenuOnScroll&&a.props.closeMenuOnScroll(e)&&a.props.onMenuClose()},a.onCompositionStart=function(){a.isComposing=!0},a.onCompositionEnd=function(){a.isComposing=!1},a.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(a.initialTouchX=n.clientX,a.initialTouchY=n.clientY,a.userIsDragging=!1)},a.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-a.initialTouchX),o=Math.abs(n.clientY-a.initialTouchY);a.userIsDragging=r>5||o>5}},a.onTouchEnd=function(e){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(e.target)&&a.menuListRef&&!a.menuListRef.contains(e.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(e){a.userIsDragging||a.onControlMouseDown(e)},a.onClearIndicatorTouchEnd=function(e){a.userIsDragging||a.onClearIndicatorMouseDown(e)},a.onDropdownIndicatorTouchEnd=function(e){a.userIsDragging||a.onDropdownIndicatorMouseDown(e)},a.handleInputChange=function(e){var t=e.currentTarget.value;a.inputIsHiddenAfterUpdate=!1,a.onInputChange(t,{action:"input-change"}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(e){var t=a.props,n=t.isSearchable,r=t.isMulti;a.props.onFocus&&a.props.onFocus(e),a.inputIsHiddenAfterUpdate=!1,a.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:r}}),a.setState({isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(e){a.menuListRef&&a.menuListRef.contains(document.activeElement)?a.inputRef.focus():(a.props.onBlur&&a.props.onBlur(e),a.onInputChange("",{action:"input-blur"}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1}))},a.onOptionHover=function(e){a.blockOptionHover||a.state.focusedOption===e||a.setState({focusedOption:e})},a.shouldHideSelectedOptions=function(){var e=a.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},a.onKeyDown=function(e){var t=a.props,n=t.isMulti,r=t.backspaceRemovesValue,o=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,m=a.state,b=m.focusedOption,f=m.focusedValue,g=m.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(a.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;a.focusValue("previous");break;case"ArrowRight":if(!n||i)return;a.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(f)a.removeValue(f);else{if(!r)return;n?a.popValue():l&&a.clearValue()}break;case"Tab":if(a.isComposing)return;if(e.shiftKey||!c||!p||!b||d&&a.isOptionSelected(b,g))return;a.selectOption(b);break;case"Enter":if(229===e.keyCode)break;if(c){if(!b)return;if(a.isComposing)return;a.selectOption(b);break}return;case"Escape":c?(a.inputIsHiddenAfterUpdate=!1,a.onInputChange("",{action:"menu-close"}),a.onMenuClose()):l&&o&&a.clearValue();break;case" ":if(i)return;if(!c){a.openMenu("first");break}if(!b)return;a.selectOption(b);break;case"ArrowUp":c?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":c?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!c)return;a.focusOption("pageup");break;case"PageDown":if(!c)return;a.focusOption("pagedown");break;case"Home":if(!c)return;a.focusOption("first");break;case"End":if(!c)return;a.focusOption("last");break;default:return}e.preventDefault()}},a.buildMenuOptions=function(e,t){var n=e.inputValue,r=void 0===n?"":n,o=e.options,i=function(e,n){var o=a.isOptionDisabled(e,t),i=a.isOptionSelected(e,t),l=a.getOptionLabel(e),s=a.getOptionValue(e);if(!(a.shouldHideSelectedOptions()&&i||!a.filterOption({label:l,value:s,data:e},r))){var c=o?void 0:function(){return a.onOptionHover(e)},u=o?void 0:function(){return a.selectOption(e)},p="".concat(a.getElementId("option"),"-").concat(n);return{innerProps:{id:p,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:o,isSelected:i,key:p,label:l,type:"option",value:s}}};return o.reduce((function(e,t,n){if(t.options){a.hasGroups||(a.hasGroups=!0);var r=t.options.map((function(t,a){var r=i(t,"".concat(n,"-").concat(a));return r&&e.focusable.push(t),r})).filter(Boolean);if(r.length){var o="".concat(a.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:o,data:t,options:r})}}else{var l=i(t,"".concat(n));l&&(e.render.push(l),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=e.value;a.cacheComponents=et(a.cacheComponents,yn).bind($e(a)),a.cacheComponents(e.components),a.instancePrefix="react-select-"+(a.props.instanceId||++Fa);var o=$t(r);a.buildMenuOptions=et(a.buildMenuOptions,(function(e,t){var n=It(e,2),a=n[0],r=n[1],o=It(t,2),i=o[0];return yn(r,o[1])&&yn(a.inputValue,i.inputValue)&&yn(a.options,i.options)})).bind($e(a));var i=e.menuIsOpen?a.buildMenuOptions(e,o):{render:[],focusable:[]};return a.state.menuOptions=i,a.state.selectValue=o,a}return Ge(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,a=t.value,r=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==a||e.options!==n||e.menuIsOpen!==r||e.inputValue!==o){var i=$t(e.value),l=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},s=this.getNextFocusedValue(i),c=this.getNextFocusedOption(l.focusable);this.setState({menuOptions:l,selectValue:i,focusedOption:c,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,a,r,o,i=this.props,l=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!l&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,a=t.getBoundingClientRect(),r=n.getBoundingClientRect(),o=n.offsetHeight/3,r.bottom+o>a.bottom?Kt(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<a.top&&Kt(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,a=n.selectValue,r=n.isFocused,o=this.buildMenuOptions(this.props,a),i=this.props.isMulti,l="first"===e?0:o.focusable.length-1;if(!i){var s=o.focusable.indexOf(a[0]);s>-1&&(l=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[l]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,a=t.isSearchable,r=this.state,o=r.selectValue,i=r.focusedValue;if(n){this.setState({focusedOption:null});var l=o.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var s=o.length-1,c=-1;if(o.length){switch(e){case"previous":c=0===l?0:-1===l?s:l-1;break;case"next":l>-1&&l<s&&(c=l+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:a,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,a=n.focusedOption,r=n.menuOptions,o=r.focusable;if(o.length){var i=0,l=o.indexOf(a);a||(l=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?i=l>0?l-1:o.length-1:"down"===e?i=(l+1)%o.length:"pageup"===e?(i=l-t)<0&&(i=0):"pagedown"===e?(i=l+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Sa(o[i])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ea):Ma(Ma({},Ea),this.props.theme):Ea}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,a=this.selectOption,r=this.props,o=r.classNamePrefix,i=r.isMulti,l=r.isRtl,s=r.options,c=this.state.selectValue,u=this.hasValue();return{cx:Vt.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:u,isMulti:i,isRtl:l,options:s,selectOption:a,setValue:n,selectProps:r,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,a=t.selectValue.indexOf(n);if(a>-1){if(e.indexOf(n)>-1)return n;if(a<e.length)return e[a]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var a=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===a}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:a})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,a=e.focusedValue,r=e.focusedOption,o=this.props,i=o.options,l=o.menuIsOpen,s=o.inputValue,c=o.screenReaderStatus,u=a?function(e){var t=e.focusedValue,n=e.getOptionLabel,a=e.selectValue;return"value ".concat(n(t)," focused, ").concat(a.indexOf(t)+1," of ").concat(a.length,".")}({focusedValue:a,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=r&&l?function(e){var t=e.focusedOption,n=e.getOptionLabel,a=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(a.indexOf(t)+1," of ").concat(a.length,".")}({focusedOption:r,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:s,screenReaderMessage:c({count:this.countOptions()})});return"".concat(u," ").concat(p," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,a=e.inputId,r=e.inputValue,o=e.tabIndex,i=e.form,l=this.components.Input,s=this.state.inputIsHidden,c=a||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return Qe.a.createElement(na,Yt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ut,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:o,form:i,value:""},u));var p=this.commonProps,d=p.cx,m=p.theme,b=p.selectProps;return Qe.a.createElement(l,Yt({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:b,spellCheck:"false",tabIndex:o,form:i,theme:m,type:"text",value:r},u))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,a=t.MultiValueContainer,r=t.MultiValueLabel,o=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,s=this.commonProps,c=this.props,u=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,m=c.inputValue,b=c.placeholder,f=this.state,g=f.selectValue,h=f.focusedValue,y=f.isFocused;if(!this.hasValue()||!u)return m?null:Qe.a.createElement(l,Yt({},s,{key:"placeholder",isDisabled:p,isFocused:y}),b);if(d)return g.map((function(t,i){var l=t===h;return Qe.a.createElement(n,Yt({},s,{components:{Container:a,Label:r,Remove:o},isFocused:l,isDisabled:p,key:e.getOptionValue(t),index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=g[0];return Qe.a.createElement(i,Yt({},s,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,r=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||a||!this.hasValue()||r)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Qe.a.createElement(e,Yt({},t,{innerProps:i,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,r=n.isLoading,o=this.state.isFocused;if(!e||!r)return null;return Qe.a.createElement(e,Yt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var a=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused;return Qe.a.createElement(n,Yt({},a,{isDisabled:r,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,a=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Qe.a.createElement(e,Yt({},t,{innerProps:r,isDisabled:n,isFocused:a}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,a=t.GroupHeading,r=t.Menu,o=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,u=this.commonProps,p=this.state,d=p.focusedOption,m=p.menuOptions,b=this.props,f=b.captureMenuScroll,g=b.inputValue,h=b.isLoading,y=b.loadingMessage,w=b.minMenuHeight,v=b.maxMenuHeight,k=b.menuIsOpen,_=b.menuPlacement,S=b.menuPosition,T=b.menuPortalTarget,E=b.menuShouldBlockScroll,x=b.menuShouldScrollIntoView,M=b.noOptionsMessage,C=b.onMenuScrollToTop,O=b.onMenuScrollToBottom;if(!k)return null;var L,F=function(t){var n=d===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,Qe.a.createElement(c,Yt({},u,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())L=m.render.map((function(t){if("group"===t.type){t.type;var r=zt(t,["type"]),o="".concat(t.key,"-heading");return Qe.a.createElement(n,Yt({},u,r,{Heading:a,headingProps:{id:o},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return F(e)})))}if("option"===t.type)return F(t)}));else if(h){var D=y({inputValue:g});if(null===D)return null;L=Qe.a.createElement(l,u,D)}else{var P=M({inputValue:g});if(null===P)return null;L=Qe.a.createElement(s,u,P)}var j={minMenuHeight:w,maxMenuHeight:v,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:x},N=Qe.a.createElement(sn,Yt({},u,j),(function(t){var n=t.ref,a=t.placerProps,i=a.placement,l=a.maxHeight;return Qe.a.createElement(r,Yt({},u,j,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:i}),Qe.a.createElement(va,{isEnabled:f,onTopArrive:C,onBottomArrive:O},Qe.a.createElement(ha,{isEnabled:E},Qe.a.createElement(o,Yt({},u,{innerRef:e.getMenuListRef,isLoading:h,maxHeight:l}),L))))}));return T||"fixed"===S?Qe.a.createElement(i,Yt({},u,{appendTo:T,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,a=t.isDisabled,r=t.isMulti,o=t.name,i=this.state.selectValue;if(o&&!a){if(r){if(n){var l=i.map((function(t){return e.getOptionValue(t)})).join(n);return Qe.a.createElement("input",{name:o,type:"hidden",value:l})}var s=i.length>0?i.map((function(t,n){return Qe.a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):Qe.a.createElement("input",{name:o,type:"hidden"});return Qe.a.createElement("div",null,s)}var c=i[0]?this.getOptionValue(i[0]):"";return Qe.a.createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?Qe.a.createElement(ta,{"aria-live":"polite"},Qe.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),Qe.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,a=e.SelectContainer,r=e.ValueContainer,o=this.props,i=o.className,l=o.id,s=o.isDisabled,c=o.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return Qe.a.createElement(a,Yt({},p,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),Qe.a.createElement(t,Yt({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:c}),Qe.a.createElement(r,Yt({},p,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Qe.a.createElement(n,Yt({},p,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(Ke.Component);Da.defaultProps=La;n(382);function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}var ja={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Je(this,n)}}Ke.Component;var za,Ya,Ba,Aa=(za=Da,Ba=Ya=function(e){qe(n,e);var t=Pa(n);function n(){var e;He(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var a=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==a?a:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Ge(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return(t=this.props)[e].apply(t,a)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,zt(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return Qe.a.createElement(za,Yt({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(Ke.Component),Ya.defaultProps=ja,Ba);const Ia=wp.i18n.__,Ra=wp.components.SelectControl,Ha=wp.element;Ha.Component,Ha.Fragment;var Wa=function(e){const t=[{value:"",label:Ia("Default"),weight:["100","200","300","400","500","600","700","800","900"],google:!1},{value:"Arial",label:"Arial",weight:["100","200","300","400","500","600","700","800","900"],google:!1},{value:"Helvetica",label:"Helvetica",weight:["100","200","300","400","500","600","700","800","900"],google:!1},{value:"Times New Roman",label:"Times New Roman",weight:["100","200","300","400","500","600","700","800","900"],google:!1},{value:"Georgia",label:"Georgia",weight:["100","200","300","400","500","600","700","800","900"],google:!1}];let n="",a="";Object.keys(Re).map((r,o)=>{t.push({value:r,label:r,weight:Re[r].weight}),r===e.fontFamily.value&&(n=Re[r].weight,a=Re[r].subset)}),""===n&&(n=t[0].weight);const r={value:"default",label:Ia("Default","blockspare")},o=[];n.forEach((function(e){o.push({value:e,label:e})})),o.unshift(r);const i=[];"object"==typeof a&&a.forEach((function(e){i.push({value:e,label:e})}));const l=(t,n,a)=>{let r,o;if("object"==typeof Re[a]){const i=Re[a].weight,l=Re[a].subset;"object"==typeof i&&(i.forEach((function(n){if(t.value!=n)return o=n,r=!0,void e.setAttributes({[e.fontWeight.label]:o});r=!1})),l.forEach((function(t){if(n.value!=t)return o=t,r=!0,void e.setAttributes({[e.fontSubset.label]:o});r=!1})))}},s=(t,n)=>{let a;a=""==n||"object"==typeof Re[n],e.setAttributes({[t.label]:a})};return wp.element.createElement("div",{className:"blockspare-typography-font-family-options"},wp.element.createElement("label",{className:"blockspare-typography-font-family-label"},Ia("Font Family")),wp.element.createElement(Aa,{options:t,value:{value:e.fontFamily.value,label:e.fontFamily.value,weight:o},isMulti:!1,maxMenuHeight:300,onChange:t=>{const n=e.loadGoogleFonts,a=e.fontFamily,r=e.fontWeight,o=e.fontSubset;e.setAttributes({[a.label]:t.label}),s(n,t.label),l(r,o,t.label)},className:"react-select-container",classNamePrefix:"react-select"}),wp.element.createElement(Ra,{label:Ia("Font Weight"),value:e.fontWeight.value,onChange:t=>e.setAttributes({[e.fontWeight.label]:t}),options:o}),wp.element.createElement(Ra,{label:Ia("Font Subset"),value:e.fontSubset.value,onChange:t=>e.setAttributes({[e.fontSubset.label]:t}),options:i}))};const Ga=wp.i18n.__,Ua=wp.components.SelectControl,qa=wp.element,Va=qa.Component,$a=qa.Fragment;var Ja=class extends Va{render(){const e=this.props,t=e.headerTagOption,n=e.setAttributes,a=[{value:"h1",label:Ga("h1","blockspare")},{value:"h2",label:Ga("h2","blockspare")},{value:"h3",label:Ga("h3","blockspare")},{value:"h4",label:Ga("h4","blockspare")},{value:"h5",label:Ga("h5","blockspare")},{value:"h6",label:Ga("h6","blockspare")}];return wp.element.createElement($a,null,wp.element.createElement(Ua,{label:"Title Tag",value:t,options:a.map(({value:e,label:t})=>({value:e,label:t})),onChange:e=>n({headerTagOption:e})}))}};const Xa=wp.i18n.__,Ka=wp.components,Qa=Ka.RangeControl,Za=Ka.ButtonGroup,er=Ka.Button,tr=Ka.TabPanel,nr=Ka.Dashicon,ar=wp.element,rr=(ar.Component,ar.Fragment);var or=function(e){let t;return t="sizeTypes"in e?e.sizeTypes:[{key:"px",name:Xa("px")},{key:"em",name:Xa("em")}],wp.element.createElement(Za,{className:"blockspare-size-type-field","aria-label":Xa("Size Type")},Ae()(t,({name:t,key:n})=>wp.element.createElement(er,{key:n,className:"blockspare-size-btn",isSmall:!0,isPrimary:e.type.value===n,"aria-pressed":e.type.value===n,onClick:()=>e.setAttributes({[e.typeLabel]:n})},t))),wp.element.createElement("div",{className:"blockspare-typography-range-options"},wp.element.createElement("p",{className:"blockspare-font-size-title"},Xa("Font Size","blockspare")),wp.element.createElement(tr,{className:"blockspare-size-type-field-tabs",activeClass:"active-tab",tabs:[{name:"desktop",title:wp.element.createElement(nr,{icon:"desktop"}),className:"blockspare-desktop-tab blockspare-responsive-tabs"},{name:"tablet",title:wp.element.createElement(nr,{icon:"tablet"}),className:"blockspare-tablet-tab blockspare-responsive-tabs"},{name:"mobile",title:wp.element.createElement(nr,{icon:"smartphone"}),className:"blockspare-mobile-tab blockspare-responsive-tabs"}]},t=>{let n;return n="mobile"===t.name?wp.element.createElement(rr,null,wp.element.createElement(Qa,{value:e.sizeMobile.value,onChange:t=>e.setAttributes({[e.sizeMobileLabel]:t}),min:0,max:100,step:e.steps})):"tablet"===t.name?wp.element.createElement(rr,null,wp.element.createElement(Qa,{value:e.sizeTablet.value,onChange:t=>e.setAttributes({[e.sizeTabletLabel]:t}),min:0,max:100,step:e.steps})):wp.element.createElement(rr,null,wp.element.createElement(Qa,{value:e.size.value,onChange:t=>e.setAttributes({[e.sizeLabel]:t}),min:0,max:100,step:e.steps})),wp.element.createElement("div",null,n)}))};n(492);function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const lr=wp.i18n.__,sr=wp.components,cr=sr.Button,ur=sr.Dashicon,pr=(sr.SelectControl,wp.element),dr=pr.Component,mr=pr.Fragment;var br=class extends dr{constructor(){super(...arguments),this.onAdvancedControlClick=this.onAdvancedControlClick.bind(this)}onAdvancedControlClick(){let e=!0,t=lr("Hide Advanced");null!==this.state&&!0===this.state.showAdvancedControls&&(e=!1,t=lr("Advanced")),this.setState({showAdvancedControls:e,showAdvancedControlsLabel:t})}render(){let e,t,n,a,r,o,i;const l=this.props,s=l.disableTag,c=void 0===s||s,u=l.disableFontFamily,p=l.disableFontSize,d=l.disableLineHeight,m=l.disableAdvancedOptions,b=void 0!==m&&m;return!0!==u&&(a=wp.element.createElement(Wa,this.props)),1!=c&&(e=wp.element.createElement(Ja,this.props)),!0!==d&&(n=wp.element.createElement(or,ir({type:this.props.lineHeightType,typeLabel:this.props.lineHeightType.label,sizeMobile:this.props.lineHeightMobile,sizeMobileLabel:this.props.lineHeightMobile.label,sizeTablet:this.props.lineHeightTablet,sizeTabletLabel:this.props.lineHeightTablet.label,size:this.props.lineHeight,sizeLabel:this.props.lineHeight.label,sizeMobileText:lr("Line Height"),sizeTabletText:lr("Line Height"),sizeText:lr("Line Height"),steps:1},this.props))),!0!==p&&(t=wp.element.createElement(or,ir({type:this.props.fontSizeType,typeLabel:this.props.fontSizeType.label,sizeMobile:this.props.fontSizeMobile,sizeMobileLabel:this.props.fontSizeMobile.label,sizeTablet:this.props.fontSizeTablet,sizeTabletLabel:this.props.fontSizeTablet.label,size:this.props.fontSize,sizeLabel:this.props.fontSize.label,sizeMobileText:this.props.fontSizeLabel?this.props.fontSizeLabel:lr("Font Size"),sizeTabletText:this.props.fontSizeLabel?this.props.fontSizeLabel:lr("Font Size"),sizeText:this.props.fontSizeLabel?this.props.fontSizeLabel:lr("Font Size"),steps:1},this.props))),!0!==u&&!0!==p?r=wp.element.createElement(cr,{className:"blockspare-size-btn blockspare-typography-control-btn",isSmall:!0,"aria-pressed":null!==this.state,onClick:this.onAdvancedControlClick},wp.element.createElement(ur,{icon:"admin-generic"})):i=wp.element.createElement(mr,null,t,a,n),null!==this.state&&!0===this.state.showAdvancedControls&&(i=wp.element.createElement("div",{className:"blockspare-typography-advanced"},t,a,n)),!0!==u&&!0!==p&&(o=wp.element.createElement("div",{className:"blockspare-typography-option-actions"},wp.element.createElement("span",null,this.props.label),r,void 0)),wp.element.createElement("div",{className:"blockspare-typography-options"},!b&&wp.element.createElement(mr,null,e,o,i))}};const fr=wp.i18n.__,gr=wp.element.Component,hr=wp.blockEditor.InspectorControls,yr=wp.components,wr=yr.PanelBody,vr=yr.ToggleControl;class kr extends gr{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.buttonBackgroundColor,a=t.buttonTextColor,r=t.buttonSize,o=t.buttonShape,i=t.buttonStyle,l=t.buttonTarget,s=t.borderColor,c=t.borderBtnTextColor,u=t.enableGradient,p=t.backgroundColor1,d=t.backgroundColor2,m=t.gradientAngle,b=t.colorLocation1,f=t.colorLocation2,g=t.btnFontWeight,h=t.btnBorderWidth,y=t.buttonHoverEffect,w=(t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft,t.marginTop),v=t.marginBottom,k=t.buttonFontSize,_=t.buttonFontFamily,T=t.buttonFontWeight,E=t.buttonFontSubset,x=t.buttonFontSizeType,M=t.buttonFontSizeMobile,C=t.buttonFontSizeTablet,O=t.buttonLoadGoogleFonts,L=e.attributes,F=e.setAttributes;return wp.element.createElement(hr,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"button"}),wp.element.createElement(wr,{title:fr("Button Settings","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonTarget:!1,buttonTarget:l,onChangeButtonTarget:e=>F({buttonTarget:!l}),enableGradient:u,onChangeGradient:e=>F({enableGradient:e}),enableButtonSize:!0,buttonSize:r,onChangeButtonSize:e=>F({buttonSize:e}),enableButtonShape:!0,buttonShape:o,onChangeButtonShape:e=>F({buttonShape:e}),buttonBackgroundColor:n,onChangeButtonColor:e=>F({buttonBackgroundColor:e}),buttonTextColor:a,onChangeButtonTextColor:e=>F({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:i,onChangeBorderStyle:e=>F({buttonStyle:e}),buttonHoverEffect:y,onchangeButtonHoverEffect:e=>F({buttonHoverEffect:e}),borderColor:s,onchangeBorderColor:e=>F({borderColor:e}),borderBtnTextColor:c,onChangeBorderBtnTextColor:e=>F({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:h,onchangebtnBorderWidth:e=>F({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:g,onchangeBtnFontWeight:e=>F({btnFontWeight:e})}),wp.element.createElement(wr,{title:fr("Typography Settings","blockspare")},wp.element.createElement(br,{label:fr("Button Fonts Settings"),attributes:L,setAttributes:F,loadGoogleFonts:{value:O,label:fr("buttonLoadGoogleFonts")},fontFamily:{value:_,label:fr("buttonFontFamily")},fontWeight:{value:T,label:fr("buttonFontWeight")},fontSubset:{value:E,label:fr("buttonFontSubset")},fontSizeType:{value:x,label:fr("buttonFontSizeType")},fontSize:{value:k,label:fr("buttonFontSize")},fontSizeMobile:{value:M,label:fr("buttonFontSizeMobile")},fontSizeTablet:{value:C,label:fr("buttonFontSizeTablet")},disableLineHeight:!0})),"none"===i&&wp.element.createElement(vr,{label:fr("Enable Gradient","blockspare"),checked:u,onChange:()=>this.props.setAttributes({enableGradient:!u})}),u&&"none"===i&&wp.element.createElement(Oe,{backgroundColor1:p,onChangeBackgroundColor1:e=>F({backgroundColor1:e}),backgroundColor2:d,onChangeBackgroundColor2:e=>F({backgroundColor2:e}),gradientAngle:m,onChangeGradientAngle:e=>F({gradientAngle:e}),colorLocation1:b,onChangeColorLocation1:e=>F({colorLocation1:e}),colorLocation2:f,onChangeColorLocation2:e=>F({colorLocation2:e})})),wp.element.createElement(wr,{title:fr("Block Gap Settings","blockspare"),initialOpen:!1},wp.element.createElement(wr,{title:fr("Margin Settings","blockspare"),initialOpen:!0},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:w,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>F({marginTop:e}),marginEnableBottom:!0,marginBottom:v,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>F({marginBottom:e})})))))}}var _r=n(9),Sr=n.n(_r),Tr=n(276),Er=n.n(Tr);wp.i18n.sprintf;const xr=(e,t=!1)=>{const n=e.replace(/\/\*.*?\*\//g,"").replace(/\n\s*\n/g,"").replace(/[\n\r \t]/g," ").replace(/ +/g," ").replace(/ ?([,:;{}]) ?/g,"$1").replace(/[^\}\{]+\{\}/g,"").replace(/[^\}\{]+\{\}/g,"").replace(/;}/g,"}").trim();return t?n.replace(/\s?\!important/g,"").replace(/([;\}])/g," !important$1").replace(/\} !important\}/g,"}}").trim():n},Mr=(e,t="",n="",a="")=>e.trim().replace(/[\n\s\t]+/g," ").split(",").map(e=>{let r="";return r=n&&t?n&&!t?`.${n} ${e.trim()}`:`.${n} ${e.trim()}`.replace(new RegExp(`(.${n}) (.${t}(#|:|\\[|\\.|\\s|$))`,"g"),"$1$2"):e,a?`${a} ${r}`:r}).join(", ");function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fr=(e,t="",n="",a=!1)=>Object.keys(e).reduce((r,o)=>{const i=Mr(o,t,n,a?"#editor":"");return Or(Or({},r),{},{[i]:e[o]})},{}),Dr=e=>xr(Object.keys(e).reduce((t,n)=>{const a=Object.keys(e[n]).reduce((t,a)=>{const r=e[n][a];if(void 0===r)return t;return`${t}\n\t${a.replace(/^(--?)?(.*?$)/,(e,t,n)=>`${t||""}${Er()(n)}`)}: ${r};`},"");return`${t}\n\n${n} {${a}\n}`},"").trim());var Pr=e=>{const t=e.style,n=void 0===t?{}:t,a=e.editorMode,r=void 0!==a&&a,o=e.blockUniqueClassName,i=void 0===o?"":o,l=e.blockMainClassName,s=void 0===l?"":l,c=e.breakTablet,u=void 0===c?1025:c,p=e.breakMobile,d=((e,t="",n="",a=1025,r=768,o=!1)=>{const i=[],l=Sr()(e,["tablet","mobile","editor"]);if(Object.keys(l).length){const e=Fr(l,t,n,o);i.push(Dr(e))}if(void 0!==e.tablet){const r=Fr(e.tablet,t,n,o),l=Dr(r);l&&i.push(`\n@media screen and (max-width: ${a}px) {\n${l} }`)}if(void 0!==e.mobile){const a=Fr(e.mobile,t,n,o),l=Dr(a);l&&i.push(`\n@media screen and (max-width: ${r}px) {\n${l} }`)}if(o&&void 0!==e.editor){const a=Fr(e.editor,t,n,o);i.push(Dr(a))}return xr(i.join(""))})(n,s,i,u,void 0===p?768:p,r);return d?wp.element.createElement("style",null,d):null},jr=n(5),Nr=n.n(jr);function zr(){return(zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Br=wp.hooks.applyFilters,Ar=wp.element.Component,Ir=wp.compose.createHigherOrderComponent;var Rr=(e,t={})=>Ir(n=>{var a,r;return r=a=class extends Ar{render(){const a=i()([this.props.className,this.props.attributes.uniqueClass]),r=this.props.blockName,o=Br(`blockspare.${r}.styles`,e(this.props),this.props),l=wp.element.createElement(Pr,{blockUniqueClassName:this.props.attributes.uniqueClass,blockMainClassName:this.props.className,style:o,editorMode:t.editorMode||!1});return wp.element.createElement(n,zr({},this.props,{className:a,styles:l}))}},Yr(a,"propTypes",{attributes:Nr.a.shape({uniqueClass:Nr.a.string.isRequired}),blockName:Nr.a.string.isRequired,mainClassName:Nr.a.string.isRequired}),Yr(a,"defaultProps",{attributes:{},blockName:"",className:"",mainClassName:""}),r},"withBlockStyles");wp.hooks.addFilter;const Hr=wp.element.Component,Wr=wp.compose.createHigherOrderComponent;var Gr=Wr(e=>{var t,n,a,r,o;return n=t=class extends Hr{componentDidMount(){const e=this.props,t=e.attributes,n=e.setAttributes,a=e.clientId,r="blockspare-"+a.substring(0,15);void 0!==t.uniqueClass&&t.uniqueClass===r||n({uniqueClass:r})}render(){return wp.element.createElement(e,this.props)}},o={attributes:{},clientId:"",setAttributes:()=>{}},(r="defaultProps")in(a=t)?Object.defineProperty(a,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[r]=o,n},"withUniqueClass"),Ur=n(1),qr=n.n(Ur);var Vr=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.marginTop,r=t.marginBottom,o=t.buttonStyle,i=t.enableGradient,l=t.backgroundColor1,s=t.backgroundColor2,c=t.gradientAngle,u=t.colorLocation1,p=t.colorLocation2,d=(t.btnFontWeight,t.btnBorderWidth),m=t.borderColor,b=t.buttonBackgroundColor,f=t.borderBtnTextColor,g=t.buttonTextColor,h=t.buttonFontSize,y=t.buttonFontFamily,w=t.buttonFontWeight,v=t.buttonFontSizeType,k=t.buttonFontSizeMobile,_=t.buttonFontSizeTablet,S=[];if(S.push({".blockspare-block-button":{textAlign:n,marginTop:a?a+"px":"0px",marginBottom:r?r+"px":"0px"}}),"none"===o)if(1==i){const e=c+"deg",t=u+"%",n=p+"%";S.push({".blockspare-block-button span":{color:g||"#fff",borderWidth:d+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${l||"#3B1A5B"} ${t},${s||"#8B249C"} ${n})`}})}else S.push({".blockspare-block-button span":{color:g||"#fff",borderWidth:d+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:b||"#3c1a5b"}});else S.push({".blockspare-block-button span":{color:f||"#404040"},".blockspare-button":{borderColor:m||"#3c1a5b",borderStyle:o,borderWidth:d+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return S.push({".blockspare-block-button span":{fontSize:h+v,fontFamily:y,fontWeight:w},tablet:{".blockspare-block-button span":{fontSize:_+v}},mobile:{".blockspare-block-button span":{fontSize:k+v}}}),qr.a.all(S)},$r=n(277),Jr=n.n($r);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){Qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}if(void 0===Zr)var Zr=[];const eo=wp.element.Component,to="inactive",no="active",ao="loading";class ro extends eo{constructor(e){super(e),this.state={status:void 0},this.handleLoading=()=>{this.setState({status:ao})},this.addFont=e=>{Zr.includes(e)||Zr.push(e)},this.handleActive=()=>{this.setState({status:no})},this.handleInactive=()=>{this.setState({status:to})},this.loadFonts=()=>{Zr.includes(this.props.config.google.families[0])||(Jr.a.load(Kr(Kr({},this.props.config),{},{loading:this.handleLoading,active:this.handleActive,inactive:this.handleInactive})),this.addFont(this.props.config.google.families[0]))}}componentDidMount(){this.loadFonts()}componentDidUpdate(e,t){const n=this.props,a=n.onStatus,r=n.config;t.status!==this.state.status&&a(this.state.status),e.config!==r&&this.loadFonts()}render(){return this.props.children||null}}ro.propTypes={config:Nr.a.object.isRequired,children:Nr.a.element,onStatus:Nr.a.func.isRequired},ro.defaultProps={onStatus:()=>{}};var oo=ro;const io=wp.element,lo=io.Fragment,so=io.Component,co=wp.compose.compose,uo=wp.i18n.__,po=wp.blockEditor,mo=po.RichText,bo=po.AlignmentToolbar,fo=po.BlockControls,go=po.URLInput,ho=wp.components,yo=ho.IconButton,wo=ho.Dashicon;var vo=co(Gr,Rr(Vr))(class extends so{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.sectionAlignment,o=t.buttonSize,l=t.buttonShape,s=t.buttonHoverEffect,c=t.buttonLoadGoogleFonts,u=t.buttonFontFamily,p=t.buttonFontWeight,d=e.className,m=e.isSelected,b=e.setAttributes;e.attributes;let f;if(1==c){const e={google:{families:[u+(p?":"+p:"")]}};f=wp.element.createElement(oo,{config:e})}const g=i()([d,"blockspare-block-button-wrap"]);return wp.element.createElement(lo,null,wp.element.createElement(fo,{key:"controls"},wp.element.createElement(bo,{value:r,onChange:e=>{b({sectionAlignment:e})}})),wp.element.createElement(kr,this.props),wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-button"},wp.element.createElement("a",{href:"#"},wp.element.createElement(mo,{tagName:"span",placeholder:uo("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:""+n,allowedFormats:[],className:i()("blockspare-button",l,o,s),onChange:e=>b({buttonText:e})}))),m&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+r,onSubmit:e=>e.preventDefault(),style:{textAlign:r}},wp.element.createElement(wo,{icon:"admin-links"}),wp.element.createElement(go,{className:"button-url",value:a,onChange:e=>b({buttonUrl:e})}),wp.element.createElement(yo,{icon:"editor-break",label:uo("Buy","blockspare"),type:"submit"}))),f)}});wp.i18n.__;const ko=wp.element.Component,_o=wp.compose.compose,So=wp.blockEditor.RichText;var To=_o(Gr,Rr(Vr))(class extends ko{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonShape,o=t.buttonSize,l=t.buttonTarget,s=t.buttonHoverEffect,c=e.className,u=i()([c,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",r,o,s)},wp.element.createElement(So.Content,{tagName:"span",value:n}))))}});var Eo={sectionAlignment:{type:"string",default:"center"},uniqueClass:{type:"string",default:""},buttonText:{type:"string",default:"Get Started"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonBackgroundColor:{type:"string",default:"#3c1a5b"},buttonTextColor:{type:"string",default:"#fff"},buttonSize:{type:"string",default:"blockspare-button-size-small"},buttonShape:{type:"string",default:"blockspare-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},buttonStyle:{type:"string",default:"none"},borderColor:{type:"string",default:"#3c1a5b"},borderBtnTextColor:{type:"string",default:"#404040"},enableGradient:{type:"boolean",default:!1},backgroundColor1:{type:"string",default:"#3B1A5B"},backgroundColor2:{type:"string",default:"#8B249C"},gradientAngle:{type:"number",default:-90},colorLocation1:{type:"number",default:30},colorLocation2:{type:"number",default:70},btnBorderWidth:{type:"number",default:1},btnFontWeight:{type:"string",default:"normal"},buttonHoverEffect:{type:"string",default:""},buttonFontSize:{type:"number",default:16},buttonFontFamily:{type:"string",default:"Default"},buttonFontWeight:{type:"string"},buttonFontSubset:{type:"string"},buttonFontSizeType:{type:"string",default:"px"},buttonFontSizeMobile:{type:"number"},buttonFontSizeTablet:{type:"number"},buttonLoadGoogleFonts:{type:"boolean",default:!1}};var xo=e=>{let t="";if("none"===e.buttonStyle)if(1==e.enableGradient){const n=e.gradientAngle+"deg",a=e.colorLocation1+"%",r=e.colorLocation2+"%";t={backgroundImage:`linear-gradient(${n},${e.backgroundColor1?e.backgroundColor1:"#3B1A5B"} ${a},${e.backgroundColor2?e.backgroundColor2:"#8B249C"} ${r})`,color:e.buttonTextColor?e.buttonTextColor:"#fff",fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"}}else t={color:e.buttonTextColor?e.buttonTextColor:"#fff",backgroundColor:e.buttonBackgroundColor?e.buttonBackgroundColor:"#3c1a5b",fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"};else t={color:e.borderBtnTextColor?e.borderBtnTextColor:"#404040",backgroundColor:"transparent",borderColor:e.borderColor?e.borderColor:"#3c1a5b",borderStyle:e.buttonStyle,fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"};return t};var Mo=e=>{let t="";if("none"===e.buttonStyle)if(1==e.enableGradient){const n=e.gradientAngle+"deg",a=e.colorLocation1+"%",r=e.colorLocation2+"%";t={backgroundImage:`linear-gradient(${n},${e.backgroundColor1?e.backgroundColor1:"#3B1A5B"} ${a},${e.backgroundColor2?e.backgroundColor2:"#8B249C"} ${r})`,color:e.buttonTextColor?e.buttonTextColor+"!important":"#fff!important",fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"}}else t={color:e.buttonTextColor?e.buttonTextColor+"!important":"#fff!important",backgroundColor:e.buttonBackgroundColor?e.buttonBackgroundColor:"#3c1a5b",fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"};else t={color:e.borderBtnTextColor?e.borderBtnTextColor+"!important":"#404040!important",backgroundColor:"transparent",borderColor:e.borderColor?e.borderColor:"#3c1a5b",borderStyle:e.buttonStyle,fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"};return t};function Co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach((function(t){Lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fo=e=>{const t=e.attributes.sectionAlignment,n=[];return n.push({".blockspare-block-button":{textAlign:t},".blockspare-button":Oo({},Mo(e.attributes))}),qr.a.all(n)};wp.i18n.__;const Do=wp.element.Component,Po=wp.compose.compose,jo=wp.blockEditor.RichText;var No=Po(Gr,Rr(Fo))(class extends Do{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonShape,o=t.buttonSize,l=t.buttonTarget,s=t.buttonHoverEffect,c=e.className,u=i()([c,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",r,o,s)},wp.element.createElement(jo.Content,{value:n}))))}});var zo=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.marginTop,r=t.marginBottom,o=t.buttonStyle,i=t.enableGradient,l=t.backgroundColor1,s=t.backgroundColor2,c=t.gradientAngle,u=t.colorLocation1,p=t.colorLocation2,d=t.btnFontWeight,m=t.btnBorderWidth,b=t.borderColor,f=t.buttonBackgroundColor,g=t.borderBtnTextColor,h=t.buttonTextColor,y=[];if(y.push({".blockspare-block-button":{textAlign:n,marginTop:a?a+"px":"0px",marginBottom:r?r+"px":"0px"}}),"none"===o)if(1==i){const e=c+"deg",t=u+"%",n=p+"%";y.push({".blockspare-block-button span":{color:h||"#fff",fontWeight:d,borderWidth:m+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${l||"#3B1A5B"} ${t},${s||"#8B249C"} ${n})`}})}else y.push({".blockspare-block-button span":{color:h||"#fff",fontWeight:d,borderWidth:m+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:f||"#3c1a5b"}});else y.push({".blockspare-block-button span":{color:g||"#404040",borderColor:b||"#3c1a5b",borderStyle:o,fontWeight:d,borderWidth:m+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return qr.a.all(y)};wp.i18n.__;const Yo=wp.element.Component,Bo=wp.compose.compose,Ao=wp.blockEditor.RichText;var Io=Bo(Gr,Rr(zo))(class extends Yo{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonShape,o=t.buttonSize,l=t.buttonTarget,s=t.buttonHoverEffect,c=e.className,u=i()([c,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",r,o,s)},wp.element.createElement(Ao.Content,{tagName:"span",value:n}))))}});function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Wo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const Go=wp.blockEditor,Uo=Go.RichText;Go.AlignmentToolbar,Go.BlockControls,Go.URLInput;var qo=[{attributes:Ho({marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30}},Eo),save:function(e){const t=e.attributes,n=(t.sectionAlignment,t.buttonText),a=t.buttonUrl,r=t.buttonShape,o=t.buttonSize,l=t.buttonTarget,s=t.buttonHoverEffect,c=Ho({},xo(e.attributes));return wp.element.createElement("div",{style:{textAlign:e.attributes.sectionAlignment},className:i()(e.attributes.className,"blockspare-block-button")},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",r,o,s),style:c},wp.element.createElement(Uo.Content,{value:n})))}},{attributes:Ho(Ho({},Eo),{},{marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30}}),save:e=>wp.element.createElement(No,e)},{attributes:Ho(Ho({},Eo),{},{marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30}}),save:e=>wp.element.createElement(Io,e)}];function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){Jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xo=ge.name,Ko=ge.category,Qo=wp.i18n.__;(0,wp.blocks.registerBlockType)(Xo,{title:Qo("BS Button","blockspare"),description:Qo("Prompt visitors to take action with multiple buttons, side by side.","blockspare"),category:Ko,icon:r.button,attributes:$o($o({},Eo),ge.attributes),keywords:[Qo("block","blockspare"),Qo("button","blockspare"),Qo("cta","blockspare"),Qo("call to action","blockspare")],example:{attributes:{sectionAlignment:"center",buttonText:Qo("Get Started","blockspare"),buttonBackgroundColor:"#3c1a5b",buttonTextColor:"#fff",buttonSize:"blockspare-button-size-small",buttonShape:"blockspare-button-shape-rounded"}},edit:vo,save:To,deprecated:qo});n(493);var Zo=n(66);var ei={className:{type:"string"},uniqueClass:{type:"string",default:""},align:{type:"string",default:"center"},sectionAlignment:{type:"string",default:"center"},headerTitle:{type:"string",default:"Enter Title"},titleFontSize:{type:"number",default:32},subtitleFontSize:{type:"number",default:18},headerSubTitle:{type:"string",default:"Enter Subtitle"},headerboxColor:{type:"string",default:"transparent"},headertitleColor:{type:"string",default:"#404040"},headersubtitleColor:{type:"string",default:"#6d6d6d"},headertitleDashColor:{type:"string",default:"#6d6d6d"},headerpaddingTop:{type:"number",default:10},headerpaddingRight:{type:"number",default:20},headerpaddingBottom:{type:"number",default:10},headerpaddingLeft:{type:"number",default:20},headermarginTop:{type:"number",default:30},headermarginBottom:{type:"number",default:30},headerlayoutOption:{type:"string",default:"blockspare-style1"},headerTagOption:{type:"string",default:"h2"},titlePaddingTop:{type:"number",default:5},titlePaddingBottom:{type:"number",default:5},subtitlePaddingTop:{type:"number",default:5},subtitlePaddingBottom:{type:"number",default:5},dashColor:{type:"string",default:"#8b249c"},titleFontFamily:{type:"string",default:"Default"},titleFontWeight:{type:"string"},titleFontSubset:{type:"string"},titleFontSizeType:{type:"string",default:"px"},titleFontSizeMobile:{type:"number"},titleFontSizeTablet:{type:"number"},titleLoadGoogleFonts:{type:"boolean",default:!1},subTitleFontSize:{type:"number",default:18},subTitleFontFamily:{type:"string",default:"Default"},subTitleFontWeight:{type:"string"},subTitleFontSubset:{type:"string"},subTitleFontSizeType:{type:"string",default:"px"},subTitleFontSizeMobile:{type:"number"},subTitleFontSizeTablet:{type:"number"},subTitleLoadGoogleFonts:{type:"boolean",default:!1}};var ti={enableBoxShadow:{type:"boolean",default:!1},xOffset:{type:"number",default:0},yOffset:{type:"number",default:6},blur:{type:"number",default:12},spread:{type:"number",default:-10},shadowColor:{type:"string",default:"#000"}};var ni={paddingTop:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingLeft:{type:"number",default:20},marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30}};const ai=wp.i18n.__,ri=wp.element.Fragment,oi=wp.components,ii=(oi.ToggleControl,oi.PanelBody),li=(oi.SelectControl,oi.RangeControl),si=wp.blockEditor.PanelColorSettings;function ci(e){const t=e.enableBlockGaps,n=void 0===t||t,a=e.enableColors,r=void 0===a||a,o=e.enablecontentgaps,i=void 0===o||o,l=(e.enableheaderboxColor,e.headerboxColor),s=e.onChangeboxcolor,c=void 0===s?()=>{}:s,u=e.headerlayoutOption,p=e.dashColor,d=e.onChangeDashColor,m=void 0===d?()=>{}:d,b=e.headertitleColor,f=e.onChangetitlecolor,g=void 0===f?()=>{}:f,h=e.titlePaddingTop,y=e.onChangetitlePaddingTop,w=void 0===y?()=>{}:y,v=e.titlePaddingBottom,k=e.onChangetitlePaddingBottom,_=void 0===k?()=>{}:k,S=e.headersubtitleColor,T=e.onChangesubtitlecolor,E=void 0===T?()=>{}:T,x=e.subtitlePaddingTop,M=e.onChangesubtitlePaddingTop,C=void 0===M?()=>{}:M,O=e.subtitlePaddingBottom,L=e.onChangesubtitlePaddingBottom,F=void 0===L?()=>{}:L,D=e.headerpaddingTop,P=e.onChangeheaderpaddingTop,j=void 0===P?()=>{}:P,N=e.headerpaddingRight,z=e.onChangeheaderpaddingRight,Y=void 0===z?()=>{}:z,B=e.headerpaddingBottom,A=e.onChangeheaderpaddingBottom,I=void 0===A?()=>{}:A,R=e.headerpaddingLeft,H=e.onChangeheaderpaddingLeft,W=void 0===H?()=>{}:H,G=e.headermarginTop,U=e.onChangeheadermarginTop,q=void 0===U?()=>{}:U,V=e.headermarginBottom,$=e.onChangeheadermarginBottom,J=void 0===$?()=>{}:$;ai("h1","blockspare"),ai("h2","blockspare"),ai("h3","blockspare"),ai("h4","blockspare"),ai("h5","blockspare"),ai("h6","blockspare");return wp.element.createElement(ri,null,1==r&&wp.element.createElement(ii,{title:ai("Color Settings","blockspare"),initialOpen:!1},wp.element.createElement(si,{title:ai("Title Settings","blockspare"),initialOpen:!0,colorSettings:[{value:l,onChange:c,label:ai("Background Color","blockspare")},{value:b,onChange:g,label:ai("Title Color","blockspare")},{value:S,onChange:E,label:ai("Subtitle Color","blockspare")}]}),"blockspare-style1"!==u&&"blockspare-style3"!==u&&wp.element.createElement(si,{title:ai("Dash color","blockspare"),initialOpen:!0,colorSettings:[{value:p,onChange:m,label:ai("Dash Color","blockspare")}]})),1==i&&wp.element.createElement(ii,{title:ai("Title Subtitle Gaps","blockspare"),initialOpen:!1},wp.element.createElement(ii,{title:ai("Title Gaps","blockspare"),initialOpen:!1},wp.element.createElement(li,{label:ai("Padding Top","blockspare"),value:h,onChange:w,min:0,max:100}),wp.element.createElement(li,{label:ai("Padding Bottom","blockspare"),value:v,onChange:_,min:0,max:100})),wp.element.createElement(ii,{title:ai("Subtitle Gaps","blockspare"),initialOpen:!1},wp.element.createElement(li,{label:ai("Padding Top","blockspare"),value:x,onChange:C,min:0,max:100}),wp.element.createElement(li,{label:ai("Padding Bottom","blockspare"),value:O,onChange:F,min:0,max:100}))),1==n&&wp.element.createElement(ii,{title:ai("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(ii,{title:ai("Padding Settings","blockspare"),initialOpen:!1},wp.element.createElement(li,{label:ai("Header Padding Top","blockspare"),value:D,onChange:j,min:0,max:100}),wp.element.createElement(li,{label:ai("Header Padding Left","blockspare"),value:R,onChange:W,min:0,max:100}),wp.element.createElement(li,{label:ai("Header Padding Bottom","blockspare"),value:B,onChange:I,min:0,max:100}),wp.element.createElement(li,{label:ai("Header Padding Right","blockspare"),value:N,onChange:Y,min:0,max:100})),wp.element.createElement(ii,{title:ai("Margin Settings","blockspare"),initialOpen:!1},wp.element.createElement(li,{label:ai("Margin Top","blockspare"),value:G,onChange:q,min:0,max:100}),wp.element.createElement(li,{label:ai("Margin Bottom","blockspare"),value:V,onChange:J,min:0,max:100}))))}let ui=blockspare_globals.srcUrl+"/dist";var pi=function({imageFile:e,imageHoverFile:t,imageWidth:n="",imageHeight:a="",label:r}){const o=e?e.match(/https?:/i)?e:ui?`${ui}/${e}`:e:"",i=t?t.match(/https?:/i)?t:ui?`${ui}/${t}`:t:null;return wp.element.createElement("span",{className:"blockspare-design-panel-item"},i&&wp.element.createElement("img",{className:"blockspare-design-panel-item__hover-image",src:i,alt:r,width:n,height:a}),o&&wp.element.createElement("img",{className:"blockspare-design-panel-item__image",src:o,alt:r,width:n,height:a}),wp.element.createElement("span",{className:"design-label"},r))};function di(){return(di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gi=wp.components.RadioControl;var hi=function(e){const t=e.selected,n=e.options,a=e.onChange,r=e.className,o=void 0===r?"":r,l=n.map(e=>bi(bi({},e),{},{label:wp.element.createElement(pi,{imageFile:e.image,imageHoverFile:e.hoverImage,imageWidth:e.imageWidth,imageHeight:e.imageHeight,isPro:e.isPro,label:e.label}),title:e.label,value:e.value}));return wp.element.createElement("div",{className:i()(o,"blockspare-design-control-wrapper components-base-control")},wp.element.createElement("div",{className:"components-base-control__label"},e.label),wp.element.createElement(gi,di({},Sr()(e,["label"]),{className:"blockspare-design-control",selected:t,options:l,onChange:a})))};function yi(){return(yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const wi=wp.i18n.__,vi=wp.components.BaseControl,ki=wp.hooks.applyFilters,_i={"double-wave":{image:"images/double-wave.png",label:wi("Double Wave","blockspare"),value:"double-wave"},wavy:{image:"images/wavy.png",label:wi("Wavy","blockspare"),value:"wavy"},sloped:{image:"images/sloped.png",label:wi("Sloped","blockspare"),value:"sloped"},grow:{image:"images/grow.png",label:wi("Grow","blockspare"),value:"grow"},angled:{image:"images/angled.png",label:wi("Angled","blockspare"),value:"angled"}},Si=e=>{const t=Object.keys(_i).filter(t=>!e.excludeDesigns.includes(t)).map(e=>_i[e]);return wp.element.createElement(vi,{className:"blockspare-design-separator-control",id:"blockspare-design-separator-control",label:e.label,help:e.help},wp.element.createElement(hi,yi({options:ki("blockspare.separator.edit.layouts",t,e)},Sr()(e,["label","help"]))))};Si.defaultProps={label:"",help:"",excludeDesigns:[]};var Ti=Si;function Ei(){return(Ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const xi=wp.i18n.__,Mi="blockspare".i18n,Ci=wp.components.PanelBody;var Oi=function(e){const t=e.options,n=e.selected,a=e.title,r=void 0===a?xi("Layout",Mi):a,o=e.selectedOptionInTitle,l=void 0===o||o,s=e.help,c=void 0===s?"":s,u=e.className,p=void 0===u?"":u,d=e.initialOpen,m=void 0===d||d,b=t?t.find(e=>e.value===n):null,f=b?`${r} – ${b.label}`:r,g=i()(["blockspare-design-panel-body",p]);return wp.element.createElement(Ci,Ei({title:l?wp.element.createElement("span",null,f):r,className:g,initialOpen:m},Sr()(e,["help"])),c&&wp.element.createElement("p",{className:"components-base-control__help"},c),t&&wp.element.createElement(hi,Sr()(e,["help","title"])),e.children)};const Li=wp.hooks.applyFilters,Fi=wp.i18n.__;function Di(e){const t=e.headerlayoutOption,n=e.onChangeHeaderLayput,a=void 0===n?()=>{}:n;return wp.element.createElement(Oi,{initialOpen:!1,selected:t,options:Li("blockspare.cta.edit.layouts",[{label:Fi("Layout 1","blockspare"),value:"blockspare-style1",image:"images/blockspare-header-layout-1.png"},{label:Fi("Layout 2","blockspare"),value:"blockspare-style2",image:"images/blockspare-header-layout-2.png"},{label:Fi("Layout 3","blockspare"),value:"blockspare-style3",image:"images/blockspare-header-layout-3.png"}]),onChange:a})}const Pi=wp.i18n.__,ji=wp.element.Component,Ni=wp.blockEditor,zi=Ni.InspectorControls,Yi=Ni.MediaUpload,Bi=Ni.PanelColorSettings,Ai=wp.components,Ii=Ai.RangeControl,Ri=Ai.PanelBody,Hi=Ai.IconButton,Wi=Ai.ToggleControl;Ai.SelectControl;class Gi extends ji{render(){const e=this.props,t=e.attributes,n=t.opacityRatio,a=t.ctaBackGroundColor,r=t.showImage,o=t.imgURL,i=t.imgID,l=t.imgAlt,s=t.buttonBackgroundColor,c=t.buttonTextColor,u=t.buttonSize,p=t.buttonStyle,d=t.buttonShape,m=t.buttonTarget,b=t.paddingTop,f=t.paddingRight,g=t.paddingBottom,h=t.paddingLeft,y=t.marginTop,w=t.marginBottom,v=t.titleFontSize,k=(t.subtitleFontSize,t.headerTagOption),_=t.headertitleColor,T=t.headersubtitleColor,E=t.headerlayoutOption,x=t.titlePaddingTop,M=t.titlePaddingBottom,C=t.subtitlePaddingTop,O=t.subtitlePaddingBottom,L=t.headerboxColor,F=t.dashColor,D=t.borderColor,P=t.borderBtnTextColor,j=(t.backgroundFix,t.enableGradient),N=t.backgroundColor1,z=t.backgroundColor2,Y=t.gradientAngle,B=t.colorLocation1,A=t.colorLocation2,I=(t.borderRadius,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.btnFontWeight),R=t.btnBorderWidth,H=t.buttonHoverEffect,W=t.titleLoadGoogleFonts,G=t.titleFontFamily,U=t.titleFontWeight,q=t.titleFontSubset,V=t.titleFontSizeType,$=t.titleFontSizeMobile,J=t.titleFontSizeTablet,X=t.subTitleFontSize,K=t.subTitleLoadGoogleFonts,Q=t.subTitleFontFamily,Z=t.subTitleFontWeight,ee=t.subTitleFontSubset,te=t.subTitleFontSizeType,ne=t.subTitleFontSizeMobile,ae=t.subTitleFontSizeTablet,re=t.buttonFontSize,oe=t.buttonFontFamily,ie=t.buttonFontWeight,le=t.buttonFontSubset,se=t.buttonFontSizeType,ce=t.buttonFontSizeMobile,ue=t.buttonFontSizeTablet,pe=t.buttonLoadGoogleFonts,de=e.attributes,me=e.setAttributes,be=()=>{me({imgID:null,imgURL:null,imgAlt:null})};Pi("Layout 1","blockspare"),Pi("Layout 2","blockspare"),Pi("Layout 3","blockspare");return wp.element.createElement(zi,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"call-to-action"}),wp.element.createElement(Ri,{title:Pi("Header Settings","blockspare"),initialOpen:!1},wp.element.createElement(Di,{headerlayoutOption:E,onChangeHeaderLayput:e=>me({headerlayoutOption:e})}),wp.element.createElement(Ri,{title:Pi("Typography Settings","blockspare")},wp.element.createElement(br,{label:Pi("Title Fonts Settings"),attributes:de,setAttributes:me,loadGoogleFonts:{value:W,label:Pi("titleLoadGoogleFonts")},fontFamily:{value:G,label:Pi("titleFontFamily")},fontWeight:{value:U,label:Pi("titleFontWeight")},fontSubset:{value:q,label:Pi("titleFontSubset")},fontSizeType:{value:V,label:Pi("titleFontSizeType")},fontSize:{value:v,label:Pi("titleFontSize")},fontSizeMobile:{value:$,label:Pi("titleFontSizeMobile")},fontSizeTablet:{value:J,label:Pi("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:k}),wp.element.createElement(br,{label:Pi("Subtitle Fonts Settings"),attributes:de,setAttributes:me,loadGoogleFonts:{value:K,label:Pi("subTitleLoadGoogleFonts")},fontFamily:{value:Q,label:Pi("subTitleFontFamily")},fontWeight:{value:Z,label:Pi("subTitleFontWeight")},fontSubset:{value:ee,label:Pi("subTitleFontSubset")},fontSizeType:{value:te,label:Pi("subTitleFontSizeType")},fontSize:{value:X,label:Pi("subTitleFontSize")},fontSizeMobile:{value:ne,label:Pi("subTitleFontSizeMobile")},fontSizeTablet:{value:ae,label:Pi("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0})),wp.element.createElement(ci,{enableBlockGaps:!1,headerboxColor:L,onChangeboxcolor:e=>me({headerboxColor:e}),dashColor:F,headerlayoutOption:E,onChangeDashColor:e=>me({dashColor:e}),headertitleColor:_,onChangetitlecolor:e=>me({headertitleColor:e}),titlePaddingTop:x,onChangetitlePaddingTop:e=>me({titlePaddingTop:e}),titlePaddingBottom:M,onChangetitlePaddingBottom:e=>me({titlePaddingBottom:e}),headersubtitleColor:T,onChangesubtitlecolor:e=>me({headersubtitleColor:e}),subtitlePaddingTop:C,onChangesubtitlePaddingTop:e=>me({subtitlePaddingTop:e}),subtitlePaddingBottom:O,onChangesubtitlePaddingBottom:e=>me({subtitlePaddingBottom:e})})),wp.element.createElement(Ri,{title:Pi("Button Settings","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonTarget:!1,buttonTarget:m,onChangeButtonTarget:e=>me({buttonTarget:!m}),enableGradient:j,onChangeGradient:e=>me({enableGradient:e}),enableButtonSize:!0,buttonSize:u,onChangeButtonSize:e=>me({buttonSize:e}),enableButtonShape:!0,buttonShape:d,onChangeButtonShape:e=>me({buttonShape:e}),buttonBackgroundColor:s,onChangeButtonColor:e=>me({buttonBackgroundColor:e}),buttonTextColor:c,onChangeButtonTextColor:e=>me({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:p,onChangeBorderStyle:e=>me({buttonStyle:e}),buttonHoverEffect:H,onchangeButtonHoverEffect:e=>me({buttonHoverEffect:e}),borderColor:D,onchangeBorderColor:e=>me({borderColor:e}),borderBtnTextColor:P,onChangeBorderBtnTextColor:e=>me({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:R,onchangebtnBorderWidth:e=>me({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:I,onchangeBtnFontWeight:e=>me({btnFontWeight:e})}),wp.element.createElement(Ri,{title:Pi(" Typography","blockspare"),initialOpen:!0},wp.element.createElement(br,{label:Pi("Button Fonts Settings"),attributes:de,setAttributes:me,loadGoogleFonts:{value:pe,label:Pi("buttonLoadGoogleFonts")},fontFamily:{value:oe,label:Pi("buttonFontFamily")},fontWeight:{value:ie,label:Pi("buttonFontWeight")},fontSubset:{value:le,label:Pi("buttonFontSubset")},fontSizeType:{value:se,label:Pi("buttonFontSizeType")},fontSize:{value:re,label:Pi("buttonFontSize")},fontSizeMobile:{value:ce,label:Pi("buttonFontSizeMobile")},fontSizeTablet:{value:ue,label:Pi("buttonFontSizeTablet")},disableLineHeight:!0})),"none"===p&&wp.element.createElement(Wi,{label:Pi("Enable Gradient","blockspare"),checked:j,onChange:()=>this.props.setAttributes({enableGradient:!j})}),j&&"none"===p&&wp.element.createElement(Ri,{title:Pi("Gradient Option","blockspare"),initialOpen:!0},wp.element.createElement(Oe,{backgroundColor1:N,onChangeBackgroundColor1:e=>me({backgroundColor1:e}),backgroundColor2:z,onChangeBackgroundColor2:e=>me({backgroundColor2:e}),gradientAngle:Y,onChangeGradientAngle:e=>me({gradientAngle:e}),colorLocation1:B,onChangeColorLocation1:e=>me({colorLocation1:e}),colorLocation2:A,onChangeColorLocation2:e=>me({colorLocation2:e})}))),wp.element.createElement(Ri,{title:Pi("Background Settings","blockspare"),initialOpen:!1},wp.element.createElement(Wi,{label:Pi("Display Image","blockspare"),checked:r,onChange:()=>this.props.setAttributes({showImage:!r})}),1==r&&wp.element.createElement("div",null,wp.element.createElement(Yi,{onSelect:e=>{me({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:i,render:({open:e})=>wp.element.createElement("div",null,wp.element.createElement(Hi,{className:"aft-cta-inspector-media",label:Pi("Edit image","blockspare"),icon:"format-image",onClick:e},Pi("Select Image","blockspare")),o&&!!o.length&&wp.element.createElement(Hi,{className:"blockspare-cta-inspector-media",label:Pi("Remove Image","blockspare"),icon:"dismiss",onClick:be},Pi("Remove","blockspare")))}),wp.element.createElement("div",null,o&&!!o.length&&wp.element.createElement("img",{src:o,width:"100px",height:"100px",alt:l}))),o&&!!o.length&&1==r&&wp.element.createElement(Ii,{label:Pi("Image Opacity","blockspare"),value:n,onChange:e=>this.props.setAttributes({opacityRatio:e}),min:0,max:100,step:10}),wp.element.createElement(Bi,{title:Pi("Background Color","blockspare"),initialOpen:!0,colorSettings:[{value:a,onChange:e=>me({ctaBackGroundColor:e}),label:Pi("Background Color","blockspare")}]})),wp.element.createElement(Ri,{title:Pi("Block Gap Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ri,{title:Pi("Padding Settings","blockspare"),initialOpen:!0},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:b,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>me({paddingTop:e}),paddingEnableRight:!0,paddingRight:f,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>me({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:g,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>me({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:h,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>me({paddingLeft:e})})),wp.element.createElement(Ri,{title:Pi("Margin Settings","blockspare"),initialOpen:!0},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:y,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>me({marginTop:e}),marginEnableBottom:!0,marginBottom:w,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>me({marginBottom:e})})))))}}const Ui=wp.i18n.__,qi=wp.element,Vi=qi.Component,$i=qi.Fragment,Ji=wp.blockEditor,Xi=Ji.RichText;Ji.getFontSizeClass,Ji.getColorClassName;class Ki extends Vi{render(){const e=this.props,t=(e.align,e.sectionAlignment,e.headerTitle),n=e.headerTagOption,a=e.headerSubTitle,r=e.setAttributes,o=(e.isSelected,e.titleLoadGoogleFonts),i=e.titleFontFamily,l=e.titleFontWeight,s=(e.titleFontSubset,e.subTitleLoadGoogleFonts),c=e.subTitleFontFamily,u=e.subTitleFontWeight;let p,d;if(1==o){const e={google:{families:[i+(l?":"+l:"")]}};p=wp.element.createElement(oo,{config:e})}if(1==s){const e={google:{families:[c+(u?":"+u:"")]}};d=wp.element.createElement(oo,{config:e})}return wp.element.createElement($i,null,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash"}),wp.element.createElement(Xi,{tagName:n,placeholder:Ui("Title","blockspare"),keepPlaceholderOnFocus:!0,value:t,className:"blockspare-title",onChange:e=>r({headerTitle:e})}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash"})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash"}),wp.element.createElement(Xi,{tagName:"p",placeholder:Ui("Sub Title","blockspare"),keepPlaceholderOnFocus:!0,value:a,className:"blockspare-subtitle",onChange:e=>r({headerSubTitle:e})}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash"}),p,d))}}var Qi=e=>{let t="";return e.enableBoxShadow&&(t={boxShadow:e.xOffset+"px "+e.yOffset+"px "+e.blur+"px "+e.spread+"px "+e.shadowColor}),t};var Zi=e=>{let t="";return t={textAlign:e.sectionAlignment,paddingTop:e.paddingTop?e.paddingTop+"px":"0px",paddingRight:e.paddingRight?e.paddingRight+"px":"0px",paddingBottom:e.paddingBottom?e.paddingBottom+"px":"0px",paddingLeft:e.paddingLeft?e.paddingLeft+"px":"0px",marginTop:e.marginTop?e.marginTop+"px":"0px",marginBottom:e.marginBottom?e.marginBottom+"px":"0px"},t};function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var al=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.ctaBackGroundColor,r=t.borderRadius,o=t.headertitleColor,i=t.titleFontSize,l=t.titlePaddingTop,s=t.titlePaddingBottom,c=t.headersubtitleColor,u=(t.subtitleFontSize,t.subtitlePaddingTop),p=t.subtitlePaddingBottom,d=t.dashColor,m=t.headerboxColor,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=t.subTitleFontSize,v=t.subTitleFontFamily,k=t.subTitleFontWeight,_=(t.subTitleFontSubset,t.subTitleFontSizeType),S=t.subTitleFontSizeMobile,T=t.subTitleFontSizeTablet,E=t.headerpaddingTop,x=t.headerpaddingRight,M=t.headerpaddingBottom,C=t.headerpaddingLeft,O=t.headermarginTop,L=t.headermarginBottom,F=t.buttonStyle,D=t.enableGradient,P=t.backgroundColor1,j=t.backgroundColor2,N=t.gradientAngle,z=t.colorLocation1,Y=t.colorLocation2,B=(t.btnFontWeight,t.btnBorderWidth),A=t.borderColor,I=t.buttonBackgroundColor,R=t.borderBtnTextColor,H=t.buttonTextColor,W=t.buttonFontSize,G=t.buttonFontFamily,U=t.buttonFontWeight,q=t.buttonFontSizeType,V=t.buttonFontSizeMobile,$=t.buttonFontSizeTablet,J=[];if(J.push({".blockspare-cta-wrapper":tl(tl(tl({backgroundColor:a||"#0e0e0e"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:r?r+"px":null})}),"none"===F)if(1==D){const e=N+"deg",t=z+"%",n=Y+"%";J.push({".blockspare-block-button span":{color:H||"#fff",borderWidth:B+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${P||"#3B1A5B"} ${t},${j||"#8B249C"} ${n})`}})}else J.push({".blockspare-block-button span":{color:H||"#fff",borderWidth:B+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:I||"#3c1a5b"}});else J.push({".blockspare-block-button span":{color:R||"#404040"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent",borderColor:A||"#3c1a5b",borderStyle:F,borderWidth:B+"px"}});return J.push({".blockspare-block-button span":{fontSize:W+q,fontFamily:G,fontWeight:U},tablet:{".blockspare-block-button span":{fontSize:$+q}},mobile:{".blockspare-block-button span":{fontSize:V+q}}}),J.push({".blockspare-section-head-wrap":{backgroundColor:m||"transparent",textAlign:n,paddingTop:E+"px",paddingRight:x+"px",paddingBottom:M+"px",marginTop:O+"px",marginBottom:L+"px",paddingLeft:C+"px"}}),J.push({".blockspare-title":{color:o,fontSize:i+g+"!important",fontFamily:b+"!important",fontWeight:f+"!important",paddingTop:l+"px ",paddingBottom:s+"px"},".blockspare-subtitle":{color:c,fontSize:w+_+"!important",fontFamily:v+"!important",fontWeight:k+"!important",paddingTop:u+"px",paddingBottom:p+"px"},".blockspare-title-dash":{color:d},tablet:{".blockspare-title":{fontSize:y+g+"!important"},".blockspare-subtitle":{fontSize:T+_+"!important"}},mobile:{".blockspare-title":{fontSize:h+g+"!important"},".blockspare-subtitle":{fontSize:S+_+"!important"}}}),qr.a.all(J)};function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ol(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const il=blockspare_globals,ll=wp.element,sl=ll.Component,cl=ll.Fragment,ul=wp.compose.compose,pl=wp.i18n.__,dl=wp.blockEditor,ml=dl.AlignmentToolbar,bl=dl.URLInput,fl=dl.BlockControls,gl=dl.BlockAlignmentToolbar,hl=dl.RichText,yl=wp.components,wl=yl.IconButton,vl=yl.Dashicon;var kl=ul(Gr,Rr(al))(class extends sl{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonAlignment,l=t.buttonSize,s=t.buttonShape,c=t.showImage,u=t.imgURL,p=t.sectionAlignment,d=t.backgroundFix,m=(t.imgAlt,t.opacityRatio),b=t.headerTagOption,f=t.headerTitle,g=t.headerSubTitle,h=t.buttonHoverEffect,y=t.headerlayoutOption,w=(t.profileContentFontSize,t.titleLoadGoogleFonts),v=t.titleFontFamily,k=t.titleFontWeight,_=t.subTitleLoadGoogleFonts,S=t.subTitleFontFamily,T=t.subTitleFontWeight,E=t.buttonLoadGoogleFonts,x=t.buttonFontFamily,M=t.buttonFontWeight,C=e.className,O=e.isSelected,L=(e.attributes,e.setAttributes);let F="url("+il.img+")";u&&u.length&&(F="url("+u+")");const D=i()([C,"align"+n,"blockspare-calltoaction"]);let P;if(1==E){const e={google:{families:[x+(M?":"+M:"")]}};P=wp.element.createElement(oo,{config:e})}return wp.element.createElement(cl,null,wp.element.createElement(fl,null,wp.element.createElement(gl,{value:n,onChange:e=>{L({align:e})},controls:["center","wide","full"]}),wp.element.createElement(ml,{value:p,onChange:e=>{L({sectionAlignment:e})}})),wp.element.createElement(Gi,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){ol(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:L},this.props)),wp.element.createElement("div",{className:D},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-cta-wrapper blockspare-blocks","align"+n,u&&u.length&&d?"blockspare-background-fix":"")},c&&u&&wp.element.createElement("div",{className:i()("blockspare-image-wrap","blockspare-cta-background",(j=m,0===j?null:"has-background-opacity-"+10*Math.round(j/10)),{"has-background-opacity":0!==m}),style:{backgroundImage:F}}),!u&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",y,"blockspare-"+p)},wp.element.createElement(Ki,{setAttributes:L,headerTitle:f,headerTagOption:b,headerSubTitle:g,titleFontFamily:v,titleFontWeight:k,titleLoadGoogleFonts:w,subTitleLoadGoogleFonts:_,subTitleFontFamily:S,subTitleFontWeight:T}))),wp.element.createElement("div",{className:"blockspare-block-button"},wp.element.createElement("a",{href:"#"},wp.element.createElement(hl,{tagName:"span",placeholder:pl("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:""+a,allowedFormats:[],className:i()("blockspare-button",s,l,h),onChange:e=>L({buttonText:e})}))),O&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+o,onSubmit:e=>e.preventDefault()},wp.element.createElement(vl,{icon:"admin-links"}),wp.element.createElement(bl,{className:"button-url",value:r,onChange:e=>L({buttonUrl:e})}),wp.element.createElement(wl,{icon:"editor-break",label:pl("Apply","blockspare"),type:"submit"})))),P);var j}});const _l=wp.element,Sl=_l.Component,Tl=_l.Fragment,El=wp.blockEditor,xl=El.RichText;El.getFontSizeClass,El.getColorClassName;class Ml extends Sl{render(){const e=this.props,t=(e.align,e.headerTitle),n=e.headerTagOption,a=e.headerSubTitle;return wp.element.createElement(Tl,null,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash"}),t&&wp.element.createElement(xl.Content,{tagName:n,className:"blockspare-title",value:t}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash"})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash"}),a&&wp.element.createElement(xl.Content,{tagName:"p",className:"blockspare-subtitle",value:a}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash"})))}}const Cl=blockspare_globals,Ol=wp.element.Component,Ll=(wp.i18n.__,wp.compose.compose),Fl=wp.blockEditor.RichText;var Dl=Ll(Gr,Rr(al))(class extends Ol{render(){const e=this.props,t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonTarget,l=t.buttonSize,s=t.buttonShape,c=t.opacityRatio,u=t.sectionAlignment,p=t.showImage,d=t.imgURL,m=t.headerlayoutOption,b=t.headerTagOption,f=t.headerTitle,g=t.headerSubTitle,h=t.buttonHoverEffect,y=t.backgroundFix,w=e.className;e.attributes;let v="url("+Cl.img+")";d&&d.length&&(v="url("+d+")");const k=i()([w,"align"+n,"blockspare-calltoaction"]);return wp.element.createElement("div",{className:k},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-cta-wrapper blockspare-blocks",d&&d.length&&y?"blockspare-background-fix":"")},p&&d&&wp.element.createElement("div",{className:i()("blockspare-image-wrap","blockspare-cta-background",(_=c,0===_?null:"has-background-opacity-"+10*Math.round(_/10)),{"has-background-opacity":0!==c}),style:{backgroundImage:v}}),!d&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",m,"blockspare-"+u)},wp.element.createElement(Ml,{headerTitle:f,headerTagOption:b,headerSubTitle:g}))),wp.element.createElement("div",{className:"blockspare-block-button"},a&&wp.element.createElement("a",{href:r,target:o?"_blank":null,rel:o?"noopener noreferrer":null,className:i()("blockspare-button",s,l,h)},wp.element.createElement(Fl.Content,{tagName:"span",value:a})))));var _}});var Pl=n(278);var jl=e=>{let t="";return t={borderColor:e.dashColor?e.dashColor:"#8b249c"},t};var Nl=e=>{let t="";return t={color:e.headertitleColor?e.headertitleColor:"#404040",fontSize:e.titleFontSize+"px",paddingTop:e.titlePaddingTop?e.titlePaddingTop+"px":"0px",paddingBottom:e.titlePaddingBottom?e.titlePaddingBottom+"px":"0px"},t};var zl=e=>{let t="";return t={fontSize:e.subtitleFontSize+"px",color:e.headersubtitleColor?e.headersubtitleColor:"#6d6d6d",paddingTop:e.subtitlePaddingTop?e.subtitlePaddingTop+"px":void 0,paddingBottom:e.subtitlePaddingBottom?e.subtitlePaddingBottom+"px":void 0},t};var Yl=e=>{let t="";if("none"===e.buttonStyle)if(1==e.enableGradient){const n=e.gradientAngle+"deg",a=e.colorLocation1+"%",r=e.colorLocation2+"%";t={backgroundImage:`linear-gradient(${n},${e.backgroundColor1?e.backgroundColor1:"#3B1A5B"} ${a},${e.backgroundColor2?e.backgroundColor2:"#8B249C"} ${r})`,color:e.buttonTextColor?e.buttonTextColor:"#fff",fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"}}else t={color:e.buttonTextColor?e.buttonTextColor:"#fff",backgroundColor:e.buttonBackgroundColor?e.buttonBackgroundColor:"#3c1a5b",fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"};else t={color:e.borderBtnTextColor?e.borderBtnTextColor:"#404040",backgroundColor:"transparent",borderColor:e.borderColor?e.borderColor:"#3c1a5b",borderStyle:e.buttonStyle,fontWeight:e.btnFontWeight,borderWidth:e.btnBorderWidth+"px"};return t};function Bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bl(Object(n),!0).forEach((function(t){Il(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Il(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rl=wp.element.Component;class Hl extends Rl{constructor(e){super(...arguments)}render(){const e=this.props.attributes,t=Al(Al(Al({backgroundColor:e.ctaBackGroundColor?e.ctaBackGroundColor:"#0e0e0e"},Qi(e)),Zi(e)),{},{borderRadius:e.borderRadius?e.borderRadius:null});return wp.element.createElement("div",{className:i()("blockspare-cta-wrapper blockspare-blocks","align"+e.align,e.imgURL&&e.imgURL.length&&e.backgroundFix?"blockspare-background-fix":""),style:t},this.props.children)}}var Wl=e=>{let t="";return t={textAlign:e.sectionAlignment,paddingTop:e.headerpaddingTop?e.headerpaddingTop+"px":"0px",paddingRight:e.headerpaddingRight?e.headerpaddingRight+"px":"0px",paddingBottom:e.headerpaddingBottom?e.headerpaddingBottom+"px":"0px",marginTop:e.headermarginTop?e.headermarginTop+"px":"0px",marginBottom:e.headermarginBottom?e.headermarginBottom+"px":"0px",paddingLeft:e.headerpaddingLeft?e.headerpaddingLeft+"px":"0px",backgroundColor:e.headerboxColor?e.headerboxColor:"transparent"},t};function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ul(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ql=wp.element.Component;class Vl extends ql{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerlayoutOption,o=e.attributes,l=(e.setAttributes,e.isSelected,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach((function(t){Ul(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Wl(o)));return wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+n),style:l},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",r,"blockspare-"+a)},this.props.children))}}const $l=wp.element.Component;class Jl extends $l{constructor(e){super(...arguments)}render(){return wp.element.createElement("div",{style:{textAlign:this.props.attributes.sectionAlignment},className:i()(this.props.className,"blockspare-block-button")},this.props.children)}}function Xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xl(Object(n),!0).forEach((function(t){Ql(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zl=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.ctaBackGroundColor,r=t.borderRadius,o=t.headertitleColor,i=t.titleFontSize,l=t.titlePaddingTop,s=t.titlePaddingBottom,c=t.headersubtitleColor,u=(t.subtitleFontSize,t.subtitlePaddingTop),p=t.subtitlePaddingBottom,d=t.dashColor,m=t.headerboxColor,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=t.subTitleFontSize,v=t.subTitleFontFamily,k=t.subTitleFontWeight,_=(t.subTitleFontSubset,t.subTitleFontSizeType),S=t.subTitleFontSizeMobile,T=t.subTitleFontSizeTablet,E=t.headerpaddingTop,x=t.headerpaddingRight,M=t.headerpaddingBottom,C=t.headerpaddingLeft,O=t.headermarginTop,L=t.headermarginBottom,F=[];return F.push({".blockspare-cta-wrapper":Kl(Kl(Kl({backgroundColor:a||"#0e0e0e"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:r?r+"px":null}),".blockspare-button":Kl({},xo(e.attributes))}),F.push({".blockspare-section-head-wrap":{backgroundColor:m||"transparent",textAlign:n,paddingTop:E+"px",paddingRight:x+"px",paddingBottom:M+"px",marginTop:O+"px",marginBottom:L+"px",paddingLeft:C+"px"}}),F.push({".blockspare-title":{color:o,fontSize:i+g+"!important",fontFamily:b+"!important",fontWeight:f+"!important",paddingTop:l+"px ",paddingBottom:s+"px"},".blockspare-subtitle":{color:c,fontSize:w+_+"!important",fontFamily:v+"!important",fontWeight:k+"!important",paddingTop:u+"px",paddingBottom:p+"px"},".blockspare-title-dash":{color:d},tablet:{".blockspare-title":{fontSize:y+g+"!important"},".blockspare-subtitle":{fontSize:T+_+"!important"}},mobile:{".blockspare-title":{fontSize:h+g+"!important"},".blockspare-subtitle":{fontSize:S+_+"!important"}}}),qr.a.all(F)};const es=blockspare_globals,ts=wp.element.Component,ns=(wp.i18n.__,wp.compose.compose),as=wp.blockEditor.RichText;var rs=ns(Gr,Rr(Zl))(class extends ts{render(){const e=this.props,t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonTarget,l=t.buttonSize,s=t.buttonShape,c=t.opacityRatio,u=t.sectionAlignment,p=t.showImage,d=t.imgURL,m=t.headerlayoutOption,b=t.headerTagOption,f=t.headerTitle,g=t.headerSubTitle,h=t.buttonHoverEffect,y=t.backgroundFix,w=e.className;e.attributes;let v="url("+es.img+")";d&&d.length&&(v="url("+d+")");const k=i()([w,"align"+n,"blockspare-calltoaction"]);return wp.element.createElement("div",{className:k},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-cta-wrapper blockspare-blocks",d&&d.length&&y?"blockspare-background-fix":"")},p&&wp.element.createElement("div",{className:i()("blockspare-image-wrap","blockspare-cta-background",(_=c,0===_?null:"has-background-opacity-"+10*Math.round(_/10)),{"has-background-opacity":0!==c}),style:{backgroundImage:v}}),wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",m,"blockspare-"+u)},wp.element.createElement(Ml,{headerTitle:f,headerTagOption:b,headerSubTitle:g}))),wp.element.createElement("div",{className:"blockspare-block-button"},a&&wp.element.createElement("a",{href:r,target:o?"_blank":null,rel:o?"noopener noreferrer":null,className:i()("blockspare-button",s,l,h)},wp.element.createElement(as.Content,{value:a})))));var _}});function os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach((function(t){ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ss=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.ctaBackGroundColor,r=t.borderRadius,o=t.headertitleColor,i=t.titleFontSize,l=t.titlePaddingTop,s=t.titlePaddingBottom,c=t.headersubtitleColor,u=(t.subtitleFontSize,t.subtitlePaddingTop),p=t.subtitlePaddingBottom,d=t.dashColor,m=t.headerboxColor,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=t.subTitleFontSize,v=t.subTitleFontFamily,k=t.subTitleFontWeight,_=(t.subTitleFontSubset,t.subTitleFontSizeType),S=t.subTitleFontSizeMobile,T=t.subTitleFontSizeTablet,E=t.headerpaddingTop,x=t.headerpaddingRight,M=t.headerpaddingBottom,C=t.headerpaddingLeft,O=t.headermarginTop,L=t.headermarginBottom,F=[];return F.push({".blockspare-cta-wrapper":is(is(is({backgroundColor:a||"#0e0e0e"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:r?r+"px":null}),".blockspare-button":is({},Mo(e.attributes))}),F.push({".blockspare-section-head-wrap":{backgroundColor:m||"transparent",textAlign:n,paddingTop:E+"px",paddingRight:x+"px",paddingBottom:M+"px",marginTop:O+"px",marginBottom:L+"px",paddingLeft:C+"px"}}),F.push({".blockspare-title":{color:o,fontSize:i+g+"!important",fontFamily:b+"!important",fontWeight:f+"!important",paddingTop:l+"px ",paddingBottom:s+"px"},".blockspare-subtitle":{color:c,fontSize:w+_+"!important",fontFamily:v+"!important",fontWeight:k+"!important",paddingTop:u+"px",paddingBottom:p+"px"},".blockspare-title-dash":{color:d},tablet:{".blockspare-title":{fontSize:y+g+"!important"},".blockspare-subtitle":{fontSize:T+_+"!important"}},mobile:{".blockspare-title":{fontSize:h+g+"!important"},".blockspare-subtitle":{fontSize:S+_+"!important"}}}),qr.a.all(F)};const cs=blockspare_globals,us=wp.element.Component,ps=(wp.i18n.__,wp.compose.compose),ds=wp.blockEditor.RichText;var ms=ps(Gr,Rr(ss))(class extends us{render(){const e=this.props,t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonTarget,l=t.buttonSize,s=t.buttonShape,c=t.opacityRatio,u=t.sectionAlignment,p=t.showImage,d=t.imgURL,m=t.headerlayoutOption,b=t.headerTagOption,f=t.headerTitle,g=t.headerSubTitle,h=t.buttonHoverEffect,y=t.backgroundFix,w=e.className;e.attributes;let v="url("+cs.img+")";d&&d.length&&(v="url("+d+")");const k=i()([w,"align"+n,"blockspare-calltoaction"]);return wp.element.createElement("div",{className:k},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-cta-wrapper blockspare-blocks",d&&d.length&&y?"blockspare-background-fix":"")},p&&wp.element.createElement("div",{className:i()("blockspare-image-wrap","blockspare-cta-background",(_=c,0===_?null:"has-background-opacity-"+10*Math.round(_/10)),{"has-background-opacity":0!==c}),style:{backgroundImage:v}}),wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",m,"blockspare-"+u)},wp.element.createElement(Ml,{headerTitle:f,headerTagOption:b,headerSubTitle:g}))),wp.element.createElement("div",{className:"blockspare-block-button"},a&&wp.element.createElement("a",{href:r,target:o?"_blank":null,rel:o?"noopener noreferrer":null,className:i()("blockspare-button",s,l,h)},wp.element.createElement(ds.Content,{value:a})))));var _}});function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bs(Object(n),!0).forEach((function(t){gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hs=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.ctaBackGroundColor,r=t.borderRadius,o=t.headertitleColor,i=t.titleFontSize,l=t.titlePaddingTop,s=t.titlePaddingBottom,c=t.headersubtitleColor,u=(t.subtitleFontSize,t.subtitlePaddingTop),p=t.subtitlePaddingBottom,d=t.dashColor,m=t.headerboxColor,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=t.subTitleFontSize,v=t.subTitleFontFamily,k=t.subTitleFontWeight,_=(t.subTitleFontSubset,t.subTitleFontSizeType),S=t.subTitleFontSizeMobile,T=t.subTitleFontSizeTablet,E=t.headerpaddingTop,x=t.headerpaddingRight,M=t.headerpaddingBottom,C=t.headerpaddingLeft,O=t.headermarginTop,L=t.headermarginBottom,F=t.buttonStyle,D=t.enableGradient,P=t.backgroundColor1,j=t.backgroundColor2,N=t.gradientAngle,z=t.colorLocation1,Y=t.colorLocation2,B=t.btnFontWeight,A=t.btnBorderWidth,I=t.borderColor,R=t.buttonBackgroundColor,H=t.borderBtnTextColor,W=t.buttonTextColor,G=[];if(G.push({".blockspare-cta-wrapper":fs(fs(fs({backgroundColor:a||"#0e0e0e"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:r?r+"px":null})}),"none"===F)if(1==D){const e=N+"deg",t=z+"%",n=Y+"%";G.push({".blockspare-block-button span":{color:W||"#fff",fontWeight:B,borderWidth:A+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${P||"#3B1A5B"} ${t},${j||"#8B249C"} ${n})`}})}else G.push({".blockspare-block-button span":{color:W||"#fff",fontWeight:B,borderWidth:A+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:R||"#3c1a5b"}});else G.push({".blockspare-block-button span":{color:H||"#404040",borderColor:I||"#3c1a5b",borderStyle:F,fontWeight:B,borderWidth:A+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return G.push({".blockspare-section-head-wrap":{backgroundColor:m||"transparent",textAlign:n,paddingTop:E+"px",paddingRight:x+"px",paddingBottom:M+"px",marginTop:O+"px",marginBottom:L+"px",paddingLeft:C+"px"}}),G.push({".blockspare-title":{color:o,fontSize:i+g+"!important",fontFamily:b+"!important",fontWeight:f+"!important",paddingTop:l+"px ",paddingBottom:s+"px"},".blockspare-subtitle":{color:c,fontSize:w+_+"!important",fontFamily:v+"!important",fontWeight:k+"!important",paddingTop:u+"px",paddingBottom:p+"px"},".blockspare-title-dash":{color:d},tablet:{".blockspare-title":{fontSize:y+g+"!important"},".blockspare-subtitle":{fontSize:T+_+"!important"}},mobile:{".blockspare-title":{fontSize:h+g+"!important"},".blockspare-subtitle":{fontSize:S+_+"!important"}}}),qr.a.all(G)};const ys=blockspare_globals,ws=wp.element.Component,vs=(wp.i18n.__,wp.compose.compose),ks=wp.blockEditor.RichText;var _s=vs(Gr,Rr(hs))(class extends ws{render(){const e=this.props,t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonTarget,l=t.buttonSize,s=t.buttonShape,c=t.opacityRatio,u=t.sectionAlignment,p=t.showImage,d=t.imgURL,m=t.headerlayoutOption,b=t.headerTagOption,f=t.headerTitle,g=t.headerSubTitle,h=t.buttonHoverEffect,y=t.backgroundFix,w=e.className;e.attributes;let v="url("+ys.img+")";d&&d.length&&(v="url("+d+")");const k=i()([w,"align"+n,"blockspare-calltoaction"]);return wp.element.createElement("div",{className:k},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-cta-wrapper blockspare-blocks",d&&d.length&&y?"blockspare-background-fix":"")},p&&wp.element.createElement("div",{className:i()("blockspare-image-wrap","blockspare-cta-background",(_=c,0===_?null:"has-background-opacity-"+10*Math.round(_/10)),{"has-background-opacity":0!==c}),style:{backgroundImage:v}}),wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",m,"blockspare-"+u)},wp.element.createElement(Ml,{headerTitle:f,headerTagOption:b,headerSubTitle:g}))),wp.element.createElement("div",{className:"blockspare-block-button"},a&&wp.element.createElement("a",{href:r,target:o?"_blank":null,rel:o?"noopener noreferrer":null,className:i()("blockspare-button",s,l,h)},wp.element.createElement(ks.Content,{tagName:"span",value:a})))));var _}});function Ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach((function(t){Es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xs=blockspare_globals,Ms=Ts(Ts(Ts(Ts(Ts({},ei),Pl.attributes),Eo),ni),ti),Cs=wp.blockEditor.RichText;wp.i18n.__;var Os=[{attributes:Ms,save:function(e){const t=e.attributes,n=(t.align,t.buttonText),a=t.buttonUrl,r=t.buttonTarget,o=t.buttonSize,l=t.buttonShape,s=t.opacityRatio,c=t.sectionAlignment,u=t.showImage,p=t.imgURL,d=(t.imgAlt,t.headerTagOption),m=t.headerTitle,b=t.headerSubTitle,f=t.buttonHoverEffect,g=Ts({},jl(e.attributes)),h=Ts({},Nl(e.attributes)),y=Ts({},zl(e.attributes)),w=Ts({},Yl(e.attributes));let v="url("+xs.img+")";p&&p.length&&(v="url("+p+")");Ts(Ts(Ts({backgroundColor:Ms.ctaBackGroundColor?Ms.ctaBackGroundColor:"#0e0e0e"},Qi(Ms)),Zi(Ms)),{},{borderRadius:Ms.borderRadius?Ms.borderRadius:null});return wp.element.createElement(Hl,e,u&&p&&wp.element.createElement("div",{className:i()("blockspare-image-wrap","blockspare-cta-background",(k=s,0===k?null:"has-background-opacity-"+10*Math.round(k/10)),{"has-background-opacity":0!==s}),style:{backgroundImage:v}}),!p&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:"blockspare-section-head-wrap",style:{textAlign:c}},wp.element.createElement(Vl,e,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:g}),m&&wp.element.createElement(Cs.Content,{tagName:d,className:"blockspare-title",style:h,value:m}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:g})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:g}),b&&wp.element.createElement(Cs.Content,{tagName:"p",className:"blockspare-subtitle",style:y,value:b}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:g})))),wp.element.createElement(Jl,e,n&&wp.element.createElement("a",{href:a,target:r?"_blank":null,rel:r?"noopener noreferrer":null,className:i()("blockspare-button",l,o,f),style:w},wp.element.createElement(Cs.Content,{value:n}))));var k}},{attributes:Ts(Ts(Ts(Ts({},ei),{},{className:{type:"string"},align:{type:"string",default:"center"},sectionAlignment:{type:"string",default:"center"},showImage:{type:"boolean",default:!0},imgURL:{type:"string"},imgID:{type:"number"},imgAlt:{type:"string"},opacityRatio:{type:"number",default:75},ctaBackGroundColor:{type:"string",default:"#0e0e0e"},borderRadius:{type:"number",default:0},headerTagOption:{type:"string",default:"h2"},backgroundFix:{type:"boolean",default:!1},headertitleColor:{type:"string",default:"#fff"},headersubtitleColor:{type:"string",default:"#fff"},headermarginTop:{type:"number",default:5},headermarginBottom:{type:"number",default:5},headerpaddingLeft:{type:"number",default:0},headerpaddingRight:{type:"number",default:0}},Eo),ni),ti),save:e=>wp.element.createElement(ms,e)},{attributes:Ts(Ts(Ts(Ts({},ei),{},{className:{type:"string"},align:{type:"string",default:"center"},sectionAlignment:{type:"string",default:"center"},showImage:{type:"boolean",default:!0},imgURL:{type:"string"},imgID:{type:"number"},imgAlt:{type:"string"},opacityRatio:{type:"number",default:75},ctaBackGroundColor:{type:"string",default:"#0e0e0e"},borderRadius:{type:"number",default:0},headerTagOption:{type:"string",default:"h2"},backgroundFix:{type:"boolean",default:!1},headertitleColor:{type:"string",default:"#fff"},headersubtitleColor:{type:"string",default:"#fff"},headermarginTop:{type:"number",default:5},headermarginBottom:{type:"number",default:5},headerpaddingLeft:{type:"number",default:0},headerpaddingRight:{type:"number",default:0}},Eo),ni),ti),save:e=>wp.element.createElement(rs,e)},{attributes:Ts(Ts(Ts(Ts({},ei),{},{className:{type:"string"},align:{type:"string",default:"center"},sectionAlignment:{type:"string",default:"center"},showImage:{type:"boolean",default:!0},imgURL:{type:"string"},imgID:{type:"number"},imgAlt:{type:"string"},opacityRatio:{type:"number",default:75},ctaBackGroundColor:{type:"string",default:"#0e0e0e"},borderRadius:{type:"number",default:0},headerTagOption:{type:"string",default:"h2"},backgroundFix:{type:"boolean",default:!1},headertitleColor:{type:"string",default:"#fff"},headersubtitleColor:{type:"string",default:"#fff"},headermarginTop:{type:"number",default:5},headermarginBottom:{type:"number",default:5},headerpaddingLeft:{type:"number",default:0},headerpaddingRight:{type:"number",default:0}},Eo),ni),ti),save:e=>wp.element.createElement(_s,e)}];function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){Ds(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ds(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ps=Zo.name,js=Zo.category,Ns=wp.blocks.registerBlockType,zs=wp.i18n.__,Ys=["center","wide","full"],Bs=Fs(Fs(Fs(Fs(Fs({},ei),Zo.attributes),Eo),ni),ti);Ns(Ps,{title:zs("BS Call to Action","blockspare"),description:zs("BS call to action allow you to add title,subtitle,text button and background image/color","blockspare"),category:js,icon:r.cta,attributes:Bs,keywords:[zs("call to action","blockspare"),zs("block","blockspare"),zs("cta","blockspare"),zs("link","blockspare")],example:{attributes:{cover:"https://blockspare.com",author:"Blockspare",pages:500}},getEditWrapperProps(e){const t=e.align;if(-1!==Ys.indexOf(t))return{"data-align":t}},edit:kl,save:Dl,deprecated:Os});n(495),n(497);var As=n(28);const Is=wp.element.Component,Rs=wp.i18n.__,Hs=wp.hooks.applyFilters,Ws=wp.blockEditor,Gs=Ws.InspectorControls,Us=Ws.MediaUpload,qs=Ws.PanelColorSettings,Vs=wp.components,$s=Vs.ToggleControl,Js=Vs.PanelBody,Xs=Vs.SelectControl,Ks=Vs.IconButton;Vs.RangeControl;class Qs extends Is{render(){const e=[{value:"",label:Rs("Default","blockspare")},{value:"blockspare-style1",label:Rs("Style 1","blockspare")},{value:"blockspare-style2",label:Rs("Style 2","blockspare")}],t=this.props,n=t.attributes,a=n.backGroundColor,r=n.imageShape,o=n.descriptionColor,i=n.imgID,l=n.imgURL,s=n.imgAlt,c=n.showContentImg,u=n.buttonBackgroundColor,p=n.buttonTextColor,d=n.buttonSize,m=n.buttonShape,b=n.buttonTarget,f=n.buttonStyle,g=n.borderColor,h=n.borderBtnTextColor,y=n.showButton,w=n.marginTop,v=n.marginBottom,k=n.layoutOption,_=n.titleFontSize,T=(n.subtitleFontSize,n.headerboxColor),E=n.headertitleColor,x=n.headersubtitleColor,M=n.headerlayoutOption,C=n.titlePaddingTop,O=n.titlePaddingBottom,L=n.subtitlePaddingTop,F=n.subtitlePaddingBottom,D=n.dashColor,P=n.design,j=void 0===P?"style-1":P,N=n.enableGradient,z=n.backgroundColor1,Y=n.backgroundColor2,B=n.gradientAngle,A=n.colorLocation1,I=n.colorLocation2,R=n.headerTagOption,H=(n.enableBoxShadow,n.xOffset,n.yOffset,n.blur,n.spread,n.shadowColor,n.borderRadius,n.btnFontWeight),W=n.btnBorderWidth,G=n.buttonHoverEffect,U=n.titleLoadGoogleFonts,q=n.titleFontFamily,V=n.titleFontWeight,$=n.titleFontSubset,J=n.titleFontSizeType,X=n.titleFontSizeMobile,K=n.titleFontSizeTablet,Q=n.subTitleFontSize,Z=n.subTitleLoadGoogleFonts,ee=n.subTitleFontFamily,te=n.subTitleFontWeight,ne=n.subTitleFontSubset,ae=n.subTitleFontSizeType,re=n.subTitleFontSizeMobile,oe=n.subTitleFontSizeTablet,ie=n.descriptionFontSize,le=n.descriptionFontFamily,se=n.descriptionFontWeight,ce=n.descriptionFontSubset,ue=n.descriptionFontSizeType,pe=n.descriptionFontSizeMobile,de=n.descriptionFontSizeTablet,me=n.descriptionLoadGoogleFonts,be=n.buttonFontSize,fe=n.buttonFontFamily,ge=n.buttonFontWeight,he=n.buttonFontSubset,ye=n.buttonFontSizeType,we=n.buttonFontSizeMobile,ve=n.buttonFontSizeTablet,ke=n.buttonLoadGoogleFonts,_e=t.attributes,Se=t.setAttributes,Ee=()=>{Se({imgID:null,imgURL:null,imgAlt:null})};Rs("Layout 1","blockspare"),Rs("Layout 2","blockspare"),Rs("Layout 3","blockspare");return wp.element.createElement(Gs,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"content-box"}),wp.element.createElement(Oi,{initialOpen:!1,selected:j,options:Hs("blockspare.cta.edit.layouts",[{label:Rs("Layout 1","blockspare"),value:"style-1",image:"images/style-1.png"},{label:Rs("Layout 2","blockspare"),value:"style-2",image:"images/style-2.png"},{label:Rs("Layout 3","blockspare"),value:"style-3",image:"images/style-3.png"}]),onChange:e=>Se({design:e})}),wp.element.createElement(Js,{title:Rs("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement($s,{label:Rs("Display Button","blockspare"),checked:y,onChange:()=>this.props.setAttributes({showButton:!y})}),wp.element.createElement($s,{label:Rs("Reverse","blockspare"),checked:k,onChange:()=>this.props.setAttributes({layoutOption:!k})}),c&&wp.element.createElement(Us,{onSelect:e=>{Se({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:i,render:({open:e})=>wp.element.createElement("div",null,wp.element.createElement(Ks,{className:"aft-cta-inspector-media",label:Rs("Edit image","blockspare"),icon:"format-image",onClick:e},Rs("Select Image","blockspare")),l&&!!l.length&&wp.element.createElement(Ks,{className:"blockspare-cta-inspector-media",label:Rs("Remove Image","blockspare"),icon:"dismiss",onClick:Ee},Rs("Remove","blockspare")))}),l&&!!l.length&&wp.element.createElement("div",null,wp.element.createElement("img",{src:l,width:"100px",height:"100px",alt:s})),l&&!!l.length&&wp.element.createElement(Xs,{label:Rs("Choose Image Shape","blockspare"),options:e,value:r,onChange:e=>this.props.setAttributes({imageShape:e})}),"style-3"!=j&&wp.element.createElement(qs,{title:Rs("Background Color","blockspare"),initialOpen:!1,colorSettings:[{value:a,onChange:e=>Se({backGroundColor:e}),label:Rs("Background Color","blockspare")}]})),wp.element.createElement(Js,{title:Rs("Header Settings","blockspare"),initialOpen:!1},wp.element.createElement(Di,{headerlayoutOption:M,onChangeHeaderLayput:e=>Se({headerlayoutOption:e})}),wp.element.createElement(Js,{title:Rs("Typography Settings","blockspare")},wp.element.createElement(br,{label:Rs("Title Fonts Settings"),attributes:_e,setAttributes:Se,loadGoogleFonts:{value:U,label:Rs("titleLoadGoogleFonts")},fontFamily:{value:q,label:Rs("titleFontFamily")},fontWeight:{value:V,label:Rs("titleFontWeight")},fontSubset:{value:$,label:Rs("titleFontSubset")},fontSizeType:{value:J,label:Rs("titleFontSizeType")},fontSize:{value:_,label:Rs("titleFontSize")},fontSizeMobile:{value:X,label:Rs("titleFontSizeMobile")},fontSizeTablet:{value:K,label:Rs("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:R}),wp.element.createElement(br,{label:Rs("Subtitle Fonts Settings"),attributes:_e,setAttributes:Se,loadGoogleFonts:{value:Z,label:Rs("subTitleLoadGoogleFonts")},fontFamily:{value:ee,label:Rs("subTitleFontFamily")},fontWeight:{value:te,label:Rs("subTitleFontWeight")},fontSubset:{value:ne,label:Rs("subTitleFontSubset")},fontSizeType:{value:ae,label:Rs("subTitleFontSizeType")},fontSize:{value:Q,label:Rs("subTitleFontSize")},fontSizeMobile:{value:re,label:Rs("subTitleFontSizeMobile")},fontSizeTablet:{value:oe,label:Rs("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0}),wp.element.createElement(br,{label:Rs("Description Fonts Settings"),attributes:_e,setAttributes:Se,loadGoogleFonts:{value:me,label:Rs("descriptionLoadGoogleFonts")},fontFamily:{value:le,label:Rs("descriptionFontFamily")},fontWeight:{value:se,label:Rs("descriptionFontWeight")},fontSubset:{value:ce,label:Rs("descriptionFontSubset")},fontSizeType:{value:ue,label:Rs("descriptionFontSizeType")},fontSize:{value:ie,label:Rs("descriptionFontSize")},fontSizeMobile:{value:pe,label:Rs("descriptionFontSizeMobile")},fontSizeTablet:{value:de,label:Rs("descriptionFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(ci,{enableBlockGaps:!1,headerboxColor:T,onChangeboxcolor:e=>Se({headerboxColor:e}),dashColor:D,headerTagOption:R,onChangeDashColor:e=>Se({dashColor:e}),headertitleColor:E,onChangetitlecolor:e=>Se({headertitleColor:e}),titlePaddingTop:C,onChangetitlePaddingTop:e=>Se({titlePaddingTop:e}),titlePaddingBottom:O,onChangetitlePaddingBottom:e=>Se({titlePaddingBottom:e}),headersubtitleColor:x,onChangesubtitlecolor:e=>Se({headersubtitleColor:e}),subtitlePaddingTop:L,onChangesubtitlePaddingTop:e=>Se({subtitlePaddingTop:e}),subtitlePaddingBottom:F,onChangesubtitlePaddingBottom:e=>Se({subtitlePaddingBottom:e})})),wp.element.createElement(Js,{title:Rs("Color Settings","blockspare"),initialOpen:!1},wp.element.createElement(qs,{title:Rs("Description Color","blockspare"),initialOpen:!1,colorSettings:[{value:o,onChange:e=>Se({descriptionColor:e}),label:Rs("Description Color","blockspare")}]})),y&&wp.element.createElement(Js,{title:Rs("Button Settings","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonTarget:!1,buttonTarget:b,onChangeButtonTarget:e=>Se({buttonTarget:!b}),enableGradient:N,onChangeGradient:e=>Se({enableGradient:e}),enableButtonSize:!0,buttonSize:d,onChangeButtonSize:e=>Se({buttonSize:e}),enableButtonShape:!0,buttonShape:m,onChangeButtonShape:e=>Se({buttonShape:e}),buttonBackgroundColor:u,onChangeButtonColor:e=>Se({buttonBackgroundColor:e}),buttonTextColor:p,onChangeButtonTextColor:e=>Se({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:f,onChangeBorderStyle:e=>Se({buttonStyle:e}),buttonHoverEffect:G,onchangeButtonHoverEffect:e=>Se({buttonHoverEffect:e}),borderColor:g,onchangeBorderColor:e=>Se({borderColor:e}),borderBtnTextColor:h,onChangeBorderBtnTextColor:e=>Se({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:W,onchangebtnBorderWidth:e=>Se({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:H,onchangeBtnFontWeight:e=>Se({btnFontWeight:e})}),wp.element.createElement(Js,{title:Rs(" Typography","blockspare"),initialOpen:!0},wp.element.createElement(br,{label:Rs("Button Fonts Settings"),attributes:_e,setAttributes:Se,loadGoogleFonts:{value:ke,label:Rs("buttonLoadGoogleFonts")},fontFamily:{value:fe,label:Rs("buttonFontFamily")},fontWeight:{value:ge,label:Rs("buttonFontWeight")},fontSubset:{value:he,label:Rs("buttonFontSubset")},fontSizeType:{value:ye,label:Rs("buttonFontSizeType")},fontSize:{value:be,label:Rs("buttonFontSize")},fontSizeMobile:{value:we,label:Rs("buttonFontSizeMobile")},fontSizeTablet:{value:ve,label:Rs("buttonFontSizeTablet")},disableLineHeight:!0})),"none"===f&&wp.element.createElement($s,{label:Rs("Enable Gradient","blockspare"),checked:N,onChange:()=>this.props.setAttributes({enableGradient:!N})}),N&&"none"===f&&y&&wp.element.createElement(Js,{title:Rs("Gradient Option","blockspare"),initialOpen:!0},wp.element.createElement(Oe,{backgroundColor1:z,onChangeBackgroundColor1:e=>Se({backgroundColor1:e}),backgroundColor2:Y,onChangeBackgroundColor2:e=>Se({backgroundColor2:e}),gradientAngle:B,onChangeGradientAngle:e=>Se({gradientAngle:e}),colorLocation1:A,onChangeColorLocation1:e=>Se({colorLocation1:e}),colorLocation2:I,onChangeColorLocation2:e=>Se({colorLocation2:e})}))),wp.element.createElement(Js,{title:Rs("Block Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:w,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>Se({marginTop:e}),marginEnableBottom:!0,marginBottom:v,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>Se({marginBottom:e})}))))}}var Zs=e=>{let t="";return"style-3"!=e.design&&(t={boxShadow:e.enableBoxShadow?e.xOffset+"px "+e.yOffset+"px "+e.blur+"px "+e.spread+"px "+e.shadowColor:"",borderRadius:e.borderRadius?e.borderRadius:null,backgroundColor:e.enableBackgroundColor?e.backGroundColor:void 0}),t};function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach((function(t){nc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ac=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.backGroundColor,y=t.subTitleFontSize,w=t.subTitleFontFamily,v=t.subTitleFontWeight,k=t.subTitleFontSizeType,_=t.subTitleFontSizeMobile,S=t.subTitleFontSizeTablet,T=t.headerpaddingTop,E=t.headerpaddingRight,x=t.headerpaddingBottom,M=t.headerpaddingLeft,C=t.headermarginTop,O=t.headermarginBottom,L=t.descriptionColor,F=t.descriptionFontSize,D=t.descriptionFontFamily,P=t.descriptionFontWeight,j=(t.descriptionFontSubset,t.descriptionFontSizeType),N=t.descriptionFontSizeMobile,z=t.descriptionFontSizeTablet,Y=t.design,B=t.buttonStyle,A=t.enableGradient,I=t.backgroundColor1,R=t.backgroundColor2,H=t.gradientAngle,W=t.colorLocation1,G=t.colorLocation2,U=(t.btnFontWeight,t.btnBorderWidth),q=t.borderColor,V=t.buttonBackgroundColor,$=t.borderBtnTextColor,J=t.buttonTextColor,X=t.buttonFontSize,K=t.buttonFontFamily,Q=t.buttonFontWeight,Z=t.buttonFontSizeType,ee=t.buttonFontSizeMobile,te=t.buttonFontSizeTablet,ne=[];if("style-3"!==Y&&ne.push({".blockspare-contentBox .blockspare-section-wrapper":{backgroundColor:h||"#fff"}}),ne.push({".blockspare-content-wrapper":tc({},Zi(e.attributes)),".blockspare-description":{color:L,fontSize:F+j,fontFamily:D,fontWeight:P},".blockspare-mainheader-wrap":tc({},Zs(e.attributes)),".blockspare-section-header-wrapper":{borderColor:u}}),ne.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:T+"px",paddingRight:E+"px",paddingBottom:x+"px",marginTop:C+"px",marginBottom:O+"px",paddingLeft:M+"px"}}),"none"===B)if(1==A){const e=H+"deg",t=W+"%",n=G+"%";ne.push({".blockspare-block-button span":{color:J||"#fff",borderWidth:U+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${I||"#3B1A5B"} ${t},${R||"#8B249C"} ${n})`}})}else ne.push({".blockspare-block-button span":{color:J||"#fff",borderWidth:U+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:V||"#3c1a5b"}});else ne.push({".blockspare-block-button span":{color:$||"#404040",borderColor:q||"#3c1a5b",borderStyle:B,borderWidth:U+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return ne.push({".blockspare-block-button span":{fontSize:X+Z,fontFamily:K,fontWeight:Q},tablet:{".blockspare-block-button span":{fontSize:te+Z}},mobile:{".blockspare-block-button span":{fontSize:ee+Z}}}),ne.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:y+k,fontFamily:w,fontWeight:v,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:S+k},".blockspare-description":{fontSize:z+k}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:_+k},".blockspare-description":{fontSize:N+k}}}),qr.a.all(ne)};function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function oc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ic=blockspare_globals,lc=wp.element,sc=lc.Component,cc=lc.Fragment,uc=wp.i18n.__,pc=wp.compose.compose,dc=wp.blockEditor,mc=dc.BlockControls,bc=dc.RichText,fc=dc.URLInput,gc=dc.AlignmentToolbar,hc=wp.components,yc=hc.IconButton,wc=hc.Dashicon;var vc=pc(Gr,Rr(ac))(class extends sc{render(){const e=this.props,t=e.attributes,n=(t.align,t.sectionAlignment),a=(t.backGroundColor,t.descriptionColor,t.sectionDescription),r=t.buttonText,o=t.buttonUrl,l=t.showButton,s=t.buttonSize,c=t.buttonShape,u=t.buttonAlignment,p=t.showContentImg,d=t.imgURL,m=t.imgAlt,b=t.imageShape,f=t.layoutOption,g=t.headerTagOption,h=t.headerTitle,y=t.headerSubTitle,w=t.design,v=(t.borderRadius,t.enableBackgroundColor,t.buttonHoverEffect),k=(t.profileContentFontSize,t.titleLoadGoogleFonts),_=t.titleFontFamily,S=t.titleFontWeight,T=t.subTitleLoadGoogleFonts,E=t.subTitleFontFamily,x=t.subTitleFontWeight,M=t.headerlayoutOption,C=t.descriptionLoadGoogleFonts,O=t.descriptionFontFamily,L=t.descriptionFontWeight,F=(t.descriptionFontSubset,t.buttonLoadGoogleFonts),D=t.buttonFontFamily,P=t.buttonFontWeight,j=e.className,N=(e.attributes,e.setAttributes),z=e.isSelected;let Y=ic.img;d&&d.length&&(Y=d);const B=i()([j,"blockspare-contentBox"]);let A,I;if(1==C){const e={google:{families:[O+(L?":"+L:"")]}};A=wp.element.createElement(oo,{config:e})}if(1==F){const e={google:{families:[D+(P?":"+P:"")]}};I=wp.element.createElement(oo,{config:e})}return wp.element.createElement(cc,null,wp.element.createElement(Qs,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){oc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:N},this.props)),wp.element.createElement(mc,null,wp.element.createElement(gc,{value:n,onChange:e=>{N({sectionAlignment:e})}})),wp.element.createElement("div",{className:B},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-content-wrapper blockspare-blocks",1==f?"reverse-img":"","style-3"!=w?"has-background":"",w)},p&&d&&wp.element.createElement("div",{className:"content-img-wrap"},wp.element.createElement("img",{src:Y,alt:m,className:b})),!d&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:"blockspare-section-wrapper blockspare-mainheader-wrap"},wp.element.createElement("div",{className:"blockspare-section-head-wrap"},wp.element.createElement("div",{className:"blockspare-title-subtitle-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",M,"blockspare-"+n)},wp.element.createElement(Ki,{setAttributes:N,headerTitle:h,headerTagOption:g,headerSubTitle:y,titleFontFamily:_,titleFontWeight:S,titleLoadGoogleFonts:k,subTitleLoadGoogleFonts:T,subTitleFontFamily:E,subTitleFontWeight:x}))))),wp.element.createElement("div",{className:"blockspare-desc-btn-wrap"},wp.element.createElement(bc,{tagName:"p",placeholder:uc("Description","blockspare"),keepPlaceholderOnFocus:!0,value:a,className:"blockspare-description",onChange:e=>N({sectionDescription:e})}),l&&wp.element.createElement("div",{className:"blockspare-block-button"},wp.element.createElement(bc,{tagName:"span",placeholder:uc("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:`<span>${r}</span>`,allowedFormats:[],className:i()("blockspare-button",c,s,v),onChange:e=>N({buttonText:e})})),z&&l&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+u,onSubmit:e=>e.preventDefault()},wp.element.createElement(wc,{icon:"admin-links"}),wp.element.createElement(fc,{className:"button-url",value:o,onChange:e=>N({buttonUrl:e})}),wp.element.createElement(yc,{icon:"editor-break",label:uc("Apply","blockspare"),type:"submit"}))))),A,I))}});const kc=blockspare_globals,_c=wp.element.Component,Sc=(wp.i18n.__,wp.compose.compose),Tc=wp.blockEditor.RichText;var Ec=Sc(Gr,Rr(ac))(class extends _c{render(){const e=this.props,t=e.attributes,n=(t.align,t.sectionAlignment),a=(t.descriptionColor,t.sectionDescription),r=t.buttonText,o=t.buttonUrl,l=t.showButton,s=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,p=t.showContentImg,d=t.imgURL,m=t.imgAlt,b=t.imageShape,f=t.layoutOption,g=t.headerTitle,h=t.headerSubTitle,y=(t.dashColor,t.headerlayoutOption),w=t.headerTagOption,v=(t.backGroundColor,t.design),k=(t.borderRadius,t.enableBackgroundColor,t.buttonHoverEffect),_=e.className;e.attributes;let S=kc.img;d&&d.length&&(S=d);const T=i()([_,"blockspare-contentBox"]);return wp.element.createElement("div",{className:T},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-content-wrapper blockspare-blocks",1==f?"reverse-img":"","style-3"!=v?"has-background":"",v)},p&&d&&wp.element.createElement("div",{className:"content-img-wrap"},wp.element.createElement("img",{src:S,alt:m,className:b})),!d&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:"blockspare-section-wrapper blockspare-mainheader-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",y,"blockspare-"+n)},wp.element.createElement("div",{className:"blockspare-title-subtitle-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",y,"blockspare-"+n)},wp.element.createElement(Ml,{headerTitle:g,headerTagOption:w,headerSubTitle:h}))))),wp.element.createElement("div",{className:"blockspare-desc-btn-wrap"},wp.element.createElement(Tc.Content,{tagName:"p",className:"blockspare-description",value:a}),l&&wp.element.createElement("div",{className:"blockspare-block-button"},r&&wp.element.createElement("a",{href:o,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:i()("blockspare-button",c,s,k)},wp.element.createElement(Tc.Content,{tagName:"span",value:r}))))))))}});const xc=wp.element.Component;class Mc extends xc{constructor(e){super(...arguments)}render(){return wp.element.createElement("div",{style:{textAlign:this.props.attributes.sectionAlignment},className:i()("blockspare-block-button")},this.props.children)}}function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){Lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fc=blockspare_globals,Dc=wp.element,Pc=Dc.Component,jc=(Dc.Fragment,wp.i18n.__,wp.blockEditor),Nc=(jc.BlockControls,jc.RichText);jc.URLInput,jc.AlignmentToolbar;class zc extends Pc{render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.descriptionColor,o=t.sectionDescription,l=t.buttonText,s=t.buttonUrl,c=t.showButton,u=t.buttonSize,p=t.buttonShape,d=t.buttonTarget,m=t.showContentImg,b=t.imgURL,f=t.imgAlt,g=t.imageShape,h=t.layoutOption,y=t.headerTitle,w=t.headerSubTitle,v=t.dashColor,k=t.headerlayoutOption,_=t.headerTagOption,S=(t.backGroundColor,t.design),T=(t.borderRadius,t.enableBackgroundColor,t.buttonHoverEffect),E=(e.className,e.attributes),x=Oc({},Zi(E)),M={borderColor:v},C=Oc({},Yl(E)),O=Oc({},jl(E)),L=Oc({},Nl(E)),F=Oc({},zl(E));let D=Fc.img;return b&&b.length&&(D=b),wp.element.createElement("div",{className:i()("blockspare-content-wrapper blockspare-blocks","align"+n,1==h?"reverse-img":"","style-3"!=S?"has-background":"",S),style:x},m&&b&&wp.element.createElement("div",{className:"content-img-wrap"},wp.element.createElement("img",{src:D,alt:f,className:g})),!b&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:"blockspare-section-wrapper",style:Oc({},Zs(E))},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper"),style:M},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",k,"blockspare-"+a)},wp.element.createElement("div",{className:"blockspare-title-subtitle-wrap"},wp.element.createElement(Vl,this.props,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:O}),y&&wp.element.createElement(Nc.Content,{tagName:_,className:"blockspare-title",style:L,value:y}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:O})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:O}),w&&wp.element.createElement(Nc.Content,{tagName:"p",className:"blockspare-subtitle",style:F,value:w}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:O}))))),wp.element.createElement("div",{className:"blockspare-desc-btn-wrap"},wp.element.createElement(Nc.Content,{tagName:"p",style:{color:r},value:o}),c&&wp.element.createElement(Mc,this.props,l&&wp.element.createElement("a",{href:s,target:d?"_blank":null,rel:d?"noopener noreferrer":null,className:i()("blockspare-button",p,u,T),style:C},wp.element.createElement(Nc.Content,{value:l})))))))}}var Yc=n(279);function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rc=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.backGroundColor,y=t.subTitleFontSize,w=t.subTitleFontFamily,v=t.subTitleFontWeight,k=t.subTitleFontSizeType,_=t.subTitleFontSizeMobile,S=t.subTitleFontSizeTablet,T=t.headerpaddingTop,E=t.headerpaddingRight,x=t.headerpaddingBottom,M=t.headerpaddingLeft,C=t.headermarginTop,O=t.headermarginBottom,L=t.descriptionColor,F=t.descriptionFontSize,D=t.descriptionFontFamily,P=t.descriptionFontWeight,j=(t.descriptionFontSubset,t.descriptionFontSizeType),N=t.descriptionFontSizeMobile,z=t.descriptionFontSizeTablet,Y=[];return"style-3"!==t.design&&Y.push({".blockspare-contentBox .blockspare-section-wrapper":{backgroundColor:h||"#fff"}}),Y.push({".blockspare-content-wrapper":Ac({},Zi(e.attributes)),".blockspare-description":{color:L,fontSize:F+j,fontFamily:D,fontWeight:P},".blockspare-button":Ac({},Mo(e.attributes)),".blockspare-mainheader-wrap":Ac({},Zs(e.attributes)),".blockspare-section-header-wrapper":{borderColor:u}}),Y.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:T+"px",paddingRight:E+"px",paddingBottom:x+"px",marginTop:C+"px",marginBottom:O+"px",paddingLeft:M+"px"}}),Y.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:y+k,fontFamily:w,fontWeight:v,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:S+k},".blockspare-description":{fontSize:z+k}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:_+k},".blockspare-description":{fontSize:N+k}}}),qr.a.all(Y)};const Hc=blockspare_globals,Wc=wp.element.Component,Gc=(wp.i18n.__,wp.compose.compose),Uc=wp.blockEditor.RichText;var qc=Gc(Gr,Rr(Rc))(class extends Wc{render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=(t.descriptionColor,t.sectionDescription),o=t.buttonText,l=t.buttonUrl,s=t.showButton,c=t.buttonSize,u=t.buttonShape,p=t.buttonTarget,d=t.showContentImg,m=t.imgURL,b=t.imgAlt,f=t.imageShape,g=t.layoutOption,h=t.headerTitle,y=t.headerSubTitle,w=(t.dashColor,t.headerlayoutOption),v=t.headerTagOption,k=(t.backGroundColor,t.design),_=(t.borderRadius,t.enableBackgroundColor,t.buttonHoverEffect),S=e.className;e.attributes;let T=Hc.img;m&&m.length&&(T=m);const E=i()([S,"blockspare-contentBox"]);return wp.element.createElement("div",{className:E},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-content-wrapper blockspare-blocks","align"+n,1==g?"reverse-img":"","style-3"!=k?"has-background":"",k)},d&&m&&wp.element.createElement("div",{className:"content-img-wrap"},wp.element.createElement("img",{src:T,alt:b,className:f})),!m&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:"blockspare-section-wrapper blockspare-mainheader-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",w,"blockspare-"+a)},wp.element.createElement("div",{className:"blockspare-title-subtitle-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",w,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:h,headerTagOption:v,headerSubTitle:y}))))),wp.element.createElement("div",{className:"blockspare-desc-btn-wrap"},wp.element.createElement(Uc.Content,{tagName:"p",className:"blockspare-description",value:r}),s&&wp.element.createElement("div",{className:"blockspare-block-button"},o&&wp.element.createElement("a",{href:l,target:p?"_blank":null,rel:p?"noopener noreferrer":null,className:i()("blockspare-button",u,c,_)},wp.element.createElement(Uc.Content,{value:o}))))))))}});function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xc=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.backGroundColor,y=t.subTitleFontSize,w=t.subTitleFontFamily,v=t.subTitleFontWeight,k=t.subTitleFontSizeType,_=t.subTitleFontSizeMobile,S=t.subTitleFontSizeTablet,T=t.headerpaddingTop,E=t.headerpaddingRight,x=t.headerpaddingBottom,M=t.headerpaddingLeft,C=t.headermarginTop,O=t.headermarginBottom,L=t.descriptionColor,F=t.descriptionFontSize,D=t.descriptionFontFamily,P=t.descriptionFontWeight,j=(t.descriptionFontSubset,t.descriptionFontSizeType),N=t.descriptionFontSizeMobile,z=t.descriptionFontSizeTablet,Y=[];return"style-3"!==t.design&&Y.push({".blockspare-contentBox .blockspare-section-wrapper":{backgroundColor:h||"#fff"}}),Y.push({".blockspare-content-wrapper":$c({},Zi(e.attributes)),".blockspare-description":{color:L,fontSize:F+j,fontFamily:D,fontWeight:P},".blockspare-button":$c({},xo(e.attributes)),".blockspare-mainheader-wrap":$c({},Zs(e.attributes)),".blockspare-section-header-wrapper":{borderColor:u}}),Y.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:T+"px",paddingRight:E+"px",paddingBottom:x+"px",marginTop:C+"px",marginBottom:O+"px",paddingLeft:M+"px"}}),Y.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:y+k,fontFamily:w,fontWeight:v,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:S+k},".blockspare-description":{fontSize:z+k}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:_+k},".blockspare-description":{fontSize:N+k}}}),qr.a.all(Y)};const Kc=blockspare_globals,Qc=wp.element.Component,Zc=(wp.i18n.__,wp.compose.compose),eu=wp.blockEditor.RichText;var tu=Zc(Gr,Rr(Xc))(class extends Qc{render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=(t.descriptionColor,t.sectionDescription),o=t.buttonText,l=t.buttonUrl,s=t.showButton,c=t.buttonSize,u=t.buttonShape,p=t.buttonTarget,d=t.showContentImg,m=t.imgURL,b=t.imgAlt,f=t.imageShape,g=t.layoutOption,h=t.headerTitle,y=t.headerSubTitle,w=(t.dashColor,t.headerlayoutOption),v=t.headerTagOption,k=(t.backGroundColor,t.design),_=(t.borderRadius,t.enableBackgroundColor,t.buttonHoverEffect),S=e.className;e.attributes;let T=Kc.img;m&&m.length&&(T=m);const E=i()([S,"blockspare-contentBox"]);return wp.element.createElement("div",{className:E},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-content-wrapper blockspare-blocks","align"+n,1==g?"reverse-img":"","style-3"!=k?"has-background":"",k)},d&&m&&wp.element.createElement("div",{className:"content-img-wrap"},wp.element.createElement("img",{src:T,alt:b,className:f})),!m&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:"blockspare-section-wrapper blockspare-mainheader-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",w,"blockspare-"+a)},wp.element.createElement("div",{className:"blockspare-title-subtitle-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",w,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:h,headerTagOption:v,headerSubTitle:y}))))),wp.element.createElement("div",{className:"blockspare-desc-btn-wrap"},wp.element.createElement(eu.Content,{tagName:"p",className:"blockspare-description",value:r}),s&&wp.element.createElement("div",{className:"blockspare-block-button"},o&&wp.element.createElement("a",{href:l,target:p?"_blank":null,rel:p?"noopener noreferrer":null,className:i()("blockspare-button",u,c,_)},wp.element.createElement(eu.Content,{value:o}))))))))}});function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(n),!0).forEach((function(t){ru(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ru(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ou=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.backGroundColor,y=t.subTitleFontSize,w=t.subTitleFontFamily,v=t.subTitleFontWeight,k=t.subTitleFontSizeType,_=t.subTitleFontSizeMobile,S=t.subTitleFontSizeTablet,T=t.headerpaddingTop,E=t.headerpaddingRight,x=t.headerpaddingBottom,M=t.headerpaddingLeft,C=t.headermarginTop,O=t.headermarginBottom,L=t.descriptionColor,F=t.descriptionFontSize,D=t.descriptionFontFamily,P=t.descriptionFontWeight,j=(t.descriptionFontSubset,t.descriptionFontSizeType),N=t.descriptionFontSizeMobile,z=t.descriptionFontSizeTablet,Y=t.design,B=t.buttonStyle,A=t.enableGradient,I=t.backgroundColor1,R=t.backgroundColor2,H=t.gradientAngle,W=t.colorLocation1,G=t.colorLocation2,U=t.btnFontWeight,q=t.btnBorderWidth,V=t.borderColor,$=t.buttonBackgroundColor,J=t.borderBtnTextColor,X=t.buttonTextColor,K=[];if("style-3"!==Y&&K.push({".blockspare-contentBox .blockspare-section-wrapper":{backgroundColor:h||"#fff"}}),K.push({".blockspare-content-wrapper":au({},Zi(e.attributes)),".blockspare-description":{color:L,fontSize:F+j,fontFamily:D,fontWeight:P},".blockspare-mainheader-wrap":au({},Zs(e.attributes)),".blockspare-section-header-wrapper":{borderColor:u}}),K.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:T+"px",paddingRight:E+"px",paddingBottom:x+"px",marginTop:C+"px",marginBottom:O+"px",paddingLeft:M+"px"}}),"none"===B)if(1==A){const e=H+"deg",t=W+"%",n=G+"%";K.push({".blockspare-block-button span":{color:X||"#fff",fontWeight:U,borderWidth:q+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${I||"#3B1A5B"} ${t},${R||"#8B249C"} ${n})`}})}else K.push({".blockspare-block-button span":{color:X||"#fff",fontWeight:U,borderWidth:q+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:$||"#3c1a5b"}});else K.push({".blockspare-block-button span":{color:J||"#404040",borderColor:V||"#3c1a5b",borderStyle:B,fontWeight:U,borderWidth:q+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return K.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:y+k,fontFamily:w,fontWeight:v,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:S+k},".blockspare-description":{fontSize:z+k}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:_+k},".blockspare-description":{fontSize:N+k}}}),qr.a.all(K)};const iu=blockspare_globals,lu=wp.element.Component,su=(wp.i18n.__,wp.compose.compose),cu=wp.blockEditor.RichText;var uu=su(Gr,Rr(ou))(class extends lu{render(){const e=this.props,t=e.attributes,n=(t.align,t.sectionAlignment),a=(t.descriptionColor,t.sectionDescription),r=t.buttonText,o=t.buttonUrl,l=t.showButton,s=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,p=t.showContentImg,d=t.imgURL,m=t.imgAlt,b=t.imageShape,f=t.layoutOption,g=t.headerTitle,h=t.headerSubTitle,y=(t.dashColor,t.headerlayoutOption),w=t.headerTagOption,v=(t.backGroundColor,t.design),k=(t.borderRadius,t.enableBackgroundColor,t.buttonHoverEffect),_=e.className;e.attributes;let S=iu.img;d&&d.length&&(S=d);const T=i()([_,"blockspare-contentBox"]);return wp.element.createElement("div",{className:T},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-content-wrapper blockspare-blocks",1==f?"reverse-img":"","style-3"!=v?"has-background":"",v)},p&&d&&wp.element.createElement("div",{className:"content-img-wrap"},wp.element.createElement("img",{src:S,alt:m,className:b})),!d&&wp.element.createElement("div",{className:"empty-plcaeholder-div"}),wp.element.createElement("div",{className:"blockspare-section-wrapper blockspare-mainheader-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",y,"blockspare-"+n)},wp.element.createElement("div",{className:"blockspare-title-subtitle-wrap"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",y,"blockspare-"+n)},wp.element.createElement(Ml,{headerTitle:g,headerTagOption:w,headerSubTitle:h}))))),wp.element.createElement("div",{className:"blockspare-desc-btn-wrap"},wp.element.createElement(cu.Content,{tagName:"p",className:"blockspare-description",value:a}),l&&wp.element.createElement("div",{className:"blockspare-block-button"},r&&wp.element.createElement("a",{href:o,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:i()("blockspare-button",c,s,k)},wp.element.createElement(cu.Content,{tagName:"span",value:r}))))))))}});function pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){mu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bu=du(du(du(du(du({},ni),ei),Yc.attributes),ti),Eo);var fu=[{attributes:bu,save:e=>wp.element.createElement(zc,e)},{attributes:bu,save:e=>wp.element.createElement(tu,e)},{attributes:bu,save:e=>wp.element.createElement(qc,e)},{attributes:du(du(du(du(du({},ni),ei),As.attributes),ti),Eo),save:e=>wp.element.createElement(uu,e)}];function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){yu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wu=wp.i18n.__,vu=wp.blocks.registerBlockType,ku=As.name,_u=As.category,Su=hu(hu(hu(hu(hu({},ni),ei),As.attributes),ti),Eo);vu(ku,{title:wu("BS Content Box","blockspare"),description:wu("You can create a variety of layouts using this block.","blockspare"),category:_u,icon:r.contentbox,attributes:Su,keywords:[wu("block","blockspare"),wu("container","blockspare"),wu("content","blockspare"),wu("box","blockspare")],supports:{align:["center","wide","full"]},example:{attributes:{design:"style-1"}},edit:vc,save:Ec,deprecated:fu});n(498),n(499);var Tu=n(29);wp.i18n.__,wp.element.Fragment,wp.components.RangeControl,wp.blockEditor.PanelColorSettings;const Eu=wp.i18n.__,xu=wp.element.Component,Mu=wp.blockEditor,Cu=Mu.InspectorControls,Ou=(Mu.MediaUpload,Mu.PanelColorSettings),Lu=wp.components,Fu=(Lu.RangeControl,Lu.PanelBody);Lu.IconButton,Lu.ToggleControl,Lu.SelectControl;class Du extends xu{render(){const e=this.props.attributes,t=(e.opacityRatio,e.backGroundColor),n=(e.imgURL,e.imgID,e.imgAlt,e.paddingTop),a=e.paddingRight,r=e.paddingBottom,o=e.paddingLeft,i=e.marginTop,l=e.marginBottom,s=(e.backgroundFix,e.separatorEnable,e.design,e.width,e.height,e.color,e.showFront,e.zindexDivider,e.dividerPosition,e.topDividerMargin,e.bottomDividerMargin,e.enableGradient,e.backgroundColor1,e.backgroundColor2,e.gradientAngle,e.colorLocation1,e.colorLocation2,e.borderRadius,e.enableBoxShadow,e.xOffset,e.yOffset,e.blur,e.spread,e.shadowColor,e.enableGap,this.props.setAttributes);Eu("Top","blockspare"),Eu("Bottom","blockspare");return wp.element.createElement(Cu,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"container"}),wp.element.createElement(Fu,{title:Eu("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ou,{title:Eu("Background Color","blockspare"),initialOpen:!0,colorSettings:[{value:t,onChange:e=>s({backGroundColor:e}),label:Eu("Background Color","blockspare")}]})),wp.element.createElement(Fu,{title:Eu("Block Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Fu,{title:Eu("Padding Settings","blockspare"),initialOpen:!0},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>s({paddingTop:e}),paddingEnableRight:!0,paddingRight:a,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>s({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:r,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>s({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>s({paddingLeft:e})})),wp.element.createElement(Fu,{title:Eu("Margin Settings","blockspare"),initialOpen:!0},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:i,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>s({marginTop:e}),marginEnableBottom:!0,marginBottom:l,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>s({marginBottom:e})})))))}}n(500);var Pu=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{className:"st0",d:"M-.5 27.7v146.8h1946V10.7s-170.6 20.4-265 57.2c0 0-374.1 116.7-794.2 24.7 0 0-414.1-100.9-673.1-92-.1 0-102.9 5.2-213.7 27.1z"}),wp.element.createElement("path",{className:"st1",d:"M1945.5 69.9s-425.5-100-888 20.5c0 0-342.6 63.3-611.4 43.8 0 0-224.9-40.3-446.6-84.4V174h1946V69.9z"}),wp.element.createElement("path",{d:"M-.5 88s425.5-100 888 20.5c0 0 342.6 63.3 611.4 43.8 0 0 224.9-20.2 446.6-64.3v87H-.5V88z"}))};Pu.defaultProps={className:"divider--doublewave",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1946 175",preserveAspectRatio:"none"};var ju=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{className:"st1",d:"M-.5 0l958.8 69.3L1917 0v77H-.5z"}),wp.element.createElement("path",{className:"st2",d:"M-.5 24.5l958.8 46.3L1917 24.5V77H-.5z"}),wp.element.createElement("path",{className:"st3",d:"M-.5 49.1l958.8 23.1L1917 49.1V77H-.5z"}),wp.element.createElement("path",{d:"M-.5 77H1917v28H-.5z"}))};ju.defaultProps={className:"divider--fan",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1917 105",preserveAspectRatio:"none"};var Nu=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{d:"M42.19 9.35c2.26.25 5.15-.04 7.55-.53 2.36-.49 7.09-2.35 10.05-3.57C67.37 2.03 73.16.8 79.05.28c2.36-.21 4.87-.35 10.34.25s10.62 2.56 10.62 2.56V10H0V6.97s7.2-3.26 15.84-3.05c3.92.07 9.28.67 13.4 2.24 2.12.81 5.22 1.82 7.97 2.42 2.72.63 3.95.67 4.98.77z"}))};Nu.defaultProps={className:"divider--wavy",viewBox:"0 0 100 10",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"};var zu=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{d:"M1000 299l2-279C847-16 692 155 587 184c-102.64 28.35-149-32-232-31-80 1-142 53-229 80-65.54 20.34-101 15-126 11.61V299z"}),wp.element.createElement("path",{d:"M1000 286l2-252C845-9 700 178 597 212c-101.11 33.38-159-47-242-46-80 1-145.09 54.07-229 87-65.21 25.59-104.07 16.72-126 10.61V286z"}),wp.element.createElement("path",{d:"M1000 300l1-230.29C784 57 700.53 198.86 597 226c-103 27-174-30-257-29-80 1-130.09 37.07-214 70-61.23 24-108 15.61-126 10.61V300z"}))};zu.defaultProps={className:"divider--waves",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 300",preserveAspectRatio:"none"};var Yu=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{d:"M0 100C20 0 50 0 100 100z"}))};Yu.defaultProps={className:"divider--sloped",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"};var Bu=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{className:"st1",d:"M0 108.1h630V0S475 104.6 314 104.6 0 0 0 0z"}),wp.element.createElement("path",{className:"st2",d:"M0 106.9h630V17.8s-155 87.9-316 87.9S0 19 0 19z"}),wp.element.createElement("path",{d:"M0 120h630V45.1s-155 61.8-316 61.8S0 45.1 0 45.1z"}))};Bu.defaultProps={className:"divider--curve",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 630 120",preserveAspectRatio:"none"};var Au=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{d:"M-53.5 413H-337v-10.8s6.5 1.6 16.8.5c4.8-.6 10.1-2.5 15.8-3.7 5.7-1.2 10.5-1.5 12-1.6 5.9-.2 11 .5 14.2.9 7.6.9 13.2 3.5 17 4.7 3.9 1.2 9.1 1.9 10.5 2 13.2.8 45.3-15.5 63-15.8 16.6-.3 30 6.1 36.6 9.3 5.9 2.8 6.4 3 18 7.4s33.4-3.7 44.7-5.7c8.3-1.5 14.1-1.8 20.9-1.5 6.7.3 14 4.6 14 4.6v9.7zm-26.8-11.7c-2.9.4-5.7 1.8-6 1.9s3.5-1.1 5.8-1.1 3.6.6 4.3-.4c.6-1-1.1-.9-4.1-.4zm-20.1 3.6c-3.1.5-9.1 2-12.4 2.7-8 1.7-16.8 1-17.6 1.1-.7.1 6.9 1.2 15.1.1 4.8-.7 11.9-2.7 15.1-3.5 3.2-.7 5.6-.9 5.6-.9s-2.5-.1-5.8.5zm-69.9-7.4c-2.4-.5-2.2-.8-7.6-1.6-5.4-.8-11.2-.2-11.2 0-.1.1 4.9.1 8.8.5 3.8.4 7.9 1.4 10 2 5.2 1.4 20.2 6.8 18.5 6.1-1.7-.7-14.7-6.2-18.5-7zm27.3 6.8c-3.1-1.2-6.8-3.1-6.6-3 .2.2 2.9 2.2 6.9 3.7s5 1.1 4.8 1.1c-.1 0-2.1-.6-5.1-1.8zm84.9 0c-3.9-1.9-7.2-2.5-7.4-2.5-.2-.1 3.8 1.3 6.7 2.7 2.9 1.4 4.7 2.4 4.8 2.5.1.1-.2-.8-4.1-2.7zm-253-2.2c-3.3 1.1-3.5 1.1-5.7 1.6-4.3 1-12.2.6-12.5.7-.4.1 7.3 1 11.3.2 2.4-.4 5.2-1 7.8-2 2.6-1 4.6-1 4.5-1.2-.1-.3-2.1-.4-5.4.7zm58.2 5.4c5.2.6 6.2 0 6.2-.3s-4 .3-8.9-.8c-4.9-1-8-2.5-8.4-2.6s5.9 3.1 11.1 3.7zm-7.6.9c1.6.4 2.7.3 2.7.2s.4-.3-1.9-.6c-2.3-.4-5.5-1.8-5.7-1.7-.2.1 3.2 1.6 4.9 2.1zm22.2-.8c1.6-.5 2.5-1.2 2.4-1.3-.1-.1.2-.5-1.9.5s-5.5 1.6-5.6 1.8c-.1.2 3.5-.4 5.1-1zm-31.7-5.1c1.6.4 2.1.7 2.5.8s-.6-.5-2.2-1.2-2-.5-1.9-.2c.1.3-.1.2 1.6.6zm-28.8-2.2c1.5.1 1.6-.1 1.6-.4 0-.3-.8-.3-2-.2-1.2.1-3.5.9-3.3.9s2.1-.4 3.7-.3zm105.8-8.7c-6.5.2-20.1 5.2-16.5 4.1 3.6-1.1 12.2-3.5 17.2-3.5 5.1 0 7.4-.4 7.5-.3.1.1-1.7-.5-8.2-.3z"}),wp.element.createElement("path",{d:"M-74.2 394.6c-3.3.2-16.6 3-17 3.3-.4.3 9.3-2.2 16.6-2.9 2.6-.3 7.1.1 7.2 0 .1 0-1.9-.8-6.8-.4zM-118.1 405.1c-7.4.6-13-1.1-13.3-1.2-.4-.1 7.3.7 12.3.5 5-.2 9.3-1.1 9.5-1.2.2-.1-1.1 1.3-8.5 1.9zM-128.9 400c1.5-.1 1.6.1 1.6.4 0 .3-.8.4-2 .3s-3.3-1-3.2-1.1 1.9.5 3.6.4zM-142.1 399.7c-2.1-1-6.2-2.7-6.3-2.6-.1 0 4.2 2.2 6.1 3.1 1.9 1 6.3 2.3 6.3 2.2 0-.1-4-1.7-6.1-2.7zM-189.3 385.9c-3.3.2-16.6 3-17 3.3s9.3-2.2 16.6-2.9c2.6-.3 7.1.1 7.2 0s-1.9-.8-6.8-.4zM-292.3 394.2c1.6.1 4.9-.3 6.7-.4 4.3-.3 8.2 1.9 8.6 1.9.4.1-2.8-2.2-7-2.6-2.4-.2-6.5.5-8.2.7-1.7.2-2.9-.1-2.9-.1s1.2.4 2.8.5zM-258.5 402c1.6.4 3.4.1 3.4 0 0-.2.2-.3-2.1-.5-2.3-.3-4.1-1.2-4.3-1.1-.2.1 1.4 1.1 3 1.6zM-314.8 398.7c2.4-.6 5.1-1.5 5.1-1.4s-2.6 1.5-5 2-6.7.6-6.7.5c.1-.1 4.3-.5 6.6-1.1z"}))};Au.defaultProps={className:"divider--shapeocean",xmlns:"http://www.w3.org/2000/svg",viewBox:"-337 385.2 283.5 27.8",preserveAspectRatio:"none"};var Iu=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{className:"st1",d:"M261.2 64.9C367.6 54.7 499.6 39.7 630 18.5V0C497.8 31.4 363.7 52 261.2 64.9z"}),wp.element.createElement("path",{className:"st2",d:"M261.2 64.9c-41 3.9-78.2 7.1-110 9.6 13.2-.4 27-.9 41.5-1.6C315 67.7 478.4 59.4 630 34.8V18.5C499.1 39.8 367.3 54.8 261.2 64.9z"}),wp.element.createElement("path",{d:"M192.7 72.9c-14.5.7-28.3 1.2-41.5 1.6C59.9 77.7 0 77.4 0 77.4V80h630V33.8C478.4 58.4 315 67.7 192.7 72.9z"}))};Iu.defaultProps={className:"divider--grow",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 630 80",preserveAspectRatio:"none"};var Ru=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{d:"M630 36.9a34.6 34.6 0 0 0-16.5-4.2c-17.2 0-31.8 12.7-36.7 30.3a21.2 21.2 0 0 0-9.3-2.2 21.8 21.8 0 0 0-13.9 5.1 38.7 38.7 0 0 0-40.4-4.8c-5.2-7.7-13.4-12.6-22.7-12.6a25.7 25.7 0 0 0-8.7 1.5C472.9 27.8 453 12.4 430 12.4s-42.7 15.3-51.7 37.2c-7.2-10.9-18.8-18.1-31.8-18.1a37 37 0 0 0-24 9.2c-6-10.3-16.3-17-28-17-13.8 0-25.6 9.3-30.7 22.7a26.5 26.5 0 0 0-19.8-9.2 22 22 0 0 0-5.8.7c-4-11.6-14-19.9-25.7-19.9a24.7 24.7 0 0 0-9.4 1.9C189.2 7.4 171.6 0 152.5 0 124.6 0 100 15.8 85.3 39.9A27.6 27.6 0 0 0 63 28.2a23.9 23.9 0 0 0-7.1 1C47.2 13 31.5 2.3 13.5 2.3A43.3 43.3 0 0 0 0 4.4V80h630z"}))};Ru.defaultProps={className:"divider--clouds",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 630 80",preserveAspectRatio:"none"};var Hu=function(e){return wp.element.createElement("svg",e,wp.element.createElement("path",{d:"M0 100L100 0v100z"}))};Hu.defaultProps={className:"divider--angled",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"};const Wu={wavy:Nu,waves:zu,"double-wave":Pu,fan:ju,sloped:Yu,curve:Bu,shapeocean:Au,grow:Iu,clouds:Ru,angled:Hu},Gu=e=>{const t=Wu[e.design],n=i()([e.className,"blockspare-separator-wrapper"]);return wp.element.createElement("div",{className:n},wp.element.createElement(t,{className:e.design,preserveAspectRatio:"none","aria-hidden":"true"}),e.children)};Gu.defaultProps={className:"",design:"double-wave",shadow:!1},Gu.Save=e=>wp.element.createElement(Gu,e);var Uu=Gu;const qu=wp.i18n.__,Vu=wp.element,$u=Vu.Component,Ju=Vu.Fragment,Xu=wp.blockEditor,Ku=Xu.BlockControls,Qu=(Xu.BlockAlignmentToolbar,wp.components.Toolbar);var Zu=class extends $u{render(){const e=this.props,t=e.attributes,n=e.setAttributes,a=(t.horizontalFlip,t.verticalFlip),o=[{icon:r.flipY,title:qu("Flip horiztonally","blockspare"),isActive:!!a,onClick:()=>n({verticalFlip:!a})}];return wp.element.createElement(Ju,null,wp.element.createElement(Ku,null,wp.element.createElement(Qu,{controls:o})))}};var ep=e=>{let t="";if(1==e.enableGradient){const n=e.gradientAngle+"deg",a=e.colorLocation1+"%",r=e.colorLocation2+"%";t={backgroundImage:`linear-gradient(${n},${e.backgroundColor1?e.backgroundColor1:"#3B1A5B"} ${a},${e.backgroundColor2?e.backgroundColor2:"#8B249C"} ${r})`}}else t={backgroundColor:e.backGroundColor?e.backGroundColor:"#fff"};return t};function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(n),!0).forEach((function(t){ap(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ap(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rp=e=>{const t=e.attributes,n=(t.align,t.opacityRatio,t.imgURL),a=(t.backgroundFix,t.verticalFlip,t.horizontalFlip,t.separatorEnable,t.design,t.height,t.color,t.width,t.showFront,t.zindexDivider,t.dividerPosition,t.topDividerMargin,t.bottomDividerMargin,t.borderRadius);t.enableGap;let r="";n&&(r="url("+n+")");const o=[];return o.push({".blockspare-block-container-wrapper":np(np(np(np({},Qi(e.attributes)),ep(e.attributes)),Zi(e.attributes)),{},{borderRadius:a?a+"px":null}),".blockspare-image-wrap":{backgroundImage:r}}),qr.a.all(o)};function op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ip(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lp=wp.element,sp=lp.Component,cp=lp.Fragment,up=wp.compose.compose,pp=wp.blockEditor.InnerBlocks;var dp=up(Gr,Rr(rp))(class extends sp{render(){const e=this.props,t=e.attributes,n=t.align,a=t.opacityRatio,r=t.imgURL,o=t.backgroundFix,l=t.verticalFlip,s=t.horizontalFlip,c=t.separatorEnable,u=t.design,p=(t.height,t.color,t.width),d=t.showFront,m=(t.zindexDivider,t.dividerPosition),b=(t.topDividerMargin,t.bottomDividerMargin,t.borderRadius,t.enableGap),f=e.className,g=(e.attributes,e.setAttributes),h=e.isSelected,y=i()([f]);let w=i()("blockspare-blocks blockspare-svg-wrapper",function(e){if(void 0!==e){return"has-width-"+e.toString().replace(".","-")}}(p),f,{"is-vertically-flipped":l,"is-horizontally-flipped":s});return wp.element.createElement(cp,null,wp.element.createElement(Du,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?op(Object(n),!0).forEach((function(t){ip(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:g},this.props)),h&&c&&wp.element.createElement(Zu,this.props),wp.element.createElement("div",{className:y},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-container-wrapper","align"+n,b?"has-gap-enable":"",r&&r.length&&o?"blockspare-background-fix":"",c?m:"")},wp.element.createElement("div",{className:i()("blockspare-container-background","blockspare-image-wrap",(v=a,0===v?null:"has-background-opacity-"+10*Math.round(v/10)),{"has-background-opacity":0!==a})}),c&&wp.element.createElement("div",{className:i()("blockspare-top-separator",d?"blockspare-svg-show-front":"")},wp.element.createElement("div",{className:w},wp.element.createElement(Uu,{design:u,shadow:!1,className:"blockspare-svg-svg-inner"}))),wp.element.createElement("div",{className:"blockspare-container"},wp.element.createElement("div",{className:"blockspare-inner-blocks"},wp.element.createElement(pp,{templateLock:!1,renderAppender:()=>this.props.hasInnerBlocks?wp.element.createElement(pp.DefaultBlockAppender,null):wp.element.createElement(pp.ButtonBlockAppender,null)}))))));var v}});const mp=wp.element.Component,bp=wp.compose.compose,fp=wp.blockEditor.InnerBlocks;var gp=bp(Gr,Rr(rp))(class extends mp{render(){const e=this.props,t=e.attributes,n=t.align,a=t.opacityRatio,r=t.imgURL,o=t.backgroundFix,l=t.verticalFlip,s=t.horizontalFlip,c=t.separatorEnable,u=t.design,p=(t.height,t.color,t.width),d=t.showFront,m=(t.zindexDivider,t.dividerPosition),b=(t.topDividerMargin,t.bottomDividerMargin,t.borderRadius,t.enableGap),f=e.className,g=(e.attributes,i()([f]));let h=i()("blockspare-blocks blockspare-svg-wrapper",function(e){if(void 0!==e){return"has-width-"+e.toString().replace(".","-")}}(p),f,{"is-vertically-flipped":l,"is-horizontally-flipped":s});return wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-container-wrapper",b?"has-gap-enable":"","align"+n,r&&r.length&&o?"blockspare-background-fix":"",c?m:"")},wp.element.createElement("div",{className:i()("blockspare-container-background","blockspare-image-wrap",(y=a,0===y?null:"has-background-opacity-"+10*Math.round(y/10)),{"has-background-opacity":0!==a})}),c&&wp.element.createElement("div",{className:i()("blockspare-top-separator",b?"has-gap-enable":"",d?"blockspare-svg-show-front":"")},wp.element.createElement("div",{className:h},wp.element.createElement(Uu,{design:u,shadow:!1,className:"blockspare-svg-svg-inner"}))),wp.element.createElement("div",{className:"blockspare-container"},wp.element.createElement("div",{className:"blockspare-inner-blocks blockspare-inner-wrapper-blocks"},wp.element.createElement(fp.Content,null)))));var y}});var hp=n(96);var yp={enableGradient:{type:"boolean",default:!1},backgroundColor1:{type:"string",default:"#3B1A5B"},backgroundColor2:{type:"string",default:"#8B249C"},gradientAngle:{type:"number",default:-90},colorLocation1:{type:"number",default:30},colorLocation2:{type:"number",default:70}};var vp={align:{type:"string",default:"full"},design:{type:"string",default:"double-wave"},layer1Shadow:{type:"boolean",default:!1},width:{type:"number",default:1},height:{type:"number",default:150},color:{type:"string",default:"#3c1a5b"}};function kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function _p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach((function(t){Sp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tp=e=>{const t=e.attributes,n=(t.align,t.opacityRatio,t.imgURL),a=(t.backgroundFix,t.verticalFlip,t.horizontalFlip,t.separatorEnable),r=(t.design,t.height),o=t.color,i=(t.width,t.showFront),l=t.zindexDivider,s=t.dividerPosition,c=t.topDividerMargin,u=t.bottomDividerMargin,p=t.borderRadius;t.enableGap;let d="";n&&(d="url("+n+")");const m=[];let b="";return a&&(b="has-separator-top"===s?{top:c+"px",zIndex:i?l:""}:"has-separator-bottom"===s?{bottom:u+"px",zIndex:i?l:""}:""),m.push({".blockspare-block-container-wrapper":_p(_p(_p(_p({},Qi(e.attributes)),ep(e.attributes)),Zi(e.attributes)),{},{borderRadius:p?p+"px":null}),".blockspare-image-wrap":{backgroundImage:d},".blockspare-top-separator":{sepStyles:b},".blockspare-svg-wrapper":{color:o||"#3c1a5b",height:r}}),qr.a.all(m)};const Ep=wp.element.Component,xp=wp.compose.compose,Mp=wp.blockEditor.InnerBlocks;var Cp=xp(Gr,Rr(Tp))(class extends Ep{render(){const e=this.props,t=e.attributes,n=t.align,a=t.opacityRatio,r=t.imgURL,o=t.backgroundFix,l=t.verticalFlip,s=t.horizontalFlip,c=t.separatorEnable,u=t.design,p=(t.height,t.color,t.width),d=t.showFront,m=(t.zindexDivider,t.dividerPosition),b=(t.topDividerMargin,t.bottomDividerMargin,t.borderRadius,t.enableGap),f=e.className,g=(e.attributes,i()([f]));let h=i()("blockspare-blocks blockspare-svg-wrapper",function(e){if(void 0!==e){return"has-width-"+e.toString().replace(".","-")}}(p),f,{"is-vertically-flipped":l,"is-horizontally-flipped":s});return wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-container-wrapper",b?"has-gap-enable":"","align"+n,r&&r.length&&o?"blockspare-background-fix":"",c?m:"")},wp.element.createElement("div",{className:i()("blockspare-container-background","blockspare-image-wrap",(y=a,0===y?null:"has-background-opacity-"+10*Math.round(y/10)),{"has-background-opacity":0!==a})}),c&&wp.element.createElement("div",{className:i()("blockspare-top-separator",b?"has-gap-enable":"",d?"blockspare-svg-show-front":"")},wp.element.createElement("div",{className:h},wp.element.createElement(Uu,{design:u,shadow:!1,className:"blockspare-svg-svg-inner"}))),wp.element.createElement("div",{className:"blockspare-container"},wp.element.createElement("div",{className:"blockspare-inner-blocks blockspare-inner-wrapper-blocks"},wp.element.createElement(Mp.Content,null)))));var y}});function Op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Op(Object(n),!0).forEach((function(t){Fp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dp=e=>{const t=e.attributes,n=(t.align,t.opacityRatio,t.imgURL),a=(t.backgroundFix,t.verticalFlip,t.horizontalFlip,t.separatorEnable),r=(t.design,t.height),o=t.color,i=(t.width,t.showFront),l=t.zindexDivider,s=t.dividerPosition,c=t.topDividerMargin,u=t.bottomDividerMargin,p=t.borderRadius;t.enableGap;let d="";n&&(d="url("+n+")");const m=[];let b="";return a&&(b="has-separator-top"===s?{top:c+"px",zIndex:i?l:""}:"has-separator-bottom"===s?{bottom:u+"px",zIndex:i?l:""}:""),m.push({".blockspare-block-container-wrapper":Lp(Lp(Lp(Lp({},Qi(e.attributes)),ep(e.attributes)),Zi(e.attributes)),{},{borderRadius:p?p+"px":null}),".blockspare-image-wrap":{backgroundImage:d},".blockspare-top-separator":{sepStyles:b},".blockspare-svg-wrapper":{color:o||"#3c1a5b",height:r}}),qr.a.all(m)};const Pp=wp.element.Component,jp=wp.compose.compose,Np=wp.blockEditor.InnerBlocks;var zp=jp(Gr,Rr(Dp))(class extends Pp{render(){const e=this.props,t=e.attributes,n=t.align,a=t.opacityRatio,r=t.imgURL,o=t.backgroundFix,l=t.verticalFlip,s=t.horizontalFlip,c=t.separatorEnable,u=t.design,p=(t.height,t.color,t.width),d=t.showFront,m=(t.zindexDivider,t.dividerPosition),b=(t.topDividerMargin,t.bottomDividerMargin,t.borderRadius,t.enableGap),f=e.className,g=(e.attributes,i()([f]));let h=i()("blockspare-blocks blockspare-svg-wrapper",function(e){if(void 0!==e){return"has-width-"+e.toString().replace(".","-")}}(p),f,{"is-vertically-flipped":l,"is-horizontally-flipped":s});return wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-container-wrapper",b?"has-gap-enable":"","align"+n,r&&r.length&&o?"blockspare-background-fix":"",c?m:"")},wp.element.createElement("div",{className:i()("blockspare-container-background","blockspare-image-wrap",(y=a,0===y?null:"has-background-opacity-"+10*Math.round(y/10)),{"has-background-opacity":0!==a})}),c&&wp.element.createElement("div",{className:i()("blockspare-top-separator",b?"has-gap-enable":"",d?"blockspare-svg-show-front":"")},wp.element.createElement("div",{className:h},wp.element.createElement(Uu,{design:u,shadow:!1,className:"blockspare-svg-svg-inner"}))),wp.element.createElement("div",{className:"blockspare-container"},wp.element.createElement("div",{className:"blockspare-inner-blocks blockspare-inner-wrapper-blocks"},wp.element.createElement(Np.Content,null)))));var y}});function Yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(n),!0).forEach((function(t){Ap(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ap(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ip=wp.blockEditor.InnerBlocks;var Rp=[{attributes:Bp(Bp(Bp(Bp(Bp({},hp.attributes),yp),ni),vp),ti),save:function(e){const t=e.attributes,n=t.className,a=t.align,r=t.opacityRatio,o=t.imgURL,l=t.backgroundFix,s=t.verticalFlip,c=t.horizontalFlip,u=t.separatorEnable,p=t.design,d=t.height,m=t.color,b=t.width,f=t.showFront,g=t.zindexDivider,h=t.dividerPosition,y=t.topDividerMargin,w=t.bottomDividerMargin,v=t.borderRadius,k=t.enableGap,_=Bp(Bp(Bp(Bp({},ep(e.attributes)),Qi(e.attributes)),{},{minHeight:"100px"},Zi(e.attributes)),{},{borderRadius:v||null});let S="";u&&(S="has-separator-top"===h?{top:y+"px",zIndex:f?g:""}:"has-separator-bottom"===h?{bottom:w+"px",zIndex:f?g:""}:"");let T="";o&&(T="url("+o+")");let E=i()("blockspare-blocks blockspare-svg-wrapper",function(e){return"has-width-"+e.toString().replace(".","-")}(b),n,{"is-vertically-flipped":s,"is-horizontally-flipped":c});return wp.element.createElement("div",{className:i()("blockspare-block-container-wrapper",k?"has-gap-enable":"","align"+a,o&&o.length&&l?"blockspare-background-fix":"",u?h:""),style:_},wp.element.createElement("div",{className:i()("blockspare-container-background","blockspare-image-wrap",(x=r,0===x?null:"has-background-opacity-"+10*Math.round(x/10)),{"has-background-opacity":0!==r}),style:{backgroundImage:T}}),u&&wp.element.createElement("div",{className:i()("blockspare-top-separator",k?"has-gap-enable":"",f?"blockspare-svg-show-front":""),style:S},wp.element.createElement("div",{className:E,style:{color:m||"#3c1a5b",height:d}},wp.element.createElement(Uu,{design:p,shadow:!1,className:"blockspare-svg-svg-inner"}))),wp.element.createElement("div",{className:"blockspare-container"},wp.element.createElement("div",{className:"blockspare-inner-blocks blockspare-inner-wrapper-blocks"},wp.element.createElement(Ip.Content,null))));var x}},{attributes:Bp(Bp(Bp(Bp(Bp({},yp),ni),vp),ti),hp.attributes),save:e=>wp.element.createElement(Cp,e)},{attributes:Bp(Bp(Bp(Bp(Bp({},yp),ni),vp),ti),Tu.attributes),save:e=>wp.element.createElement(zp,e)}];function Hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(n),!0).forEach((function(t){Gp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Up=Tu.name,qp=Tu.category,Vp=wp.i18n.__,$p=wp.blocks,Jp=$p.registerBlockType,Xp=$p.createBlock,Kp=Wp(Wp(Wp(Wp(Wp({},yp),ni),vp),ti),Tu.attributes);Jp(Up,{title:Vp("BS Container","blockspare"),description:Vp("BS add container","blockspare"),category:qp,icon:r.container,attributes:Kp,keywords:[Vp("block","blockspare"),Vp("container","blockspare"),Vp("group","blockspare")],supports:{align:["center","wide","full"]},example:{attributes:{cover:"https://blockspare.com",author:"Blockspare",pages:500}},edit:dp,save:gp,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){if(1===e.length&&"blockspare/blockspare-container"===e[0].name)return;const t=["wide","full"],n=e.reduce((e,n)=>{const a=n.attributes.align;return t.indexOf(a)>t.indexOf(e)?a:e},void 0),a=e.map(e=>Xp(e.name,e.attributes,e.innerBlocks));return Xp("blockspare/blockspare-container",{align:n},a)}}]},deprecated:Rp});n(501),n(502);var Qp=n(30),Zp=(n(503),["fas fa-ad","fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-air-freshener","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-angry","fas fa-ankh","fas fa-apple-alt","fas fa-archive","fas fa-archway","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-atlas","fas fa-atom","fas fa-audio-description","fas fa-award","fas fa-baby","fas fa-baby-carriage","fas fa-backspace","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars","fas fa-baseball-ball","fas fa-basketball-ball","fas fa-bath","fas fa-battery-empty","fas fa-battery-full","fas fa-battery-half","fas fa-battery-quarter","fas fa-battery-three-quarters","fas fa-bed","fas fa-beer","fas fa-bell","fas fa-bell-slash","fas fa-bezier-curve","fas fa-bible","fas fa-bicycle","fas fa-binoculars","fas fa-biohazard","fas fa-birthday-cake","fas fa-blender","fas fa-blender-phone","fas fa-blind","fas fa-blog","fas fa-bold","fas fa-bolt","fas fa-bomb","fas fa-bone","fas fa-bong","fas fa-book","fas fa-book-dead","fas fa-book-open","fas fa-book-reader","fas fa-bookmark","fas fa-bowling-ball","fas fa-box","fas fa-box-open","fas fa-boxes","fas fa-braille","fas fa-brain","fas fa-briefcase","fas fa-briefcase-medical","fas fa-broadcast-tower","fas fa-broom","fas fa-brush","fas fa-bug","fas fa-building","fas fa-bullhorn","fas fa-bullseye","fas fa-burn","fas fa-bus","fas fa-bus-alt","fas fa-business-time","fas fa-calculator","fas fa-calendar","fas fa-calendar-alt","fas fa-calendar-check","fas fa-calendar-day","fas fa-calendar-minus","fas fa-calendar-plus","fas fa-calendar-times","fas fa-calendar-week","fas fa-camera","fas fa-camera-retro","fas fa-campground","fas fa-candy-cane","fas fa-cannabis","fas fa-capsules","fas fa-car","fas fa-car-alt","fas fa-car-battery","fas fa-car-crash","fas fa-car-side","fas fa-caret-down","fas fa-caret-left","fas fa-caret-right","fas fa-caret-square-down","fas fa-caret-square-left","fas fa-caret-square-right","fas fa-caret-square-up","fas fa-caret-up","fas fa-carrot","fas fa-cart-arrow-down","fas fa-cart-plus","fas fa-cash-register","fas fa-cat","fas fa-certificate","fas fa-chair","fas fa-chalkboard","fas fa-chalkboard-teacher","fas fa-charging-station","fas fa-chart-area","fas fa-chart-bar","fas fa-chart-line","fas fa-chart-pie","fas fa-check","fas fa-check-circle","fas fa-check-double","fas fa-check-square","fas fa-chess","fas fa-chess-bishop","fas fa-chess-board","fas fa-chess-king","fas fa-chess-knight","fas fa-chess-pawn","fas fa-chess-queen","fas fa-chess-rook","fas fa-chevron-circle-down","fas fa-chevron-circle-left","fas fa-chevron-circle-right","fas fa-chevron-circle-up","fas fa-chevron-down","fas fa-chevron-left","fas fa-chevron-right","fas fa-chevron-up","fas fa-child","fas fa-church","fas fa-circle","fas fa-circle-notch","fas fa-city","fas fa-clipboard","fas fa-clipboard-check","fas fa-clipboard-list","fas fa-clock","fas fa-clone","fas fa-closed-captioning","fas fa-cloud","fas fa-cloud-download-alt","fas fa-cloud-meatball","fas fa-cloud-moon","fas fa-cloud-moon-rain","fas fa-cloud-rain","fas fa-cloud-showers-heavy","fas fa-cloud-sun","fas fa-cloud-sun-rain","fas fa-cloud-upload-alt","fas fa-cocktail","fas fa-code","fas fa-code-branch","fas fa-coffee","fas fa-cog","fas fa-cogs","fas fa-coins","fas fa-columns","fas fa-comment","fas fa-comment-alt","fas fa-comment-dollar","fas fa-comment-dots","fas fa-comment-slash","fas fa-comments","fas fa-comments-dollar","fas fa-compact-disc","fas fa-compass","fas fa-compress","fas fa-compress-arrows-alt","fas fa-concierge-bell","fas fa-cookie","fas fa-cookie-bite","fas fa-copy","fas fa-copyright","fas fa-couch","fas fa-credit-card","fas fa-crop","fas fa-crop-alt","fas fa-cross","fas fa-crosshairs","fas fa-crow","fas fa-crown","fas fa-cube","fas fa-cubes","fas fa-cut","fas fa-database","fas fa-deaf","fas fa-democrat","fas fa-desktop","fas fa-dharmachakra","fas fa-diagnoses","fas fa-dice","fas fa-dice-d20","fas fa-dice-d6","fas fa-dice-five","fas fa-dice-four","fas fa-dice-one","fas fa-dice-six","fas fa-dice-three","fas fa-dice-two","fas fa-digital-tachograph","fas fa-directions","fas fa-divide","fas fa-dizzy","fas fa-dna","fas fa-dog","fas fa-dollar-sign","fas fa-dolly","fas fa-dolly-flatbed","fas fa-donate","fas fa-door-closed","fas fa-door-open","fas fa-dot-circle","fas fa-dove","fas fa-download","fas fa-drafting-compass","fas fa-dragon","fas fa-draw-polygon","fas fa-drum","fas fa-drum-steelpan","fas fa-drumstick-bite","fas fa-dumbbell","fas fa-dumpster","fas fa-dumpster-fire","fas fa-dungeon","fas fa-edit","fas fa-eject","fas fa-ellipsis-h","fas fa-ellipsis-v","fas fa-envelope","fas fa-envelope-open","fas fa-envelope-open-text","fas fa-envelope-square","fas fa-equals","fas fa-eraser","fas fa-ethernet","fas fa-euro-sign","fas fa-exchange-alt","fas fa-exclamation","fas fa-exclamation-circle","fas fa-exclamation-triangle","fas fa-expand","fas fa-expand-arrows-alt","fas fa-external-link-alt","fas fa-external-link-square-alt","fas fa-eye","fas fa-eye-dropper","fas fa-eye-slash","fas fa-fast-backward","fas fa-fast-forward","fas fa-fax","fas fa-feather","fas fa-feather-alt","fas fa-female","fas fa-fighter-jet","fas fa-file","fas fa-file-alt","fas fa-file-archive","fas fa-file-audio","fas fa-file-code","fas fa-file-contract","fas fa-file-csv","fas fa-file-download","fas fa-file-excel","fas fa-file-export","fas fa-file-image","fas fa-file-import","fas fa-file-invoice","fas fa-file-invoice-dollar","fas fa-file-medical","fas fa-file-medical-alt","fas fa-file-pdf","fas fa-file-powerpoint","fas fa-file-prescription","fas fa-file-signature","fas fa-file-upload","fas fa-file-video","fas fa-file-word","fas fa-fill","fas fa-fill-drip","fas fa-film","fas fa-filter","fas fa-fingerprint","fas fa-fire","fas fa-fire-alt","fas fa-fire-extinguisher","fas fa-first-aid","fas fa-fish","fas fa-fist-raised","fas fa-flag","fas fa-flag-checkered","fas fa-flag-usa","fas fa-flask","fas fa-flushed","fas fa-folder","fas fa-folder-minus","fas fa-folder-open","fas fa-folder-plus","fas fa-font","fas fa-football-ball","fas fa-forward","fas fa-frog","fas fa-frown","fas fa-frown-open","fas fa-funnel-dollar","fas fa-futbol","fas fa-gamepad","fas fa-gas-pump","fas fa-gavel","fas fa-gem","fas fa-genderless","fas fa-ghost","fas fa-gift","fas fa-gifts","fas fa-glass-cheers","fas fa-glass-martini","fas fa-glass-martini-alt","fas fa-glass-whiskey","fas fa-glasses","fas fa-globe","fas fa-globe-africa","fas fa-globe-americas","fas fa-globe-asia","fas fa-globe-europe","fas fa-golf-ball","fas fa-gopuram","fas fa-graduation-cap","fas fa-greater-than","fas fa-greater-than-equal","fas fa-grimace","fas fa-grin","fas fa-grin-alt","fas fa-grin-beam","fas fa-grin-beam-sweat","fas fa-grin-hearts","fas fa-grin-squint","fas fa-grin-squint-tears","fas fa-grin-stars","fas fa-grin-tears","fas fa-grin-tongue","fas fa-grin-tongue-squint","fas fa-grin-tongue-wink","fas fa-grin-wink","fas fa-grip-horizontal","fas fa-grip-lines","fas fa-grip-lines-vertical","fas fa-grip-vertical","fas fa-guitar","fas fa-h-square","fas fa-hammer","fas fa-hamsa","fas fa-hand-holding","fas fa-hand-holding-heart","fas fa-hand-holding-usd","fas fa-hand-lizard","fas fa-hand-paper","fas fa-hand-peace","fas fa-hand-point-down","fas fa-hand-point-left","fas fa-hand-point-right","fas fa-hand-point-up","fas fa-hand-pointer","fas fa-hand-rock","fas fa-hand-scissors","fas fa-hand-spock","fas fa-hands","fas fa-hands-helping","fas fa-handshake","fas fa-hanukiah","fas fa-hashtag","fas fa-hat-wizard","fas fa-haykal","fas fa-hdd","fas fa-heading","fas fa-headphones","fas fa-headphones-alt","fas fa-headset","fas fa-heart","fas fa-heart-broken","fas fa-heartbeat","fas fa-helicopter","fas fa-highlighter","fas fa-hiking","fas fa-hippo","fas fa-history","fas fa-hockey-puck","fas fa-holly-berry","fas fa-home","fas fa-horse","fas fa-horse-head","fas fa-hospital","fas fa-hospital-alt","fas fa-hospital-symbol","fas fa-hot-tub","fas fa-hotel","fas fa-hourglass","fas fa-hourglass-end","fas fa-hourglass-half","fas fa-hourglass-start","fas fa-house-damage","fas fa-hryvnia","fas fa-i-cursor","fas fa-icicles","fas fa-id-badge","fas fa-id-card","fas fa-id-card-alt","fas fa-igloo","fas fa-image","fas fa-images","fas fa-inbox","fas fa-indent","fas fa-industry","fas fa-infinity","fas fa-info","fas fa-info-circle","fas fa-italic","fas fa-jedi","fas fa-joint","fas fa-journal-whills","fas fa-kaaba","fas fa-key","fas fa-keyboard","fas fa-khanda","fas fa-kiss","fas fa-kiss-beam","fas fa-kiss-wink-heart","fas fa-kiwi-bird","fas fa-landmark","fas fa-language","fas fa-laptop","fas fa-laptop-code","fas fa-laugh","fas fa-laugh-beam","fas fa-laugh-squint","fas fa-laugh-wink","fas fa-layer-group","fas fa-leaf","fas fa-lemon","fas fa-less-than","fas fa-less-than-equal","fas fa-level-down-alt","fas fa-level-up-alt","fas fa-life-ring","fas fa-lightbulb","fas fa-link","fas fa-lira-sign","fas fa-list","fas fa-list-alt","fas fa-list-ol","fas fa-list-ul","fas fa-location-arrow","fas fa-lock","fas fa-lock-open","fas fa-long-arrow-alt-down","fas fa-long-arrow-alt-left","fas fa-long-arrow-alt-right","fas fa-long-arrow-alt-up","fas fa-low-vision","fas fa-luggage-cart","fas fa-magic","fas fa-magnet","fas fa-mail-bulk","fas fa-male","fas fa-map","fas fa-map-marked","fas fa-map-marked-alt","fas fa-map-marker","fas fa-map-marker-alt","fas fa-map-pin","fas fa-map-signs","fas fa-marker","fas fa-mars","fas fa-mars-double","fas fa-mars-stroke","fas fa-mars-stroke-h","fas fa-mars-stroke-v","fas fa-mask","fas fa-medal","fas fa-medkit","fas fa-meh","fas fa-meh-blank","fas fa-meh-rolling-eyes","fas fa-memory","fas fa-menorah","fas fa-mercury","fas fa-meteor","fas fa-microchip","fas fa-microphone","fas fa-microphone-alt","fas fa-microphone-alt-slash","fas fa-microphone-slash","fas fa-microscope","fas fa-minus","fas fa-minus-circle","fas fa-minus-square","fas fa-mitten","fas fa-mobile","fas fa-mobile-alt","fas fa-money-bill","fas fa-money-bill-alt","fas fa-money-bill-wave","fas fa-money-bill-wave-alt","fas fa-money-check","fas fa-money-check-alt","fas fa-monument","fas fa-moon","fas fa-mortar-pestle","fas fa-mosque","fas fa-motorcycle","fas fa-mountain","fas fa-mouse-pointer","fas fa-mug-hot","fas fa-music","fas fa-network-wired","fas fa-neuter","fas fa-newspaper","fas fa-not-equal","fas fa-notes-medical","fas fa-object-group","fas fa-object-ungroup","fas fa-oil-can","fas fa-om","fas fa-otter","fas fa-outdent","fas fa-paint-brush","fas fa-paint-roller","fas fa-palette","fas fa-pallet","fas fa-paper-plane","fas fa-paperclip","fas fa-parachute-box","fas fa-paragraph","fas fa-parking","fas fa-passport","fas fa-pastafarianism","fas fa-paste","fas fa-pause","fas fa-pause-circle","fas fa-paw","fas fa-peace","fas fa-pen","fas fa-pen-alt","fas fa-pen-fancy","fas fa-pen-nib","fas fa-pen-square","fas fa-pencil-alt","fas fa-pencil-ruler","fas fa-people-carry","fas fa-percent","fas fa-percentage","fas fa-person-booth","fas fa-phone","fas fa-phone-slash","fas fa-phone-square","fas fa-phone-volume","fas fa-piggy-bank","fas fa-pills","fas fa-place-of-worship","fas fa-plane","fas fa-plane-arrival","fas fa-plane-departure","fas fa-play","fas fa-play-circle","fas fa-plug","fas fa-plus","fas fa-plus-circle","fas fa-plus-square","fas fa-podcast","fas fa-poll","fas fa-poll-h","fas fa-poo","fas fa-poo-storm","fas fa-poop","fas fa-portrait","fas fa-pound-sign","fas fa-power-off","fas fa-pray","fas fa-praying-hands","fas fa-prescription","fas fa-prescription-bottle","fas fa-prescription-bottle-alt","fas fa-print","fas fa-procedures","fas fa-project-diagram","fas fa-puzzle-piece","fas fa-qrcode","fas fa-question","fas fa-question-circle","fas fa-quidditch","fas fa-quote-left","fas fa-quote-right","fas fa-quran","fas fa-radiation","fas fa-radiation-alt","fas fa-rainbow","fas fa-random","fas fa-receipt","fas fa-recycle","fas fa-redo","fas fa-redo-alt","fas fa-registered","fas fa-reply","fas fa-reply-all","fas fa-republican","fas fa-restroom","fas fa-retweet","fas fa-ribbon","fas fa-ring","fas fa-road","fas fa-robot","fas fa-rocket","fas fa-route","fas fa-rss","fas fa-rss-square","fas fa-ruble-sign","fas fa-ruler","fas fa-ruler-combined","fas fa-ruler-horizontal","fas fa-ruler-vertical","fas fa-running","fas fa-rupee-sign","fas fa-sad-cry","fas fa-sad-tear","fas fa-satellite","fas fa-satellite-dish","fas fa-save","fas fa-school","fas fa-screwdriver","fas fa-scroll","fas fa-sd-card","fas fa-search","fas fa-search-dollar","fas fa-search-location","fas fa-search-minus","fas fa-search-plus","fas fa-seedling","fas fa-server","fas fa-shapes","fas fa-share","fas fa-share-alt","fas fa-share-alt-square","fas fa-share-square","fas fa-shekel-sign","fas fa-shield-alt","fas fa-ship","fas fa-shipping-fast","fas fa-shoe-prints","fas fa-shopping-bag","fas fa-shopping-basket","fas fa-shopping-cart","fas fa-shower","fas fa-shuttle-van","fas fa-sign","fas fa-sign-in-alt","fas fa-sign-language","fas fa-sign-out-alt","fas fa-signal","fas fa-signature","fas fa-sim-card","fas fa-sitemap","fas fa-skating","fas fa-skiing","fas fa-skiing-nordic","fas fa-skull","fas fa-skull-crossbones","fas fa-slash","fas fa-sleigh","fas fa-sliders-h","fas fa-smile","fas fa-smile-beam","fas fa-smile-wink","fas fa-smog","fas fa-smoking","fas fa-smoking-ban","fas fa-sms","fas fa-snowboarding","fas fa-snowflake","fas fa-snowman","fas fa-snowplow","fas fa-socks","fas fa-solar-panel","fas fa-sort","fas fa-sort-alpha-down","fas fa-sort-alpha-up","fas fa-sort-amount-down","fas fa-sort-amount-up","fas fa-sort-down","fas fa-sort-numeric-down","fas fa-sort-numeric-up","fas fa-sort-up","fas fa-spa","fas fa-space-shuttle","fas fa-spider","fas fa-spinner","fas fa-splotch","fas fa-spray-can","fas fa-square","fas fa-square-full","fas fa-square-root-alt","fas fa-stamp","fas fa-star","fas fa-star-and-crescent","fas fa-star-half","fas fa-star-half-alt","fas fa-star-of-david","fas fa-star-of-life","fas fa-step-backward","fas fa-step-forward","fas fa-stethoscope","fas fa-sticky-note","fas fa-stop","fas fa-stop-circle","fas fa-stopwatch","fas fa-store","fas fa-store-alt","fas fa-stream","fas fa-street-view","fas fa-strikethrough","fas fa-stroopwafel","fas fa-subscript","fas fa-subway","fas fa-suitcase","fas fa-suitcase-rolling","fas fa-sun","fas fa-superscript","fas fa-surprise","fas fa-swatchbook","fas fa-swimmer","fas fa-swimming-pool","fas fa-synagogue","fas fa-sync","fas fa-sync-alt","fas fa-syringe","fas fa-table","fas fa-table-tennis","fas fa-tablet","fas fa-tablet-alt","fas fa-tablets","fas fa-tachometer-alt","fas fa-tag","fas fa-tags","fas fa-tape","fas fa-tasks","fas fa-taxi","fas fa-teeth","fas fa-teeth-open","fas fa-temperature-high","fas fa-temperature-low","fas fa-tenge","fas fa-terminal","fas fa-text-height","fas fa-text-width","fas fa-th","fas fa-th-large","fas fa-th-list","fas fa-theater-masks","fas fa-thermometer","fas fa-thermometer-empty","fas fa-thermometer-full","fas fa-thermometer-half","fas fa-thermometer-quarter","fas fa-thermometer-three-quarters","fas fa-thumbs-down","fas fa-thumbs-up","fas fa-thumbtack","fas fa-ticket-alt","fas fa-times","fas fa-times-circle","fas fa-tint","fas fa-tint-slash","fas fa-tired","fas fa-toggle-off","fas fa-toggle-on","fas fa-toilet","fas fa-toilet-paper","fas fa-toolbox","fas fa-tools","fas fa-tooth","fas fa-torah","fas fa-torii-gate","fas fa-tractor","fas fa-trademark","fas fa-traffic-light","fas fa-train","fas fa-tram","fas fa-transgender","fas fa-transgender-alt","fas fa-trash","fas fa-trash-alt","fas fa-tree","fas fa-trophy","fas fa-truck","fas fa-truck-loading","fas fa-truck-monster","fas fa-truck-moving","fas fa-truck-pickup","fas fa-tshirt","fas fa-tty","fas fa-tv","fas fa-umbrella","fas fa-umbrella-beach","fas fa-underline","fas fa-undo","fas fa-undo-alt","fas fa-universal-access","fas fa-university","fas fa-unlink","fas fa-unlock","fas fa-unlock-alt","fas fa-upload","fas fa-user","fas fa-user-alt","fas fa-user-alt-slash","fas fa-user-astronaut","fas fa-user-check","fas fa-user-circle","fas fa-user-clock","fas fa-user-cog","fas fa-user-edit","fas fa-user-friends","fas fa-user-graduate","fas fa-user-injured","fas fa-user-lock","fas fa-user-md","fas fa-user-minus","fas fa-user-ninja","fas fa-user-plus","fas fa-user-secret","fas fa-user-shield","fas fa-user-slash","fas fa-user-tag","fas fa-user-tie","fas fa-user-times","fas fa-users","fas fa-users-cog","fas fa-utensil-spoon","fas fa-utensils","fas fa-vector-square","fas fa-venus","fas fa-venus-double","fas fa-venus-mars","fas fa-vial","fas fa-vials","fas fa-video","fas fa-video-slash","fas fa-vihara","fas fa-volleyball-ball","fas fa-volume-down","fas fa-volume-mute","fas fa-volume-off","fas fa-volume-up","fas fa-vote-yea","fas fa-vr-cardboard","fas fa-walking","fas fa-wallet","fas fa-warehouse","fas fa-water","fas fa-weight","fas fa-weight-hanging","fas fa-wheelchair","fas fa-wifi","fas fa-wind","fas fa-window-close","fas fa-window-maximize","fas fa-window-minimize","fas fa-window-restore","fas fa-wine-bottle","fas fa-wine-glass","fas fa-wine-glass-alt","fas fa-won-sign","fas fa-wrench","fas fa-x-ray","fas fa-yen-sign","fas fa-yin-yang","far fa-address-book","far fa-address-card","far fa-angry","far fa-arrow-alt-circle-down","far fa-arrow-alt-circle-left","far fa-arrow-alt-circle-right","far fa-arrow-alt-circle-up","far fa-bell","far fa-bell-slash","far fa-bookmark","far fa-building","far fa-calendar","far fa-calendar-alt","far fa-calendar-check","far fa-calendar-minus","far fa-calendar-plus","far fa-calendar-times","far fa-caret-square-down","far fa-caret-square-left","far fa-caret-square-right","far fa-caret-square-up","far fa-chart-bar","far fa-check-circle","far fa-check-square","far fa-circle","far fa-clipboard","far fa-clock","far fa-clone","far fa-closed-captioning","far fa-comment","far fa-comment-alt","far fa-comment-dots","far fa-comments","far fa-compass","far fa-copy","far fa-copyright","far fa-credit-card","far fa-dizzy","far fa-dot-circle","far fa-edit","far fa-envelope","far fa-envelope-open","far fa-eye","far fa-eye-slash","far fa-file","far fa-file-alt","far fa-file-archive","far fa-file-audio","far fa-file-code","far fa-file-excel","far fa-file-image","far fa-file-pdf","far fa-file-powerpoint","far fa-file-video","far fa-file-word","far fa-flag","far fa-flushed","far fa-folder","far fa-folder-open","far fa-frown","far fa-frown-open","far fa-futbol","far fa-gem","far fa-grimace","far fa-grin","far fa-grin-alt","far fa-grin-beam","far fa-grin-beam-sweat","far fa-grin-hearts","far fa-grin-squint","far fa-grin-squint-tears","far fa-grin-stars","far fa-grin-tears","far fa-grin-tongue","far fa-grin-tongue-squint","far fa-grin-tongue-wink","far fa-grin-wink","far fa-hand-lizard","far fa-hand-paper","far fa-hand-peace","far fa-hand-point-down","far fa-hand-point-left","far fa-hand-point-right","far fa-hand-point-up","far fa-hand-pointer","far fa-hand-rock","far fa-hand-scissors","far fa-hand-spock","far fa-handshake","far fa-hdd","far fa-heart","far fa-hospital","far fa-hourglass","far fa-id-badge","far fa-id-card","far fa-image","far fa-images","far fa-keyboard","far fa-kiss","far fa-kiss-beam","far fa-kiss-wink-heart","far fa-laugh","far fa-laugh-beam","far fa-laugh-squint","far fa-laugh-wink","far fa-lemon","far fa-life-ring","far fa-lightbulb","far fa-list-alt","far fa-map","far fa-meh","far fa-meh-blank","far fa-meh-rolling-eyes","far fa-minus-square","far fa-money-bill-alt","far fa-moon","far fa-newspaper","far fa-object-group","far fa-object-ungroup","far fa-paper-plane","far fa-pause-circle","far fa-play-circle","far fa-plus-square","far fa-question-circle","far fa-registered","far fa-sad-cry","far fa-sad-tear","far fa-save","far fa-share-square","far fa-smile","far fa-smile-beam","far fa-smile-wink","far fa-snowflake","far fa-square","far fa-star","far fa-star-half","far fa-sticky-note","far fa-stop-circle","far fa-sun","far fa-surprise","far fa-thumbs-down","far fa-thumbs-up","far fa-times-circle","far fa-tired","far fa-trash-alt","far fa-user","far fa-user-circle","far fa-window-close","far fa-window-maximize","far fa-window-minimize","far fa-window-restore","fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fab fa-acquisitions-incorporated","fab fa-adn","fab fa-adobe","fab fa-adversal","fab fa-affiliatetheme","fab fa-algolia","fab fa-alipay","fab fa-amazon","fab fa-amazon-pay","fab fa-amilia","fab fa-android","fab fa-angellist","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fab fa-artstation","fab fa-asymmetrik","fab fa-atlassian","fab fa-audible","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fab fa-bandcamp","fab fa-behance","fab fa-behance-square","fab fa-bimobject","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fab fa-btc","fab fa-buromobelexperte","fab fa-buysellads","fab fa-canadian-maple-leaf","fab fa-cc-amazon-pay","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fab fa-centos","fab fa-chrome","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fab fa-codepen","fab fa-codiepie","fab fa-confluence","fab fa-connectdevelop","fab fa-contao","fab fa-cpanel","fab fa-creative-commons","fab fa-creative-commons-by","fab fa-creative-commons-nc","fab fa-creative-commons-nc-eu","fab fa-creative-commons-nc-jp","fab fa-creative-commons-nd","fab fa-creative-commons-pd","fab fa-creative-commons-pd-alt","fab fa-creative-commons-remix","fab fa-creative-commons-sa","fab fa-creative-commons-sampling","fab fa-creative-commons-sampling-plus","fab fa-creative-commons-share","fab fa-creative-commons-zero","fab fa-critical-role","fab fa-css3","fab fa-css3-alt","fab fa-cuttlefish","fab fa-d-and-d","fab fa-d-and-d-beyond","fab fa-dashcube","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fab fa-dev","fab fa-deviantart","fab fa-dhl","fab fa-diaspora","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fab fa-draft2digital","fab fa-dribbble","fab fa-dribbble-square","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-ebay","fab fa-edge","fab fa-elementor","fab fa-ello","fab fa-ember","fab fa-empire","fab fa-envira","fab fa-erlang","fab fa-ethereum","fab fa-etsy","fab fa-expeditedssl","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-facebook-square","fab fa-fantasy-flight-games","fab fa-fedex","fab fa-fedora","fab fa-figma","fab fa-firefox","fab fa-first-order","fab fa-first-order-alt","fab fa-firstdraft","fab fa-flickr","fab fa-flipboard","fab fa-fly","fab fa-font-awesome","fab fa-font-awesome-alt","fab fa-font-awesome-flag","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fab fa-fulcrum","fab fa-galactic-republic","fab fa-galactic-senate","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fab fa-git","fab fa-git-square","fab fa-github","fab fa-github-alt","fab fa-github-square","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fab fa-glide","fab fa-glide-g","fab fa-gofore","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-plus-square","fab fa-google-wallet","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-gulp","fab fa-hacker-news","fab fa-hacker-news-square","fab fa-hackerrank","fab fa-hips","fab fa-hire-a-helper","fab fa-hooli","fab fa-hornbill","fab fa-hotjar","fab fa-houzz","fab fa-html5","fab fa-hubspot","fab fa-imdb","fab fa-instagram","fab fa-intercom","fab fa-internet-explorer","fab fa-invision","fab fa-ioxhost","fab fa-itunes","fab fa-itunes-note","fab fa-java","fab fa-jedi-order","fab fa-jenkins","fab fa-jira","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-js-square","fab fa-jsfiddle","fab fa-kaggle","fab fa-keybase","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fab fa-korvue","fab fa-laravel","fab fa-lastfm","fab fa-lastfm-square","fab fa-leanpub","fab fa-less","fab fa-line","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fab fa-lyft","fab fa-magento","fab fa-mailchimp","fab fa-mandalorian","fab fa-markdown","fab fa-mastodon","fab fa-maxcdn","fab fa-medapps","fab fa-medium","fab fa-medium-m","fab fa-medrt","fab fa-meetup","fab fa-megaport","fab fa-mendeley","fab fa-microsoft","fab fa-mix","fab fa-mixcloud","fab fa-mizuni","fab fa-modx","fab fa-monero","fab fa-napster","fab fa-neos","fab fa-nimblr","fab fa-nintendo-switch","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fab fa-odnoklassniki","fab fa-odnoklassniki-square","fab fa-old-republic","fab fa-opencart","fab fa-openid","fab fa-opera","fab fa-optin-monster","fab fa-osi","fab fa-page4","fab fa-pagelines","fab fa-palfed","fab fa-patreon","fab fa-paypal","fab fa-penny-arcade","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fab fa-phoenix-squadron","fab fa-php","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-hat","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pinterest-square","fab fa-playstation","fab fa-product-hunt","fab fa-pushed","fab fa-python","fab fa-qq","fab fa-quinscape","fab fa-quora","fab fa-r-project","fab fa-raspberry-pi","fab fa-ravelry","fab fa-react","fab fa-reacteurope","fab fa-readme","fab fa-rebel","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-reddit-square","fab fa-redhat","fab fa-renren","fab fa-replyd","fab fa-researchgate","fab fa-resolving","fab fa-rev","fab fa-rocketchat","fab fa-rockrms","fab fa-safari","fab fa-sass","fab fa-schlix","fab fa-scribd","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fab fa-servicestack","fab fa-shirtsinbulk","fab fa-shopware","fab fa-simplybuilt","fab fa-sistrix","fab fa-sith","fab fa-sketch","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slack-hash","fab fa-slideshare","fab fa-snapchat","fab fa-snapchat-ghost","fab fa-snapchat-square","fab fa-soundcloud","fab fa-sourcetree","fab fa-speakap","fab fa-spotify","fab fa-squarespace","fab fa-stack-exchange","fab fa-stack-overflow","fab fa-staylinked","fab fa-steam","fab fa-steam-square","fab fa-steam-symbol","fab fa-sticker-mule","fab fa-strava","fab fa-stripe","fab fa-stripe-s","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fab fa-superpowers","fab fa-supple","fab fa-suse","fab fa-teamspeak","fab fa-telegram","fab fa-telegram-plane","fab fa-tencent-weibo","fab fa-the-red-yeti","fab fa-themeco","fab fa-themeisle","fab fa-think-peaks","fab fa-trade-federation","fab fa-trello","fab fa-tripadvisor","fab fa-tumblr","fab fa-tumblr-square","fab fa-twitch","fab fa-twitter","fab fa-twitter-square","fab fa-typo3","fab fa-uber","fab fa-ubuntu","fab fa-uikit","fab fa-uniregistry","fab fa-untappd","fab fa-ups","fab fa-usb","fab fa-usps","fab fa-ussunnah","fab fa-vaadin","fab fa-viacoin","fab fa-viadeo","fab fa-viadeo-square","fab fa-viber","fab fa-vimeo","fab fa-vimeo-square","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fab fa-vuejs","fab fa-weebly","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whatsapp-square","fab fa-whmcs","fab fa-wikipedia-w","fab fa-windows","fab fa-wix","fab fa-wizards-of-the-coast","fab fa-wolf-pack-battalion","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fab fa-wpressr","fab fa-xbox","fab fa-xing","fab fa-xing-square","fab fa-y-combinator","fab fa-yahoo","fab fa-yandex","fab fa-yandex-international","fab fa-yarn","fab fa-yelp","fab fa-yoast","fab fa-youtube","fab fa-youtube-square","fab fa-zhihu"]);const ed=wp.i18n.__,td=wp.element,nd=td.Component,ad=td.Fragment;var rd=class extends nd{constructor(e){super(e),this.state={isOpen:!1,filterText:"",showIcons:!1}}render(){const e=this.props,t=e.value,n=e.disableToggle,a=e.colorSettings,r=e.iconColor,o=e.onColorChange,i=this.state.filterText;var l=[];return i.length>2?Zp.forEach(e=>{e.includes(i)&&l.push(e)}):l=Zp,wp.element.createElement("div",{className:"blockspare-field blockspare-field-icon-list "+(n?"":"blockspare-toggle-enabled")},this.props.label&&wp.element.createElement(ad,null,n?wp.element.createElement("label",null,this.props.label):wp.element.createElement(Toggle,{label:this.props.label,className:"blockspare-icon-list-toggle",value:!!this.props.value,onChange:()=>this.props.onChange(this.props.value?"":" ")})),a&&wp.element.createElement(Color,{label:ed(" Color"),value:r||"#ccc",onChange:e=>o(e)}),(n||""!=this.props.value)&&wp.element.createElement("div",{className:"blockspare-icon-list-wrapper"},wp.element.createElement("input",{type:"text",value:this.state.filterText,placeholder:"Search...",onChange:e=>this.setState({filterText:e.target.value}),autoComplete:"off"}),wp.element.createElement("div",{className:"blockspare-icon-list-icons"},l.map(e=>wp.element.createElement("span",{className:t==e?"blockspare-active":"",onClick:t=>{this.props.onChange(e)}},wp.element.createElement("span",{className:e}))))))}};const od=wp.i18n.__,id=wp.element.Fragment,ld=wp.blockEditor,sd=(ld.InspectorControls,ld.PanelColorSettings),cd=wp.components,ud=(cd.PanelBody,cd.SelectControl),pd=cd.RangeControl;function dd(e){const t=e.enableColor,n=void 0===t||t,a=e.enablecontent,r=void 0===a||a,o=e.name,i=e.onChangeName,l=void 0===i?()=>{}:i,s=e.enableiconSize,c=e.iconSize,u=e.onChangeIconSizeOptions,p=void 0===u?()=>{}:u,d=e.enableiconStyles,m=e.iconStyles,b=e.onChangeIconStyles,f=void 0===b?()=>{}:b,g=e.iconBackgroundColor,h=e.onChangeIconBackgroundColor,y=void 0===h?()=>{}:h,w=e.iconBorderColor,v=e.onChangeIconBorderColor,k=void 0===v?()=>{}:v,_=e.iconColor,S=e.OnChangeIconColor,T=void 0===S?()=>{}:S,E=e.borderRadius,x=e.onChangeBorderRadius,M=void 0===x?()=>{}:x,C=[{value:"blockspare-icon-size-small",label:od("Small","blockspare")},{value:"blockspare-icon-size-medium",label:od("Medium","blockspare")},{value:"blockspare-icon-size-large",label:od("Large","blockspare")},{value:"blockspare-icon-size-extralarge",label:od("Extra Large","blockspare")}],O=[{value:"blockspare-icon-style1",label:od("None","blockspare")},{value:"blockspare-icon-style2",label:od("Background","blockspare")},{value:"blockspare-icon-style3",label:od("Border","blockspare")}];return wp.element.createElement(id,null,1==r&&wp.element.createElement("div",null,wp.element.createElement(rd,{value:o,onChange:l}),0!=s&&wp.element.createElement(ud,{label:od("Icon Size","blockspare"),value:c,options:C.map(({value:e,label:t})=>({value:e,label:t})),onChange:p}),0!=d&&wp.element.createElement(ud,{label:od("Icon Style","blockspare"),value:m,options:O.map(({value:e,label:t})=>({value:e,label:t})),onChange:f}),"blockspare-icon-style1"!==m&&wp.element.createElement(pd,{label:od("Icon Border Radius","blockspare"),value:E,onChange:M,min:0,max:50,step:1})),1==n&&wp.element.createElement("div",null,wp.element.createElement(sd,{title:od("Icon Color","blockspare"),initialOpen:!1,colorSettings:[{value:_,onChange:T,label:od("Icon Color","blockspare")}]}),"blockspare-icon-style2"===m&&wp.element.createElement(sd,{title:od("Background Color","blockspare"),initialOpen:!1,colorSettings:[{value:g,onChange:y,label:od("Background Color","blockspare")}]}),"blockspare-icon-style3"===m&&wp.element.createElement(sd,{title:od("Border Color","blockspare"),initialOpen:!1,colorSettings:[{value:w,onChange:k,label:od("Border Color","blockspare")}]})))}const md=wp.element.Component,bd=wp.i18n.__,fd=wp.blockEditor,gd=fd.InspectorControls,hd=(fd.PanelColorSettings,wp.components),yd=(hd.RangeControl,hd.PanelBody),wd=hd.ToggleControl;hd.SelectControl;class vd extends md{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.backGroundColor,t.showImage),a=(t.counterFontColor,t.paddingTop),r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.marginTop,s=t.marginBottom,c=t.imgIconOption,u=t.name,p=t.iconSize,d=t.iconStyles,m=t.iconBackgroundColor,b=t.iconBorderColor,f=t.iconColor,g=t.borderRadius,h=(t.design,t.titleFontSize),y=(t.subtitleFontSize,t.headerTagOption),w=t.headertitleColor,v=t.headersubtitleColor,k=t.headerlayoutOption,_=t.titlePaddingTop,T=t.titlePaddingBottom,E=t.subtitlePaddingTop,x=t.subtitlePaddingBottom,M=t.headerboxColor,C=t.dashColor,O=(t.blockBorderRadius,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.titleLoadGoogleFonts),L=t.titleFontFamily,F=t.titleFontWeight,D=t.titleFontSubset,P=t.titleFontSizeType,j=t.titleFontSizeMobile,N=t.titleFontSizeTablet,z=t.subTitleFontSize,Y=t.subTitleLoadGoogleFonts,B=t.subTitleFontFamily,A=t.subTitleFontWeight,I=t.subTitleFontSubset,R=t.subTitleFontSizeType,H=t.subTitleFontSizeMobile,W=t.subTitleFontSizeTablet,G=t.counterFontSize,U=t.counterLoadGoogleFonts,q=t.counterFontFamily,V=t.counterFontWeight,$=t.counterFontSubset,J=t.counterFontSizeType,X=t.counterFontSizeMobile,K=t.counterFontSizeTablet,Q=e.attributes,Z=e.setAttributes;bd("Icon","blockspare"),bd("Image","blockspare"),bd("Layout 1","blockspare"),bd("Layout 2","blockspare"),bd("Layout 1","blockspare"),bd("Layout 2","blockspare"),bd("Layout 3","blockspare");return wp.element.createElement(gd,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"counter"}),wp.element.createElement(yd,{title:bd("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(wd,{label:bd("Display Icon ","blockspare"),checked:n,onChange:()=>this.props.setAttributes({showImage:!n})})),"icon"==c&&n&&wp.element.createElement(yd,{title:bd("Icon Settings"),initialOpen:!1},wp.element.createElement(dd,{name:u,onChangeName:e=>Z({name:e}),enableiconSize:!1,iconSize:p,onChangeIconSizeOptions:e=>Z({iconSize:e}),enableiconStyles:!1,iconStyles:d,onChangeIconStyles:e=>Z({iconStyles:e}),iconBackgroundColor:m,onChangeIconBackgroundColor:e=>Z({iconBackgroundColor:e}),iconBorderColor:b,onChangeIconBorderColor:e=>Z({iconBorderColor:e}),iconColor:f,OnChangeIconColor:e=>Z({iconColor:e}),borderRadius:g,onChangeBorderRadius:e=>Z({borderRadius:e})})),wp.element.createElement(yd,{title:bd("Header Settings","blockspare"),initialOpen:!1},wp.element.createElement(Di,{headerlayoutOption:k,onChangeHeaderLayput:e=>Z({headerlayoutOption:e})}),wp.element.createElement(yd,{title:bd("Typography Settings","blockspare")},wp.element.createElement(br,{label:bd("Title Fonts Settings"),attributes:Q,setAttributes:Z,loadGoogleFonts:{value:O,label:bd("titleLoadGoogleFonts")},fontFamily:{value:L,label:bd("titleFontFamily")},fontWeight:{value:F,label:bd("titleFontWeight")},fontSubset:{value:D,label:bd("titleFontSubset")},fontSizeType:{value:P,label:bd("titleFontSizeType")},fontSize:{value:h,label:bd("titleFontSize")},fontSizeMobile:{value:j,label:bd("titleFontSizeMobile")},fontSizeTablet:{value:N,label:bd("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:y}),wp.element.createElement(br,{label:bd("Subtitle Fonts Settings"),attributes:Q,setAttributes:Z,loadGoogleFonts:{value:Y,label:bd("subTitleLoadGoogleFonts")},fontFamily:{value:B,label:bd("subTitleFontFamily")},fontWeight:{value:A,label:bd("subTitleFontWeight")},fontSubset:{value:I,label:bd("subTitleFontSubset")},fontSizeType:{value:R,label:bd("subTitleFontSizeType")},fontSize:{value:z,label:bd("subTitleFontSize")},fontSizeMobile:{value:H,label:bd("subTitleFontSizeMobile")},fontSizeTablet:{value:W,label:bd("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0}),wp.element.createElement(br,{label:bd("Counter Fonts Settings"),attributes:Q,setAttributes:Z,loadGoogleFonts:{value:U,label:bd("counterLoadGoogleFonts")},fontFamily:{value:q,label:bd("counterFontFamily")},fontWeight:{value:V,label:bd("counterFontWeight")},fontSubset:{value:$,label:bd("counterFontSubset")},fontSizeType:{value:J,label:bd("counterFontSizeType")},fontSize:{value:G,label:bd("counterFontSize")},fontSizeMobile:{value:X,label:bd("counterFontSizeMobile")},fontSizeTablet:{value:K,label:bd("counterFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(ci,{enableBlockGaps:!1,headerTagOption:y,onChangeHeaderTag:e=>Z({headerTagOption:e}),headerboxColor:M,onChangeboxcolor:e=>Z({headerboxColor:e}),dashColor:C,headerlayoutOption:k,onChangeDashColor:e=>Z({dashColor:e}),headertitleColor:w,onChangetitlecolor:e=>Z({headertitleColor:e}),titlePaddingTop:_,onChangetitlePaddingTop:e=>Z({titlePaddingTop:e}),titlePaddingBottom:T,onChangetitlePaddingBottom:e=>Z({titlePaddingBottom:e}),headersubtitleColor:v,onChangesubtitlecolor:e=>Z({headersubtitleColor:e}),subtitlePaddingTop:E,onChangesubtitlePaddingTop:e=>Z({subtitlePaddingTop:e}),subtitlePaddingBottom:x,onChangesubtitlePaddingBottom:e=>Z({subtitlePaddingBottom:e})})),wp.element.createElement(yd,{title:bd("Block Gap Settings","blockspare"),initialOpen:!1},wp.element.createElement(yd,{title:bd("Padding Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:a,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>Z({paddingTop:e}),paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>Z({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>Z({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>Z({paddingLeft:e})})),wp.element.createElement(yd,{title:bd("Margin Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:l,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>Z({marginTop:e}),marginEnableBottom:!0,marginBottom:s,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>Z({marginBottom:e})})))))}}var kd=n(280),_d=n.n(kd);var Sd=e=>{let t="";return t="blockspare-icon-style2"===e.iconStyles?{backgroundColor:e.iconBackgroundColor?e.iconBackgroundColor:"#8b249c",borderColor:e.iconBorderColor?e.iconBorderColor:"#8b249c",color:e.iconColor?e.iconColor:"#fff",borderRadius:e.borderRadius+"%"}:"blockspare-icon-style3"===e.iconStyles?{backgroundColor:"transparent",borderColor:e.iconBorderColor?e.iconBorderColor:"#8b249c",color:e.iconColor?e.iconColor:"#fff",borderRadius:e.borderRadius+"%"}:{color:e.iconColor?e.iconColor:"#fff"},t};function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Td(Object(n),!0).forEach((function(t){xd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Md=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.headerpaddingTop,m=t.headerpaddingRight,b=t.headerpaddingBottom,f=t.headerpaddingLeft,g=t.headermarginTop,h=t.headermarginBottom,y=t.counterFontColor,w=t.backGroundColor,v=t.blockBorderRadius,k=t.titleFontFamily,_=t.titleFontWeight,S=t.titleFontSizeType,T=t.titleFontSizeMobile,E=t.titleFontSizeTablet,x=t.subTitleFontSize,M=t.subTitleFontFamily,C=t.subTitleFontWeight,O=t.subTitleFontSizeType,L=t.subTitleFontSizeMobile,F=t.subTitleFontSizeTablet,D=t.counterFontSize,P=t.counterFontFamily,j=t.counterFontWeight,N=t.counterFontSizeType,z=t.counterFontSizeMobile,Y=t.counterFontSizeTablet,B=[];return B.push({".blockspare-counter-wrapper":Ed(Ed(Ed({backgroundColor:w||"#fff"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:v||null}),".blockspare-counter-wrapper .blockspare-block-icon":Ed({},Sd(e.attributes)),".blockspare-counter":{fontSize:D+N,fontFamily:P,fontWeight:j}}),B.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:d+"px",paddingRight:m+"px",paddingBottom:b+"px",marginTop:g+"px",marginBottom:h+"px",paddingLeft:f+"px"}}),B.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+S,fontFamily:k,fontWeight:_,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:x+O,fontFamily:M,fontWeight:C,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},".blockspare-counter-wrapper":Ed(Ed(Ed({backgroundColor:w||"#fff"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:v?v+"px":null}),".blockspare-counter":{color:y||"#000"},"..blockspare-block-icon":Ed({},Sd(e.attributes)),tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:E+S},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:F+O},".blockspare-counter":{fontSize:Y+S}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:T+S},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:L+O},".blockspare-counter":{fontSize:z+S}}}),qr.a.all(B)};function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Od(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ld=wp.element,Fd=Ld.Component,Dd=Ld.Fragment,Pd=(wp.i18n.__,wp.compose.compose),jd=wp.components,Nd=jd.Toolbar,zd=jd.RangeControl,Yd=wp.blockEditor,Bd=Yd.BlockControls,Ad=Yd.InnerBlocks,Id=["core/image"],Rd=[["core/image",{}]];var Hd=Pd(Gr,Rr(Md))(class extends Fd{render(){const e=this.props,t=e.attributes,n=t.align,a=t.showImage,r=t.counter,o=(t.counterFontColor,t.imgIconOption),l=t.name,s=t.iconSize,c=t.iconStyles,u=t.design,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=(t.blockBorderRadius,t.titleLoadGoogleFonts),f=t.titleFontFamily,g=t.titleFontWeight,h=t.subTitleLoadGoogleFonts,y=t.subTitleFontFamily,w=t.subTitleFontWeight,v=t.headerlayoutOption,k=t.sectionAlignment,_=t.counterLoadGoogleFonts,S=t.counterFontFamily,T=t.counterFontWeight,E=e.className,x=(e.isSelected,e.attributes,e.setAttributes);let M;if(1==_){const e={google:{families:[S+(T?":"+T:"")]}};M=wp.element.createElement(oo,{config:e})}const C=i()([E]);return wp.element.createElement(Dd,null,wp.element.createElement(vd,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){Od(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:x},this.props)),wp.element.createElement(Bd,null,wp.element.createElement(Nd,null,wp.element.createElement(zd,{className:"blockspare_progress_bar_value",value:r,onChange:e=>x({counter:e}),min:0,max:1e6}))),wp.element.createElement("div",{className:C},this.props.styles,wp.element.createElement("div",{className:"blockspare-counter-wrapper blockspare-blocks"},wp.element.createElement("div",{className:i()("blockspare-counter-section")},wp.element.createElement("div",{className:i()("blockspare-counters-item",u)},a&&"image"==o&&wp.element.createElement(Ad,{template:Rd,allowedBlocks:Id,templateLock:!0,templateInsertUpdatesSelection:!0}),a&&"icon"==o&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",s,c)},wp.element.createElement("i",{className:l}))),wp.element.createElement("div",{className:"blockspare-counters"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+n)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",v,"blockspare-"+k)},wp.element.createElement(Ki,{setAttributes:x,headerTitle:d,headerTagOption:p,headerSubTitle:m,titleFontFamily:f,titleFontWeight:g,titleLoadGoogleFonts:b,subTitleLoadGoogleFonts:h,subTitleFontFamily:y,subTitleFontWeight:w})))),wp.element.createElement("p",{className:"blockspare-counter"},wp.element.createElement(_d.a,{className:"account-balance",start:0,end:r,duration:4.75})))))),M)}});const Wd=wp.element.Component,Gd=wp.compose.compose,Ud=wp.blockEditor.InnerBlocks;var qd=Gd(Gr,Rr(Md))(class extends Wd{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.showImage,a=t.counter,r=t.align,o=(t.counterFontColor,t.imgIconOption),l=t.name,s=t.iconSize,c=t.iconStyles,u=t.design,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=(t.backGroundColor,t.blockBorderRadius,t.sectionAlignment),f=t.headerlayoutOption,g=e.className,h=(e.attributes,i()([g]));return wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:"blockspare-counter-wrapper blockspare-blocks blockspare-section-counter-bar"},wp.element.createElement("div",{className:i()("blockspare-counter-section")},wp.element.createElement("div",{className:i()("blockspare-counters-item",u)},n&&"image"==o&&wp.element.createElement(Ud.Content,null),n&&"icon"==o&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",s,c)},wp.element.createElement("i",{className:l}))),wp.element.createElement("div",{className:"blockspare-counters"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+r)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",f,"blockspare-"+b)},wp.element.createElement(Ml,{headerTitle:d,headerTagOption:p,headerSubTitle:m})))),wp.element.createElement("p",{className:"blockspare-counter"},a)))))}});function Vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach((function(t){Jd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xd=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.headerpaddingTop,m=t.headerpaddingRight,b=t.headerpaddingBottom,f=t.headerpaddingLeft,g=t.headermarginTop,h=t.headermarginBottom,y=t.counterFontColor,w=t.backGroundColor,v=t.blockBorderRadius,k=t.titleFontFamily,_=t.titleFontWeight,S=t.titleFontSizeType,T=t.titleFontSizeMobile,E=t.titleFontSizeTablet,x=t.subTitleFontSize,M=t.subTitleFontFamily,C=t.subTitleFontWeight,O=t.subTitleFontSizeType,L=t.subTitleFontSizeMobile,F=t.subTitleFontSizeTablet,D=t.counterFontSize,P=t.counterFontFamily,j=t.counterFontWeight,N=t.counterFontSizeType,z=t.counterFontSizeMobile,Y=t.counterFontSizeTablet,B=[];return B.push({".blockspare-counter-wrapper":$d($d($d({backgroundColor:w||"#fff"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:v||null}),".blockspare-block-icon":$d({},Sd(e.attributes)),".blockspare-counter":{fontSize:D+N,fontFamily:P,fontWeight:j}}),B.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:d+"px",paddingRight:m+"px",paddingBottom:b+"px",marginTop:g+"px",marginBottom:h+"px",paddingLeft:f+"px"}}),B.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+S,fontFamily:k,fontWeight:_,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:x+O,fontFamily:M,fontWeight:C,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},".blockspare-counter-wrapper":$d($d($d({backgroundColor:w||"#fff"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:v?v+"px":null}),".blockspare-counter":{color:y||"#000"},"..blockspare-block-icon":$d({},Sd(e.attributes)),tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:E+S},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:F+O},".blockspare-counter":{fontSize:Y+S}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:T+S},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:L+O},".blockspare-counter":{fontSize:z+S}}}),qr.a.all(B)};const Kd=wp.element.Component,Qd=wp.compose.compose,Zd=wp.blockEditor.InnerBlocks;var em=Qd(Gr,Rr(Xd))(class extends Kd{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.showImage,a=t.counter,r=t.align,o=(t.counterFontColor,t.imgIconOption),l=t.name,s=t.iconSize,c=t.iconStyles,u=t.design,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=(t.backGroundColor,t.blockBorderRadius,t.sectionAlignment),f=t.headerlayoutOption,g=e.className,h=(e.attributes,i()([g]));return wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:"blockspare-counter-wrapper blockspare-blocks blockspare-section-counter-bar"},wp.element.createElement("div",{className:i()("blockspare-counter-section")},wp.element.createElement("div",{className:i()("blockspare-counters-item",u)},n&&"image"==o&&wp.element.createElement(Zd.Content,null),n&&"icon"==o&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",s,c)},wp.element.createElement("i",{className:l}))),wp.element.createElement("div",{className:"blockspare-counters"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+r)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",f,"blockspare-"+b)},wp.element.createElement(Ml,{headerTitle:d,headerTagOption:p,headerSubTitle:m})))),wp.element.createElement("p",{className:"blockspare-counter"},a)))))}});function tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){am(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function am(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rm=nm(nm(nm(nm({},ei),ni),Qp.attributes),ti),om=wp.blockEditor.RichText;var im=[{attributes:rm,save:function(e){const t=e.attributes,n=t.showImage,a=t.counter,r=t.counterFontColor,o=t.imgIconOption,l=t.name,s=t.iconSize,c=t.iconStyles,u=t.design,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=t.backGroundColor,f=t.blockBorderRadius,g=nm(nm(nm({backgroundColor:b||"#fff"},Qi(e.attributes)),Zi(e.attributes)),{},{borderRadius:f||null}),h=nm({},Sd(e.attributes)),y=nm({},jl(e.attributes)),w=nm({},Nl(e.attributes)),v=nm({},zl(e.attributes));return wp.element.createElement("div",{className:"blockspare-counter-wrapper blockspare-blocks blockspare-section-counter-bar",style:g},wp.element.createElement("div",{className:i()("blockspare-counter-section")},wp.element.createElement("div",{className:i()("blockspare-counters-item",u)},n&&"image"==o&&wp.element.createElement(InnerBlocks.Content,null),n&&"icon"==o&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",s,c),style:h},wp.element.createElement("i",{className:l}))),wp.element.createElement("div",{className:"blockspare-counters"},wp.element.createElement(Vl,e,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:y}),d&&wp.element.createElement(om.Content,{tagName:p,className:"blockspare-title",style:w,value:d}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:y})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:y}),m&&wp.element.createElement(om.Content,{tagName:"p",className:"blockspare-subtitle",style:v,value:m}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:y})))),wp.element.createElement("p",{className:"blockspare-counter",style:{color:r||"#000"}},a))))}},{attributes:rm,save:e=>wp.element.createElement(em,e)}];function lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const um=Qp.name,pm=Qp.category,dm=wp.i18n.__,mm=wp.blocks.registerBlockType,bm=sm(sm(sm(sm({},ei),ni),Qp.attributes),ti);mm(um,{title:dm("BS Counter","blockspare"),description:dm("Add counter in you page and post","blockspare`"),Description:"Displays Counter",category:pm,icon:r.counter,attributes:bm,keywords:[dm("block","blockspare"),dm("counter","blockspare"),dm("number","blockspare"),dm("box","blockspare")],supports:{align:["wide","full","center"],html:!0},example:{attributes:{counter:100,counterFontColor:"#000",headertitleColor:"#000",backGroundColor:"#fff",headersubtitleColor:"#000",name:"fas fa-chart-line",headerTitle:"Enter Title"}},edit:Hd,save:qd,deprecated:im});n(504);var fm=n(31);const gm=wp.i18n.__,hm=wp.element.Component,ym=wp.blockEditor.InspectorControls,wm=wp.components.PanelBody;class vm extends hm{render(){const e=this.props.attributes,t=e.name,n=e.iconSize,a=e.iconStyles,r=e.iconBackgroundColor,o=e.iconBorderColor,i=e.iconColor,l=e.borderRadius,s=e.marginTop,c=e.marginBottom,u=this.props.setAttributes;return wp.element.createElement(ym,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"icon"}),wp.element.createElement(wm,{title:gm("Icon Settings"),initialOpen:!1},wp.element.createElement(dd,{name:t,onChangeName:e=>u({name:e}),enableiconSize:!1,iconSize:n,onChangeIconSizeOptions:e=>u({iconSize:e}),enableiconStyles:!1,iconStyles:a,onChangeIconStyles:e=>u({iconStyles:e}),iconBackgroundColor:r,onChangeIconBackgroundColor:e=>u({iconBackgroundColor:e}),iconBorderColor:o,onChangeIconBorderColor:e=>u({iconBorderColor:e}),iconColor:i,OnChangeIconColor:e=>u({iconColor:e}),borderRadius:l,onChangeBorderRadius:e=>u({borderRadius:e})})),wp.element.createElement(wm,{title:gm("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:s,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>u({marginTop:e}),marginEnableBottom:!0,marginBottom:c,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>u({marginBottom:e})}))))}}var km=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.iconStyles,r=t.iconBackgroundColor,o=t.iconBorderColor,i=t.iconColor,l=t.borderRadius,s=t.marginTop,c=t.marginBottom,u=[];return u.push({".blockspare-block-icon-wrapper":{textAlign:n,marginTop:s+"px",marginBottom:c+"px"}}),"blockspare-icon-style2"===a?u.push({".blockspare-block-icon":{backgroundColor:r||"#8b249c",borderColor:o||"#8b249c",color:i||"#fff",borderRadius:l+"%"}}):"blockspare-icon-style3"===a?u.push({".blockspare-block-icon":{backgroundColor:"transparent",borderColor:o||"#8b249c",color:i||"#fff",borderRadius:l+"%"}}):u.push({".blockspare-block-icon":{color:i||"#fff"}}),qr.a.all(u)};function _m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tm=wp.element,Em=Tm.Component,xm=Tm.Fragment,Mm=(wp.i18n.__,wp.compose.compose),Cm=wp.blockEditor,Om=Cm.AlignmentToolbar,Lm=Cm.BlockControls;var Fm=Mm(Gr,Rr(km,{editorMode:!0}))(class extends Em{constructor(){super(...arguments),this.state={device:"md",spacer:!0}}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}render(){const e=this.props,t=e.attributes,n=t.name,a=t.iconSize,r=t.iconStyles,o=t.sectionAlignment,l=e.className,s=(e.attributes,e.setAttributes),c=i()([l,"blockspare-blocks"]);return wp.element.createElement(xm,null,wp.element.createElement(Lm,{key:"controls"},wp.element.createElement(Om,{value:o,onChange:e=>{s({sectionAlignment:e})}})),wp.element.createElement(vm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_m(Object(n),!0).forEach((function(t){Sm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:s},this.props)),wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r)},wp.element.createElement("i",{className:n})))))}});const Dm=wp.element.Component,Pm=wp.compose.compose;var jm=Pm(Gr,Rr(km))(class extends Dm{render(){const e=this.props,t=e.attributes,n=t.name,a=t.iconSize,r=t.iconStyles,o=e.className,l=i()([o,"blockspare-blocks"]);return wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r)},wp.element.createElement("i",{className:n}))))}});var Nm=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.iconStyles,r=t.iconBackgroundColor,o=t.iconBorderColor,i=t.iconColor,l=t.borderRadius,s=[];return s.push({".blockspare-block-icon-wrapper":{textAlign:n}}),"blockspare-icon-style2"===a?s.push({".blockspare-block-icon":{backgroundColor:r||"#8b249c",borderColor:o||"#8b249c",color:i||"#fff",borderRadius:l+"%"}}):"blockspare-icon-style3"===a?s.push({".blockspare-block-icon":{backgroundColor:"transparent",borderColor:o||"#8b249c",color:i||"#fff",borderRadius:l+"%"}}):s.push({".blockspare-block-icon":{color:i||"#fff"}}),qr.a.all(s)};const zm=wp.element.Component,Ym=wp.compose.compose;var Bm=Ym(Gr,Rr(Nm))(class extends zm{render(){const e=this.props,t=e.attributes,n=t.name,a=t.iconSize,r=t.iconStyles,o=e.className,l=i()([o,"blockspare-blocks"]);return wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r)},wp.element.createElement("i",{className:n}))))}});function Am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rm=fm.attributes;var Hm=[{attributes:Rm,save:function(e){const t=e.attributes,n=t.name,a=t.iconSize,r=t.iconStyles,o=t.sectionAlignment,l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Am(Object(n),!0).forEach((function(t){Im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Sd(e.attributes));return wp.element.createElement("div",{className:"blockspare-block"},wp.element.createElement("div",{className:"blockspare-block-icon-wrapper",style:{textAlign:o}},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r),style:l},wp.element.createElement("i",{className:n}))))}},{attributes:Rm,save:e=>wp.element.createElement(Bm,e)}];const Wm=fm.name,Gm=fm.category,Um=fm.attributes,qm=wp.i18n.__;(0,wp.blocks.registerBlockType)(Wm,{title:qm("BS Icon","blockspare"),description:qm("Our Icon block allows you to choose and place various type of icons","blockspare"),category:Gm,icon:r.iconblockspare,keywords:[qm("block","blockspare"),qm("icon","blockspare"),qm("set","blockspare"),qm("box","blockspare")],example:{attributes:{cover:"https://blockspare.com",author:"Blockspare",pages:500}},attributes:Um,edit:Fm,save:jm,deprecated:Hm});n(505),n(506);var Vm=n(32),$m=n(14),Jm=n.n($m),Xm=n(27),Km=n.n(Xm);const Qm=wp.i18n.__,Zm=wp.element.Component,eb=wp.blockEditor,tb=eb.InspectorControls,nb=eb.PanelColorSettings,ab=wp.components,rb=ab.PanelBody,ob=ab.SelectControl,ib=ab.ToggleControl,lb=(ab.TextControl,ab.RangeControl);class sb extends Zm{imageSizeSelect(){const e=wp.data.select("core/editor").getEditorSettings();return Km()(Ae()(e.imageSizes,({name:e,slug:t})=>({value:t,label:e})))}render(){const e=this.props,t=e.attributes,n=t.numberofSlide,a=(t.carouselSpeed,t.showsliderNextPrev),r=(t.carouselNextIcon,t.showDots),o=t.navigationColor,i=t.gutterSpace,l=(t.colorFilter,t.showOriginalOnHover,t.navigationSize),s=t.enableAutoPlay,c=t.marginTop,u=t.marginBottom,p=(e.attributes,e.setAttributes),d={value:"selectimage",label:Qm("Select image size")};this.imageSizeSelect().unshift(d);Qm("Chevron","blockspare"),Qm("Angle","blockspare"),Qm("Chevron Circle","blockspare"),Qm("Caret","blockspare"),Qm("Circle","blockspare"),Qm("Original","blockspare"),Qm("Grayscale","blockspare"),Qm("Sepia","blockspare"),Qm("Saturation","blockspare"),Qm("Dim","blockspare"),Qm("Vintage","blockspare");const m=[{value:"blockspare-navigation-small",label:Qm("Small","blockspare")},{value:"blockspare-navigation-medium",label:Qm("Medium","blockspare")},{value:"blockspare-navigation-large",label:Qm("Large","blockspare")}];return wp.element.createElement(tb,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"image-carousel"}),wp.element.createElement(rb,{title:Qm("Carousel Settings","blockspare"),initialOpen:!1},wp.element.createElement(lb,{label:Qm("Number of slide to show","blockspare"),value:n,onChange:e=>p({numberofSlide:e}),min:2,max:3}),wp.element.createElement(lb,{label:Qm("Gutter Sapce","blockspare"),value:i,onChange:e=>p({gutterSpace:e}),min:0,max:5}),wp.element.createElement(ib,{label:Qm("Enable Autoplay","blockspare"),checked:s,onChange:()=>this.props.setAttributes({enableAutoPlay:!s}),help:Qm("The effect will applicable on frontend only.","blockspare")}),wp.element.createElement(ib,{label:Qm("Display Navigation","blockspare"),checked:a,onChange:()=>this.props.setAttributes({showsliderNextPrev:!a})}),a&&wp.element.createElement(ob,{label:Qm(" Navigation Size","blockspare"),value:l,options:m.map(({value:e,label:t})=>({value:e,label:t})),onChange:e=>p({navigationSize:e})}),wp.element.createElement(ib,{label:Qm("Display Dots","blockspare"),checked:r,onChange:()=>this.props.setAttributes({showDots:!r})}),a&&wp.element.createElement(nb,{title:Qm("Navigation/Dots Color","blockspare"),initialOpen:!1,colorSettings:[{value:o,onChange:e=>p({navigationColor:e}),label:Qm("Navigation/Dots Color","blockspare")}]})),wp.element.createElement(rb,{title:Qm("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:c,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>p({marginTop:e}),marginEnableBottom:!0,marginBottom:u,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>p({marginBottom:e})}))))}}var cb=n(281),ub=n.n(cb);const pb=wp.i18n.__,db=wp.element,mb=db.Component,bb=db.Fragment,fb=wp.compose.compose,gb=wp.components,hb=gb.IconButton,yb=gb.Spinner,wb=gb.Dashicon,vb=wp.blockEditor,kb=vb.RichText,_b=vb.URLInput,Sb=wp.data.withSelect,Tb=wp.keycodes,Eb=(Tb.BACKSPACE,Tb.DELETE,wp.blob.isBlobURL);var xb=fb([Sb((e,t)=>{const n=e("core").getMedia,a=t.id;return{image:a?n(a):null}})])(class extends mb{constructor(){super(...arguments),this.onImageClick=this.onImageClick.bind(this),this.onSelectCaption=this.onSelectCaption.bind(this),this.bindContainer=this.bindContainer.bind(this),this.saveCustomLink=this.saveCustomLink.bind(this),this.state={captionSelected:!1,captionFocused:!1,isSaved:!1}}bindContainer(e){this.container=e}onSelectCaption(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}onImageClick(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1,captionFocused:!1})}saveCustomLink(){this.setState({isSaved:!0})}componentDidUpdate(e){const t=this.props,n=t.isSelected,a=t.image,r=t.url,o=t.imgLink;a&&!r&&this.props.setAttributes({url:a.source_url,alt:a.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1,captionFocused:!1}),o&&!n&&e.isSelected&&this.setState({isSaved:!1})}render(){const e=this.props,t=e.alt,n=e.caption,a=e.captions,r=e.fontSize,o=e.gutter,l=e.gutterMobile,s=e.id,c=e.isFirstItem,u=e.isLastItem,p=e.isSelected,d=e.linkTo,m=e.marginBottom,b=e.marginLeft,f=e.marginRight,g=e.marginTop,h=e.onMoveBackward,y=e.onMoveForward,w=e.onRemove,v=e.setAttributes,k=e.shadow,_=e.supportsCaption,S=e.supportsMoving,T=void 0===S||S,E=e.verticalMoving,x=void 0!==E&&E,M=e.url,C=e.sizes,O=e.inspectorSize,L=e["aria-label"],F=e.imgLink;let D="";D=C?"medium"===O?void 0===C.medium?M:void 0!==C.medium?C.medium.url:M:"full"===O?void 0===C.large?M:void 0!==C.full.url?C.full.url:M:M:M;const P=i()({["has-shadow-"+k]:"none"!==k||void 0!==k}),j=wp.element.createElement(bb,null,wp.element.createElement("img",{src:D,className:P,alt:t,"data-id":s,"data-imglink":F,onClick:this.onImageClick,tabIndex:"0","aria-label":L}),Eb(M)&&wp.element.createElement(yb,null)),N=i()({"is-selected":p,"is-transient":M&&0===M.indexOf("blob:"),["has-margin-top-"+o]:g&&o>0,["has-margin-top-mobile-"+l]:g&&l>0,["has-margin-right-"+o]:f&&o>0,["has-margin-right-mobile-"+l]:f&&l>0,["has-margin-bottom-"+o]:m&&o>0,["has-margin-bottom-mobile-"+l]:m&&l>0,["has-margin-left-"+o]:b&&o>0,["has-margin-left-mobile-"+l]:b&&l>0}),z={fontSize:r?r+"px":void 0};return wp.element.createElement("figure",{className:"blockspare-gallery-figure "+N,tabIndex:"-1",onKeyDown:this.onKeyDown,ref:this.bindContainer},p&&wp.element.createElement(bb,null,T&&wp.element.createElement("div",{className:"components-blockspare-gallery-item__move-menu"},wp.element.createElement(hb,{icon:x?"arrow-up":"arrow-left",onClick:!c&&h,className:"blockspare-gallery-item-button",label:pb("Move Image Backward","blockspare"),"aria-disabled":c,disabled:!p}),wp.element.createElement(hb,{icon:x?"arrow-down":"arrow-right",onClick:!u&&y,className:"blockspare-gallery-item-button",label:pb("Move Image Forward","blockspare"),"aria-disabled":u,disabled:!p})),wp.element.createElement("div",{className:"components-blockspare-gallery-item__remove-menu"},wp.element.createElement(hb,{icon:"no-alt",onClick:w,className:"blockspare-gallery-item-button",label:pb("Remove Image","blockspare"),disabled:!p})),"custom"===d&&wp.element.createElement("form",{className:"components-blockspare-gallery-item-image-link",onSubmit:e=>e.preventDefault()},wp.element.createElement(wb,{icon:"admin-links"}),wp.element.createElement(_b,{value:F,onChange:e=>v({imgLink:e})}),wp.element.createElement(hb,{icon:this.state.isSaved?"saved":"editor-break",label:this.state.isSaved?pb("Saving","blockspare"):pb("Apply","blockspare"),onClick:this.saveCustomLink,type:"submit"}))),j,!0!==_||kb.isEmpty(n)&&!p||!a?null:wp.element.createElement(kb,{tagName:"figcaption",placeholder:pb("Write caption…","blockspare"),className:"blockspare-gallery-caption",style:z,value:n,isSelected:this.state.captionSelected,onChange:e=>v({caption:e}),unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}),Mb=n(282),Cb=n.n(Mb),Ob=n(61),Lb=n.n(Ob),Fb=n(283),Db=n.n(Fb);const Pb=(e,t)=>{const n=Cb()(e,["alt","id","link","caption","imgLink","sizes"]);n.url=Lb()(e,["sizes","large","url"])||Lb()(e,["media_details","sizes","large","source_url"])||e.url;const a=Db()(t,(function(e){return e.url===n.url}));return n.imgLink=a>=0?t[a].imgLink:"",n},jb=["image"],Nb=wp.i18n,zb=Nb.__,Yb=Nb.sprintf,Bb=wp.element.Component,Ab=wp.blockEditor,Ib=Ab.MediaPlaceholder,Rb=Ab.BlockIcon;var Hb=class extends Bb{constructor(){super(...arguments),this.onSelectImages=this.onSelectImages.bind(this)}onSelectImages(e){this.props.setAttributes({images:e.map(e=>Pb(e))})}render(){const e=this.props,t=e.attributes,n=(e.gutter,e.gutterMobile,e.isSelected),a=(e.marginBottom,e.marginLeft,e.marginRight,e.marginTop,e.noticeOperations),r=e.noticeUI,o=t.images,l=!!o.length,s=i()("blockspare-gallery--figure");return wp.element.createElement("div",{className:s},wp.element.createElement(Ib,{addToGallery:l,isAppender:l,dropZoneUIOnly:l&&!n,icon:!l&&wp.element.createElement(Rb,{icon:this.props.icon}),labels:{title:!l&&Yb(zb("%s Gallery","blockspare"),this.props.label),instructions:!l&&zb("Upload an image file, pick one from your media library, or add one with a URL.","blockspare")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:jb,multiple:!0,value:l?o:void 0,onError:a.createErrorNotice,notices:l?void 0:r}))}};const Wb=wp.element,Gb=Wb.Component,Ub=Wb.Fragment,qb=wp.blockEditor.mediaUpload,Vb=wp.components.DropZone;var $b=class extends Gb{constructor(){super(...arguments),this.addMediaFiles=this.addMediaFiles.bind(this)}addMediaFiles(e){const t=this.props.attributes.images||[],n=this.props,a=n.noticeOperations,r=n.setAttributes;qb({allowedTypes:jb,filesList:e,onFileChange:e=>{const n=e.map(e=>Pb(e));r({images:t.concat(n)})},onError:a.createErrorNotice})}render(){return wp.element.createElement(Ub,null,wp.element.createElement(Vb,{onFilesDrop:this.addMediaFiles,label:this.props.label}))}};var Jb=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=[];return r.push({".blockspare-carousel-wrap":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0}}),qr.a.all(r)};function Xb(){return(Xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Qb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kb(Object(n),!0).forEach((function(t){Zb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ef=wp.element,tf=ef.Component,nf=ef.Fragment,af=wp.i18n,rf=af.__,of=af.sprintf,lf=wp.compose.compose,sf=wp.components,cf=sf.withNotices,uf=(sf.ResizableBox,sf.Toolbar),pf=sf.IconButton,df=wp.blockEditor,mf=df.BlockControls,bf=df.MediaUpload,ff=df.MediaUploadCheck;var gf=lf([cf,Gr,Rr(Jb)])(class extends tf{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBackward=this.onMoveBackward.bind(this),this.setImageAttributes=this.setImageAttributes.bind(this),this.onItemClick=this.onItemClick.bind(this),this.onEditSelectImages=this.onEditSelectImages.bind(this),this.state={selectedImage:null,captionFocused:!1}}componentDidMount(){this.props.setAttributes({lightbox:void 0,lightboxStyle:void 0,shadow:void 0})}componentDidUpdate(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1,captionFocused:!1}),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1}),this.props.attributes.gutter<=0&&this.props.setAttributes({radius:0}),"xlrg"===this.props.attributes.gridSize&&void 0===e.attributes.align&&this.props.setAttributes({gutter:0,gutterMobile:0})}onSelectImage(e){return()=>{this.state.selectedImage!==e&&this.setState({selectedImage:e,captionFocused:!1})}}onMove(e,t){const n=[...this.props.attributes.images];n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.props.setAttributes({images:n})}onMoveForward(e){return()=>{e!==this.props.attributes.images.length-1&&this.onMove(e,e+1)}}onMoveBackward(e){return()=>{0!==e&&this.onMove(e,e-1)}}onRemoveImage(e){return()=>{const t=Jm()(this.props.attributes.images,(t,n)=>e!==n);this.setState({selectedImage:null}),this.props.setAttributes({images:t})}}setImageAttributes(e,t){const n=this.props,a=n.attributes.images,r=n.setAttributes;a[e]&&r({images:[...a.slice(0,e),Qb(Qb({},a[e]),t),...a.slice(e+1)]})}onItemClick(){this.props.isSelected||this.props.onSelect(),this.state.captionFocused&&this.setState({captionFocused:!1})}onEditSelectImages(e){this.props.setAttributes({images:e.map(e=>Pb(e,this.props.attributes.images))})}render(){const e=this.props,t=e.attributes,n=t.images,a=t.numberofSlide,r=t.carouselSpeed,o=t.showsliderNextPrev,l=t.carouselNextIcon,s=t.showDots,c=t.navigationColor,u=t.gutterSpace,p=t.colorFilter,d=t.showOriginalOnHover,m=t.navigationSize,b=(t.enableAutoPlay,e.className),f=e.isSelected,g=(e.noticeUI,e.setAttributes),h=i()([b]),y=!!n.length,w=wp.element.createElement($b,this.props);if(!y)return wp.element.createElement(Hb,Xb({},this.props,{label:rf("Carousel","blockspare")}));var v="fas fa-angle-right",k="fas fa-angle-left";"fas fa-angle-right"===l?(v=wp.element.createElement(yf,null),k=wp.element.createElement(hf,null)):"fas fa-chevron-circle-right"===l?(v=wp.element.createElement(vf,null),k=wp.element.createElement(wf,null)):"fas fa-caret-right"===l?(v=wp.element.createElement(_f,null),k=wp.element.createElement(kf,null)):"fas fa-chevron-right"===l?(v=wp.element.createElement(Tf,null),k=wp.element.createElement(Sf,null)):"fas fa-arrow-circle-right"===l?(v=wp.element.createElement(xf,null),k=wp.element.createElement(Ef,null)):(v="fas fa-angle-right",k="fas fa-angle-left");const _={dots:s,loop:!0,speed:r,arrows:o,slidesToShow:a,nextArrow:v,prevArrow:k};return wp.element.createElement(nf,null,wp.element.createElement(mf,null,y&&wp.element.createElement(nf,null,wp.element.createElement(sb,Qb({setAttributes:g},this.props)),wp.element.createElement(uf,null,wp.element.createElement(ff,null,wp.element.createElement(bf,{onSelect:this.onEditSelectImages,allowedTypes:jb,multiple:!0,gallery:!0,value:n.map(e=>e.id),render:({open:e})=>wp.element.createElement(pf,{className:"components-toolbar__control",label:rf("Edit gallery","blockspare"),icon:"edit",onClick:e})}))))),w,wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-carousel-wrap","has-gutter-space-"+u,p,"blockspare-original"!==p&&d?"has-hover-effect":"",m)},wp.element.createElement("div",{className:"blockspare-carousel-items",style:{color:c}},wp.element.createElement(ub.a,_,n.map((e,t)=>{const a=of(rf("image %1$d of %2$d in gallery","blockspare"),t+1,n.length);return wp.element.createElement("div",{className:"blockspare-gallery-item",key:e.id||e.url,onClick:this.onItemClick},wp.element.createElement(xb,{url:e.url,alt:e.alt,id:e.id,marginRight:!0,marginLeft:!0,isSelected:f&&this.state.selectedImage===t,onRemove:this.onRemoveImage(t),onSelect:this.onSelectImage(t),setAttributes:e=>this.setImageAttributes(t,e),caption:e.caption,"aria-label":a,supportsCaption:!1,onMoveBackward:this.onMoveBackward(t),onMoveForward:this.onMoveForward(t),supportsMoving:!0,sizes:e.sizes,inspectorSize:"medium"}))}))))))}});function hf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-prev slick-arrow fas fa-angle-left"),onClick:t})}function yf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-next slick-arrow fas fa-angle-right"),onClick:t})}function wf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-prev slick-arrow fas fa-chevron-circle-left"),onClick:t})}function vf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-next slick-arrow fas fa-chevron-circle-right"),onClick:t})}function kf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-prev slick-arrow fas fa-caret-left"),onClick:t})}function _f(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-next slick-arrow fas fa-caret-right"),onClick:t})}function Sf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-prev slick-arrow fas fa-chevron-left"),onClick:t})}function Tf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-next slick-arrow fas fa-chevron-right"),onClick:t})}function Ef(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-prev slick-arrow fas fa-arrow-circle-left"),onClick:t})}function xf(e){e.className,e.style;const t=e.onClick;return wp.element.createElement("span",{className:i()("slide-next slick-arrow fas fa-arrow-circle-right"),onClick:t})}const Mf=wp.element.Component,Cf=wp.compose.compose;var Of=Cf(Gr,Rr(Jb))(class extends Mf{render(){const e=this.props,t=e.attributes,n=t.images,a=t.numberofSlide,r=t.carouselSpeed,o=t.showsliderNextPrev,l=t.carouselNextIcon,s=t.showDots,c=t.navigationColor,u=t.gutterSpace,p=t.colorFilter,d=t.showOriginalOnHover,m=t.navigationSize,b=t.enableAutoPlay,f=e.className;let g=l,h=l.replace("-right","-left"),y={loop:!0,autoplay:b,slidesToShow:a,speed:r,arrows:o,dots:s};var w=JSON.stringify(y);const v=i()([f]);return wp.element.createElement("div",{className:v},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-carousel-wrap","has-gutter-space-"+u,p,m,"blockspare-original"!==p&&d?"has-hover-effect":"")},wp.element.createElement("div",{className:"blockspare-carousel-items","data-next":g,"data-prev":h,"data-slick":w,style:{color:c}},n.map((e,t)=>{let n="";return n=void 0===e.sizes.medium?e.url:e.sizes.medium.url,wp.element.createElement("div",{className:"blockspare-gallery-figure "},wp.element.createElement("img",{src:n}))}))))}});const Lf=wp.element.Component;class Ff extends Lf{render(){const e=this.props,t=e.attributes,n=t.images,a=t.numberofSlide,r=t.carouselSpeed,o=t.showsliderNextPrev,l=t.carouselNextIcon,s=t.showDots,c=t.navigationColor,u=t.gutterSpace,p=t.colorFilter,d=t.showOriginalOnHover,m=t.navigationSize,b=t.enableAutoPlay,f=e.className;let g=l,h=l.replace("-right","-left"),y={loop:!0,autoplay:b,slidesToShow:a,speed:r,arrows:o,dots:s};var w=JSON.stringify(y);return wp.element.createElement("div",{className:i()(f,"blockspare-blocks blockspare-carousel-wrap","has-gutter-space-"+u,p,m,"blockspare-original"!==p&&d?"has-hover-effect":"")},wp.element.createElement("div",{className:"blockspare-carousel-items","data-next":g,"data-prev":h,"data-slick":w,style:{color:c}},n.map((e,t)=>{let n="";return n=void 0===e.sizes.medium?e.url:e.sizes.medium.url,wp.element.createElement("div",{className:"blockspare-gallery-figure "},wp.element.createElement("img",{src:n}))})))}}function Df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Pf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jf=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Df(Object(n),!0).forEach((function(t){Pf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Vm.attributes),save:e=>wp.element.createElement(Ff,e)}];const Nf=blockspare_globals,zf=Vm.name,Yf=Vm.category,Bf=Vm.attributes,Af=wp.i18n.__;(0,wp.blocks.registerBlockType)(zf,{title:Af("BS Image Carousel","blockspare"),description:Af("Add logos, badges and images to build carousel.","blockspare"),category:Yf,icon:r.imagecarousel,attributes:Bf,keywords:[Af("block","blockspare"),Af("image","blockspare"),Af("carousel","blockspare"),Af("slider","blockspare"),Af("gallery","blockspare")],supports:{align:["wide","full","center"]},example:{attributes:{align:"full",images:[{url:Nf.img},{url:Nf.img},{url:Nf.img}],showsliderNextPrev:!0,showDots:!0}},edit:gf,save:Of,deprecated:jf});var If=n(67),Rf=(n(507),n(508),n(17));const Hf=wp.i18n.__,Wf=wp.element,Gf=Wf.Component,Uf=(Wf.Fragment,wp.blockEditor),qf=Uf.InspectorControls,Vf=Uf.PanelColorSettings,$f=wp.components,Jf=$f.PanelBody;$f.SelectControl,$f.RangeControl;class Xf extends Gf{render(){const e=this.props,t=e.attributes,n=t.percentageTextColor,a=t.textSize,r=t.barColor,o=(t.backgroundColor,t.barThickness,t.titleLoadGoogleFonts),i=t.titleFontFamily,l=t.titleFontWeight,s=t.titleFontSubset,c=t.titleFontSizeType,u=t.titleFontSizeMobile,p=t.titleFontSizeTablet,d=e.attributes,m=e.setAttributes;return wp.element.createElement(qf,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"progress-bar"}),wp.element.createElement(Jf,{title:Hf("Block Settings"),initialOpen:!1},wp.element.createElement(br,{label:Hf("Title"),attributes:d,setAttributes:m,loadGoogleFonts:{value:o,label:Hf("titleLoadGoogleFonts")},fontFamily:{value:i,label:Hf("titleFontFamily")},fontWeight:{value:l,label:Hf("titleFontWeight")},fontSubset:{value:s,label:Hf("titleFontSubset")},fontSizeType:{value:c,label:Hf("titleFontSizeType")},fontSize:{value:a,label:Hf("textSize")},fontSizeMobile:{value:u,label:Hf("titleFontSizeMobile")},fontSizeTablet:{value:p,label:Hf("titleFontSizeTablet")},disableLineHeight:!0}),wp.element.createElement(Vf,{title:Hf("Background Color","blockspare"),initialOpen:!1,colorSettings:[{value:r,onChange:e=>m({barColor:e}),label:Hf("Bar Color","blockspare")},{value:n,onChange:e=>m({percentageTextColor:e}),label:Hf("Percentage Texts Color","blockspare")}]}))))}}var Kf=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.textSize,r=t.textColor,o=t.percentageTextColor,i=t.barColor,l=t.backgroundColor,s=t.titleFontFamily,c=t.titleFontWeight,u=t.titleFontSizeType,p=t.titleFontSizeMobile,d=t.titleFontSizeTablet,m=[];return m.push({".blockspare-title":{textAlign:n,color:r||"#404040",fontSize:a+u+"!important",fontFamily:s,fontWeight:"Default"!==s?c+"!important":""},".blockspare_progress-bar-label":{color:o||"#8b249c"},".blockspare-skillbar":{backgroundColor:l||"#8b249c"},".blockspare-skillbar-bar":{backgroundColor:i||"#2DB7F5"},tablet:{".blockspare-title":{fontSize:d+u+"!important"}},mobile:{".blockspare-title":{fontSize:p+u+"!important"}}}),qr.a.all(m)};class Qf extends Ke.Component{constructor(e){super(e),this.state={indicator:0,isActive:!1}}componentDidMount(){setTimeout(()=>this.setState({indicator:this.props.percent,isActive:!0}),1e3)}componentWillReceiveProps(e){this.state.isActive&&this.props.percent!==e.percent&&this.setState({indicator:e.percent})}render(){const e=this.state,t=e.indicator,n=(e.isActive,this.props),a=n.barColor,r=n.barThickness,o=(n.percent,n.backgroundColor),i=(n.percentageTextColor,`M ${r/2},${r/2} L ${100-r/2},${r/2}`);return wp.element.createElement("div",{className:"blockspare_progress-bar-container"},wp.element.createElement("svg",{className:"blockspare_progress-bar-line",viewBox:"0 0 100 "+r,preserveAspectRatio:"none"},wp.element.createElement("path",{className:"blockspare_progress-bar-line-trail",d:i,strokeWidth:r,style:{stroke:o||"#8b249c"}}),wp.element.createElement("path",{className:"blockspare_progress-bar-line-path",d:i,stroke:a||"#2DB7F5",strokeWidth:r,style:{strokeDashoffset:100-t+"px"}})))}}function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function eg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tg=wp.element,ng=tg.Component,ag=tg.Fragment,rg=wp.i18n.__,og=wp.compose.compose,ig=wp.blockEditor,lg=ig.BlockControls,sg=ig.RichText,cg=ig.AlignmentToolbar,ug=wp.components,pg=ug.Toolbar,dg=ug.RangeControl;var mg=og(Gr,Rr(Kf))(class extends ng{render(){const e=this.props,t=e.attributes,n=t.title,a=(t.textSize,t.textColor,t.percentageTextColor),r=t.percentage,o=t.barColor,l=t.barThickness,s=t.backgroundColor,c=t.sectionAlignment,u=t.titleLoadGoogleFonts,p=t.titleFontFamily,d=t.titleFontWeight,m=(t.percent,e.isActive),b=void 0===m?"true":m,f=e.className,g=e.setAttributes;let h;if(1==u){const e={google:{families:[p+(d?":"+d:"")]}};h=wp.element.createElement(oo,{config:e})}const y=i()([f,"blockspare-progressbar-wrap"]);return wp.element.createElement(ag,null,wp.element.createElement(Xf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(n),!0).forEach((function(t){eg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:g},this.props)),wp.element.createElement(lg,null,wp.element.createElement(cg,{value:c,onChange:e=>{g({sectionAlignment:e})}}),wp.element.createElement(pg,null,wp.element.createElement(dg,{className:"blockspare_progress_bar_value",value:r,onChange:e=>g({percentage:e}),min:0,max:100}))),wp.element.createElement("div",{className:y},this.props.styles,wp.element.createElement("div",{className:"blockspare-precent-text-wrap"},wp.element.createElement(sg,{tagName:"div",placeholder:rg("Title","blockspare"),keepPlaceholderOnFocus:!0,value:n,className:i()("blockspare-title","blockspare-progress-title"),onChange:e=>g({title:e})}),wp.element.createElement("div",{className:"blockspare_progress-bar-label",style:{visibility:b?"visible":"hidden",color:a||"#8b249c"}},r,"%")),wp.element.createElement(Qf,{percent:r,barColor:o,barThickness:l,backgroundColor:s,percentageTextColor:a})),h)}});const bg=wp.element.Component,fg=wp.compose.compose,gg=wp.blockEditor.RichText;var hg=fg(Gr,Rr(Kf))(class extends bg{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.title,a=t.percentage,r=t.barThickness,o=(t.sectionAlignment,e.className),l=i()([o,"blockspare-progressbar-wrap"]);return wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare_progress-bar-container"},wp.element.createElement("div",{className:"blockspare-precent-text-wrap"},wp.element.createElement(gg.Content,{tagName:"div",className:i()("blockspare-title","blockspare-progress-title"),value:n}),wp.element.createElement("div",{className:"blockspare_progress-bar-label"},a,"%")),wp.element.createElement("div",{className:"blockspare-skillbar-item","data-percent":a},wp.element.createElement("div",{className:i()("blockspare-skillbar","barthickness-"+r)},wp.element.createElement("div",{className:"blockspare-skillbar-bar"})))))}});var yg=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.textSize,r=t.textColor,o=t.percentageTextColor,i=t.barColor,l=t.backgroundColor,s=t.titleFontFamily,c=t.titleFontWeight,u=t.titleFontSizeType,p=t.titleFontSizeMobile,d=t.titleFontSizeTablet,m=[];return m.push({".blockspare-title":{textAlign:n,color:r||"#404040",fontSize:a+u+"!important",fontFamily:s,fontWeight:"Default"!==s?c+"!important":""},".blockspare_progress-bar-label":{color:o||"#8b249c"},".blockspare-skillbar":{backgroundColor:l||"#8b249c"},".blockspare-skillbar-bar":{backgroundColor:i||"#2DB7F5"},tablet:{".blockspare-title":{fontSize:d+u+"!important"}},mobile:{".blockspare-title":{fontSize:p+u+"!important"}}}),qr.a.all(m)};const wg=wp.element.Component,vg=wp.compose.compose,kg=wp.blockEditor.RichText;var _g=vg(Gr,Rr(yg))(class extends wg{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.title,a=t.percentage,r=t.barThickness,o=(t.sectionAlignment,e.className),l=i()([o,"blockspare-progressbar-wrap"]);return wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare_progress-bar-container"},wp.element.createElement(kg.Content,{tagName:"div",className:i()("blockspare-title","blockspare-progress-title"),value:n}),wp.element.createElement("div",{className:"blockspare-skillbar-item","data-percent":a},wp.element.createElement("div",{className:"blockspare_progress-bar-label"},a,"%"),wp.element.createElement("div",{className:i()("blockspare-skillbar","barthickness-"+r)},wp.element.createElement("div",{className:"blockspare-skillbar-bar"})))))}});function Sg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sg(Object(n),!0).forEach((function(t){Eg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xg=wp.blockEditor.RichText;var Mg=[{attributes:Tg({},Rf.attributes),save:function(e){const t=e.attributes,n=(t.blockID,t.title),a=t.textSize,r=t.textColor,o=t.percentageTextColor,l=t.percentage,s=t.barColor,c=t.backgroundColor,u=t.barThickness,p=t.sectionAlignment,d={backgroundColor:s||"#2DB7F5"};return wp.element.createElement("div",{className:"blockspare_progress-bar-container"},wp.element.createElement(xg.Content,{tagName:"div",value:n,style:{textAlign:p,color:r||"#404040",fontSize:a+"px"}}),wp.element.createElement("div",{className:"blockspare-skillbar-item","data-percent":l},wp.element.createElement("div",{className:"blockspare_progress-bar-label",style:{color:o||"#8b249c"}},l,"%"),wp.element.createElement("div",{className:i()("blockspare-skillbar","barthickness-"+u),style:{backgroundColor:c||"#8b249c"}},wp.element.createElement("div",{className:"blockspare-skillbar-bar",style:d}))))}},{attributes:Tg({},Rf.attributes),save:e=>wp.element.createElement(_g,e)}];const Cg=Rf.name,Og=Rf.attributes,Lg=Rf.category,Fg=wp.i18n.__,Dg=wp.blocks.registerBlockType,Pg={title:Fg("progress","blockspare"),description:Fg("Display multiple linear progressbar.","blockspare"),parent:["blockspare/linearprogressbar"],icon:"link",category:Lg,supports:{html:!1,inserter:!1,reusable:!1},attributes:Og,edit:mg,save:hg,deprecated:Mg};Dg(Cg,Pg);const jg=wp.element,Ng=jg.Component,zg=jg.Fragment,Yg=(wp.i18n.__,wp.compose.compose),Bg=(wp.components.IconButton,wp.blockEditor.InnerBlocks),Ag=wp.blocks.createBlock,Ig=wp.data,Rg=Ig.withSelect,Hg=Ig.withDispatch;var Wg=Yg([Rg((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),Hg(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}})])(class extends Ng{constructor(...e){var t,n,a;super(...e),a=e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++){const n="Create stylish Linear progressbar.";t.push(["blockspare/blockspare-skillbar",{itemNumber:e,defaultText:n}])}return t},(n="getProgressbarTemplate")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertProgressbarItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes.itemNumber+1,n=Pg.title;e=Object.assign({},{},{itemNumber:t,title1:n,active:!1,defaultText:""})}else e=Pg;a(Ag("blockspare/blockspare-skillbar",e),void 0,n)}render(){const e=this.props,t=(e.name,e.attributes),n=(e.isSelectedBlockInRoot,e.setAttributes,e.attributes.uniqueId);return wp.element.createElement(zg,null,wp.element.createElement("div",{className:"blockspare-block-progress-bar blockspare-block-"+n},wp.element.createElement(Bg,{template:this.getProgressbarTemplate(t),allowedBlocks:["blockspare/blockspare-skillbar"]})))}});const Gg=wp.element.Component,Ug=wp.blockEditor.InnerBlocks;var qg=class extends Gg{render(){const e=this.props.attributes,t=(e.animation,e.uniqueId),n=(e.itemToggle,e.interaction,"blockspare-block-progress-bar blockspare-block-interaction blockspare-block-"+t);return wp.element.createElement("div",{className:n},wp.element.createElement(Ug.Content,null))}};const Vg=If.name,$g=If.category,Jg=If.attributes,Xg=wp.i18n.__;(0,wp.blocks.registerBlockType)(Vg,{title:Xg("BS Progressbar","blockspare"),description:Xg("Display creative Linear Progressbar.","blockspare"),category:$g,icon:r.progressBar,attributes:Jg,keywords:[Xg("block","blockspare"),Xg("progress","blockspare"),Xg("bar","blockspare"),Xg("number","blockspare"),Xg("counter","blockspare")],supports:{html:!1,className:!1,align:["center","wide","full"]},edit:Wg,save:qg});n(509),n(510);var Kg=n(33),Qg=["blockspare-list-check","blockspare-list-check-square","blockspare-list-check-square-outline","blockspare-list-check-double","blockspare-list-check-circle","blockspare-list-check-circle-outline","blockspare-list-square","blockspare-list-square-outline"];const Zg=wp.i18n.__,eh=wp.element,th=eh.Component,nh=eh.Fragment;var ah=class extends th{constructor(e){super(e),this.state={isOpen:!1,filterText:"",showIcons:!1}}render(){const e=this.props,t=e.value,n=e.disableToggle,a=e.colorSettings,r=e.iconColor,o=e.onColorChange,i=this.state.filterText;var l=[];return i.length>2?Qg.forEach(e=>{e.includes(i)&&l.push(e)}):l=Qg,wp.element.createElement("div",{className:"blockspare-field blockspare-field-icon-list "+(n?"":"blockspare-toggle-enabled")},this.props.label&&wp.element.createElement(nh,null,n?wp.element.createElement("label",null,this.props.label):wp.element.createElement(Toggle,{label:this.props.label,className:"blockspare-icon-list-toggle",value:!!this.props.value,onChange:()=>this.props.onChange(this.props.value?"":" ")})),a&&wp.element.createElement(Color,{label:Zg(" Color"),value:r||"#ccc",onChange:e=>o(e)}),(n||""!=this.props.value)&&wp.element.createElement("div",{className:"blockspare-icon-list-wrapper"},wp.element.createElement("input",{type:"text",value:this.state.filterText,placeholder:"Search...",onChange:e=>this.setState({filterText:e.target.value}),autoComplete:"off"}),wp.element.createElement("div",{className:"blockspare-icon-list-icons"},l.map(e=>wp.element.createElement("span",{className:t==e?"blockspare-active":"",onClick:t=>{this.props.onChange(e)}},wp.element.createElement("span",{className:e}))))))}};const rh=wp.i18n.__,oh=wp.element.Fragment,ih=wp.blockEditor,lh=(ih.InspectorControls,ih.PanelColorSettings),sh=wp.components,ch=(sh.PanelBody,sh.SelectControl);sh.RangeControl;function uh(e){const t=e.enableColor,n=void 0===t||t,a=e.enableOtherControl,r=void 0===a||a,o=e.name,i=e.onChangeName,l=void 0===i?()=>{}:i,s=e.listType,c=e.onChangeListStyle,u=void 0===c?()=>{}:c,p=e.orderListStyle,d=e.onChangeOrderListStyle,m=void 0===d?()=>{}:d,b=e.color,f=e.onchangeColor,g=void 0===f?()=>{}:f,h=(e.backgroundColor,e.onChangeBackgroundColor,e.descriptionIconColor,e.onchangeDescriptionIconColor,[{value:"ul",label:rh("List With icon","blockspare")},{value:"ol",label:rh("Ordered List","blockspare")},{value:"none",label:rh("None","blockspare")}]),y=[{value:"blockspare-style1",label:rh("Style1","blockspare")},{value:"blockspare-style2",label:rh("Style2","blockspare")},{value:"blockspare-style3",label:rh("Style3","blockspare")}];return wp.element.createElement(oh,null,1==r&&wp.element.createElement("div",null,wp.element.createElement(ch,{label:rh("List Style","blockspare"),value:s,options:h.map(({value:e,label:t})=>({value:e,label:t})),onChange:u}),"ul"==s&&wp.element.createElement(ah,{value:o,onChange:l}),"ol"==s&&wp.element.createElement(ch,{label:rh("Ordered Style","blockspare"),value:p,options:y.map(({value:e,label:t})=>({value:e,label:t})),onChange:m})),1==n&&wp.element.createElement(lh,{title:rh("Color","blockspare"),initialOpen:!1,colorSettings:[{value:b,onChange:g,label:rh("Text Color","blockspare")}]}))}const ph=wp.i18n.__,dh=wp.element,mh=dh.Component,bh=(dh.Fragment,wp.blockEditor),fh=bh.InspectorControls,gh=(bh.PanelColorSettings,wp.components),hh=gh.PanelBody;gh.ToggleControl,gh.RangeControl;class yh extends mh{render(){const e=this.props,t=e.attributes,n=t.name,a=t.listType,r=t.orderListStyle,o=t.color,i=(t.listBackGroundColor,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.borderRadius,t.marginTop),l=t.marginBottom,s=t.descriptionFontSize,c=t.descriptionFontFamily,u=t.descriptionFontWeight,p=t.descriptionFontSubset,d=t.descriptionFontSizeType,m=t.descriptionFontSizeMobile,b=t.descriptionFontSizeTablet,f=t.descriptionLoadGoogleFonts,g=e.attributes,h=e.setAttributes;return wp.element.createElement(fh,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"icon-list"}),wp.element.createElement(hh,{title:ph("Typography Settings","blockspare")},wp.element.createElement(br,{label:ph("Description Fonts Settings"),attributes:g,setAttributes:h,loadGoogleFonts:{value:f,label:ph("descriptionLoadGoogleFonts")},fontFamily:{value:c,label:ph("descriptionFontFamily")},fontWeight:{value:u,label:ph("descriptionFontWeight")},fontSubset:{value:p,label:ph("descriptionFontSubset")},fontSizeType:{value:d,label:ph("descriptionFontSizeType")},fontSize:{value:s,label:ph("descriptionFontSize")},fontSizeMobile:{value:m,label:ph("descriptionFontSizeMobile")},fontSizeTablet:{value:b,label:ph("descriptionFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(hh,{title:ph("Icon Settings"),initialOpen:!1},wp.element.createElement(uh,{name:n,onChangeName:e=>h({name:e}),listType:a,onChangeListStyle:e=>h({listType:e}),orderListStyle:r,onChangeOrderListStyle:e=>h({orderListStyle:e}),color:o,onchangeColor:e=>h({color:e})})),wp.element.createElement(hh,{title:ph("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:i,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>h({marginTop:e}),marginEnableBottom:!0,marginBottom:l,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>h({marginBottom:e})}))))}}function wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wh(Object(n),!0).forEach((function(t){kh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _h=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.listBackGroundColor,r=t.borderRadius,o=t.color,i=t.descriptionFontSize,l=t.descriptionFontFamily,s=t.descriptionFontWeight,c=(t.descriptionFontSubset,t.descriptionFontSizeType),u=t.descriptionFontSizeMobile,p=t.descriptionFontSizeTablet,d=t.marginTop,m=t.marginBottom,b=[],f=i-2;return b.push({".blockspare-list-wrap":vh(vh({backgroundColor:a,borderRadius:r+"px",paddingTop:a?"20px":"",paddingBottom:a?"20px":"",paddingLeft:a?"20px":"",paddingRight:a?"20px":""},Qi(e.attributes)),{},{marginTop:d?d+"px":void 0,marginBottom:m?m+"px":void 0}),".listDescription li":{color:o||"#000",textAlign:n,fontSize:i+c,fontFamily:l+"!important",fontWeight:s+"!important"},".listDescription li:before":{fontSize:f+c},tablet:{".listDescription li":{fontSize:p+c},".listDescription li:before":{fontSize:f+c}},mobile:{".listDescription li":{fontSize:u+c},".listDescription li:before":{fontSize:f+c}}}),qr.a.all(b)};function Sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Th(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Eh=wp.element,xh=Eh.Component,Mh=Eh.Fragment,Ch=(wp.i18n.__,wp.compose.compose),Oh=wp.blockEditor.RichText,Lh=wp.blockEditor,Fh=Lh.AlignmentToolbar,Dh=Lh.BlockControls;var Ph=Ch(Gr,Rr(_h))(class extends xh{render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.listData,r=t.name,o=t.listType,l=t.orderListStyle,s=t.descriptionLoadGoogleFonts,c=t.descriptionFontFamily,u=t.descriptionFontWeight,p=e.className,d=(e.attributes,e.setAttributes);let m,b="";if(b="ul"==o?r:"ol"==o?l:"",1==s){const e={google:{families:[c+(u?":"+u:"")]}};m=wp.element.createElement(oo,{config:e})}const f=i()([p,"blockspare-block-iconlist-wrap"]);return wp.element.createElement(Mh,null,wp.element.createElement(yh,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sh(Object(n),!0).forEach((function(t){Th(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:d},this.props)),wp.element.createElement(Dh,null,wp.element.createElement(Fh,{value:n,onChange:e=>{d({sectionAlignment:e})}})),wp.element.createElement("div",{className:f},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(Oh,{tagName:"none"==o?"ul":o,multiline:"li",itemProp:"description",keepPlaceholderOnFocus:!0,value:a,onChange:e=>d({listData:e}),className:i()(b,"listDescription")}))),m)}});const jh=wp.element.Component,Nh=wp.compose.compose,zh=wp.blockEditor.RichText;var Yh=Nh(Gr,Rr(_h))(class extends jh{render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.listData),a=t.name,r=t.listType,o=t.orderListStyle,l=(t.color,t.listBackGroundColor,t.borderRadius,e.className);e.attributes;let s="";s="ul"==r?a:"ol"==r?o:"";const c=i()([l,"blockspare-block-iconlist-wrap"]);return wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(zh.Content,{tagName:"none"==r?"ul":r,multiline:"li",value:n,className:i()(s,"listDescription")})))}}),Bh=n(97);function Ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ah(Object(n),!0).forEach((function(t){Rh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hh=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.listBackGroundColor,r=t.borderRadius,o=t.color,i=t.descriptionFontSize,l=t.descriptionFontFamily,s=t.descriptionFontWeight,c=(t.descriptionFontSubset,t.descriptionFontSizeType),u=t.descriptionFontSizeMobile,p=t.descriptionFontSizeTablet,d=[];return d.push({".blockspare-list-wrap":Ih({backgroundColor:a,borderRadius:r+"px",paddingTop:a?"20px":"",paddingBottom:a?"20px":"",paddingLeft:a?"20px":"",paddingRight:a?"20px":""},Qi(e.attributes)),".listDescription li":{color:o||"#000",textAlign:n,fontSize:i+c,fontFamily:l+"!important",fontWeight:s+"!important"},".listDescription li:before":{fontSize:i+c},tablet:{".listDescription li":{fontSize:p+c},".listDescription li:before":{fontSize:i+c}},mobile:{".listDescription li":{fontSize:u+c},".listDescription li:before":{fontSize:i+c}}}),qr.a.all(d)};const Wh=wp.element.Component,Gh=wp.compose.compose,Uh=wp.blockEditor.RichText;var qh=Gh(Gr,Rr(Hh))(class extends Wh{render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.listData),a=t.name,r=t.listType,o=t.orderListStyle,l=(t.color,t.listBackGroundColor,t.borderRadius,e.className);e.attributes;let s="";s="ul"==r?a:"ol"==r?o:"";const c=i()([l,"blockspare-block-iconlist-wrap"]);return wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(Uh.Content,{tagName:"none"==r?"ul":r,multiline:"li",value:n,className:i()(s,"listDescription")})))}});function Vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(n),!0).forEach((function(t){Jh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xh=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.listBackGroundColor,r=t.borderRadius,o=t.color,i=t.descriptionFontSize,l=t.descriptionFontFamily,s=t.descriptionFontWeight,c=(t.descriptionFontSubset,t.descriptionFontSizeType),u=t.descriptionFontSizeMobile,p=t.descriptionFontSizeTablet,d=t.marginTop,m=t.marginBottom,b=[];let f;return f=16===i?i-2:i,b.push({".blockspare-list-wrap":$h($h({backgroundColor:a,borderRadius:r+"px",paddingTop:a?"20px":"",paddingBottom:a?"20px":"",paddingLeft:a?"20px":"",paddingRight:a?"20px":""},Qi(e.attributes)),{},{marginTop:d?d+"px":void 0,marginBottom:m?m+"px":void 0}),".listDescription li":{color:o||"#000",textAlign:n,fontSize:i+c,fontFamily:l+"!important",fontWeight:s+"!important"},".listDescription li:before":{fontSize:f+c},tablet:{".listDescription li, .listDescription li:before ":{fontSize:p+c}},mobile:{".listDescription li, .listDescription li:before":{fontSize:u+c}}}),qr.a.all(b)};const Kh=wp.element.Component,Qh=wp.compose.compose,Zh=wp.blockEditor.RichText;var ey=Qh(Gr,Rr(Xh))(class extends Kh{render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.listData),a=t.name,r=t.listType,o=t.orderListStyle,l=(t.color,t.listBackGroundColor,t.borderRadius,e.className);e.attributes;let s="";s="ul"==r?a:"ol"==r?o:"";const c=i()([l,"blockspare-block-iconlist-wrap"]);return wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(Zh.Content,{tagName:"none"==r?"ul":r,multiline:"li",value:n,className:i()(s,"listDescription")})))}});function ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(n),!0).forEach((function(t){ay(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ay(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const ry=wp.blockEditor.RichText;var oy=[{attributes:ny(ny({},Bh.attributes),ti),save:function(e){const t=e.attributes,n=t.sectionAlignment,a=t.listData,r=t.name,o=t.listType,l=t.orderListStyle,s=t.color,c=t.listBackGroundColor,u=t.borderRadius;let p="";return p="ul"==o?r:"ol"==o?l:"",wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap"),style:ny({backgroundColor:c,borderRadius:u+"px",paddingTop:c?"20px":"",paddingBottom:c?"20px":"",paddingLeft:c?"20px":"",paddingRight:c?"20px":""},Qi(e.attributes))},wp.element.createElement(ry.Content,{tagName:"none"==o?"ul":o,multiline:"li",value:a,className:p,style:{color:s||"#000",textAlign:n}}))}},{attributes:ny(ny({},Bh.attributes),ti),save:e=>wp.element.createElement(qh,e)},{attributes:ny(ny({},Kg.attributes),ti),save:e=>wp.element.createElement(ey,e)}];function iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iy(Object(n),!0).forEach((function(t){sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cy=Kg.name,uy=Kg.category,py=wp.i18n.__,dy=wp.blocks.registerBlockType,my=ly(ly({},Kg.attributes),ti);dy(cy,{title:py("BS Icon List","blockspare"),description:py("Icon List allow you to add list with various type of icons","blockspare"),category:uy,icon:r.iconlist,attributes:my,keywords:[py("block","blockspare"),py("list","blockspare"),py("icon","blockspare")],supports:{align:["wide","full","center"]},example:{attributes:{listData:"<li>Vestibulum ac diam sit amet</li> <li>Vestibulum ac diam sit amet</li> <li>Vestibulum ac diam sit amet</li>",name:"blockspare-list-check",sectionAlignment:"center"}},edit:Ph,save:Yh,deprecated:oy});n(511),n(512);var by=n(34);function fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fy(Object(n),!0).forEach((function(t){hy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yy=wp.i18n.__,wy=wp.element,vy=wy.Component,ky=wy.Fragment;wp.components.ResizableBox,wp.keycodes.BACKSPACE;var _y=class extends vy{constructor(){super(...arguments),this.onRemoveImage=this.onRemoveImage.bind(this),this.onSelectImage=this.onSelectImage.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBackward=this.onMoveBackward.bind(this),this.setImageAttributes=this.setImageAttributes.bind(this),this.onEditSelectImages=this.onEditSelectImages.bind(this),this.state={selectedImage:null}}componentDidMount(){"xlrg"===this.props.attributes.gridSize&&this.props.setAttributes({align:"wide",gridSize:"lrg"})}componentDidUpdate(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}onSelectImage(e){return()=>{this.state.selectedImage!==e&&this.setState({selectedImage:e})}}onMove(e,t){const n=[...this.props.attributes.images];n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.props.setAttributes({images:n})}onMoveForward(e){return()=>{e!==this.props.attributes.images.length-1&&this.onMove(e,e+1)}}onMoveBackward(e){return()=>{0!==e&&this.onMove(e,e-1)}}onRemoveImage(e){return()=>{const t=Jm()(this.props.attributes.images,(t,n)=>e!==n);this.setState({selectedImage:null}),this.props.setAttributes({images:t})}}setImageAttributes(e,t){const n=this.props,a=n.attributes.images,r=n.setAttributes;a[e]&&r({images:[...a.slice(0,e),gy(gy({},a[e]),t),...a.slice(e+1)]})}onEditSelectImages(e){this.props.setAttributes({images:e.map(e=>Pb(e,this.props.attributes.images))})}render(){let e;switch(this.props.attributes.align){case"wide":e=4;break;case"full":e=5;break;default:e=3}this.props.attributes;const t=this.props,n=t.isSelected,a=t.captions,r=t.images,o=t.linkTo;return wp.element.createElement(ky,null,wp.element.createElement("ul",{className:"blockspare-logo-wrap"},r.map((e,t)=>{const i=sprintf(yy("image %1$d of %2$d in gallery","blockspare"),t+1,r.length);return wp.element.createElement("li",{className:"blockspare-gallery-item",key:e.id||e.url},wp.element.createElement(xb,{url:e.url,alt:e.alt,id:e.id,imgLink:e.imgLink,linkTo:o,isFirstItem:0===t,isLastItem:t+1===r.length,isSelected:n&&this.state.selectedImage===t,onSelect:this.onSelectImage(t),onMoveBackward:this.onMoveBackward(t),onMoveForward:this.onMoveForward(t),onRemove:this.onRemoveImage(t),setAttributes:e=>this.setImageAttributes(t,e),caption:e.caption,"aria-label":i,captions:a,supportsCaption:!0}))})))}};function Sy(){return(Sy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const Ty=wp.i18n.__,Ey=wp.element,xy=Ey.Component,My=Ey.Fragment,Cy=wp.compose.compose,Oy=wp.components.withNotices,Ly=wp.blockEditor,Fy=Ly.MediaPlaceholder,Dy=Ly.BlockIcon;var Py=Cy([Oy])(class extends xy{constructor(){super(...arguments),this.onSelectImages=this.onSelectImages.bind(this)}onSelectImages(e){this.props.setAttributes({images:e.map(e=>Pb(e))})}render(){const e=this.props,t=e.className,n=e.noticeOperations,a=e.attributes,o=e.noticeUI,l=e.isSelected,s=a.images,c=a.grayscale,u=!!s.length;i()(t,{"has-filter-grayscale":c});return wp.element.createElement(My,null,wp.element.createElement($b,this.props),wp.element.createElement("div",{className:"blockspare-blocks blockspare-logos-wrapper"},wp.element.createElement(_y,Sy({},this.props,{images:s})),(!u||l)&&wp.element.createElement(Fy,{addToGallery:u,isAppender:u,icon:wp.element.createElement(Dy,{icon:r.edit}),labels:{title:Ty("Logos Grid","blockspare"),instructions:Ty("Upload an image file, pick one from your media library, or add one with a URL","blockspare")},multiple:!0,accept:"image/*",allowedTypes:["image"],value:u?s:void 0,onError:n.createErrorNotice,notices:o,onSelect:this.onSelectImages,className:i()({"is-appender":u})})))}});const jy=wp.element.Component,Ny=wp.blockEditor.RichText;function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Yy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var By=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){Yy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},by.attributes),save:function(e){const t=e.attributes,n=t.captions,a=t.images,r=t.linkTo,o=t.rel,i=t.target;return wp.element.createElement("div",{className:"blockspare-blocks blockspare-logos-wrapper"},wp.element.createElement("ul",{className:"blockspare-logo-wrap"},a.map(e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}e.imgLink&&(t=e.imgLink);const a=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-imglink":e.imgLink,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return wp.element.createElement("li",{key:e.id||e.url,className:"blockspare-gallery-item"},wp.element.createElement("figure",{className:"blockspare-gallery-figure"},t?wp.element.createElement("a",{href:t,target:i,rel:o},a):a,n&&e.caption&&e.caption.length>0&&wp.element.createElement(RichText.Content,{tagName:"figcaption",className:"blockspare-gallery-caption",value:e.caption})))})))}}];const Ay=blockspare_globals,Iy=wp.i18n.__,Ry=wp.blocks.registerBlockType,Hy=by.name,Wy=by.category,Gy=by.attributes;Ry(Hy,{title:Iy("BS Logo Grid","blockspare"),description:Iy("Add logos, badges, or certifications to build credibility.","blockspare"),category:Wy,icon:r.logobadge,attributes:Gy,keywords:[Iy("block","blockspare"),Iy("logo","blockspare"),Iy("brand","blockspare"),Iy("clients","blockspare"),Iy("grid","blockspare")],supports:{align:["wide","full","center"]},example:{attributes:{align:"full",images:[{url:Ay.img,width:420},{url:Ay.img,width:420},{url:Ay.img,width:420},{url:Ay.img,width:420}]}},edit:Py,save:class extends jy{render(){const e=this.props.attributes,t=e.captions,n=e.images,a=e.linkTo,r=e.rel,o=e.target;return wp.element.createElement("div",{className:"blockspare-blocks blockspare-logos-wrapper"},wp.element.createElement("ul",{className:"blockspare-logo-wrap"},n.map(e=>{let n;switch(a){case"media":n=e.url;break;case"attachment":n=e.link}e.imgLink&&(n=e.imgLink);const i=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-imglink":e.imgLink,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return wp.element.createElement("li",{key:e.id||e.url,className:"blockspare-gallery-item"},wp.element.createElement("figure",{className:"blockspare-gallery-figure"},n?wp.element.createElement("a",{href:n,target:o,rel:r},i):i,t&&e.caption&&e.caption.length>0&&wp.element.createElement(Ny.Content,{tagName:"figcaption",className:"blockspare-gallery-caption",value:e.caption})))})))}},deprecated:By});n(513);var Uy=n(62),qy=n.n(Uy),Vy=n(63),$y=n.n(Vy),Jy=n(2),Xy=n.n(Jy);function Ky(){return(Ky=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const Qy=wp.hooks,Zy=(Qy.addFilter,Qy.applyFilters),ew=wp.i18n.__,tw=wp.element,nw=tw.Component,aw=(tw.Fragment,wp.blockEditor),rw=aw.InspectorControls,ow=aw.PanelColorSettings,iw=wp.components,lw=iw.PanelBody,sw=iw.QueryControls,cw=iw.RangeControl,uw=iw.SelectControl,pw=(iw.TextControl,iw.ToggleControl),dw=wp.url.addQueryArgs,mw=wp.apiFetch;class bw extends nw{constructor(){super(...arguments),this.state={categoriesList:[]}}componentDidMount(){this.stillMounted=!0,this.fetchRequest=mw({path:dw("/wp/v2/categories",{per_page:-1})}).then(e=>{this.stillMounted&&this.setState({categoriesList:e})}).catch(()=>{this.stillMounted&&this.setState({categoriesList:[]})})}componentWillUnmount(){this.stillMounted=!1}imageSizeSelect(){const e=wp.data.select("core/editor").getEditorSettings();return Km()(Ae()(e.imageSizes,({name:e,slug:t})=>({value:t,label:e})))}render(){const e=this.props,t=e.attributes,n=t.columns,a=t.postType,r=t.backGroundColor,o=t.design,i=void 0===o?"blockspare-grid-layout-1":o,l=(t.displayPostTitle,t.displayPostCategory),s=t.displayPostAuthor,c=t.displayPostDate,u=t.displayPostExcerpt,p=t.displayPostLink,d=(t.excerptLength,t.readMoreText,t.postsToShow,t.enableBackgroundColor,t.marginTop),m=t.marginBottom,b=(t.imageSize,t.order),f=t.orderBy,g=t.categories,h=(t.offset,t.contentOrder,t.equalImageHeight,t.postTitleColor),y=t.postTitleFontSize,w=t.linkColor,v=t.generalColor,k=(t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.borderRadius,t.titleLoadGoogleFonts),_=t.titleFontFamily,T=t.titleFontWeight,E=t.titleFontSubset,x=t.titleFontSizeType,M=t.titleFontSizeMobile,C=t.titleFontSizeTablet,O=e.attributes,L=e.setAttributes,F=e.latestPosts,D=(ew("Default","blockspare"),ew("Meta → Title → Category → Content","blockspare"),ew("Title → Meta → Category → Content","blockspare"),ew("Title → Category → Meta → Content","blockspare"),JSON.parse(blockspare_globals.taxonomies)),P={value:"",label:ew("All","blockspare")};D.unshift(P);const j=Array.isArray(F)&&F.length,N="post"===a;this.imageSizeSelect();return wp.element.createElement(rw,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"posts-grid"}),wp.element.createElement(Oi,{initialOpen:!1,selected:i,options:Zy("blockspare.cta.edit.layouts",[{label:ew("Style 1","blockspare"),value:"blockspare-grid-layout-1",image:"images/blockspare-grid-layout-1.png"},{label:ew("Style 2","blockspare"),value:"blockspare-grid-layout-2",image:"images/blockspare-grid-layout-2.png"},{label:ew("Style 3","blockspare"),value:"blockspare-grid-layout-3",image:"images/blockspare-grid-layout-3.png"}]),onChange:e=>L({design:e})}),wp.element.createElement(lw,{title:ew("Block Settings","blockspare"),className:N?null:"blockspare-hide-query",initialOpen:!1},wp.element.createElement(cw,{label:ew("Columns","blockspare"),value:n,onChange:e=>L({columns:e}),min:1,max:j?Math.min(3,F.length):3}),wp.element.createElement(ow,{title:ew("Title Color","blockspare"),initialOpen:!0,colorSettings:[{value:h,onChange:e=>L({postTitleColor:e}),label:ew("Title Color","blockspare")}]}),wp.element.createElement(br,{label:ew("Title Fonts Settings"),attributes:O,setAttributes:L,loadGoogleFonts:{value:k,label:ew("titleLoadGoogleFonts")},fontFamily:{value:_,label:ew("titleFontFamily")},fontWeight:{value:T,label:ew("titleFontWeight")},fontSubset:{value:E,label:ew("titleFontSubset")},fontSizeType:{value:x,label:ew("titleFontSizeType")},fontSize:{value:y,label:ew("postTitleFontSize")},fontSizeMobile:{value:M,label:ew("titleFontSizeMobile")},fontSizeTablet:{value:C,label:ew("titleFontSizeTablet")},disableLineHeight:!0}),N&&wp.element.createElement(pw,{label:ew("Display Category","blockspare"),checked:l,onChange:()=>this.props.setAttributes({displayPostCategory:!l})}),N&&wp.element.createElement(pw,{label:ew("Display Author","blockspare"),checked:s,onChange:()=>this.props.setAttributes({displayPostAuthor:!s})}),N&&wp.element.createElement(pw,{label:ew("Display Date","blockspare"),checked:c,onChange:()=>this.props.setAttributes({displayPostDate:!c})}),wp.element.createElement(pw,{label:ew("Display Excerpt","blockspare"),checked:u,onChange:()=>this.props.setAttributes({displayPostExcerpt:!u})}),wp.element.createElement(pw,{label:ew("Display Continue Reading Link","blockspare"),checked:p,onChange:()=>this.props.setAttributes({displayPostLink:!p})}),"blockspare-grid-layout-4"!=i&&"blockspare-grid-layout-5"!=i&&"blockspare-grid-layout-6"!=i&&wp.element.createElement(ow,{title:ew("Background Color","blockspare"),initialOpen:!0,colorSettings:[{value:r,onChange:e=>L({backGroundColor:e}),label:ew("Background Color","blockspare")}]}),wp.element.createElement(ow,{title:ew(" Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:w,onChange:e=>L({linkColor:e}),label:ew("Link Color","blockspare")},{value:v,onChange:e=>L({generalColor:e}),label:ew("General Color","blockspare")}]})),wp.element.createElement(lw,{title:ew("Post Settings","blockspare"),className:N?null:"blockspare-hide-query",initialOpen:!1},wp.element.createElement(sw,Ky({order:b,orderBy:f},{onOrderChange:e=>L({order:e}),onOrderByChange:e=>L({orderBy:e})})),wp.element.createElement(uw,{label:"Category",value:g,onChange:e=>L({categories:e}),options:D})),wp.element.createElement(lw,{title:ew("Block Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:d,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>L({marginTop:e}),marginEnableBottom:!0,marginBottom:m,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>L({marginBottom:e})}))))}}var fw=e=>{let t="";return t={border:e.borderColor,backgroundColor:e.backGroundColor?e.backGroundColor:void 0,boxShadow:e.enableBoxShadow?e.xOffset+"px "+e.yOffset+"px "+e.blur+"px "+e.spread+"px "+e.shadowColor:"",borderRadius:e.borderRadius?e.borderRadius:null},t};function gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function hw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gw(Object(n),!0).forEach((function(t){yw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ww=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=t.linkColor,o=t.postTitleColor,i=t.generalColor,l=t.design,s=t.postTitleFontSize,c=t.titleFontFamily,u=t.titleFontWeight,p=(t.titleFontSubset,t.titleFontSizeType),d=t.titleFontSizeMobile,m=t.titleFontSizeTablet,b=[];return b.push({".blockspare-post-wrap":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0},".blockspare-post-category":{color:r||"#1977ac"},".blockspare-block-post-grid-author a span":{color:r||"#1977ac"},".blockspare-text-link a":{color:r||"#1977ac"},".blockspare-block-post-grid-title a span":{color:o?o+"!important":"#404040",fontSize:s+p,fontFamily:c,fontWeight:u},".blockspare-block-post-grid-date, .blockspare-block-post-grid-excerpt":{color:i||"#000"},tablet:{".blockspare-block-post-grid-title a span":{fontSize:m+p}},mobile:{".blockspare-block-post-grid-title a span":{fontSize:d+p}}}),"blockspare-list-layout-6"!=l&&"blockspare-list-layout-5"!=l&&"blockspare-list-layout-4"!=l&&b.push({".blockspare-post-single":hw({},fw(e.attributes))}),qr.a.all(b)};function vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vw(Object(n),!0).forEach((function(t){_w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sw=wp.element,Tw=Sw.Component,Ew=Sw.Fragment,xw=wp.i18n.__,Mw=wp.compose.compose,Cw=wp.htmlEntities.decodeEntities,Ow=wp.data.withSelect,Lw=wp.components,Fw=Lw.Placeholder,Dw=Lw.Spinner;var Pw=Mw([Ow((e,t)=>{const n=t.attributes,a=n.order,r=n.categories,o=e("core").getEntityRecords,i=$y()({categories:r,order:a,orderby:t.attributes.orderBy,per_page:t.attributes.postsToShow,offset:t.attributes.offset},e=>!qy()(e));return{latestPosts:o("postType",t.attributes.postType,i)}}),Gr,Rr(ww)])(class extends Tw{render(){const e=this.props,t=e.attributes,n=(t.align,t.columns),a=t.postType,r=t.backGroundColor,o=t.design,l=t.displayPostTitle,s=t.displayPostCategory,c=t.displayPostAuthor,u=t.displayPostDate,p=t.displayPostExcerpt,d=t.displayPostLink,m=t.excerptLength,b=t.readMoreText,f=t.postsToShow,g=t.enableBackgroundColor,h=(t.marginTop,t.marginBottom,t.imageSize),y=void 0===h?"medium":h,w=t.contentOrder,v=(t.borderColor,t.sectionTag),k=t.equalImageHeight,_=(t.postTitleColor,t.postTitleFontSize,t.linkColor,t.generalColor,t.borderRadius,t.titleLoadGoogleFonts),S=t.titleFontFamily,T=t.titleFontWeight,E=e.className,x=(e.attributes,e.setAttributes),M=e.latestPosts;let C;if(1==_){const e={google:{families:[S+(T?":"+T:"")]}};C=wp.element.createElement(oo,{config:e})}const O=Array.isArray(M)&&M.length,L="post"===a;if(!O)return wp.element.createElement(Ew,null,wp.element.createElement(bw,kw({setAttributes:x},this.props)),wp.element.createElement(Fw,{icon:"admin-post",label:xw("BS Blocks Posts Grid","blockspare")},Array.isArray(M)?xw("No posts found.","blockspare"):wp.element.createElement(Dw,null)));const F=M.length>f?M.slice(0,f):M,D=v||"section",P=i()([E,"blockspare-latestpost-grid"]);return wp.element.createElement(Ew,null,wp.element.createElement(bw,kw({setAttributes:x},this.props)),wp.element.createElement("div",{className:P},this.props.styles,wp.element.createElement(D,{className:i()(E,"blockspare-post-wrap")},wp.element.createElement("div",{className:i()("blockspare-latest-post-wrap",o,"blockspare-is-grid","column-"+n)},F.map((e,t)=>{const n=(e.featured_image_urls&&e.featured_image_urls[y||"large"]||[])[0];return wp.element.createElement("div",{className:i()("blockspare-post-single",n?"":"post-has-no-image",k?"has-img-equal-height":"","blockspare-grid-layout-4"!=o&&"blockspare-grid-layout-5"!=o&&"blockspare-grid-layout-6"!=o?"has-background":"")},n&&wp.element.createElement("figure",{className:"blockspare-post-img"},wp.element.createElement("a",null,wp.element.createElement("img",{src:n,alt:xw("featured","blockspare")}))),wp.element.createElement("div",{className:i()("blockspare-post-content",w)},wp.element.createElement("div",{className:"blockspare-bg-overlay",style:{backgroundColor:g?r:""}}),wp.element.createElement("div",{className:"blockspare-block-post-grid-header"},s&&wp.element.createElement("div",{className:"blockspare-post-category",dangerouslySetInnerHTML:{__html:e.category_info.replace(/href=['"].*?['"]/g,"")}}),l&&wp.element.createElement("h4",{className:"blockspare-block-post-grid-title"},wp.element.createElement("a",{target:"_blank",className:"blockspare-title-link",rel:"bookmark"},wp.element.createElement("span",null,Cw(e.title.rendered.trim())||xw("(Untitled)","blockspare")))),L&&(c||u)&&wp.element.createElement("div",{className:"blockspare-block-post-grid-byline"},c&&e.author_info.display_name&&wp.element.createElement("div",{className:"blockspare-block-post-grid-author"},wp.element.createElement("a",{className:"blockspare-text-link",target:"_blank",href:e.author_info.author_link},wp.element.createElement("span",null,e.author_info.display_name))),u&&e.date_gmt&&wp.element.createElement("time",{dateTime:Xy()(e.date_gmt).utc().format(),className:"blockspare-block-post-grid-date"},Xy()(e.date_gmt).local().format("MMMM DD, Y","blockspare")))),(p||d)&&wp.element.createElement("div",{className:"blockspare-block-post-grid-excerpt"},p&&e.excerpt&&wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:(a=e.excerpt.rendered,f=m,a.split(" ").splice(0,f).join(" "))}}),d&&wp.element.createElement("p",null,wp.element.createElement("a",{className:"blockspare-block-post-grid-more-link blockspare-text-link",href:e.link,target:"_blank",rel:"bookmark"},wp.element.createElement("span",null,b))))));var a,f})))),C)}});const jw=wp.i18n.__;(0,wp.blocks.registerBlockType)("blockspare/blockspare-latest-posts-grid",{title:jw("BS Posts Grid","blockspare"),description:jw("Add posts grid from selected categories.","blockspare"),category:"blockspare",icon:r.postgrid,keywords:[jw("block","blockspare"),jw("post","blockspare"),jw("blog","blockspare"),jw("archive","blockspare"),jw("article","blockspare"),jw("list","blockspare"),jw("grid","blockspare"),jw("latest","blockspare"),jw("category","blockspare")],supports:{align:["wide","full","center"]},example:{attributes:{design:"blockspare-grid-layout-1",postsToShow:2,displayPostCategory:!1,displayPostAuthor:!1,displayPostDate:!1,imageSize:"medium",postTitleFontSize:16}},edit:Pw,save:()=>null});n(514);function Nw(){return(Nw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const zw=wp.element.Component,Yw=wp.i18n.__,Bw=wp.hooks,Aw=(Bw.addFilter,Bw.applyFilters),Iw=wp.blockEditor,Rw=Iw.InspectorControls,Hw=Iw.PanelColorSettings,Ww=wp.components,Gw=Ww.PanelBody,Uw=Ww.QueryControls,qw=(Ww.RangeControl,Ww.SelectControl),Vw=(Ww.TextControl,Ww.ToggleControl),$w=wp.url.addQueryArgs,Jw=wp.apiFetch;class Xw extends zw{constructor(){super(...arguments),this.state={categoriesList:[]}}componentDidMount(){this.stillMounted=!0,this.fetchRequest=Jw({path:$w("/wp/v2/categories",{per_page:-1})}).then(e=>{this.stillMounted&&this.setState({categoriesList:e})}).catch(()=>{this.stillMounted&&this.setState({categoriesList:[]})})}componentWillUnmount(){this.stillMounted=!1}imageSizeSelect(){const e=wp.data.select("core/editor").getEditorSettings();return Km()(Ae()(e.imageSizes,({name:e,slug:t})=>({value:t,label:e})))}render(){const e=this.props,t=e.attributes,n=t.postType,a=t.displayPostTitle,r=t.displayPostCategory,o=t.displayPostAuthor,i=t.displayPostDate,l=t.displayPostExcerpt,s=t.displayPostLink,c=(t.excerptLength,t.readMoreText,t.design),u=void 0===c?"blockspare-list-layout-1":c,p=(t.postsToShow,t.backGroundColor),d=(t.enableBackgroundColor,t.marginTop),m=t.marginBottom,b=(t.imageSize,t.order),f=t.orderBy,g=t.categories,h=(t.offset,t.contentOrder,t.postTitleColor),y=t.postTitleFontSize,w=t.linkColor,v=t.generalColor,k=(t.borderRadius,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.titleLoadGoogleFonts),_=t.titleFontFamily,T=t.titleFontWeight,E=t.titleFontSubset,x=t.titleFontSizeType,M=t.titleFontSizeMobile,C=t.titleFontSizeTablet,O=e.attributes,L=e.setAttributes,F=(e.latestPosts,JSON.parse(blockspare_globals.taxonomies)),D={value:"",label:Yw("All","blockspare")};F.unshift(D);this.imageSizeSelect();const P="post"===n;Yw("Default","blockspare"),Yw("Meta → Title → Category → Content","blockspare"),Yw("Title → Meta → Category → Content","blockspare"),Yw("Title → Category → Meta → Content","blockspare");return wp.element.createElement(Rw,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"posts-list"}),wp.element.createElement(Oi,{initialOpen:!1,selected:u,options:Aw("blockspare.cta.edit.layouts",[{label:Yw("Style 1","blockspare"),value:"blockspare-list-layout-1",image:"images/blockspare-list-layout-1.png"},{label:Yw("Style 2","blockspare"),value:"blockspare-list-layout-2",image:"images/blockspare-list-layout-2.png"},{label:Yw("Style 3","blockspare"),value:"blockspare-list-layout-3",image:"images/blockspare-list-layout-3.png"}]),onChange:e=>L({design:e})}),wp.element.createElement(Gw,{title:Yw("Block Settings","blockspare"),className:P?null:"blockspare-hide-query",initialOpen:!1},a&&wp.element.createElement(Hw,{title:Yw("Title Color","blockspare"),initialOpen:!0,colorSettings:[{value:h,onChange:e=>L({postTitleColor:e}),label:Yw("Title Color","blockspare")}]}),a&&wp.element.createElement(br,{label:Yw("Title Fonts Settings"),attributes:O,setAttributes:L,loadGoogleFonts:{value:k,label:Yw("titleLoadGoogleFonts")},fontFamily:{value:_,label:Yw("titleFontFamily")},fontWeight:{value:T,label:Yw("titleFontWeight")},fontSubset:{value:E,label:Yw("titleFontSubset")},fontSizeType:{value:x,label:Yw("titleFontSizeType")},fontSize:{value:y,label:Yw("postTitleFontSize")},fontSizeMobile:{value:M,label:Yw("titleFontSizeMobile")},fontSizeTablet:{value:C,label:Yw("titleFontSizeTablet")},disableLineHeight:!0}),P&&wp.element.createElement(Vw,{label:Yw("Display Category","blockspare"),checked:r,onChange:()=>this.props.setAttributes({displayPostCategory:!r})}),P&&wp.element.createElement(Vw,{label:Yw("Display Author","blockspare"),checked:o,onChange:()=>this.props.setAttributes({displayPostAuthor:!o})}),P&&wp.element.createElement(Vw,{label:Yw("Display Date","blockspare"),checked:i,onChange:()=>this.props.setAttributes({displayPostDate:!i})}),wp.element.createElement(Vw,{label:Yw("Display Excerpt","blockspare"),checked:l,onChange:()=>this.props.setAttributes({displayPostExcerpt:!l})}),wp.element.createElement(Vw,{label:Yw("Display Continue Reading Link","blockspare"),checked:s,onChange:()=>this.props.setAttributes({displayPostLink:!s})}),"blockspare-list-layout-6"!=u&&"blockspare-list-layout-5"!=u&&"blockspare-list-layout-4"!=u&&wp.element.createElement(Hw,{title:Yw("Background Color","blockspare"),initialOpen:!0,colorSettings:[{value:p,onChange:e=>L({backGroundColor:e}),label:Yw("Background Color","blockspare")}]}),wp.element.createElement(Hw,{title:Yw("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:w,onChange:e=>L({linkColor:e}),label:Yw("Link Color","blockspare")},{value:v,onChange:e=>L({generalColor:e}),label:Yw("General Color","blockspare")}]})),wp.element.createElement(Gw,{title:Yw("Post Settings","blockspare"),className:P?null:"blockspare-hide-query",initialOpen:!1},wp.element.createElement(Uw,Nw({order:b,orderBy:f},{onOrderChange:e=>L({order:e}),onOrderByChange:e=>L({orderBy:e})})),wp.element.createElement(qw,{label:"Category",value:g,onChange:e=>L({categories:e}),options:F})),wp.element.createElement(Gw,{title:Yw("Block Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:d,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>L({marginTop:e}),marginEnableBottom:!0,marginBottom:m,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>L({marginBottom:e})}))))}}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kw(Object(n),!0).forEach((function(t){Zw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ev=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=t.linkColor,o=t.postTitleColor,i=t.generalColor,l=t.design,s=t.postTitleFontSize,c=t.titleFontFamily,u=t.titleFontWeight,p=(t.titleFontSubset,t.titleFontSizeType),d=t.titleFontSizeMobile,m=t.titleFontSizeTablet,b=[];return b.push({".blockspare-post-wrap":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0},".blockspare-post-category":{color:r||"#1977ac"},".blockspare-block-post-grid-author a span":{color:r||"#1977ac"},".blockspare-text-link a":{color:r||"#1977ac"},".blockspare-block-post-grid-title a span":{color:o?o+"!important":"#404040",fontSize:s+p,fontFamily:c,fontWeight:u},".blockspare-block-post-grid-date, .blockspare-block-post-grid-excerpt":{color:i||"#000"},tablet:{".blockspare-block-post-grid-title a span":{fontSize:m+p}},mobile:{".blockspare-block-post-grid-title a span":{fontSize:d+p}}}),"blockspare-list-layout-6"!=l&&"blockspare-list-layout-5"!=l&&"blockspare-list-layout-4"!=l&&b.push({".blockspare-post-single":Qw({},fw(e.attributes))}),qr.a.all(b)};function tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach((function(t){av(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function av(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rv=wp.element,ov=rv.Component,iv=rv.Fragment,lv=wp.i18n.__,sv=wp.compose.compose,cv=wp.htmlEntities.decodeEntities,uv=wp.data.withSelect,pv=wp.components,dv=pv.Placeholder,mv=pv.Spinner;var bv=sv([uv((e,t)=>{const n=t.attributes,a=n.order,r=n.categories,o=e("core").getEntityRecords,i=$y()({categories:r,order:a,orderby:t.attributes.orderBy,per_page:t.attributes.postsToShow,offset:t.attributes.offset},e=>!qy()(e));return{latestPosts:o("postType",t.attributes.postType,i)}}),Gr,Rr(ev)])(class extends ov{render(){const e=this.props,t=e.attributes,n=t.postType,a=(t.align,t.displayPostTitle),r=t.displayPostCategory,o=t.displayPostAuthor,l=t.displayPostDate,s=t.displayPostExcerpt,c=t.displayPostLink,u=t.excerptLength,p=t.readMoreText,d=t.design,m=t.postsToShow,b=t.sectionTag,f=(t.marginTop,t.marginBottom,t.imageSize),g=void 0===f?"medium":f,h=t.contentOrder,y=(t.postTitleColor,t.postTitleFontSize,t.linkColor,t.generalColor,t.titleLoadGoogleFonts),w=t.titleFontFamily,v=t.titleFontWeight,k=e.className,_=e.attributes,S=e.setAttributes,T=e.latestPosts;let E;if(1==y){const e={google:{families:[w+(v?":"+v:"")]}};E=wp.element.createElement(oo,{config:e})}const x=Array.isArray(T)&&T.length,M="post"===n;if(!x)return wp.element.createElement(iv,null,wp.element.createElement(Xw,nv({setAttributes:S},this.props)),wp.element.createElement(dv,{icon:"admin-post",label:lv("BS Blocks Posts List","blockspare")},Array.isArray(T)?lv("No posts found.","blockspare"):wp.element.createElement(mv,null)));const C=T.length>m?T.slice(0,m):T,O=b||"section";let L={};"blockspare-list-layout-6"!=d&&"blockspare-list-layout-5"!=d&&"blockspare-list-layout-4"!=d&&(L=nv({},fw(_)));const F=i()([k,"blockspare-latestpost-list"]);return wp.element.createElement(iv,null,wp.element.createElement(Xw,nv({setAttributes:S},this.props)),wp.element.createElement("div",{className:F},this.props.styles,wp.element.createElement(O,{className:i()(this.props.className,"blockspare-post-wrap")},wp.element.createElement("div",{className:i()("blockspare-latest-post-wrap",d,"blockspare-is-list")},C.map((e,t)=>{const n=(e.featured_image_urls&&e.featured_image_urls[g||"large"]||[])[0];return wp.element.createElement("div",{className:i()("blockspare-post-single",n?"":"post-has-no-image","blockspare-list-layout-6"!=d&&"blockspare-list-layout-5"!=d&&"blockspare-list-layout-4"!=d?"has-background":"")},n&&wp.element.createElement("figure",{className:"blockspare-post-img"},wp.element.createElement("a",null,wp.element.createElement("img",{src:n,alt:lv("featured","blockspare")}))),wp.element.createElement("div",{className:i()("blockspare-post-content",h)},wp.element.createElement("div",{className:"blockspare-block-post-grid-header"},r&&wp.element.createElement("div",{className:"blockspare-post-category",dangerouslySetInnerHTML:{__html:e.category_info.replace(/href=['"].*?['"]/g,"")}}),a&&wp.element.createElement("h4",{className:"blockspare-block-post-grid-title"},wp.element.createElement("a",{target:"_blank",rel:"bookmark",className:"blockspare-title-link"},wp.element.createElement("span",null,cv(e.title.rendered.trim())||lv("(Untitled)","blockspare")))),M&&(o||l)&&wp.element.createElement("div",{className:"blockspare-block-post-grid-byline"},o&&e.author_info.display_name&&wp.element.createElement("div",{className:"blockspare-block-post-grid-author"},wp.element.createElement("a",{className:"blockspare-text-link",target:"_blank",href:e.author_info.author_link},wp.element.createElement("span",null,e.author_info.display_name))),l&&e.date_gmt&&wp.element.createElement("time",{dateTime:Xy()(e.date_gmt).utc().format(),className:"blockspare-block-post-grid-date"},Xy()(e.date_gmt).local().format("MMMM DD, Y","blockspare")))),(s||c)&&wp.element.createElement("div",{className:"blockspare-block-post-grid-excerpt"},s&&e.excerpt&&wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:(m=e.excerpt.rendered,b=u,m.split(" ").splice(0,b).join(" "))}}),c&&wp.element.createElement("p",null,wp.element.createElement("a",{className:"blockspare-block-post-grid-more-link blockspare-text-link",href:e.link,target:"_blank",rel:"bookmark"},wp.element.createElement("span",null,p))))));var m,b})))),E)}});const fv=wp.i18n.__;(0,wp.blocks.registerBlockType)("blockspare/blockspare-latest-posts-list",{title:fv("BS Posts List","blockspare"),description:fv("Add posts list from selected categories.","blockspare"),category:"blockspare",icon:r.postlist,keywords:[fv("block","blockspare"),fv("post","blockspare"),fv("list","blockspare"),fv("blog","blockspare"),fv("archive","blockspare"),fv("article","blockspare"),fv("latest","blockspare"),fv("category","blockspare")],supports:{align:["wide","full","center"]},example:{attributes:{design:"blockspare-list-layout-1",postsToShow:3,displayPostCategory:!1,displayPostAuthor:!1,displayPostDate:!1,imageSize:"medium",postTitleFontSize:16}},edit:bv,save:()=>null});n(515),n(516);var gv=n(35),hv=n(284),yv=n.n(hv);const wv=wp.i18n.__;wv("Dark","blockspare"),wv("Light","blockspare"),wv("None","blockspare");wp.i18n.__;const vv=wp.element,kv=(vv.Component,vv.Fragment,wp.components);kv.SelectControl,kv.ToggleControl,kv.PanelBody,kv.TextControl;const _v=wp.i18n.__,Sv=wp.element.Component,Tv=wp.blockEditor.InspectorControls,Ev=wp.components,xv=Ev.PanelBody,Mv=Ev.RangeControl;Ev.ToggleControl,Ev.SelectControl;var Cv=class extends Sv{constructor(){super(...arguments),this.setCaptionStyleTo=this.setCaptionStyleTo.bind(this)}componentDidUpdate(){this.props.attributes.gutter<=0&&this.props.setAttributes({radius:0})}setCaptionStyleTo(e){this.props.setAttributes({captionStyle:e})}getCaptionsHelp(e){return _v(e?"Showing captions for each media item.":"Toggle to show media captions.","blockspare")}render(){const e=this.props,t=e.attributes,n=(e.setAttributes,t.captions,t.captionStyle,t.gutter);t.gridSize,_v("Small","blockspare"),_v("Medium","blockspare"),_v("Large","blockspare");return wp.element.createElement(Tv,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"image-masonry"}),wp.element.createElement(xv,{title:_v("Masonry Settings","blockspare")},wp.element.createElement(Mv,{label:_v("Gutter","blockspare"),value:n,onChange:e=>this.props.setAttributes({gutter:e}),min:0,max:50,step:5}))))}};function Ov(){return(Ov=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lv(Object(n),!0).forEach((function(t){Dv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pv=wp.element,jv=Pv.Component,Nv=Pv.Fragment,zv=wp.i18n.__,Yv=wp.compose.compose,Bv=wp.data.withSelect,Av=wp.components,Iv=Av.withNotices,Rv=Av.Toolbar,Hv=Av.IconButton,Wv=wp.blockEditor,Gv=Wv.BlockControls,Uv=Wv.MediaUpload,qv=Wv.MediaUploadCheck,Vv={transitionDuration:0,percentPosition:!0};var $v=Yv([Bv(e=>({editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),wideControlsEnabled:e("core/editor").getEditorSettings().alignWide})),Iv])(class extends jv{constructor(){super(...arguments),this.onRemoveImage=this.onRemoveImage.bind(this),this.onSelectImage=this.onSelectImage.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBackward=this.onMoveBackward.bind(this),this.setImageAttributes=this.setImageAttributes.bind(this),this.onEditSelectImages=this.onEditSelectImages.bind(this),this.state={selectedImage:null}}componentDidMount(){"xlrg"===this.props.attributes.gridSize&&this.props.setAttributes({align:"center",gridSize:"lrg"})}componentDidUpdate(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}onSelectImage(e){return()=>{this.state.selectedImage!==e&&this.setState({selectedImage:e})}}onMove(e,t){const n=[...this.props.attributes.images];n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.props.setAttributes({images:n})}onMoveForward(e){return()=>{e!==this.props.attributes.images.length-1&&this.onMove(e,e+1)}}onMoveBackward(e){return()=>{0!==e&&this.onMove(e,e-1)}}onRemoveImage(e){return()=>{const t=Jm()(this.props.attributes.images,(t,n)=>e!==n);this.setState({selectedImage:null}),this.props.setAttributes({images:t})}}setImageAttributes(e,t){const n=this.props,a=n.attributes.images,r=n.setAttributes;a[e]&&r({images:[...a.slice(0,e),Fv(Fv({},a[e]),t),...a.slice(e+1)]})}onEditSelectImages(e){this.props.setAttributes({images:e.map(e=>Pb(e,this.props.attributes.images))})}render(){const e=this.props,t=e.attributes,n=(e.className,e.isSelected),a=(e.noticeUI,t.align,t.captions),r=t.gridSize,o=t.gutter,l=t.images,s=t.linkTo,c=t.colorFilter,u=t.showOriginalOnHover,p=!!l.length,d=wp.element.createElement($b,this.props),m=i()("has-grid-"+r,"has-gutter-"+o);return p?wp.element.createElement(Nv,null,n&&wp.element.createElement(Cv,this.props),wp.element.createElement(Gv,null,p&&wp.element.createElement(Nv,null,wp.element.createElement(Rv,null,wp.element.createElement(qv,null,wp.element.createElement(Uv,{onSelect:this.onEditSelectImages,allowedTypes:jb,multiple:!0,gallery:!0,value:l.map(e=>e.id),render:({open:e})=>wp.element.createElement(Hv,{className:"components-toolbar__control",label:zv("Edit gallery","blockspare"),icon:"edit",onClick:e})}))))),wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-masonry-wrapper",a?captionStyle:"",c,"blockspare-original"!==c&&u?"has-hover-effect":"")},d,wp.element.createElement(yv.a,{elementType:"ul",className:m,options:Vv,disableImagesLoaded:!1,updateOnEachImageLoad:!1},l.map((e,t)=>{const r=sprintf(zv("image %1$d of %2$d in gallery","blockspare"),t+1,l.length);return wp.element.createElement("li",{className:"blockspare-gallery-item",key:e.id||e.url},wp.element.createElement(xb,{url:e.url,alt:e.alt,id:e.id,imgLink:e.imgLink,linkTo:s,isFirstItem:0===t,isLastItem:t+1===l.length,isSelected:n&&this.state.selectedImage===t,onSelect:this.onSelectImage(t),onMoveBackward:this.onMoveBackward(t),onMoveForward:this.onMoveForward(t),onRemove:this.onRemoveImage(t),setAttributes:e=>this.setImageAttributes(t,e),caption:e.caption,"aria-label":r,captions:a,supportsCaption:!0}))})))):wp.element.createElement(Hb,Ov({},this.props,{label:zv("Masonry","blockspare"),icon:"lionk"}))}});const Jv=wp.blockEditor.RichText;var Xv=({attributes:e,className:t})=>{const n=e.captions,a=e.gridSize,r=e.gutter,o=e.images,l=e.linkTo,s=(e.lightbox,e.rel),c=e.target,u=e.colorFilter,p=e.showOriginalOnHover,d=i()({"has-gutter":r}),m=i()("has-grid-"+a,"has-gutter-"+r);return wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-masonry-wrapper",n?captionStyle:"",u,"blockspare-original"!==u&&p?"has-hover-effect":"")},wp.element.createElement("div",{className:d},wp.element.createElement("ul",{className:m},o.map(e=>{let t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}e.imgLink&&(t=e.imgLink);const a=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-imglink":e.imgLink,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return wp.element.createElement("li",{key:e.id||e.url,className:"blockspare-gallery-item"},wp.element.createElement("figure",{className:"blockspare-gallery-figure"},t?wp.element.createElement("a",{href:t,target:c,rel:s},a):a,n&&e.caption&&e.caption.length>0&&wp.element.createElement(Jv.Content,{tagName:"figcaption",className:"blockspare-gallery-caption",value:e.caption})))}))))};var Kv={images:{type:"array",default:[],source:"query",selector:".blockspare-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},link:{source:"attribute",selector:"img",attribute:"data-link"},imgLink:{source:"attribute",selector:"img",attribute:"data-imglink"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"array",source:"children",selector:"figcaption"}}},linkTo:{type:"string",default:"none"},target:{type:"string"},rel:{type:"string",default:""},align:{type:"string"},gutter:{type:"number",default:15},captions:{type:"boolean",default:!1},captionStyle:{type:"string",default:"dark"},captionColor:{type:"string"},colorFilter:{type:"string",default:"blockspare-original"},showOriginalOnHover:{type:"boolean",default:!1}};function Qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Zv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qv(Object(n),!0).forEach((function(t){ek(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ek(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tk=[{attributes:Zv(Zv({},Kv),gv.attributes),save:function(e){const t=e.attributes,n=t.captions,a=t.gridSize,r=t.gutter,o=t.images,l=t.linkTo,s=(t.lightbox,t.rel),c=t.target,u=i()({"has-gutter":r>0}),p=i()("has-grid-"+a,{["has-gutter-"+r]:r>0});return wp.element.createElement("div",{className:"blockspare-blocks blockspare-masonry-wrapper"},wp.element.createElement("div",{className:u},wp.element.createElement("ul",{className:p},o.map(e=>{let t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}e.imgLink&&(t=e.imgLink);const a=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-imglink":e.imgLink,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return wp.element.createElement("li",{key:e.id||e.url,className:"blockspare-gallery-item"},wp.element.createElement("figure",{className:"blockspare-gallery-figure"},t?wp.element.createElement("a",{href:t,target:c,rel:s},a):a,n&&e.caption&&e.caption.length>0&&wp.element.createElement(RichText.Content,{tagName:"figcaption",className:"blockspare-gallery-caption",value:e.caption})))}))))}}];function nk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ak(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nk(Object(n),!0).forEach((function(t){rk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ok=blockspare_globals,ik=gv.name,lk=gv.category,sk=wp.i18n.__,ck=wp.blocks.registerBlockType,uk=ak(ak({},Kv),gv.attributes);ck(ik,{title:sk("BS Image Masonry","blockspare"),description:sk("Add Masonry Items","blockspare"),category:lk,icon:r.masonry,attributes:uk,keywords:[sk("block","blockspare"),sk("image","blockspare"),sk("masonry","blockspare"),sk("gallery","blockspare"),sk("column","blockspare")],supports:{align:["wide","full","center"],html:!0},example:{attributes:{gridSize:"lrg",gutter:5,images:[{url:ok.menu_img_url},{url:ok.img},{url:ok.menu_img_url},{url:ok.img},{url:ok.menu_img_url},{url:ok.menu_img_url},{url:ok.img},{url:ok.menu_img_url},{url:ok.img}]}},edit:$v,save:Xv,deprecated:tk});n(517),n(518);var pk=n(36);const dk=wp.i18n.__,mk=wp.element,bk=mk.Component,fk=(mk.Fragment,wp.blockEditor),gk=fk.InspectorControls,hk=fk.PanelColorSettings,yk=wp.components,wk=yk.PanelBody,vk=yk.ToggleControl;yk.RangeControl;class kk extends bk{render(){const e=this.props,t=e.attributes,n=t.textsColor,a=t.backGroundColor,r=t.boxBorderColor,o=t.buttonBackgroundColor,i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,c=t.buttonTarget,u=t.paddingTop,p=t.paddingRight,d=t.paddingBottom,m=t.paddingLeft,b=t.marginTop,f=t.marginBottom,g=t.enableButton,h=t.buttonStyle,y=t.borderColor,w=t.borderBtnTextColor,v=t.fontSize,k=t.enableGradient,_=t.backgroundColor1,T=t.backgroundColor2,E=t.gradientAngle,x=t.colorLocation1,M=t.colorLocation2,C=(t.borderRadius,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.btnFontWeight),O=t.btnBorderWidth,L=t.buttonHoverEffect,F=t.titleLoadGoogleFonts,D=t.titleFontFamily,P=t.titleFontWeight,j=t.titleFontSubset,N=t.titleFontSizeType,z=t.titleFontSizeMobile,Y=t.titleFontSizeTablet,B=e.attributes,A=e.setAttributes;return wp.element.createElement(gk,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"notice-bar"}),wp.element.createElement(wk,{title:dk("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:dk("Title Fonts Settings"),attributes:B,setAttributes:A,loadGoogleFonts:{value:F,label:dk("titleLoadGoogleFonts")},fontFamily:{value:D,label:dk("titleFontFamily")},fontWeight:{value:P,label:dk("titleFontWeight")},fontSubset:{value:j,label:dk("titleFontSubset")},fontSizeType:{value:N,label:dk("titleFontSizeType")},fontSize:{value:v,label:dk("fontSize")},fontSizeMobile:{value:z,label:dk("titleFontSizeMobile")},fontSizeTablet:{value:Y,label:dk("titleFontSizeTablet")},disableLineHeight:!0}),wp.element.createElement(hk,{title:dk("Texts Color","blockspare"),initialOpen:!0,colorSettings:[{value:n,onChange:e=>A({textsColor:e}),label:dk("Texts Color","blockspare")},{value:a,onChange:e=>A({backGroundColor:e}),label:dk("Background Color","blockspare")},{value:r,onChange:e=>A({boxBorderColor:e}),label:dk("Dash Color","blockspare")}]})),g&&wp.element.createElement(wk,{title:dk("Button Settings","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonTarget:!1,buttonTarget:c,onChangeButtonTarget:e=>A({buttonTarget:!c}),enableGradient:k,onChangeGradient:e=>A({enableGradient:e}),enableButtonSize:!0,buttonSize:l,onChangeButtonSize:e=>A({buttonSize:e}),enableButtonShape:!0,buttonShape:s,onChangeButtonShape:e=>A({buttonShape:e}),buttonBackgroundColor:o,onChangeButtonColor:e=>A({buttonBackgroundColor:e}),buttonTextColor:i,onChangeButtonTextColor:e=>A({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:h,onChangeBorderStyle:e=>A({buttonStyle:e}),buttonHoverEffect:L,onchangeButtonHoverEffect:e=>A({buttonHoverEffect:e}),borderColor:y,onchangeBorderColor:e=>A({borderColor:e}),borderBtnTextColor:w,onChangeBorderBtnTextColor:e=>A({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:O,onchangebtnBorderWidth:e=>A({btnBorderWidth:e}),enableBtnFontWeight:!0,btnFontWeight:C,onchangeBtnFontWeight:e=>A({btnFontWeight:e})})),g&&"none"===h&&wp.element.createElement(vk,{label:dk("Enable Gradient","blockspare"),checked:k,onChange:()=>this.props.setAttributes({enableGradient:!k})}),k&&"none"===h&&g&&wp.element.createElement(wk,{title:dk("Gradient Option","blockspare"),initialOpen:!0},wp.element.createElement(Oe,{backgroundColor1:_,onChangeBackgroundColor1:e=>A({backgroundColor1:e}),backgroundColor2:T,onChangeBackgroundColor2:e=>A({backgroundColor2:e}),gradientAngle:E,onChangeGradientAngle:e=>A({gradientAngle:e}),colorLocation1:x,onChangeColorLocation1:e=>A({colorLocation1:e}),colorLocation2:M,onChangeColorLocation2:e=>A({colorLocation2:e})})),wp.element.createElement(wk,{title:dk("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(wk,{title:dk("Padding Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:u,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>A({paddingTop:e}),paddingEnableRight:!0,paddingRight:p,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>A({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:d,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>A({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:m,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>A({paddingLeft:e})})),wp.element.createElement(wk,{title:dk("Margin Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:b,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>A({marginTop:e}),marginEnableBottom:!0,marginBottom:f,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>A({marginBottom:e})})))))}}function _k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Sk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_k(Object(n),!0).forEach((function(t){Tk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ek=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.textsColor,r=t.fontSize,o=t.backGroundColor,i=t.boxBorderColor,l=t.paddingTop,s=t.paddingRight,c=t.paddingBottom,u=t.paddingLeft,p=t.marginTop,d=t.marginBottom,m=t.borderRadius,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=t.buttonStyle,v=t.enableGradient,k=t.backgroundColor1,_=t.backgroundColor2,S=t.gradientAngle,T=t.colorLocation1,E=t.colorLocation2,x=t.btnFontWeight,M=t.btnBorderWidth,C=t.borderColor,O=t.buttonBackgroundColor,L=t.borderBtnTextColor,F=t.buttonTextColor,D=t.enableButton,P=t.buttonFontSize,j=t.buttonFontFamily,N=t.buttonFontWeight,z=t.buttonFontSizeType,Y=t.buttonFontSizeMobile,B=t.buttonFontSizeTablet,A=[];if("none"===w)if(1==v){const e=S+"deg",t=T+"%",n=E+"%";A.push({".blockspare-block-button span":{color:F||"#fff",fontWeight:x,borderWidth:M+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${k||"#3B1A5B"} ${t},${_||"#8B249C"} ${n})`}})}else A.push({".blockspare-block-button span":{color:F||"#fff",fontWeight:x,borderWidth:M+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:O||"#3c1a5b"}});else A.push({".blockspare-block-button span":{color:L||"#404040",borderColor:C||"#3c1a5b",borderStyle:w,fontWeight:x,borderWidth:M+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return D&&A.push({".blockspare-block-button span":{fontSize:P+z,fontFamily:j,fontWeight:N},tablet:{".blockspare-block-button span":{fontSize:B+z}},mobile:{".blockspare-block-button span":{fontSize:Y+z}}}),A.push({".blockspare-noticebar-wrapper":Sk(Sk({},Qi(e.attributes)),{},{backgroundColor:o||"#fff",borderColor:i||"#cc0000",textAlign:n,paddingTop:l?l+"px":void 0,paddingRight:s?s+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:u?u+"px":void 0,marginTop:p?p+"px":void 0,marginBottom:d?d+"px":void 0,borderRadius:m?m+"px":void 0}),".blockspare-section-notice-wrap":{textAlign:n},".blockspare-notice-content":{color:a,fontSize:r+g+"!important",fontFamily:b,fontWeight:"Default"!==b?f+"!important":""},tablet:{".blockspare-notice-content":{fontSize:y+g+"!important"}},mobile:{".blockspare-notice-content":{fontSize:h+g+"!important"}}}),qr.a.all(A)};function xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Mk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ck=wp.element.Component,Ok=wp.i18n.__,Lk=wp.compose.compose,Fk=wp.blockEditor,Dk=Fk.AlignmentToolbar,Pk=Fk.URLInput,jk=Fk.BlockControls,Nk=Fk.RichText,zk=wp.components,Yk=zk.IconButton,Bk=zk.Dashicon;var Ak=Lk(Gr,Rr(Ek))(class extends Ck{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonAlignment,o=t.buttonSize,l=t.buttonShape,s=t.noticeContent,c=t.sectionAlignment,u=t.enableButton,p=t.buttonHoverEffect,d=t.titleLoadGoogleFonts,m=t.titleFontFamily,b=t.titleFontWeight,f=t.buttonLoadGoogleFonts,g=t.buttonFontFamily,h=t.buttonFontWeight,y=e.className,w=(e.attributes,e.isSelected),v=e.setAttributes;let k,_;if(1==d){const e={google:{families:[m+(b?":"+b:"")]}};k=wp.element.createElement(oo,{config:e})}if(1==f){const e={google:{families:[g+(h?":"+h:"")]}};_=wp.element.createElement(oo,{config:e})}const S=i()([y,"blockspare-notice-block"]);return wp.element.createElement("fragment",null,wp.element.createElement(jk,null,wp.element.createElement(Dk,{value:c,onChange:e=>{v({sectionAlignment:e})}})),wp.element.createElement(kk,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(n),!0).forEach((function(t){Mk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:v},this.props)),wp.element.createElement("div",{className:S},this.props.styles,wp.element.createElement("div",{className:"blockspare-noticebar-wrapper blockspare-blocks"},wp.element.createElement("div",{className:"blockspare-section-notice-wrap"},wp.element.createElement(Nk,{tagName:"div",placeholder:Ok("Add your notice here..","blockspare"),keepPlaceholderOnFocus:!0,value:s,className:"blockspare-notice-content",onChange:e=>v({noticeContent:e})})),u&&wp.element.createElement("div",{className:"blockspare-block-button"},wp.element.createElement("a",{href:"#"},wp.element.createElement(Nk,{tagName:"span",placeholder:Ok("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:n,allowedFormats:[],className:i()("blockspare-button",l,o,p),onChange:e=>v({buttonText:e})})),w&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+r,onSubmit:e=>e.preventDefault()},wp.element.createElement(Bk,{icon:"admin-links"}),wp.element.createElement(Pk,{className:"button-url",value:a,onChange:e=>v({buttonUrl:e})}),wp.element.createElement(Yk,{icon:"editor-break",label:Ok("Apply","blockspare"),type:"submit"}))))),k,_)}});const Ik=wp.element.Component,Rk=wp.compose.compose,Hk=wp.blockEditor.RichText;var Wk=Rk(Gr,Rr(Ek))(class extends Ik{render(){const e=this.props,t=e.attributes,n=(t.align,t.buttonText),a=t.buttonUrl,r=t.buttonTarget,o=t.buttonSize,l=t.buttonShape,s=t.noticeContent,c=t.enableButton,u=t.buttonHoverEffect,p=e.className,d=i()([p,"blockspare-notice-block"]);return wp.element.createElement("div",{className:d},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-noticebar-wrapper","blockspare-blocks")},wp.element.createElement("div",{className:"blockspare-section-notice-wrap"},wp.element.createElement("div",{className:"blockspare-title-wrap"},wp.element.createElement("div",null,s&&wp.element.createElement(Hk.Content,{tagName:"div",className:"blockspare-notice-content",value:s})))),c&&wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:r?"_blank":null,rel:r?"noopener noreferrer":null,className:i()("blockspare-button",l,o,u)},wp.element.createElement(Hk.Content,{value:n})))))}});function Gk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Uk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gk(Object(n),!0).forEach((function(t){qk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vk=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.textsColor,r=t.fontSize,o=t.backGroundColor,i=t.boxBorderColor,l=t.paddingTop,s=t.paddingRight,c=t.paddingBottom,u=t.paddingLeft,p=t.marginTop,d=t.marginBottom,m=t.borderRadius,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=[];return w.push({".blockspare-noticebar-wrapper":Uk(Uk({},Qi(e.attributes)),{},{backgroundColor:o||"#fff",borderColor:i||"#cc0000",textAlign:n,paddingTop:l?l+"px":void 0,paddingRight:s?s+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:u?u+"px":void 0,marginTop:p?p+"px":void 0,marginBottom:d?d+"px":void 0,borderRadius:m?m+"px":void 0}),".blockspare-section-notice-wrap":{textAlign:n},".blockspare-notice-content":{color:a,fontSize:r+g+"!important",fontFamily:b,fontWeight:"Default"!==b?f+"!important":""},".blockspare-button":Uk({},Mo(e.attributes)),tablet:{".blockspare-notice-content":{fontSize:y+g+"!important"}},mobile:{".blockspare-notice-content":{fontSize:h+g+"!important"}}}),qr.a.all(w)};const $k=wp.element.Component,Jk=wp.compose.compose,Xk=wp.blockEditor.RichText;var Kk=Jk(Gr,Rr(Vk))(class extends $k{render(){const e=this.props,t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonTarget,l=t.buttonSize,s=t.buttonShape,c=t.noticeContent,u=t.enableButton,p=t.buttonHoverEffect,d=e.className,m=i()([d,"blockspare-notice-block"]);return wp.element.createElement("div",{className:m},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-noticebar-wrapper","blockspare-blocks","align"+n)},wp.element.createElement("div",{className:"blockspare-section-notice-wrap"},wp.element.createElement("div",{className:"blockspare-title-wrap"},wp.element.createElement("div",null,c&&wp.element.createElement(Xk.Content,{tagName:"div",className:"blockspare-notice-content",value:c})))),u&&wp.element.createElement("div",{className:"blockspare-block-button"},a&&wp.element.createElement("a",{href:r,target:o?"_blank":null,rel:o?"noopener noreferrer":null,className:i()("blockspare-button",s,l,p)},wp.element.createElement(Xk.Content,{value:a})))))}});function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qk(Object(n),!0).forEach((function(t){e_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function e_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var t_=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.textsColor,r=t.fontSize,o=t.backGroundColor,i=t.boxBorderColor,l=t.paddingTop,s=t.paddingRight,c=t.paddingBottom,u=t.paddingLeft,p=t.marginTop,d=t.marginBottom,m=t.borderRadius,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=[];return w.push({".blockspare-noticebar-wrapper":Zk(Zk({},Qi(e.attributes)),{},{backgroundColor:o||"#fff",borderColor:i||"#cc0000",textAlign:n,paddingTop:l?l+"px":void 0,paddingRight:s?s+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:u?u+"px":void 0,marginTop:p?p+"px":void 0,marginBottom:d?d+"px":void 0,borderRadius:m?m+"px":void 0}),".blockspare-section-notice-wrap":{textAlign:n},".blockspare-notice-content":{color:a,fontSize:r+g+"!important",fontFamily:b,fontWeight:"Default"!==b?f+"!important":""},".blockspare-button":Zk({},xo(e.attributes)),tablet:{".blockspare-notice-content":{fontSize:y+g+"!important"}},mobile:{".blockspare-notice-content":{fontSize:h+g+"!important"}}}),qr.a.all(w)};const n_=wp.element.Component,a_=wp.compose.compose,r_=wp.blockEditor.RichText;var o_=a_(Gr,Rr(t_))(class extends n_{render(){const e=this.props,t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonTarget,l=t.buttonSize,s=t.buttonShape,c=t.noticeContent,u=t.enableButton,p=t.buttonHoverEffect,d=e.className,m=i()([d,"blockspare-notice-block"]);return wp.element.createElement("div",{className:m},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-noticebar-wrapper","blockspare-blocks","align"+n)},wp.element.createElement("div",{className:"blockspare-section-notice-wrap"},wp.element.createElement("div",{className:"blockspare-title-wrap"},wp.element.createElement("div",null,c&&wp.element.createElement(r_.Content,{tagName:"div",className:"blockspare-notice-content",value:c})))),u&&wp.element.createElement("div",{className:"blockspare-block-button"},a&&wp.element.createElement("a",{href:r,target:o?"_blank":null,rel:o?"noopener noreferrer":null,className:i()("blockspare-button",s,l,p)},wp.element.createElement(r_.Content,{value:a})))))}});function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i_(Object(n),!0).forEach((function(t){s_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c_=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.textsColor,r=t.fontSize,o=t.backGroundColor,i=t.boxBorderColor,l=t.paddingTop,s=t.paddingRight,c=t.paddingBottom,u=t.paddingLeft,p=t.marginTop,d=t.marginBottom,m=t.borderRadius,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSizeType,h=t.titleFontSizeMobile,y=t.titleFontSizeTablet,w=t.buttonStyle,v=t.enableGradient,k=t.backgroundColor1,_=t.backgroundColor2,S=t.gradientAngle,T=t.colorLocation1,E=t.colorLocation2,x=t.btnFontWeight,M=t.btnBorderWidth,C=t.borderColor,O=t.buttonBackgroundColor,L=t.borderBtnTextColor,F=t.buttonTextColor,D=[];if("none"===w)if(1==v){const e=S+"deg",t=T+"%",n=E+"%";D.push({".blockspare-block-button span":{color:F||"#fff",fontWeight:x,borderWidth:M+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${k||"#3B1A5B"} ${t},${_||"#8B249C"} ${n})`}})}else D.push({".blockspare-block-button span":{color:F||"#fff",fontWeight:x,borderWidth:M+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:O||"#3c1a5b"}});else D.push({".blockspare-block-button span":{color:L||"#404040",borderColor:C||"#3c1a5b",borderStyle:w,fontWeight:x,borderWidth:M+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return D.push({".blockspare-noticebar-wrapper":l_(l_({},Qi(e.attributes)),{},{backgroundColor:o||"#fff",borderColor:i||"#cc0000",textAlign:n,paddingTop:l?l+"px":void 0,paddingRight:s?s+"px":void 0,paddingBottom:c?c+"px":void 0,paddingLeft:u?u+"px":void 0,marginTop:p?p+"px":void 0,marginBottom:d?d+"px":void 0,borderRadius:m?m+"px":void 0}),".blockspare-section-notice-wrap":{textAlign:n},".blockspare-notice-content":{color:a,fontSize:r+g+"!important",fontFamily:b,fontWeight:"Default"!==b?f+"!important":""},tablet:{".blockspare-notice-content":{fontSize:y+g+"!important"}},mobile:{".blockspare-notice-content":{fontSize:h+g+"!important"}}}),qr.a.all(D)};const u_=wp.element.Component,p_=wp.compose.compose,d_=wp.blockEditor.RichText;var m_=p_(Gr,Rr(c_))(class extends u_{render(){const e=this.props,t=e.attributes,n=(t.align,t.buttonText),a=t.buttonUrl,r=t.buttonTarget,o=t.buttonSize,l=t.buttonShape,s=t.noticeContent,c=t.enableButton,u=t.buttonHoverEffect,p=e.className,d=i()([p,"blockspare-notice-block"]);return wp.element.createElement("div",{className:d},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-noticebar-wrapper","blockspare-blocks")},wp.element.createElement("div",{className:"blockspare-section-notice-wrap"},wp.element.createElement("div",{className:"blockspare-title-wrap"},wp.element.createElement("div",null,s&&wp.element.createElement(d_.Content,{tagName:"div",className:"blockspare-notice-content",value:s})))),c&&wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:r?"_blank":null,rel:r?"noopener noreferrer":null,className:i()("blockspare-button",l,o,u)},wp.element.createElement(d_.Content,{value:n})))))}});function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function f_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b_(Object(n),!0).forEach((function(t){g_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h_=wp.blockEditor.RichText,y_=f_(f_(f_({},pk.attributes),Eo),ti);var w_=[{attributes:y_,save:function(e){const t=e.attributes,n=t.align,a=t.buttonText,r=t.buttonUrl,o=t.buttonTarget,l=t.buttonSize,s=t.buttonShape,c=t.sectionAlignment,u=t.noticeContent,p=t.textsColor,d=t.backGroundColor,m=t.boxBorderColor,b=t.paddingTop,f=t.paddingRight,g=t.paddingBottom,h=t.paddingLeft,y=t.marginTop,w=t.marginBottom,v=t.enableButton,k=t.fontSize,_=t.borderRadius,S=t.buttonHoverEffect,T=t.className,E=f_(f_({},Qi(e.attributes)),{},{textAlign:c,backgroundColor:d||"#fff",borderColor:m||"#cc0000",paddingTop:b?b+"px":void 0,paddingRight:f?f+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:h?h+"px":void 0,marginTop:y?y+"px":void 0,marginBottom:w?w+"px":void 0,borderRadius:_+"px"}),x=f_({},Yl(e.attributes));return wp.element.createElement("div",{className:i()("blockspare-noticebar-wrapper","blockspare-blocks","align"+n),style:E},wp.element.createElement("div",{className:"blockspare-section-notice-wrap",style:{textAlign:c,color:p||"#4c4c4c"}},wp.element.createElement("div",{className:"blockspare-title-wrap"},wp.element.createElement("div",null,u&&wp.element.createElement(h_.Content,{tagName:"div",className:"blockspare-notice-content",value:u,style:{fontSize:k+"px"}})))),v&&wp.element.createElement("div",{style:{textAlign:c},className:i()(T,"blockspare-block-button")},a&&wp.element.createElement("a",{href:r,target:o?"_blank":null,rel:o?"noopener noreferrer":null,className:i()("blockspare-button",s,l,S),style:x},wp.element.createElement(h_.Content,{value:a}))))}},{attributes:y_,save:e=>wp.element.createElement(o_,e)},{attributes:y_,save:e=>wp.element.createElement(Kk,e)},{attributes:y_,save:e=>wp.element.createElement(m_,e)}];function v_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v_(Object(n),!0).forEach((function(t){__(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function __(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S_=pk.name,T_=pk.category,E_=wp.i18n.__,x_=wp.blocks.registerBlockType,M_=k_(k_(k_({},Eo),ti),pk.attributes);x_(S_,{title:E_("BS Notice Bar","blockspare"),description:E_("BS Notice Bar allow you to add various type of notices","blockspare"),category:T_,icon:r.notice,attributes:M_,keywords:[E_("block","blockspare"),E_("notice","blockspare"),E_("bar","blockspare"),E_("announcement","blockspare")],supports:{align:["wide","full","center"],html:!0},example:{attributes:{cover:"https://blockspare.com",author:"Blockspare",pages:500}},edit:Ak,save:Wk,deprecated:w_});var C_=n(68);const O_=wp.element.Component;class L_ extends O_{constructor(e){super(...arguments)}render(){const e=this.props.attributes,t=(e.backgroundColor,e.align),n=i()(["blockspare-price-list-section-admin blockspare-price-list"],{["align"+t]:t});return wp.element.createElement("div",{className:n||void 0},this.props.children)}}n(519),n(520);var F_=n(43);const D_=wp.i18n.__,P_=wp.element.Component,j_=wp.blockEditor,N_=j_.InspectorControls,z_=j_.PanelColorSettings,Y_=wp.components,B_=Y_.PanelBody,A_=Y_.ToggleControl;Y_.SelectControl,Y_.RangeControl;class I_ extends P_{render(){const e=this.props,t=e.attributes,n=(t.layoutOptions,t.priceUnitPosition,t.showDots),a=(t.priceTitleColor,t.priceColor),r=t.priceUnitColor,o=(t.backgroundColor,t.priceDescriptionColor,t.showImage),i=(t.imgIconOption,t.name,t.iconSize,t.iconStyles,t.iconBackgroundColor,t.iconBorderColor,t.iconColor,t.borderRadius,t.paddingTop),l=t.paddingRight,s=t.paddingBottom,c=t.paddingLeft,u=t.marginTop,p=t.marginBottom,d=(t.blockBorderRadius,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.titleFontSize),m=t.titleLoadGoogleFonts,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSubset,h=t.titleFontSizeType,y=t.titleFontSizeMobile,w=t.titleFontSizeTablet,v=t.priceUnitFontSize,k=t.priceUnitLoadGoogleFonts,_=t.priceUnitFontFamily,T=t.priceUnitFontWeight,E=t.priceUnitFontSubset,x=t.priceUnitFontSizeType,M=t.priceUnitFontSizeMobile,C=t.priceUnitFontSizeTablet,O=t.descriptionFontSize,L=t.descriptionFontFamily,F=t.descriptionFontWeight,D=t.descriptionFontSubset,P=t.descriptionFontSizeType,j=t.descriptionFontSizeMobile,N=t.descriptionFontSizeTablet,z=t.descriptionLoadGoogleFonts,Y=e.attributes,B=e.setAttributes;D_("Layout 1","blockspare"),D_("Layout 2","blockspare"),D_("Layout 3","blockspare"),D_("Before Price","blockspare"),D_("After Price","blockspare"),D_("Icon","blockspare"),D_("Image","blockspare");return wp.element.createElement(N_,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"price-list"}),wp.element.createElement(B_,{title:D_("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(A_,{label:D_("Display Image ","blockspare"),checked:o,onChange:()=>this.props.setAttributes({showImage:!o})}),wp.element.createElement(A_,{label:D_("Display Dots","blockspare"),checked:n,onChange:()=>this.props.setAttributes({showDots:!n})})),wp.element.createElement(B_,{title:D_("Typography Settings","blockspare")},wp.element.createElement(br,{label:D_("Title Fonts Settings"),attributes:Y,setAttributes:B,loadGoogleFonts:{value:m,label:D_("titleLoadGoogleFonts")},fontFamily:{value:b,label:D_("titleFontFamily")},fontWeight:{value:f,label:D_("titleFontWeight")},fontSubset:{value:g,label:D_("titleFontSubset")},fontSizeType:{value:h,label:D_("titleFontSizeType")},fontSize:{value:d,label:D_("titleFontSize")},fontSizeMobile:{value:y,label:D_("titleFontSizeMobile")},fontSizeTablet:{value:w,label:D_("titleFontSizeTablet")},disableLineHeight:!0}),wp.element.createElement(br,{label:D_("Description Fonts Settings"),attributes:Y,setAttributes:B,loadGoogleFonts:{value:z,label:D_("descriptionLoadGoogleFonts")},fontFamily:{value:L,label:D_("descriptionFontFamily")},fontWeight:{value:F,label:D_("descriptionFontWeight")},fontSubset:{value:D,label:D_("descriptionFontSubset")},fontSizeType:{value:P,label:D_("descriptionFontSizeType")},fontSize:{value:O,label:D_("descriptionFontSize")},fontSizeMobile:{value:j,label:D_("descriptionFontSizeMobile")},fontSizeTablet:{value:N,label:D_("descriptionFontSizeTablet")},disableLineHeight:!0}),wp.element.createElement(br,{label:D_("Price Fonts Settings"),attributes:Y,setAttributes:B,loadGoogleFonts:{value:k,label:D_("priceUnitLoadGoogleFonts")},fontFamily:{value:_,label:D_("priceUnitFontFamily")},fontWeight:{value:T,label:D_("priceUnitFontWeight")},fontSubset:{value:E,label:D_("priceUnitFontSubset")},fontSizeType:{value:x,label:D_("priceUnitFontSizeType")},fontSize:{value:v,label:D_("priceUnitFontSize")},fontSizeMobile:{value:M,label:D_("priceUnitFontSizeMobile")},fontSizeTablet:{value:C,label:D_("priceUnitFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(B_,{title:D_("Color Settings","blockspare"),initialOpen:!1},wp.element.createElement(z_,{title:D_("Colors","blockspare"),initialOpen:!0,colorSettings:[{value:a,onChange:e=>B({priceColor:e}),label:D_("Price Color","blockspare")},{value:r,onChange:e=>B({priceUnitColor:e}),label:D_("Unit Color","blockspare")}]})),wp.element.createElement(B_,{title:D_("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(B_,{title:D_("Padding Settings","blockspare"),initialOpen:!0},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:i,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>B({paddingTop:e}),paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>B({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:s,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>B({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:c,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>B({paddingLeft:e})})),wp.element.createElement(B_,{title:D_("Margin Settings","blockspare"),initialOpen:!0},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:u,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>B({marginTop:e}),marginEnableBottom:!0,marginBottom:p,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>B({marginBottom:e})})))))}}function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function H_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R_(Object(n),!0).forEach((function(t){W_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G_=e=>{const t=e.attributes,n=t.backgroundColor,a=t.blockBorderRadius,r=t.priceTitleColor,o=t.priceColor,i=t.priceUnitColor,l=t.priceDescriptionColor,s=t.titleFontSize,c=t.titleFontFamily,u=t.titleFontWeight,p=t.titleFontSizeType,d=t.titleFontSizeMobile,m=t.titleFontSizeTablet,b=t.priceUnitFontSize,f=t.priceUnitFontFamily,g=t.priceUnitFontWeight,h=t.priceUnitFontSizeType,y=t.priceUnitFontSizeMobile,w=t.priceUnitFontSizeTablet,v=t.descriptionFontSize,k=t.descriptionFontFamily,_=t.descriptionFontWeight,S=(t.descriptionFontSubset,t.descriptionFontSizeType),T=t.descriptionFontSizeMobile,E=t.descriptionFontSizeTablet,x=[];var M=b,C=(Math.floor(M/1.3),Math.floor(M/1.3)),O=w,L=Math.floor(O/2.5),F=Math.floor(L/2.5),D=y,P=Math.floor(D/2.5),j=Math.floor(P/2.5);return x.push({".blockspare-price-list-wrap":H_(H_(H_({},Zi(e.attributes)),Qi(e.attributes)),{},{backgroundColor:n||"#fff",borderRadius:a?a+"px":null}),".blockspare-price-list-wrap .blockspare-block-icon":H_({},Sd(e.attributes)),".blockspare-price-divider":{color:l||"#6d6d6d"},".blockspare-title":{color:r||"#404040",fontSize:s+p+"!important",fontFamily:c+"!important",fontWeight:"Default"!==c?u+"!important":""},".blockspare-price":{color:o||"#af0000",fontSize:b+h+"!important",fontFamily:f+"!important",fontWeight:"Default"!==f?g+"!important":""},".blockspare-unit":{color:i||"#af0000",fontSize:C+"px",fontFamily:f,fontWeight:g},".blockspare-description":{color:l||"#6d6d6d",fontSize:v+S+"!important",fontFamily:k+"!important",fontWeight:"Default"!==k?_+"!important":""},tablet:{".blockspare-title":{fontSize:m+p+"!important"},".blockspare-price,":{fontSize:w+p+"!important"},".blockspare-unit":{fontSize:F+p+"!important"},".blockspare-description":{fontSize:E+S+"!important"}},mobile:{".blockspare-title":{fontSize:d+p+"!important"},".blockspare-price":{fontSize:y+p+"!important"}," .blockspare-unit":{fontSize:j+p+"!important"},".blockspare-description":{fontSize:T+S+"!important"}}}),qr.a.all(x)};const U_=blockspare_globals,q_=wp.element,V_=q_.Component,$_=q_.Fragment,J_=wp.i18n.__,X_=wp.compose.compose,K_=["core/image"],Q_=[["core/image",{url:U_.menu_img_url,width:120,height:120,align:"center"}]],Z_=wp.blockEditor,eS=Z_.RichText,tS=Z_.InnerBlocks;var nS=X_(Gr,Rr(G_))(class extends V_{render(){const e=this.props,t=e.attributes,n=t.price,a=t.priceTitle,r=t.priceDescription,o=t.priceUnit,l=t.layoutOptions,s=t.priceUnitPosition,c=t.showDots,u=t.showImage,p=t.imgIconOption,d=t.name,m=t.iconSize,b=t.iconStyles,f=e.className,g=(e.attributes,e.setAttributes),h=i()([f,"blockspare-pircelist"]);return wp.element.createElement($_,null,wp.element.createElement(I_,this.props),wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-price-list-wrap",l,s)},wp.element.createElement("div",{className:"blockspare-img-wrapper"},u&&"image"==p&&wp.element.createElement(tS,{template:Q_,allowedBlocks:K_,templateLock:!0,templateInsertUpdatesSelection:!0})),u&&"icon"==p&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",m,b)},wp.element.createElement("i",{className:d}))),wp.element.createElement("div",{className:"blockspare-price-content"},wp.element.createElement("div",{className:"blockspare-price-header"},wp.element.createElement(eS,{tagName:"h4",className:"blockspare-title",onChange:e=>g({priceTitle:e}),value:a,placeholder:J_("Title","blockspare"),keepPlaceholderOnFocus:!0}),c&&wp.element.createElement("span",{className:"blockspare-price-divider"}),wp.element.createElement("div",{className:"blockspare-price-unit-wrap"},wp.element.createElement(eS,{tagName:"span",className:"blockspare-price",onChange:e=>g({price:e}),value:n,placeholder:J_("Price","blockspare"),keepPlaceholderOnFocus:!0}),wp.element.createElement(eS,{tagName:"span",className:"blockspare-unit",onChange:e=>g({priceUnit:e}),value:o,placeholder:J_("$","blockspare"),keepPlaceholderOnFocus:!0}))),wp.element.createElement(eS,{tagName:"p",className:"blockspare-description",onChange:e=>g({priceDescription:e}),value:r,placeholder:J_("Description","blockspare"),keepPlaceholderOnFocus:!0})))))}});const aS=wp.element.Component,rS=wp.compose.compose,oS=wp.blockEditor,iS=oS.InnerBlocks,lS=oS.RichText;var sS=rS(Gr,Rr(G_))(class extends aS{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.priceTitle,a=t.priceDescription,r=t.priceUnit,o=t.price,l=t.layoutOptions,s=t.priceUnitPosition,c=t.showDots,u=t.showImage,p=t.imgIconOption,d=t.name,m=t.iconSize,b=t.iconStyles,f=e.className,g=(e.attributes,i()([f,"blockspare-pircelist"]));return wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-price-list-wrap",l,s)},wp.element.createElement("div",{className:"blockspare-imge-wrapper"},u&&"image"==p&&wp.element.createElement(iS.Content,null)),u&&"icon"==p&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",m,b)},wp.element.createElement("i",{className:d}))),wp.element.createElement("div",{className:"blockspare-price-content"},wp.element.createElement("div",{className:"blockspare-price-header"},wp.element.createElement(lS.Content,{tagName:"h4",className:"blockspare-title",value:n}),c&&wp.element.createElement("span",{className:"blockspare-price-divider"}),wp.element.createElement("div",{className:"blockspare-price-unit-wrap"},wp.element.createElement(lS.Content,{tagName:"span",className:"blockspare-price",value:o}),wp.element.createElement(lS.Content,{tagName:"span",className:"blockspare-unit",value:r}))),wp.element.createElement(lS.Content,{tagName:"p",className:"blockspare-description",value:a}))))}});function cS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function uS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cS(Object(n),!0).forEach((function(t){pS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dS=e=>{const t=e.attributes,n=t.backgroundColor,a=t.blockBorderRadius,r=t.priceTitleColor,o=t.priceColor,i=t.priceUnitColor,l=t.priceDescriptionColor,s=t.titleFontSize,c=t.titleFontFamily,u=t.titleFontWeight,p=t.titleFontSizeType,d=t.titleFontSizeMobile,m=t.titleFontSizeTablet,b=t.priceUnitFontSize,f=t.priceUnitFontFamily,g=t.priceUnitFontWeight,h=t.priceUnitFontSizeType,y=t.priceUnitFontSizeMobile,w=t.priceUnitFontSizeTablet,v=t.descriptionFontSize,k=t.descriptionFontFamily,_=t.descriptionFontWeight,S=(t.descriptionFontSubset,t.descriptionFontSizeType),T=t.descriptionFontSizeMobile,E=t.descriptionFontSizeTablet,x=[];return x.push({".blockspare-price-list-wrap":uS(uS(uS({},Zi(e.attributes)),Qi(e.attributes)),{},{backgroundColor:n||"#fff",borderRadius:a||null}),",blockspare-block-icon":uS({},Sd(e.attributes)),".blockspare-price-divider":{color:l||"#6d6d6d"},".blockspare-title":{color:r||"#404040",fontSize:s+p+"!important",fontFamily:c+"!important",fontWeight:"Default"!==c?u+"!important":""},".blockspare-price":{color:o||"#af0000",fontSize:b+h+"!important",fontFamily:f+"!important",fontWeight:"Default"!==f?g+"!important":""},".blockspare-unit":{color:i||"#af0000"},".blockspare-description":{color:l||"#6d6d6d",fontSize:v+S+"!important",fontFamily:k+"!important",fontWeight:"Default"!==k?_+"!important":""},tablet:{".blockspare-title":{fontSize:m+p+"!important"},".blockspare-price, .blockspare-unit":{fontSize:w+p+"!important"},".blockspare-description":{fontSize:E+S+"!important"}},mobile:{".blockspare-title":{fontSize:d+p+"!important"},".blockspare-price, .blockspare-unit":{fontSize:y+p+"!important"},".blockspare-description":{fontSize:T+S+"!important"}}}),qr.a.all(x)};const mS=wp.element.Component,bS=wp.compose.compose,fS=wp.blockEditor,gS=fS.InnerBlocks,hS=fS.RichText;var yS=bS(Gr,Rr(dS))(class extends mS{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.priceTitle,a=t.priceDescription,r=t.priceUnit,o=t.price,l=t.layoutOptions,s=t.priceUnitPosition,c=t.showDots,u=t.showImage,p=t.imgIconOption,d=t.name,m=t.iconSize,b=t.iconStyles,f=e.className,g=(e.attributes,i()([f,"blockspare-pircelist"]));return wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-price-list-wrap",l,s)},wp.element.createElement("div",{className:"blockspare-imge-wrapper"},u&&"image"==p&&wp.element.createElement(gS.Content,null)),u&&"icon"==p&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",m,b)},wp.element.createElement("i",{className:d}))),wp.element.createElement("div",{className:"blockspare-price-content"},wp.element.createElement("div",{className:"blockspare-price-header"},wp.element.createElement(hS.Content,{tagName:"h4",className:"blockspare-title",value:n}),c&&wp.element.createElement("span",{className:"blockspare-price-divider"}),wp.element.createElement("div",{className:"blockspare-price-unit-wrap"},wp.element.createElement(hS.Content,{tagName:"span",className:"blockspare-price",value:o}),wp.element.createElement(hS.Content,{tagName:"span",className:"blockspare-unit",value:r}))),wp.element.createElement(hS.Content,{tagName:"p",className:"blockspare-description",value:a}))))}});function wS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function vS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wS(Object(n),!0).forEach((function(t){kS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _S=wp.blockEditor,SS=_S.InnerBlocks,TS=_S.RichText,ES=vS(vS(vS({},F_.attributes),ni),ti);var xS=[{attributes:ES,save:function(e){const t=e.attributes,n=t.priceTitle,a=t.priceDescription,r=t.priceUnit,o=t.price,l=t.layoutOptions,s=t.priceUnitPosition,c=t.showDots,u=t.priceTitleColor,p=t.priceColor,d=t.priceUnitColor,m=t.priceDescriptionColor,b=t.backgroundColor,f=t.showImage,g=t.imgIconOption,h=t.name,y=t.iconSize,w=t.iconStyles,v=t.blockBorderRadius,k=vS({},Sd(e.attributes));return wp.element.createElement("div",{className:i()("blockspare-price-list-wrap",l,s),style:vS(vS(vS({},Zi(e.attributes)),Qi(e.attributes)),{},{backgroundColor:b||"#fff",borderRadius:v||null})},wp.element.createElement("div",{className:"blockspare-imge-wrapper"},f&&"image"==g&&wp.element.createElement(SS.Content,null)),f&&"icon"==g&&wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",y,w),style:k},wp.element.createElement("i",{className:h}))),wp.element.createElement("div",{className:"blockspare-price-content"},wp.element.createElement("div",{className:"blockspare-price-header"},wp.element.createElement(TS.Content,{tagName:"h4",className:"blockspare-title",value:n,style:{color:u||"#404040"}}),c&&wp.element.createElement("span",{className:"blockspare-price-divider",style:{color:m||"#6d6d6d"}}),wp.element.createElement("div",{className:"blockspare-price-unit-wrap"},wp.element.createElement(TS.Content,{tagName:"span",className:"blockspare-price",value:o,style:{color:p||"#af0000"}}),wp.element.createElement(TS.Content,{tagName:"span",className:"blockspare-unit",value:r,style:{color:d||"#af0000"}}))),wp.element.createElement(TS.Content,{tagName:"p",className:"blockspare-description",value:a,style:{color:m||"#6d6d6d"}})))}},{attributes:ES,save:e=>wp.element.createElement(yS,e)}];function MS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function CS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MS(Object(n),!0).forEach((function(t){OS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LS=wp.i18n.__,FS=wp.blocks.registerBlockType,DS=F_.category,PS=CS(CS(CS({},F_.attributes),ni),ti),jS={title:LS("Price List Item","blockspare"),description:LS("Display creative Price List, Menu .","blockspare"),parent:["blockspare/blockspare-price-list"],icon:r.pricingList,category:DS,supports:{html:!1,inserter:!1,reusable:!1},attributes:PS,edit:nS,save:sS,deprecated:xS};FS("blockspare/list-item",jS);const NS=wp.element,zS=NS.Component,YS=NS.Fragment,BS=wp.i18n.__,AS=wp.compose.compose,IS=wp.components.PanelBody,RS=wp.blocks.createBlock,HS=wp.data,WS=HS.withSelect,GS=HS.withDispatch,US=wp.blockEditor,qS=US.InnerBlocks,VS=US.InspectorControls,$S=US.PanelColorSettings;var JS=AS([WS((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),GS(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}})])(class extends zS{constructor(...e){var t,n,a;super(...e),a=e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++)t.push(["blockspare/list-item",{}]);return t},(n="getPriceTemplate")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertPriceItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes.itemNumber+1,n=jS.heading;e=Object.assign({},{},{itemNumber:t,heading:n,active:!1,defaultText:""})}else e=jS;a(RS("blockspare/list-item",e),void 0,n)}render(){const e=this.props,t=(e.align,e.attributes),n=e.backgroundColor,a=(e.isSelectedBlockInRoot,e.setAttributes);e.attributes.uniqueId;return[wp.element.createElement(YS,null,wp.element.createElement(VS,null,wp.element.createElement(IS,{title:BS("Block Settings","blockspare")},wp.element.createElement($S,{title:BS("Background Color","blockspare"),initialOpen:!0,colorSettings:[{value:n,onChange:e=>a({backgroundColor:e}),label:BS("Background Color","blockspare")}]}))),wp.element.createElement(L_,this.props,wp.element.createElement(qS,{template:this.getPriceTemplate(t),allowedBlocks:["blockspare/list-item"]})))]}});const XS=wp.element.Component,KS=wp.blockEditor.InnerBlocks;var QS=class extends XS{render(){const e=this.props.attributes,t=e.uniqueId,n=(e.itemToggle,e.align),a=(e.backgroundColor,`blockspare-block-pricelist blockspare-blocks blockspare-block-${t} align${n}`);return wp.element.createElement("div",{className:a},wp.element.createElement(KS.Content,null))}};const ZS=C_.name,eT=C_.category,tT=C_.attributes,nT=wp.i18n.__;(0,wp.blocks.registerBlockType)(ZS,{title:nT("BS Price List","blockspare"),description:nT("Add a price list.","blockspare"),category:eT,icon:r.pricingList,attributes:tT,keywords:[nT("block","blockspare"),nT("price","blockspare"),nT("list","blockspare"),nT("table","blockspare"),nT("pricing","blockspare"),nT("shop","blockspare"),nT("purchase","blockspare")],supports:{align:["wide","full","center"],html:!0},edit:JS,save:QS});var aT=n(69);const rT=wp.i18n.__,oT=wp.element.Component,iT=wp.blockEditor.InspectorControls,lT=wp.components,sT=(lT.Toolbar,lT.Button,lT.PanelBody),cT=(lT.PanelRow,lT.RangeControl);class uT extends oT{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.columns,a=t.columnsGap,r=t.marginTop,o=t.marginBottom,i=(e.isSelected,e.className,e.setAttributes);return wp.element.createElement(iT,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper pricing-table-blockspare"},wp.element.createElement(S,{protitle:"👋",demoLink:"price-table"}),wp.element.createElement(sT,{title:rT("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(cT,{label:rT("Pricing Columns","blockspare"),value:n,onChange:e=>this.props.setAttributes({columns:e}),min:1,max:3,withInputField:!1}),wp.element.createElement(cT,{label:rT("Pricing Columns Gap","blockspare"),value:a,withInputField:!1,onChange:e=>this.props.setAttributes({columnsGap:e}),min:0,max:4,step:1})),wp.element.createElement(sT,{title:rT("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:r,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>i({marginTop:e}),marginEnableBottom:!0,marginBottom:o,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>i({marginBottom:e})}))))}}n(521),n(522);var pT=n(70);const dT=wp.hooks,mT=(dT.addFilter,dT.applyFilters),bT=wp.i18n.__,fT=wp.element,gT=fT.Component,hT=(fT.Fragment,wp.blockEditor),yT=hT.InspectorControls,wT=(hT.BlockDescription,hT.MediaUpload,hT.PanelColorSettings),vT=(hT.ColorPalette,wp.components),kT=(vT.Dashicon,vT.Button,vT.PanelBody),_T=(vT.SelectControl,vT.FormToggle,vT.RangeControl),ST=(vT.TextControl,vT.ToggleControl),TT=(vT.BaseControl,vT.PanelRow,vT.Toolbar);class ET extends gT{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.itemborderWidth,a=t.itemborderColor,o=t.itemborderRadius,i=(t.itembackgroundColor,t.itempadding),l=t.sectionScale,s=(t.enableBadge,t.badgeText,t.badgeStyle,t.badgeOption,t.imgID1,t.imgURL1,t.imgAlt1,t.badgeTextColor,t.badgeBackGroundColor,t.badgeImgSize,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.badgeFontSize,t.badgeFontFamily,t.badgeFontWeight,t.badgeFontSubset,t.badgeFontSizeType,t.badgeFontSizeMobile,t.badgeFontSizeTablet,t.badgeLoadGoogleFonts,t.headerTagOption),c=t.headertitleColor,u=t.headersubtitleColor,p=t.headerlayoutOption,d=t.titlePaddingTop,m=t.titlePaddingBottom,b=t.subtitlePaddingTop,f=t.subtitlePaddingBottom,g=t.dashColor,h=t.headerboxColor,y=t.headerAlignPosition,w=t.titleFontSize,v=t.titleLoadGoogleFonts,k=t.titleFontFamily,_=t.titleFontWeight,S=t.titleFontSubset,T=t.titleFontSizeType,E=t.titleFontSizeMobile,x=t.titleFontSizeTablet,M=t.subTitleFontSize,C=t.subTitleLoadGoogleFonts,O=t.subTitleFontFamily,L=t.subTitleFontWeight,F=t.subTitleFontSubset,D=t.subTitleFontSizeType,P=t.subTitleFontSizeMobile,j=t.subTitleFontSizeTablet,N=t.iconName,z=t.iconSize,Y=t.iconStyles,B=t.iconBackgroundColor,A=t.iconBorderColor,I=t.iconColor,R=t.iconBorderRadius,H=t.iconmarginTop,W=t.iconmarginBottom,G=t.iconAlignPosition,U=t.priceAlignPosition,q=(t.showTerm,t.showCurrency),V=(t.term,t.currency,t.pricePaddingTop),$=t.pricePaddingRight,J=t.pricePaddingBottom,X=t.pricePaddingLeft,K=t.priceUnitFontSize,Q=t.priceUnitLoadGoogleFonts,Z=t.priceUnitFontFamily,ee=t.priceUnitFontWeight,te=t.priceUnitFontSubset,ne=t.priceUnitFontSizeType,ae=t.priceUnitFontSizeMobile,re=t.priceUnitFontSizeTablet,oe=(t.customBackgroundColor,t.priceColor),ie=t.descriptionAlignPosition,le=(t.descriptionborderStyle,t.descriptionborderColor,t.descriptionborderWidth,t.descriptionBacgroundColor),se=t.descriptionpaddingTop,ce=t.descriptionpaddingRight,ue=t.descriptionpaddingBottom,pe=t.descriptionpaddingLeft,de=t.name,me=t.listType,be=t.orderListStyle,fe=t.color,ge=t.descriptionFontSize,he=t.descriptionFontFamily,ye=t.descriptionFontWeight,we=t.descriptionFontSubset,ve=t.descriptionFontSizeType,ke=t.descriptionFontSizeMobile,_e=t.descriptionFontSizeTablet,Se=t.descriptionLoadGoogleFonts,Ee=t.descriptionIconColor,xe=t.buttonAlignPosition,Me=t.buttonStyle,Ce=t.borderColor,Le=t.borderBtnTextColor,Fe=t.buttonBackgroundColor,De=t.buttonTextColor,je=t.buttonSize,Ne=t.buttonShape,ze=t.buttonTarget,Be=t.buttonPaddingTop,Ae=t.buttonPaddingBottom,Ie=t.enableGradient,Re=t.backgroundColor1,He=t.backgroundColor2,We=t.gradientAngle,Ge=t.colorLocation1,Ue=t.colorLocation2,qe=t.btnFontWeight,Ve=t.btnBorderWidth,$e=t.buttonHoverEffect,Je=t.buttonFontSize,Xe=t.buttonFontFamily,Ke=t.buttonFontWeight,Qe=t.buttonFontSubset,Ze=t.buttonFontSizeType,et=t.buttonFontSizeMobile,tt=t.buttonFontSizeTablet,nt=t.buttonLoadGoogleFonts,at=t.enablePrice,rt=t.enableSectionHeader,ot=t.enableDescription,it=t.enableButton,lt=t.enableIcon,st=t.enableImage,ct=t.imgPaddingTop,ut=t.imgPaddingBottom,pt=t.pricingLayout,dt=t.primaryColor,mt=t.secondaryColor,bt=t.tertianeryColor,ft=(e.isSelected,e.className,e.attributes),gt=e.setAttributes;bT("Style 1","blockspare"),bT("Style 2","blockspare"),bT("Style 3","blockspare"),bT("Text","blockspare"),bT("Image","blockspare"),bT("None"),bT("Solid"),bT("Dotted"),bT("Dashed");return wp.element.createElement(yT,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(kT,{title:bT("Block Settings","blockspare"),initialOpen:!1,className:"blocksapre-block-settings"},wp.element.createElement(Oi,{initialOpen:!1,selected:pt,options:mT("blockspare.cta.edit.layouts",[{label:bT("Style 1","blockspare"),value:"bpl-1",image:"images/pricingtable-layout-1.png"},{label:bT("Style 2","blockspare"),value:"bpl-2",image:"images/pricingtable-layout-2.png"},{label:bT("Style 3","blockspare"),value:"bpl-3",image:"images/pricingtable-layout-3.png"},{label:bT("Style 4","blockspare"),value:"bpl-4",image:"images/pricingtable-layout-4.png"},{label:bT("Style 5","blockspare"),value:"bpl-5",image:"images/pricingtable-layout-5.png"},{label:bT("Style 6","blockspare"),value:"bpl-6",image:"images/pricingtable-layout-6.png"}]),onChange:e=>gt({pricingLayout:e})}),wp.element.createElement(_T,{label:bT("Pricing Column Border","blockspare"),value:n,onChange:e=>this.props.setAttributes({itemborderWidth:e}),min:0,max:10,step:1}),wp.element.createElement(_T,{label:bT("Pricing Column Border Radius","blockspare"),value:o,onChange:e=>this.props.setAttributes({itemborderRadius:e}),min:0,max:20,step:1}),wp.element.createElement(_T,{label:bT("Scale Ratio","blockspare"),value:l,onChange:e=>this.props.setAttributes({sectionScale:e}),min:0,max:2,step:1})),wp.element.createElement(kT,{title:bT("Icon"),className:"blocksapre-icon-settings",initialOpen:!1,icon:r.iconblockspare},wp.element.createElement(ST,{label:bT("Enable Icon","blockspare"),checked:lt,onChange:()=>this.props.setAttributes({enableIcon:!lt})}),lt&&wp.element.createElement(dd,{enablecontent:!0,enableColor:!1,name:N,onChangeName:e=>gt({iconName:e}),enableiconSize:!1,iconSize:z,onChangeIconSizeOptions:e=>gt({iconSize:e}),enableiconStyles:!1,iconStyles:Y,onChangeIconStyles:e=>gt({iconStyles:e}),iconBackgroundColor:B,onChangeIconBackgroundColor:e=>gt({iconBackgroundColor:e}),iconBorderColor:A,onChangeIconBorderColor:e=>gt({iconBorderColor:e}),iconColor:I,OnChangeIconColor:e=>gt({iconColor:e}),borderRadius:R,onChangeBorderRadius:e=>gt({iconBorderRadius:e})})),wp.element.createElement(kT,{icon:r.sectionHeader,title:bT("Header","blockspare"),initialOpen:!1},wp.element.createElement(ST,{label:bT("Enable Title/Subtitle","blockspare"),checked:rt,onChange:()=>this.props.setAttributes({enableSectionHeader:!rt})}),rt&&wp.element.createElement("div",null,wp.element.createElement(Di,{headerlayoutOption:p,onChangeHeaderLayput:e=>gt({headerlayoutOption:e})}))),wp.element.createElement(kT,{title:bT("Pricing","blockspare"),className:"blocksapre-pricing-settings",initialOpen:!1,icon:r.price},wp.element.createElement(ST,{label:bT("Enable Pricing","blockspare"),checked:at,onChange:()=>this.props.setAttributes({enablePrice:!at})}),at&&wp.element.createElement(ST,{label:bT("Show currency symbol","blockspare"),checked:q,onChange:()=>this.props.setAttributes({showCurrency:!q})})),wp.element.createElement(kT,{title:bT("Description","blockspare"),initialOpen:!1,className:"blocksapre-description-settings",icon:r.iconlist},wp.element.createElement(ST,{label:bT("Enable Description","blockspare"),checked:ot,onChange:()=>this.props.setAttributes({enableDescription:!ot})}),ot&&wp.element.createElement("div",null,wp.element.createElement(uh,{enableColor:!1,enableOtherControl:!0,name:de,onChangeName:e=>gt({name:e}),listType:me,onChangeListStyle:e=>gt({listType:e}),orderListStyle:be,onChangeOrderListStyle:e=>gt({orderListStyle:e}),color:fe,onchangeColor:e=>gt({color:e})}))),wp.element.createElement(kT,{title:bT("Button","blockspare"),initialOpen:!1,className:"blocksapre-button-settings",icon:r.button},wp.element.createElement(ST,{label:bT("Enable button","blockspare"),checked:it,onChange:()=>this.props.setAttributes({enableButton:!it})}),it&&wp.element.createElement("div",null,wp.element.createElement(Te,{enableButtonBackgroundColor:!1,enableButtonTarget:!1,buttonTarget:ze,onChangeButtonTarget:e=>gt({buttonTarget:!ze}),enableGradient:Ie,onChangeGradient:e=>gt({enableGradient:e}),enableButtonSize:!1,buttonSize:je,onChangeButtonSize:e=>gt({buttonSize:e}),enableButtonShape:!1,buttonShape:Ne,onChangeButtonShape:e=>gt({buttonShape:e}),buttonBackgroundColor:Fe,onChangeButtonColor:e=>gt({buttonBackgroundColor:e}),buttonTextColor:De,onChangeButtonTextColor:e=>gt({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:Me,onChangeBorderStyle:e=>gt({buttonStyle:e}),enablehover:!0,buttonHoverEffect:$e,onchangeButtonHoverEffect:e=>gt({buttonHoverEffect:e}),borderColor:Ce,onchangeBorderColor:e=>gt({borderColor:e}),borderBtnTextColor:Le,onChangeBorderBtnTextColor:e=>gt({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:Ve,onchangebtnBorderWidth:e=>gt({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:qe,onchangeBtnFontWeight:e=>gt({btnFontWeight:e})}),"none"===Me&&wp.element.createElement(ST,{label:bT("Enable Gradient","blockspare"),checked:Ie,onChange:()=>this.props.setAttributes({enableGradient:!Ie})}))),wp.element.createElement(kT,{title:bT("Typography Settings","blockspare"),initialOpen:!1,className:"blocksapre-typograhy-settings"},rt&&wp.element.createElement(kT,{title:bT("Title/subtitle","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:bT("Title Fonts Settings"),attributes:ft,setAttributes:gt,loadGoogleFonts:{value:v,label:bT("titleLoadGoogleFonts")},fontFamily:{value:k,label:bT("titleFontFamily")},fontWeight:{value:_,label:bT("titleFontWeight")},fontSubset:{value:S,label:bT("titleFontSubset")},fontSizeType:{value:T,label:bT("titleFontSizeType")},fontSize:{value:w,label:bT("titleFontSize")},fontSizeMobile:{value:E,label:bT("titleFontSizeMobile")},fontSizeTablet:{value:x,label:bT("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:s}),wp.element.createElement(br,{label:bT("Subtitle Fonts Settings"),attributes:ft,setAttributes:gt,loadGoogleFonts:{value:C,label:bT("subTitleLoadGoogleFonts")},fontFamily:{value:O,label:bT("subTitleFontFamily")},fontWeight:{value:L,label:bT("subTitleFontWeight")},fontSubset:{value:F,label:bT("subTitleFontSubset")},fontSizeType:{value:D,label:bT("subTitleFontSizeType")},fontSize:{value:M,label:bT("subTitleFontSize")},fontSizeMobile:{value:P,label:bT("subTitleFontSizeMobile")},fontSizeTablet:{value:j,label:bT("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0})),at&&wp.element.createElement(kT,{title:bT("Pricing","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:bT("Price Fonts Settings"),attributes:ft,setAttributes:gt,loadGoogleFonts:{value:Q,label:bT("priceUnitLoadGoogleFonts")},fontFamily:{value:Z,label:bT("priceUnitFontFamily")},fontWeight:{value:ee,label:bT("priceUnitFontWeight")},fontSubset:{value:te,label:bT("priceUnitFontSubset")},fontSizeType:{value:ne,label:bT("priceUnitFontSizeType")},fontSize:{value:K,label:bT("priceUnitFontSize")},fontSizeMobile:{value:ae,label:bT("priceUnitFontSizeMobile")},fontSizeTablet:{value:re,label:bT("priceUnitFontSizeTablet")},disableLineHeight:!0})),ot&&wp.element.createElement(kT,{title:bT("Description","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:bT("Description Fonts Settings"),attributes:ft,setAttributes:gt,loadGoogleFonts:{value:Se,label:bT("descriptionLoadGoogleFonts")},fontFamily:{value:he,label:bT("descriptionFontFamily")},fontWeight:{value:ye,label:bT("descriptionFontWeight")},fontSubset:{value:we,label:bT("descriptionFontSubset")},fontSizeType:{value:ve,label:bT("descriptionFontSizeType")},fontSize:{value:ge,label:bT("descriptionFontSize")},fontSizeMobile:{value:ke,label:bT("descriptionFontSizeMobile")},fontSizeTablet:{value:_e,label:bT("descriptionFontSizeTablet")},disableLineHeight:!0})),it&&wp.element.createElement(kT,{title:bT("Button","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:bT("Button Fonts Settings"),attributes:ft,setAttributes:gt,loadGoogleFonts:{value:nt,label:bT("buttonLoadGoogleFonts")},fontFamily:{value:Xe,label:bT("buttonFontFamily")},fontWeight:{value:Ke,label:bT("buttonFontWeight")},fontSubset:{value:Qe,label:bT("buttonFontSubset")},fontSizeType:{value:Ze,label:bT("buttonFontSizeType")},fontSize:{value:Je,label:bT("buttonFontSize")},fontSizeMobile:{value:et,label:bT("buttonFontSizeMobile")},fontSizeTablet:{value:tt,label:bT("buttonFontSizeTablet")},disableLineHeight:!0}))),wp.element.createElement(kT,{title:bT("Color Settings","blockspare"),initialOpen:!1,className:"blocksapre-color-settings"},wp.element.createElement(kT,{title:bT("Block Color","blockspare"),initialOpen:!1},0<n&&wp.element.createElement(wT,{title:bT("Border Color","blockspare"),initialOpen:!1,colorSettings:[{value:a,onChange:e=>gt({itemborderColor:e}),label:bT("Border Color","blockspare")}]})),wp.element.createElement(wT,{title:bT("Item Color","blockspare"),initialOpen:!1,colorSettings:[{value:dt,onChange:e=>gt({primaryColor:e}),label:bT("Primary Color","blockspare")},{value:mt,onChange:e=>gt({secondaryColor:e}),label:bT("Secondary Color","blockspare")},{value:bt,onChange:e=>gt({tertianeryColor:e}),label:bT("Tertianery Color","blockspare")}]}),lt&&wp.element.createElement(kT,{title:bT("Icon Color","blockspare"),initialOpen:!1},wp.element.createElement(dd,{enablecontent:!1,enableColor:!0,name:N,onChangeName:e=>gt({iconName:e}),enableiconSize:!1,iconSize:z,onChangeIconSizeOptions:e=>gt({iconSize:e}),enableiconStyles:!1,iconStyles:Y,onChangeIconStyles:e=>gt({iconStyles:e}),iconBackgroundColor:B,onChangeIconBackgroundColor:e=>gt({iconBackgroundColor:e}),iconBorderColor:A,onChangeIconBorderColor:e=>gt({iconBorderColor:e}),iconColor:I,OnChangeIconColor:e=>gt({iconColor:e}),borderRadius:R,onChangeBorderRadius:e=>gt({iconBorderRadius:e})})),rt&&wp.element.createElement(kT,{title:bT("Title/subtitle Color","blockspare"),initialOpen:!1},wp.element.createElement(ci,{enableBlockGaps:!1,enableColors:!0,enablecontentgaps:!1,headerboxColor:h,onChangeboxcolor:e=>gt({headerboxColor:e}),dashColor:g,headerlayoutOption:p,onChangeDashColor:e=>gt({dashColor:e}),headertitleColor:c,onChangetitlecolor:e=>gt({headertitleColor:e}),titlePaddingTop:d,onChangetitlePaddingTop:e=>gt({titlePaddingTop:e}),titlePaddingBottom:m,onChangetitlePaddingBottom:e=>gt({titlePaddingBottom:e}),headersubtitleColor:u,onChangesubtitlecolor:e=>gt({headersubtitleColor:e}),subtitlePaddingTop:b,onChangesubtitlePaddingTop:e=>gt({subtitlePaddingTop:e}),subtitlePaddingBottom:f,onChangesubtitlePaddingBottom:e=>gt({subtitlePaddingBottom:e})})),at&&wp.element.createElement(kT,{title:bT("Pricing Color","blockspare"),initialOpen:!1},wp.element.createElement(wT,{title:bT("Color","blockspare"),initialOpen:!1,colorSettings:[{value:oe,onChange:e=>gt({priceColor:e}),label:bT("Text Color","blockspare")}]})),ot&&wp.element.createElement(kT,{title:bT("Description Color","blockspare"),initialOpen:!1},wp.element.createElement(uh,{enableColor:!0,enableOtherControl:!1,name:de,onChangeName:e=>gt({name:e}),listType:me,onChangeListStyle:e=>gt({listType:e}),orderListStyle:be,onChangeOrderListStyle:e=>gt({orderListStyle:e}),color:fe,onchangeColor:e=>gt({color:e}),backgroundColor:le,onChangeBackgroundColor:e=>gt({descriptionBacgroundColor:e}),descriptionIconColor:Ee,onchangeDescriptionIconColor:e=>gt({descriptionIconColor:e})})),it&&wp.element.createElement(kT,{title:bT("Button Color","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonBackgroundColor:!0,enableButtonTarget:!1,buttonTarget:ze,onChangeButtonTarget:e=>gt({buttonTarget:!ze}),enableGradient:Ie,onChangeGradient:e=>gt({enableGradient:e}),enableButtonSize:!1,buttonSize:je,onChangeButtonSize:e=>gt({buttonSize:e}),enableButtonShape:!1,buttonShape:Ne,onChangeButtonShape:e=>gt({buttonShape:e}),buttonBackgroundColor:Fe,onChangeButtonColor:e=>gt({buttonBackgroundColor:e}),buttonTextColor:De,onChangeButtonTextColor:e=>gt({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:Me,onChangeBorderStyle:e=>gt({buttonStyle:e}),enablehover:!1,buttonHoverEffect:$e,onchangeButtonHoverEffect:e=>gt({buttonHoverEffect:e}),borderColor:Ce,onchangeBorderColor:e=>gt({borderColor:e}),borderBtnTextColor:Le,onChangeBorderBtnTextColor:e=>gt({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:Ve,onchangebtnBorderWidth:e=>gt({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:qe,onchangeBtnFontWeight:e=>gt({btnFontWeight:e})}),Ie&&"none"===Me&&wp.element.createElement(Oe,{backgroundColor1:Re,onChangeBackgroundColor1:e=>gt({backgroundColor1:e}),backgroundColor2:He,onChangeBackgroundColor2:e=>gt({backgroundColor2:e}),gradientAngle:We,onChangeGradientAngle:e=>gt({gradientAngle:e}),colorLocation1:Ge,onChangeColorLocation1:e=>gt({colorLocation1:e}),colorLocation2:Ue,onChangeColorLocation2:e=>gt({colorLocation2:e})}))),wp.element.createElement(kT,{title:"Alignment",initialOpen:!1,className:"blocksapre-alignment-settings"},lt&&wp.element.createElement(kT,{title:"Icon"},wp.element.createElement(TT,{controls:[{icon:"align-left",title:bT("Left","blockspare"),onClick:()=>gt({iconAlignPosition:"left"}),isActive:"left"===G},{icon:"align-center",title:bT("Center","blockspare"),onClick:()=>gt({iconAlignPosition:"center"}),isActive:"center"===G},{icon:"align-right",title:bT("Right","blockspare"),onClick:()=>gt({iconAlignPosition:"right"}),isActive:"right"===G}]})),rt&&wp.element.createElement(kT,{title:"Title"},wp.element.createElement(TT,{controls:[{icon:"align-left",title:bT("Left","blockspare"),onClick:()=>gt({headerAlignPosition:"left"}),isActive:"left"===y},{icon:"align-center",title:bT("Center","blockspare"),onClick:()=>gt({headerAlignPosition:"center"}),isActive:"center"===y},{icon:"align-right",title:bT("Right","blockspare"),onClick:()=>gt({headerAlignPosition:"right"}),isActive:"right"===y}]})),at&&wp.element.createElement(kT,{title:"Price"},wp.element.createElement(TT,{controls:[{icon:"align-left",title:bT("Left","blockspare"),onClick:()=>gt({priceAlignPosition:"left"}),isActive:"left"===U},{icon:"align-center",title:bT("Center","blockspare"),onClick:()=>gt({priceAlignPosition:"center"}),isActive:"center"===U},{icon:"align-right",title:bT("Right","blockspare"),onClick:()=>gt({priceAlignPosition:"right"}),isActive:"right"===U}]})),ot&&wp.element.createElement(kT,{title:"Description"},wp.element.createElement(TT,{controls:[{icon:"align-left",title:bT("Left","blockspare"),onClick:()=>gt({descriptionAlignPosition:"left"}),isActive:"left"===ie},{icon:"align-center",title:bT("Center","blockspare"),onClick:()=>gt({descriptionAlignPosition:"center"}),isActive:"center"===ie},{icon:"align-right",title:bT("Right","blockspare"),onClick:()=>gt({descriptionAlignPosition:"right"}),isActive:"right"===ie}]})),it&&wp.element.createElement(kT,{title:"Button"},wp.element.createElement(TT,{controls:[{icon:"align-left",title:bT("Left","blockspare"),onClick:()=>gt({buttonAlignPosition:"left"}),isActive:"left"===xe},{icon:"align-center",title:bT("Center","blockspare"),onClick:()=>gt({buttonAlignPosition:"center"}),isActive:"center"===xe},{icon:"align-right",title:bT("Right","blockspare"),onClick:()=>gt({buttonAlignPosition:"right"}),isActive:"right"===xe}]}))),wp.element.createElement(kT,{title:bT("Gaps Settings","blockspare"),initialOpen:!1,className:"blocksapre-gaps-settings"},wp.element.createElement(kT,{title:bT("Block","blockspare"),initialOpen:!1},wp.element.createElement(_T,{label:bT("Pricing Column Padding","blockspare"),value:i,onChange:e=>this.props.setAttributes({itempadding:e}),min:0,max:20,step:1})),lt&&wp.element.createElement(kT,{title:bT("Icon Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:H,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>gt({iconmarginTop:e}),marginEnableBottom:!0,marginBottom:W,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>gt({iconmarginBottom:e})})),st&&wp.element.createElement(kT,{title:bT("Image Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:ct,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>gt({imgPaddingTop:e}),paddingEnableBottom:!0,paddingBottom:ut,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>gt({imgPaddingBottom:e})})),rt&&wp.element.createElement(ci,{enableBlockGaps:!1,enableColors:!1,enablecontentgaps:!0,headerboxColor:h,onChangeboxcolor:e=>gt({headerboxColor:e}),dashColor:g,headerlayoutOption:p,onChangeDashColor:e=>gt({dashColor:e}),headertitleColor:c,onChangetitlecolor:e=>gt({headertitleColor:e}),titlePaddingTop:d,onChangetitlePaddingTop:e=>gt({titlePaddingTop:e}),titlePaddingBottom:m,onChangetitlePaddingBottom:e=>gt({titlePaddingBottom:e}),headersubtitleColor:u,onChangesubtitlecolor:e=>gt({headersubtitleColor:e}),subtitlePaddingTop:b,onChangesubtitlePaddingTop:e=>gt({subtitlePaddingTop:e}),subtitlePaddingBottom:f,onChangesubtitlePaddingBottom:e=>gt({subtitlePaddingBottom:e})}),at&&wp.element.createElement(kT,{title:bT("Price Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:V,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>gt({pricePaddingTop:e}),paddingEnableRight:!0,paddingRight:$,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>gt({pricePaddingRight:e}),paddingEnableBottom:!0,paddingBottom:J,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>gt({pricePaddingBottom:e}),paddingEnableLeft:!0,paddingLeft:X,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>gt({pricePaddingLeft:e})})),ot&&wp.element.createElement(kT,{title:bT("Description Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:se,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>gt({descriptionpaddingTop:e}),paddingEnableRight:!0,paddingRight:ce,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>gt({descriptionpaddingRight:e}),paddingEnableBottom:!0,paddingBottom:ue,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>gt({descriptionpaddingBottom:e}),paddingEnableLeft:!0,paddingLeft:pe,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>gt({descriptionpaddingLeft:e})})),it&&wp.element.createElement(kT,{title:bT("Button Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:Be,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>gt({buttonPaddingTop:e}),paddingEnableBottom:!0,paddingBottom:Ae,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>gt({buttonPaddingBottom:e})})))))}}function xT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function MT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xT(Object(n),!0).forEach((function(t){CT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OT=e=>{const t=e.attributes,n=t.itemborderWidth,a=t.itemborderColor,r=t.itemborderRadius,o=t.itembackgroundColor,i=t.itempadding,l=t.badgeBackGroundColor,s=t.badgeImgSize,c=t.badgeTextColor,u=t.badgeFontSize,p=t.badgeFontFamily,d=t.badgeFontWeight,m=(t.badgeFontSubset,t.badgeFontSizeType),b=t.badgeFontSizeMobile,f=t.badgeFontSizeTablet,g=t.badgeOption,h=t.enableBadge,y=t.badgeText,w=(t.badgeStyle,t.pricingLayout),v=t.primaryColor,k=t.secondaryColor,_=t.tertianeryColor,S=[];return S.push({".blockspare-block-pricing-table-inside":MT(MT({},Qi(e.attributes)),{},{borderWidth:n?n+"px":null,borderStyle:0<n?"solid":null,borderColor:a||"#fff",borderRadius:r?r+"px":null,backgroundColor:o||null,padding:i+"px"}),".blockspare-badge span":{color:c||"#fff",backgroundColor:l},".blockspare-badge-image":{width:s+"px"}}),h&&"badge-text"===g&&y&&S.push({".blockspare-badge span":{fontSize:u+m,fontFamily:p,fontWeight:d},tablet:{".blockspare-badge span":{fontSize:f+m}},mobile:{".blockspare-badge span":{fontSize:b+m}}}),"bpl-1"===w&&(S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-1:before":{backgroundColor:v||"#3C1A5B"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-2:before":{backgroundColor:k||"#F3F3F3"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-3:before":{backgroundColor:_||"#FFFFFF"}})),"bpl-2"===w&&(S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-1:before":{backgroundColor:v||"#3C1A5B"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-2:before":{backgroundColor:k||"#F3F3F3"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-3:before":{backgroundColor:_||"#FFFFFF"}})),"bpl-3"===w&&(S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-1:before":{backgroundColor:v||"#3C1A5B"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-2:before":{backgroundColor:k||"#F3F3F3"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-3:before":{backgroundColor:_||"#FFFFFF"}})),"bpl-4"===w&&(S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-1:before":{backgroundColor:v||"#3C1A5B"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-2:before":{backgroundColor:k||"#F3F3F3"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-3:before":{backgroundColor:_}})),"bpl-5"===w&&(S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-1:before":{backgroundColor:v||"#3C1A5B"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-2:before":{backgroundColor:k||"#F3F3F3"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-3:before":{backgroundColor:_||"#FFFFFF"}})),"bpl-6"===w&&(S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-1:before":{backgroundColor:v||"#3C1A5B"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-2:before":{backgroundColor:k||"#F3F3F3"}}),S.push({".blockspare-block-pricing-table-inside .blockspare-pricing-wrap-3:before":{backgroundColor:_||"#FFFFFF"}})),qr.a.all(S)};var LT=e=>{const t=e.attributes,n=(t.sectionAlignment,t.iconStyles),a=t.iconBackgroundColor,r=t.iconBorderColor,o=t.iconColor,i=t.iconBorderRadius,l=t.iconmarginTop,s=t.iconmarginBottom,c=t.iconAlignPosition,u=[];return u.push({".blockspare-block-icon-wrapper":{textAlign:c,marginTop:l+"px",marginBottom:s+"px"}}),"blockspare-icon-style2"===n?u.push({".blockspare-block-icon":{backgroundColor:a||"#8b249c",borderColor:r||"#8b249c",color:o||"#fff",borderRadius:i+"%"}}):"blockspare-icon-style3"===n?u.push({".blockspare-block-icon":{backgroundColor:"transparent",borderColor:r||"#8b249c",color:o||"#fff",borderRadius:i+"%"}}):u.push({".blockspare-block-icon":{color:o||"#fff"}}),qr.a.all(u)};const FT=wp.element,DT=FT.Component,PT=FT.Fragment,jT=(wp.i18n.__,wp.compose.compose),NT=wp.blockEditor;NT.AlignmentToolbar,NT.BlockControls;var zT=jT(Gr,Rr(LT,{editorMode:!0}))(class extends DT{constructor(){super(...arguments),this.state={device:"md",spacer:!0}}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}render(){const e=this.props,t=e.attributes,n=t.iconName,a=t.iconSize,r=t.iconStyles,o=(t.sectionAlignment,e.className),l=(e.attributes,e.setAttributes,i()([o,"blockspare-blocks blockpare-priceicon"]));return wp.element.createElement(PT,null,wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r)},wp.element.createElement("i",{className:n})))))}});var YT=e=>{const t=e.attributes,n=t.headerAlignPosition,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.titleFontFamily,d=t.titleFontWeight,m=t.titleFontSizeType,b=t.titleFontSizeMobile,f=t.titleFontSizeTablet,g=t.subTitleFontSize,h=(t.subTitleLoadGoogleFonts,t.subTitleFontFamily),y=t.subTitleFontWeight,w=(t.subTitleFontSubset,t.subTitleFontSizeType),v=t.subTitleFontSizeMobile,k=t.subTitleFontSizeTablet,_=t.headerpaddingTop,S=(t.headerpaddingRight,t.headerpaddingBottom),T=(t.headerpaddingLeft,t.headermarginTop),E=t.headermarginBottom,x=[];return x.push({".blockspare-section-head-wrap":{textAlign:n,paddingTop:_+"px",paddingBottom:S+"px",marginTop:T+"px",marginBottom:E+"px"}}),x.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+m,fontFamily:p,fontWeight:d,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:g+w,fontFamily:h,fontWeight:y,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-title":{fontSize:f+m},".blockspare-subtitle":{fontSize:k+w}},mobile:{".blockspare-title":{fontSize:b+m},".blockspare-subtitle":{fontSize:v+w}}}),qr.a.all(x)};const BT=wp.element,AT=BT.Component,IT=BT.Fragment,RT=(wp.i18n.__,wp.compose.compose),HT=wp.blockEditor;HT.RichText,HT.AlignmentToolbar,HT.BlockControls;var WT=RT(Gr,Rr(YT))(class extends AT{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.align,t.headerAlignPosition),a=t.headerTagOption,r=t.headerTitle,o=t.headerSubTitle,l=t.headerlayoutOption,s=t.titleLoadGoogleFonts,c=t.titleFontFamily,u=t.titleFontWeight,p=t.subTitleLoadGoogleFonts,d=t.subTitleFontFamily,m=t.subTitleFontWeight,b=e.className,f=(e.attributes,e.setAttributes),g=i()([b,"blockspare-section-header-wrapper blockspare-blocks"]);return[wp.element.createElement(IT,null,wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",l,"blockspare-"+n)},wp.element.createElement(Ki,{setAttributes:f,headerTitle:r,headerTagOption:a,headerSubTitle:o,titleFontFamily:c,titleFontWeight:u,titleLoadGoogleFonts:s,subTitleLoadGoogleFonts:p,subTitleFontFamily:d,subTitleFontWeight:m}))))]}});var GT=e=>{const t=e.attributes,n=t.priceAlignPosition,a=t.priceColor,r=t.pricePaddingTop,o=t.pricePaddingRight,i=t.pricePaddingBottom,l=t.pricePaddingLeft,s=t.priceMarginTop,c=t.priceMarginBottom,u=t.priceUnitFontSize,p=t.priceUnitFontFamily,d=t.priceUnitFontWeight,m=t.priceUnitFontSizeType,b=t.priceUnitFontSizeMobile,f=t.priceUnitFontSizeTablet;var g=u,h=Math.floor(g/2.5),y=Math.floor(g/2.5),w=f,v=Math.floor(w/2.5),k=Math.floor(v/2.5),_=b,S=Math.floor(_/1.5),T=Math.floor(S/1.5);const E=[];return E.push({".blockspare-pricing-table-price-wrap":{textAlign:n,paddingTop:r?r+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:i?i+"px":void 0,paddingLeft:l?l+"px":void 0,marginTop:s+"px",marginBottom:c+"px"},".blockspare-pricing-table-price":{color:a,fontSize:u+m,fontFamily:p,fontWeight:d},".blockspare-pricing-table-currency":{color:a,fontSize:h+"px",fontFamily:p,fontWeight:d},".blockspare-pricing-table-term":{color:a,fontSize:y+"px",fontFamily:p,fontWeight:d},tablet:{".blockspare-pricing-table-price":{fontSize:f+m},".blockspare-pricing-table-currency":{fontSize:v+m},".blockspare-pricing-table-term":{fontSize:k+m}},mobile:{".blockspare-pricing-table-price":{fontSize:b+m},".blockspare-pricing-table-currency":{fontSize:S+m},".blockspare-pricing-table-term":{fontSize:T+m}}}),qr.a.all(E)};const UT=wp.i18n.__,qT=(wp.blocks.registerBlockType,wp.compose.compose),VT=wp.element,$T=VT.Component,JT=VT.Fragment,XT=wp.blockEditor,KT=XT.RichText;XT.withFontSizes,XT.withColors,XT.AlignmentToolbar,XT.BlockControls;var QT=qT([Gr,Rr(GT)])(class extends $T{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.price),a=t.currency,r=t.term,o=t.showTerm,l=t.showCurrency,s=(t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft,t.priceUnitLoadGoogleFonts),c=t.priceUnitFontFamily,u=t.priceUnitFontWeight,p=(e.isSelected,e.className),d=e.setAttributes;e.fallbackFontSize,e.fontSize,e.backgroundColor,e.textColor;let m;if(1==s){const e={google:{families:[c+(u?":"+u:"")]}};m=wp.element.createElement(oo,{config:e})}const b=i()({"blockspare-pricing-table-price-wrap":!0,"blockspare-pricing-has-currency":l}),f=i()({"blockspare-pricing-table-price":!0}),g=i()([p,"blockpare-priceunit"]);return[wp.element.createElement(JT,null,wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:b||void 0},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},l&&wp.element.createElement(KT,{tagName:"span",itemProp:"priceCurrency",placeholder:UT("$","blockspare"),keepPlaceholderOnFocus:!0,value:a,className:"blockspare-pricing-table-currency"}),wp.element.createElement(KT,{tagName:"div",itemProp:"price",placeholder:UT("49","blockspare"),keepPlaceholderOnFocus:!0,value:n,onChange:e=>d({price:e}),className:f||void 0,className:"blockspare-pricing-table-price"}),o&&wp.element.createElement(KT,{tagName:"span",value:r,placeholder:UT("/mo","blockspare"),keepPlaceholderOnFocus:!0,onChange:e=>d({term:e}),className:"blockspare-pricing-table-term"})))),m)]}});var ZT=e=>{const t=e.attributes,n=t.descriptionAlignPosition,a=t.descriptionborderColor,r=t.descriptionpaddingTop,o=t.descriptionpaddingRight,i=t.descriptionpaddingBottom,l=t.descriptionpaddingLeft,s=t.descriptionMarginTop,c=t.descriptionMarginBottom,u=t.color,p=t.descriptionFontSize,d=t.descriptionFontFamily,m=t.descriptionFontWeight,b=(t.descriptionFontSubset,t.descriptionFontSizeType),f=t.descriptionFontSizeMobile,g=t.descriptionFontSizeTablet,h=t.descriptionIconColor,y=[];let w;return w=p>=16?p-6:p-4,y.push({".blockspare-list-wrap":{paddingTop:r?r+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:i?i+"px":void 0,paddingLeft:l?l+"px":void 0,marginTop:s+"px",marginBottom:c+"px"},".blockspare-pricing-table-features li":{borderColor:a||void 0,textAlign:n,color:u||"#000",fontSize:p+b,fontFamily:d,fontWeight:m},".blockspare-pricing-table-features li:before":{fontSize:w+b,color:h},tablet:{".blockspare-pricing-table-features":{fontSize:g+b}},mobile:{"blockspare-pricing-table-features":{fontSize:f+b}}}),qr.a.all(y)};const eE=wp.i18n.__,tE=wp.compose.compose,nE=wp.element,aE=nE.Component,rE=nE.Fragment,oE=wp.blockEditor,iE=oE.RichText;oE.withFontSizes,oE.withColors,oE.AlignmentToolbar,oE.BlockControls,oE.BlockAlignmentToolbar;var lE=tE([Gr,Rr(ZT)])(class extends aE{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.features,a=(t.borderStyle,t.descriptionborderWidth),r=(t.sectionAlignment,t.name),o=t.listType,l=t.descriptionborderStyle,s=(t.color,t.descriptionLoadGoogleFonts),c=t.descriptionFontFamily,u=t.orderListStyle,p=t.descriptionFontWeight,d=(e.isSelected,e.className),m=e.setAttributes;e.fallbackFontSize,e.fontSize,e.backgroundColor,e.textColor;let b;if(1==s){const e={google:{families:[c+(p?":"+p:"")]}};b=wp.element.createElement(oo,{config:e})}let f="";f="ul"==o?r:"ol"==o?u:"";const g=i()([d,"blockspare-pirce-description"]);return wp.element.createElement(rE,null,wp.element.createElement("div",{className:g},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(iE,{tagName:"none"==o?"ul":o,multiline:"li",itemProp:"description",placeholder:eE("Add a product feature","blockspare"),keepPlaceholderOnFocus:!0,value:n,onChange:e=>m({features:e}),className:i()("blockspare-pricing-table-features",l,"blockspare-list-border-width-"+a,f)}))),b)}});var sE=e=>{const t=e.attributes,n=t.buttonAlignPosition,a=t.buttonPaddingTop,r=t.buttonPaddingRight,o=t.buttonPaddingBottom,i=t.buttonPaddingLeft,l=t.buttonStyle,s=t.enableGradient,c=t.backgroundColor1,u=t.backgroundColor2,p=t.gradientAngle,d=t.colorLocation1,m=t.colorLocation2,b=(t.btnFontWeight,t.btnBorderWidth),f=t.borderColor,g=t.buttonBackgroundColor,h=t.borderBtnTextColor,y=t.buttonTextColor,w=t.buttonFontSize,v=t.buttonFontFamily,k=t.buttonFontWeight,_=t.buttonFontSizeType,S=t.buttonFontSizeMobile,T=t.buttonFontSizeTablet,E=t.enableButtonIcon,x=t.buttonIconColor,M=[];if(M.push({".blockspare-block-button":{textAlign:n},".blockspare-pricing-table-button":{paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),"none"===l)if(1==s){const e=p+"deg",t=d+"%",n=m+"%";M.push({".blockspare-block-button span":{color:y||"#fff",borderWidth:b+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${c||"#3B1A5B"} ${t},${u||"#8B249C"} ${n})`}})}else M.push({".blockspare-block-button span":{color:y||"#fff",borderWidth:b+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:g||"#3c1a5b"}}),E&&M.push({".blockspare-block-button i":{color:x}});else M.push({".blockspare-block-button span":{color:h||"#404040"},".blockspare-block-button .blockspare-button":{borderColor:f||"#3c1a5b",borderStyle:l,borderWidth:b+"px",backgroundColor:"transparent"}}),E&&M.push({".blockspare-block-button i":{color:x||"#404040"}});return M.push({".blockspare-block-button span":{fontSize:w+_,fontFamily:v,fontWeight:k},tablet:{".blockspare-block-button span":{fontSize:T+_}},mobile:{".blockspare-block-button span":{fontSize:S+_}}}),qr.a.all(M)};const cE=wp.i18n.__,uE=wp.compose.compose,pE=wp.element,dE=pE.Component,mE=pE.Fragment,bE=wp.blockEditor,fE=bE.RichText,gE=(bE.AlignmentToolbar,bE.BlockControls,bE.URLInput),hE=wp.components,yE=hE.IconButton,wE=hE.Dashicon;var vE=uE([Gr,Rr(sE)])(class extends dE{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.sectionAlignment,o=t.buttonSize,l=t.buttonShape,s=t.buttonHoverEffect,c=t.buttonLoadGoogleFonts,u=t.buttonFontFamily,p=t.buttonFontWeight,d=t.enableButtonIcon,m=t.buttonIcon,b=t.buttonIconPosition,f=e.className,g=(e.isSelected,e.attributes,e.setAttributes);e.backgroundColor;let h;if(1==c){const e={google:{families:[u+(p?":"+p:"")]}};h=wp.element.createElement(oo,{config:e})}const y=i()({"blockspare-pricing-table-button":!0}),w=i()([f,"blockspare-block-button-wrap"]);return[wp.element.createElement(mE,null,wp.element.createElement("div",{className:w},this.props.styles,wp.element.createElement("div",{className:y||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},wp.element.createElement("a",{href:"#",className:i()("blockspare-button",l,o,s,b)},d&&wp.element.createElement("i",{className:m}),wp.element.createElement(fE,{tagName:"span",placeholder:cE("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:""+n,allowedFormats:[],onChange:e=>g({buttonText:e})}))),wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+r,onSubmit:e=>e.preventDefault()},wp.element.createElement(wE,{icon:"admin-links"}),wp.element.createElement(gE,{className:"button-url",value:a,onChange:e=>g({buttonUrl:e})}),wp.element.createElement(yE,{icon:"editor-break",label:cE("Apply","blockspare"),type:"submit"})))),h)]}});var kE=e=>{const t=e.attributes,n=t.imgPaddingTop,a=t.imgPaddingBottom,r=[];return r.push({".blockspare-pricing-image":{paddingTop:n+"px",paddingBottom:a+"px"}}),qr.a.all(r)};const _E=wp.i18n.__,SE=wp.element,TE=SE.Component,EE=SE.Fragment,xE=wp.compose.compose,ME=wp.blockEditor.MediaUpload,CE=wp.components.IconButton;var OE=xE(Gr,Rr(kE))(class extends TE{render(){const e=this.props,t=e.attributes,n=t.imgURL,a=t.imgID,r=t.imgAlt,o=(e.attributes,e.setAttributes),i=()=>{o({imgID:null,imgURL:null,imgAlt:null})};return wp.element.createElement(EE,null,wp.element.createElement("div",{className:"blockspare-img-wrap"},this.props.styles,wp.element.createElement(ME,{onSelect:e=>{o({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:a,render:({open:e})=>wp.element.createElement("div",{className:"img-controls"},wp.element.createElement(CE,{className:"aft-cta-inspector-media",label:_E("Edit image","blockspare"),icon:"format-image",onClick:e},n&&!!n.length&&wp.element.createElement("p",null,_E("Edit Image","blockspare")),!n&&wp.element.createElement("p",null,_E("Add Image","blockspare"))),n&&!!n.length&&wp.element.createElement(CE,{className:"blockspare-cta-inspector-media",label:_E("Remove Image","blockspare"),icon:"dismiss",onClick:i},_E("Remove","blockspare")))}),wp.element.createElement("div",{className:"blockspare-pricing-image"},n&&!!n.length&&wp.element.createElement("img",{src:n,alt:r}))))}});wp.i18n.__;const LE=wp.element,FE=LE.Component,DE=LE.Fragment,PE=wp.compose.compose,jE=wp.blockEditor;jE.RichText,jE.AlignmentToolbar,jE.BlockControls;var NE=PE(Gr,Rr(OT))(class extends FE{render(){const e=this.props,t=e.attributes,n=t.alignment,a=t.sectionScale,r=t.enableBadge,o=t.badgeText,l=t.badgeStyle,s=t.badgeOption,c=(t.imgID1,t.imgURL1),u=t.imgAlt1,p=t.enablePrice,d=t.enableSectionHeader,m=t.enableDescription,b=t.enableButton,f=t.enableIcon,g=t.enableImage,h=t.pricingLayout,y=(e.attributes,e.isSelected,e.className);e.setAttributes;let w="";return w=r&&o&&"badge-text"===s?l:r&&"badge-image"===s?l+" has-image":"",wp.element.createElement(DE,null,wp.element.createElement(ET,this.props),wp.element.createElement("div",{className:i()(y,n?"blockspare-block-pricing-table-"+n:"blockspare-block-pricing-table-center","blockspare-block-pricing-table",f&&g?"enable-img-icon":"",f?"enable-icon":"",g?"enable-img":"","bpl-1"==h?"layout-item-1 order-1":"","bpl-2"==h?"layout-item-1 order-2":"","bpl-3"==h?"layout-item-1 order-3":"","bpl-4"==h?"layout-item-2 order-1":"","bpl-5"==h?"layout-item-2 order-2":"","bpl-6"==h?"layout-item-2 order-3":"")},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-pricing-table-inside",w,(v=a,"has-scale-ratio-"+1*Math.round(v)),{"has-scale-ratio":0!==a})},r&&o&&"badge-text"===s&&wp.element.createElement("div",{className:"blockspare-badge-wrapper"},wp.element.createElement("div",{className:"blockspare-badge"},wp.element.createElement("span",{className:i()(l)},o))),r&&"badge-image"===s&&wp.element.createElement("div",{className:i()(l,"blockspare-badge-image")},wp.element.createElement("img",{src:c,alt:u})),wp.element.createElement("div",{className:"blockspare-pricing-wrap-1"},f&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(zT,this.props),g&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(OE,this.props),p&&("bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(QT,this.props)),wp.element.createElement("div",{className:"blockspare-pricing-wrap-2"},d&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(WT,this.props),p&&("bpl-1"==h||"bpl-2"==h||"bpl-3"===h)&&wp.element.createElement(QT,this.props),m&&("bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(lE,this.props)),wp.element.createElement("div",{className:"blockspare-pricing-wrap-3"},m&&("bpl-1"==h||"bpl-2"===h||"bpl-3"===h)&&wp.element.createElement(lE,this.props),b&&("bpl-1"===h||"bpl-2"===h||"bpl-3"===h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(vE,this.props)))));var v}});wp.i18n.__;const zE=wp.element,YE=zE.Component,BE=zE.Fragment,AE=wp.compose.compose;var IE=AE(Gr,Rr(kE))(class extends YE{render(){const e=this.props.attributes.imgURL;return wp.element.createElement(BE,null,this.props.styles,wp.element.createElement("div",{className:"blockspare-pricing-image"},e&&wp.element.createElement("img",{src:e})))}});const RE=wp.element.Component,HE=wp.compose.compose;var WE=HE(Gr,Rr(LT))(class extends RE{render(){const e=this.props,t=e.attributes,n=t.iconName,a=t.iconSize,r=t.iconStyles,o=e.className,l=i()([o,"blockspare-blocks blockpare-priceicon"]);return wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r)},wp.element.createElement("i",{className:n}))))}});const GE=wp.element.Component,UE=(wp.i18n.__,wp.compose.compose);var qE=UE(Gr,Rr(YT))(class extends GE{render(){const e=this.props,t=e.attributes,n=(t.align,t.headerAlignPosition),a=t.headerTitle,r=t.headerTagOption,o=t.headerSubTitle,l=t.headerlayoutOption,s=e.className,c=(e.attributes,e.setAttributes,e.isSelected,i()([s,"blockspare-section-header-wrapper blockspare-blocks"]));return wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",l,"blockspare-"+n)},wp.element.createElement(Ml,{headerTitle:a,headerTagOption:r,headerSubTitle:o})))}});wp.i18n.__;const VE=wp.element,$E=VE.Component,JE=(VE.Fragment,wp.compose.compose),XE=wp.blockEditor,KE=XE.RichText;XE.getFontSizeClass,XE.getColorClassName;var QE=JE(Gr,Rr(GT))(class extends $E{render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.price),a=t.currency,r=(t.fontSize,t.customFontSize,t.backgroundColor,t.textColor,t.customBackgroundColor,t.customTextColor,t.term),o=t.showTerm,l=t.showCurrency,s=(t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft,e.className),c=i()({"blockspare-pricing-table-price-wrap":!0,"blockspare-pricing-has-currency":l}),u=i()({"blockspare-pricing-table-price":!0}),p=i()([s,"blockpare-priceunit"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:c||void 0},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&l&&wp.element.createElement(KE.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"blockspare-pricing-table-currency"}),wp.element.createElement(KE.Content,{tagName:"div",itemProp:"price",value:n,className:u||void 0}),r&&o&&wp.element.createElement(KE.Content,{tagName:"span",value:r,className:"blockspare-pricing-table-term"}))))}});wp.i18n.__;const ZE=wp.element,ex=ZE.Component,tx=(ZE.Fragment,wp.compose.compose),nx=wp.blockEditor.RichText;var ax=tx(Gr,Rr(ZT))(class extends ex{render(){const e=this.props,t=e.attributes,n=t.features,a=(t.borderStyle,t.descriptionborderWidth),r=t.name,o=t.listType,l=t.orderListStyle,s=t.descriptionborderStyle,c=(t.color,e.className);let u="";u="ul"==o?r:"ol"==o?l:"";const p=i()([c,"blockspare-pirce-description"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(nx.Content,{tagName:"none"==o?"ul":o,multiline:"li",itemProp:"description",value:n,className:i()("blockspare-pricing-table-features",s,"blockspare-list-border-width-"+a,u)})))}});const rx=wp.blockEditor,ox=rx.RichText,ix=(rx.getColorClassName,wp.i18n.__,wp.compose.compose),lx=wp.element,sx=lx.Component;lx.Fragment;var cx=ix(Gr,Rr(sE))(class extends sx{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonSize,o=t.buttonShape,l=t.buttonTarget,s=t.buttonHoverEffect,c=t.enableButtonIcon,u=t.buttonIcon,p=t.buttonIconPosition,d=(e.attributes,e.className),m=i()({"blockspare-pricing-table-button":!0}),b=i()([d,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:b},this.props.styles,wp.element.createElement("div",{className:m||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",o,r,s,p)},c&&wp.element.createElement("i",{className:u}),wp.element.createElement(ox.Content,{tagName:"span",value:n})))))}});wp.i18n.__;const ux=wp.element,px=ux.Component,dx=(ux.Fragment,wp.compose.compose);wp.blockEditor.RichText;var mx=dx(Gr,Rr(OT))(class extends px{render(){const e=this.props,t=e.attributes,n=t.alignment,a=t.sectionScale,r=t.enableBadge,o=t.badgeText,l=t.badgeStyle,s=t.badgeOption,c=(t.imgID1,t.imgURL1),u=t.imgAlt1,p=t.enablePrice,d=t.enableSectionHeader,m=t.enableDescription,b=t.enableButton,f=t.enableIcon,g=t.enableImage,h=t.pricingLayout,y=e.className;e.attributes;let w="";return w=r&&o&&"badge-text"===s?l:r&&"badge-image"===s?l+" has-image":"",wp.element.createElement("div",{className:i()(y,n?"blockspare-block-pricing-table-"+n:"blockspare-block-pricing-table-center","blockspare-block-pricing-table",f&&g?"enable-img-icon":"",f?"enable-icon":"",g?"enable-img":"","bpl-1"==h?"layout-item-1 order-1":"","bpl-2"==h?"layout-item-1 order-2":"","bpl-3"==h?"layout-item-1 order-3":"","bpl-4"==h?"layout-item-2 order-1":"","bpl-5"==h?"layout-item-2 order-2":"","bpl-6"==h?"layout-item-2 order-3":""),itemScope:!0,itemType:"http://schema.org/Product"},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-pricing-table-inside",w,(v=a,"has-scale-ratio-"+1*Math.round(v)),{"has-scale-ratio":0!==a})},r&&o&&"badge-text"===s&&wp.element.createElement("div",{className:"blockspare-badge-wrapper"},wp.element.createElement("div",{className:"blockspare-badge"},wp.element.createElement("span",{className:i()(l)},o))),r&&"badge-image"===s&&wp.element.createElement("div",{className:i()(l,"blockspare-badge-image")},wp.element.createElement("img",{src:c,alt:u})),wp.element.createElement("div",{className:"blockspare-pricing-wrap-1"},f&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(WE,this.props),g&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement("div",{className:"blockspare-img-wrap"},wp.element.createElement(IE,this.props)),p&&("bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(QE,this.props)),wp.element.createElement("div",{className:"blockspare-pricing-wrap-2"},d&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(qE,this.props),p&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h)&&wp.element.createElement(QE,this.props),m&&("bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(ax,this.props)),wp.element.createElement("div",{className:"blockspare-pricing-wrap-3"},m&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h)&&wp.element.createElement(ax,this.props),b&&("bpl-1"==h||"bpl-2"==h||"bpl-3"==h||"bpl-4"==h||"bpl-5"==h||"bpl-6"==h)&&wp.element.createElement(cx,this.props))));var v}});var bx=n(285),fx=n(286),gx=n(287),hx=n(288),yx=n(289);function wx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wx(Object(n),!0).forEach((function(t){kx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _x=wp.i18n.__,Sx=wp.blocks.registerBlockType,Tx=(pT.name,pT.category),Ex=vx(vx(vx(vx(vx(vx(vx(vx(vx({},pT.attributes),hx.attributes),yx.attributes),ei),bx.attributes),fx.attributes),gx.attributes),ti),{},{headerpaddingTop:{type:"number",default:10},headerpaddingRight:{type:"number",default:20},headerpaddingBottom:{type:"number",default:10},headerpaddingLeft:{type:"number",default:20},headermarginTop:{type:"number",default:0},headermarginBottom:{type:"number",default:0}}),xx={title:_x("BS Pricing Table","blockspare"),description:_x("Add a pricing Table.","blockspare"),icon:r.pricingTable,category:Tx,parent:["blockspare/blockspare-pricing"],keywords:[_x("pricing","blockspare"),_x("shop","blockspare"),_x("buy","blockspare")],attributes:Ex,edit:NE,save:mx};Sx("blockspare/blockspare-pricing-inner-item",xx);var Mx=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=[];return r.push({".blockspare-pricing-block-wrapper":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0}}),qr.a.all(r)};function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ox(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lx=wp.element,Fx=Lx.Component,Dx=Lx.Fragment,Px=(wp.i18n.__,wp.compose.compose),jx=wp.blocks.createBlock,Nx=wp.data,zx=Nx.withSelect,Yx=Nx.withDispatch,Bx=wp.blockEditor.InnerBlocks;var Ax=Px([zx((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),Yx(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}}),Gr,Rr(Mx)])(class extends Fx{constructor(...e){super(...e),Ox(this,"getServiceTemplate",e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++)t.push(["blockspare/blockspare-pricing-inner-item",{}]);return t})}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertServiceItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes.itemNumber+1,n=xx.heading;e=Object.assign({},{},{itemNumber:t,heading:n,active:!1,defaultText:""})}else e=xx;a(jx("blockspare/blockspare-pricing-inner-item",e),void 0,n)}render(){const e=this.props,t=e.attributes,n=t.columns,a=(t.marginTop,t.marginBottom,t.columnsGap),r=e.attributes,o=(e.isSelectedBlockInRoot,e.className),l=e.setAttributes,s=i()(["blockspare-pricing-columns-"+n]),c=i()([o,"blockspare-main-blockwrapper"]);return wp.element.createElement(Dx,null,wp.element.createElement(uT,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cx(Object(n),!0).forEach((function(t){Ox(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:l},this.props)),wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:"blockspare-blocks blockspare-pricing-block-wrapper"},wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:i()("blockspare-pricing-table-wrap-admin","blockspare-block-pricing-table-gap-"+a)},wp.element.createElement(Bx,{template:this.getServiceTemplate(r),allowedBlocks:["blockspare/blockspare-pricing-inner-item"],renderAppender:!1}))))))}});wp.i18n.__;const Ix=wp.element.Component,Rx=wp.compose.compose,Hx=wp.blockEditor.InnerBlocks;var Wx=Rx(Gr,Rr(Mx))(class extends Ix{render(){const e=this.props,t=e.attributes,n=(t.align,t.columns),a=t.columnsGap,r=(t.marginTop,t.marginBottom,e.className),o=i()(["blockspare-pricing-table-wrap","blockspare-block-pricing-table-gap-"+a]),l=i()(["blockspare-pricing-columns-"+n]),s=i()([r,"blockspare-main-blockwrapper"]);return wp.element.createElement("div",{className:s},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-pricing-block-wrapper")},wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:o||void 0},wp.element.createElement(Hx.Content,null)))))}});const Gx=wp.element.Component;class Ux extends Gx{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.columns,a=(t.columnsGap,t.align),r=(e.attributes,i()([this.props.className,"blockspare-pricing-columns-"+n],{["align"+a]:a}));return wp.element.createElement("div",{className:r||void 0},this.props.children)}}n(523),n(524);var qx=n(37);const Vx=wp.i18n.__,$x=wp.element,Jx=$x.Component,Xx=($x.Fragment,wp.blockEditor),Kx=Xx.InspectorControls,Qx=(Xx.BlockDescription,Xx.MediaUpload,Xx.PanelColorSettings),Zx=wp.components,eM=(Zx.Dashicon,Zx.Button,Zx.PanelBody),tM=(Zx.SelectControl,Zx.FormToggle,Zx.RangeControl);Zx.TextControl,Zx.ToggleControl;class nM extends Jx{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.borderWidth,a=t.borderColor,r=(t.borderRadius,t.backgroundColor),o=t.padding,i=t.sectionScale,l=(t.enableBadge,t.badgeText,t.badgeStyle,t.badgeOption,t.imgID1,t.imgURL1,t.imgAlt1,t.badgeTextColor,t.badgeBackGroundColor,t.badgeImgSize,t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,e.isSelected,e.className,e.setAttributes);Vx("Style 1","blockspare"),Vx("Style 2","blockspare"),Vx("Style 3","blockspare"),Vx("Text","blockspare"),Vx("Image","blockspare");return wp.element.createElement(Kx,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(eM,{title:Vx("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(tM,{label:Vx("Pricing Column Padding","blockspare"),value:o,onChange:e=>this.props.setAttributes({padding:e}),min:0,max:20,step:1}),wp.element.createElement(tM,{label:Vx("Pricing Column Border","blockspare"),value:n,onChange:e=>this.props.setAttributes({borderWidth:e}),min:0,max:10,step:1}),wp.element.createElement(tM,{label:Vx("Scale Ratio","blockspare"),value:i,onChange:e=>this.props.setAttributes({sectionScale:e}),min:0,max:2,step:1})),wp.element.createElement(eM,{title:Vx("Color Settings","blockspare"),initialOpen:!1},0<n&&wp.element.createElement(Qx,{title:Vx("Border Color","blockspare"),initialOpen:!1,colorSettings:[{value:a,onChange:e=>l({borderColor:e}),label:Vx("Border Color","blockspare")}]}),wp.element.createElement(Qx,{title:Vx("Background Color","blockspare"),initialOpen:!1,colorSettings:[{value:r,onChange:e=>l({backgroundColor:e}),label:Vx("Background Color","blockspare")}]}))))}}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function rM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach((function(t){oM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iM=e=>{const t=e.attributes,n=t.borderWidth,a=t.borderColor,r=t.borderRadius,o=t.backgroundColor,i=t.padding,l=(t.color,t.badgeBackGroundColor),s=t.badgeImgSize,c=t.badgeTextColor,u=[];return u.push({".blockspare-block-pricing-table-inside":rM(rM({},Qi(e.attributes)),{},{borderWidth:n?n+"px":null,borderStyle:0<n?"solid":null,borderColor:a||"#fff",borderRadius:r||null,backgroundColor:o||null,padding:i?i+"px":"5px"}),".blockspare-badge span":{color:c||"#fff",backgroundColor:l},".blockspare-badge-image":{width:s+"px"}}),qr.a.all(u)};wp.i18n.__;const lM=wp.element,sM=lM.Component,cM=lM.Fragment,uM=wp.compose.compose,pM=wp.blockEditor,dM=pM.InnerBlocks,mM=(pM.AlignmentToolbar,pM.BlockControls,["blockspare/blockspare-pricing-inner-title","blockspare/blockspare-pricing-inner-price","blockspare/blockspare-pricing-inner-description","blockspare/blockspare-pricing-inner-button","blockspare/blockspare-iconset"]);var bM=uM(Gr,Rr(iM))(class extends sM{render(){const e=this.props,t=e.attributes,n=(t.borderWidth,t.borderColor,t.borderRadius,t.backgroundColor,t.padding,t.alignment),a=t.sectionScale,r=t.enableBadge,o=t.badgeText,l=t.badgeStyle,s=t.badgeOption,c=(t.imgID1,t.imgURL1),u=t.imgAlt1,p=(t.badgeTextColor,t.badgeBackGroundColor,t.badgeImgSize,e.attributes,e.isSelected,e.className);e.setAttributes;let d="";return d=r&&o&&"badge-text"===s?l:r&&"badge-image"===s?l+" has-image":"",wp.element.createElement(cM,null,wp.element.createElement(nM,this.props),wp.element.createElement("div",{className:i()(p,n?"blockspare-block-pricing-table-"+n:"blockspare-block-pricing-table-center","blockspare-block-pricing-table")},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-pricing-table-inside",d,(m=a,"has-scale-ratio-"+1*Math.round(m)),{"has-scale-ratio":0!==a})},r&&o&&"badge-text"===s&&wp.element.createElement("div",{className:"blockspare-badge-wrapper"},wp.element.createElement("div",{className:"blockspare-badge"},wp.element.createElement("span",{className:i()(l)},o))),r&&"badge-image"===s&&wp.element.createElement("div",{className:i()(l,"blockspare-badge-image")},wp.element.createElement("img",{src:c,alt:u})),wp.element.createElement(dM,{template:[["blockspare/blockspare-iconset",{}],["blockspare/blockspare-pricing-inner-title",{headerTitle:"<strong> Price Title </strong>",headerSubTitle:"Enter Subtitle",titlePaddingTop:0,titlePaddingBottom:0,subtitlePaddingTop:0,subtitlePaddingBottom:0}],["blockspare/blockspare-pricing-inner-price",{price:"59",currency:"$",customFontSize:32,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["blockspare/blockspare-pricing-inner-description",{features:"<li>40 Team Members</li><li>40 Personal Contacts</li><li>4000 Message</li>",multilineTag:"li",ordered:!1,customFontSize:16,FontSize:"small",paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["blockspare/blockspare-pricing-inner-button",{buttonText:"Get Started",paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}]],allowedBlocks:mM,renderAppender:!1}))));var m}});wp.i18n.__;const fM=wp.element,gM=fM.Component,hM=(fM.Fragment,wp.compose.compose),yM=wp.blockEditor.InnerBlocks;var wM=hM(Gr,Rr(iM))(class extends gM{render(){const e=this.props,t=e.attributes,n=(t.borderWidth,t.borderColor,t.borderRadius,t.backgroundColor,t.alignment),a=(t.padding,t.sectionScale),r=t.enableBadge,o=t.badgeText,l=t.badgeStyle,s=t.badgeOption,c=(t.imgID1,t.imgURL1),u=t.imgAlt1,p=(t.badgeTextColor,t.badgeBackGroundColor,t.badgeImgSize,e.className);e.attributes;let d="";return d=r&&o&&"badge-text"===s?l:r&&"badge-image"===s?l+" has-image":"",wp.element.createElement("div",{className:i()(p,n?"blockspare-block-pricing-table-"+n:"blockspare-block-pricing-table-center","blockspare-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-pricing-table-inside",d,(m=a,"has-scale-ratio-"+1*Math.round(m)),{"has-scale-ratio":0!==a})},r&&o&&"badge-text"===s&&wp.element.createElement("div",{className:"blockspare-badge-wrapper"},wp.element.createElement("div",{className:"blockspare-badge"},wp.element.createElement("span",{className:i()(l)},o))),r&&"badge-image"===s&&wp.element.createElement("div",{className:i()(l,"blockspare-badge-image")},wp.element.createElement("img",{src:c,alt:u})),wp.element.createElement(yM.Content,null)));var m}});function vM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function kM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vM(Object(n),!0).forEach((function(t){_M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SM=wp.blockEditor.InnerBlocks;var TM=[{attributes:kM(kM({},qx.attributes),ti),save:function(e){const t=e.attributes,n=t.borderWidth,a=t.borderColor,r=t.borderRadius,o=t.backgroundColor,l=t.alignment,s=t.padding,c=t.sectionScale,u=t.enableBadge,p=t.badgeText,d=t.badgeStyle,m=t.badgeOption,b=(t.imgID1,t.imgURL1),f=t.imgAlt1,g=t.badgeTextColor,h=t.badgeBackGroundColor,y=t.badgeImgSize,w=kM(kM({},Qi(e.attributes)),{},{borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:a||null,borderRadius:r||null,backgroundColor:o||"#fff",padding:s?s+"%":null}),v={color:g||"#fff",backgroundColor:h},k={width:y+"px"};let _="";return _=u&&p&&"badge-text"===m?d:u&&"badge-image"===m?d+" has-image":"",wp.element.createElement("div",{className:i()(l?"blockspare-block-pricing-table-"+l:"blockspare-block-pricing-table-center","blockspare-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},wp.element.createElement("div",{className:i()("blockspare-block-pricing-table-inside",_,(S=c,"has-scale-ratio-"+1*Math.round(S)),{"has-scale-ratio":0!==c}),style:w},u&&p&&"badge-text"===m&&wp.element.createElement("div",{className:"blockspare-badge-wrapper"},wp.element.createElement("div",{className:"blockspare-badge"},wp.element.createElement("span",{className:i()(d),style:v},p))),u&&"badge-image"===m&&wp.element.createElement("div",{className:i()(d),style:k},wp.element.createElement("img",{src:b,alt:f})),wp.element.createElement(SM.Content,null)));var S}}];function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function xM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EM(Object(n),!0).forEach((function(t){MM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CM=wp.i18n.__,OM=wp.blocks.registerBlockType,LM=(qx.name,qx.category),FM=xM(xM({},qx.attributes),ti),DM={title:CM("BS Pricing Column","blockspare"),description:CM("Add a pricing column.","blockspare"),icon:r.pricingTable,category:LM,parent:["blockspare/blockspare-pricing"],keywords:[CM("pricing","blockspare"),CM("shop","blockspare"),CM("buy","blockspare")],attributes:FM,edit:bM,save:wM,deprecated:TM};OM("blockspare/blockspare-pricing-inner",DM);var PM=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=[];return r.push({".blockspare-pricing-block-wrapper":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0}}),qr.a.all(r)};function jM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function NM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zM=wp.element,YM=zM.Component,BM=zM.Fragment,AM=(wp.i18n.__,wp.compose.compose),IM=wp.blocks.createBlock,RM=wp.data,HM=RM.withSelect,WM=RM.withDispatch,GM=wp.blockEditor.InnerBlocks;var UM=AM([HM((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),WM(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}}),Gr,Rr(PM)])(class extends YM{constructor(...e){super(...e),NM(this,"getServiceTemplate",e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++)t.push(["blockspare/blockspare-pricing-inner",{}]);return t})}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertServiceItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes.itemNumber+1,n=DM.heading;e=Object.assign({},{},{itemNumber:t,heading:n,active:!1,defaultText:""})}else e=DM;a(IM("blockspare/blockspare-pricing-inner",e),void 0,n)}render(){const e=this.props,t=e.attributes,n=t.columns,a=(t.marginTop,t.marginBottom,t.columnsGap),r=e.attributes,o=e.className,l=e.setAttributes,s=i()(["blockspare-pricing-columns-"+n]),c=i()([o,"blockspare-main-blockwrapper"]);return wp.element.createElement(BM,null,wp.element.createElement(uT,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jM(Object(n),!0).forEach((function(t){NM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:l},this.props)),wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:"blockspare-blocks blockspare-pricing-block-wrapper"},wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:i()("blockspare-pricing-table-wrap-admin","blockspare-block-pricing-table-gap-"+a)},wp.element.createElement(GM,{template:this.getServiceTemplate(r),allowedBlocks:["blockspare/blockspare-pricing-inner"],renderAppender:!1}))))))}});wp.i18n.__;const qM=wp.element.Component,VM=wp.compose.compose,$M=wp.blockEditor.InnerBlocks;var JM=VM(Gr,Rr(PM))(class extends qM{render(){const e=this.props,t=e.attributes,n=(t.align,t.columns),a=t.columnsGap,r=(t.marginTop,t.marginBottom,e.className),o=i()(["blockspare-pricing-table-wrap","blockspare-block-pricing-table-gap-"+a]),l=i()(["blockspare-pricing-columns-"+n]),s=i()([r,"blockspare-main-blockwrapper"]);return wp.element.createElement("div",{className:s},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-pricing-block-wrapper")},wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:o||void 0},wp.element.createElement($M.Content,null)))))}});const XM=wp.blockEditor.InnerBlocks;var KM=[{attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:1},align:{type:"string",default:"center"},defaultItems:{type:"number",default:2},marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30}},save:function(e){const t=e.attributes,n=t.align,a=(t.columns,t.columnsGap),r=t.marginTop,o=t.marginBottom,l=i()(["blockspare-pricing-table-wrap","blockspare-block-pricing-table-gap-"+a]);return wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-pricing-block-wrapper","align"+n),style:{marginTop:r?r+"px":void 0,marginBottom:o?o+"px":void 0}},wp.element.createElement(Ux,e,wp.element.createElement("div",{className:l||void 0},wp.element.createElement(XM.Content,null))))}},{attributes:{columns:{type:"number",default:3},columnsGap:{type:"number",default:1},align:{type:"string",default:"wide"},defaultItems:{type:"number",default:3},marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30},uniqueClass:{type:"string",default:""}},edit:e=>{rerturn(wp.element.createElement(UM,e))},save:e=>wp.element.createElement(JM,e)}];const QM=wp.i18n.__,ZM=aT.name,eC=aT.category,tC=aT.attributes;(0,wp.blocks.registerBlockType)(ZM,{title:QM("BS Pricing Table","blockspare"),description:QM("Add a pricing table.","blockspare"),category:eC,icon:r.pricingTable,attributes:tC,keywords:[QM("block","blockspare"),QM("price","blockspare"),QM("list","blockspare"),QM("table","blockspare"),QM("pricing","blockspare"),QM("shop","blockspare"),QM("purchase","blockspare")],supports:{align:["wide","full","center"],html:!0},edit:Ax,save:Wx,deprecated:KM});var nC=n(98);const aC=wp.i18n.__,rC=wp.element.Component,oC=(wp.compose.compose,wp.blockEditor.InspectorControls),iC=wp.components,lC=(iC.withFallbackStyles,iC.PanelBody);iC.SelectControl;class sC extends rC{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.subtitleFontSize,t.headerTagOption),a=t.headertitleColor,r=t.headersubtitleColor,o=t.headerlayoutOption,i=t.titlePaddingTop,l=t.titlePaddingBottom,s=t.subtitlePaddingTop,c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontSize,m=t.titleLoadGoogleFonts,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSubset,h=t.titleFontSizeType,y=t.titleFontSizeMobile,w=t.titleFontSizeTablet,v=t.subTitleFontSize,k=t.subTitleLoadGoogleFonts,_=t.subTitleFontFamily,S=t.subTitleFontWeight,T=t.subTitleFontSubset,E=t.subTitleFontSizeType,x=t.subTitleFontSizeMobile,M=t.subTitleFontSizeTablet,C=e.attributes,O=e.setAttributes;aC("Layout 1","blockspare"),aC("Layout 2","blockspare"),aC("Layout 3","blockspare");return wp.element.createElement(oC,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(lC,{title:aC("Header Settings","blockspare"),initialOpen:!0},wp.element.createElement(Di,{headerlayoutOption:o,onChangeHeaderLayput:e=>O({headerlayoutOption:e})}),wp.element.createElement(lC,{title:aC("Typography Settings","blockspare")},wp.element.createElement(br,{label:aC("Title Fonts Settings"),attributes:C,setAttributes:O,loadGoogleFonts:{value:m,label:aC("titleLoadGoogleFonts")},fontFamily:{value:b,label:aC("titleFontFamily")},fontWeight:{value:f,label:aC("titleFontWeight")},fontSubset:{value:g,label:aC("titleFontSubset")},fontSizeType:{value:h,label:aC("titleFontSizeType")},fontSize:{value:d,label:aC("titleFontSize")},fontSizeMobile:{value:y,label:aC("titleFontSizeMobile")},fontSizeTablet:{value:w,label:aC("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:n}),wp.element.createElement(br,{label:aC("Subtitle Fonts Settings"),attributes:C,setAttributes:O,loadGoogleFonts:{value:k,label:aC("subTitleLoadGoogleFonts")},fontFamily:{value:_,label:aC("subTitleFontFamily")},fontWeight:{value:S,label:aC("subTitleFontWeight")},fontSubset:{value:T,label:aC("subTitleFontSubset")},fontSizeType:{value:E,label:aC("subTitleFontSizeType")},fontSize:{value:v,label:aC("subTitleFontSize")},fontSizeMobile:{value:x,label:aC("subTitleFontSizeMobile")},fontSizeTablet:{value:M,label:aC("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0})),wp.element.createElement(ci,{enableBlockGaps:!1,headerboxColor:p,onChangeboxcolor:e=>O({headerboxColor:e}),dashColor:u,headerlayoutOption:o,onChangeDashColor:e=>O({dashColor:e}),headertitleColor:a,onChangetitlecolor:e=>O({headertitleColor:e}),titlePaddingTop:i,onChangetitlePaddingTop:e=>O({titlePaddingTop:e}),titlePaddingBottom:l,onChangetitlePaddingBottom:e=>O({titlePaddingBottom:e}),headersubtitleColor:r,onChangesubtitlecolor:e=>O({headersubtitleColor:e}),subtitlePaddingTop:s,onChangesubtitlePaddingTop:e=>O({subtitlePaddingTop:e}),subtitlePaddingBottom:c,onChangesubtitlePaddingBottom:e=>O({subtitlePaddingBottom:e})}))))}}var cC=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.subTitleFontSize,y=(t.subTitleLoadGoogleFonts,t.subTitleFontFamily),w=t.subTitleFontWeight,v=(t.subTitleFontSubset,t.subTitleFontSizeType),k=t.subTitleFontSizeMobile,_=t.subTitleFontSizeTablet,S=t.headerpaddingTop,T=(t.headerpaddingRight,t.headerpaddingBottom),E=(t.headerpaddingLeft,t.headermarginTop,t.headermarginBottom,[]);return E.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:S+"px",paddingBottom:T+"px"}}),E.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:h+v,fontFamily:y,fontWeight:w,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-title":{fontSize:g+b},".blockspare-subtitle":{fontSize:_+v}},mobile:{".blockspare-title":{fontSize:f+b},".blockspare-subtitle":{fontSize:k+v}}}),qr.a.all(E)};function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uC(Object(n),!0).forEach((function(t){dC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mC=wp.element,bC=mC.Component,fC=mC.Fragment,gC=(wp.i18n.__,wp.compose.compose),hC=wp.blockEditor,yC=(hC.RichText,hC.AlignmentToolbar),wC=hC.BlockControls;var vC=gC(Gr,Rr(cC))(class extends bC{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerTagOption,o=t.headerTitle,l=t.headerSubTitle,s=t.headerlayoutOption,c=t.titleLoadGoogleFonts,u=t.titleFontFamily,p=t.titleFontWeight,d=t.subTitleLoadGoogleFonts,m=t.subTitleFontFamily,b=t.subTitleFontWeight,f=e.className,g=e.attributes,h=e.setAttributes,y=(pC({},jl(g)),pC({},Nl(g)),pC({},zl(g)),i()([f,"blockspare-section-header-wrapper blockspare-blocks","align"+n]));return[wp.element.createElement(fC,null,wp.element.createElement(wC,{key:"controls"},wp.element.createElement(yC,{value:a,onChange:e=>{h({sectionAlignment:e})}})),wp.element.createElement(sC,this.props),wp.element.createElement("div",{className:y},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ki,{setAttributes:h,headerTitle:o,headerTagOption:r,headerSubTitle:l,titleFontFamily:u,titleFontWeight:p,titleLoadGoogleFonts:c,subTitleLoadGoogleFonts:d,subTitleFontFamily:m,subTitleFontWeight:b}))))]}});const kC=wp.element.Component,_C=(wp.i18n.__,wp.compose.compose);var SC=_C(Gr,Rr(cC))(class extends kC{render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerTitle,o=t.headerTagOption,l=t.headerSubTitle,s=t.headerlayoutOption,c=e.className,u=(e.attributes,e.setAttributes,e.isSelected,i()([c,"blockspare-section-header-wrapper blockspare-blocks","align"+n]));return wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:r,headerTagOption:o,headerSubTitle:l})))}});function TC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function EC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xC=wp.element.Component;class MC extends xC{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerlayoutOption,o=e.attributes,l=(e.setAttributes,e.isSelected,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TC(Object(n),!0).forEach((function(t){EC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Wl(o)));return wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+n),style:l},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",r,"blockspare-"+a)},this.props.children))}}function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function OC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CC(Object(n),!0).forEach((function(t){LC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FC=wp.blockEditor,DC=FC.RichText;FC.getFontSizeClass,FC.getColorClassName;var PC=[{attributes:OC({},ei),save:function(e){const t=e.attributes,n=t.headerTagOption,a=t.headerTitle,r=t.headerSubTitle,o=OC({},jl(e.attributes)),i=OC({},Nl(e.attributes)),l=OC({},zl(e.attributes));return wp.element.createElement("div",{className:"blockspare-title-wrap"},wp.element.createElement(MC,e,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:o}),a&&wp.element.createElement(DC.Content,{tagName:n,className:"blockspare-title",style:i,value:a}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:o})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:o}),r&&wp.element.createElement(DC.Content,{tagName:"p",className:"blockspare-subtitle",style:l,value:r}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:o}))))}}];function jC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function NC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zC=nC.name,YC=nC.category,BC=wp.i18n.__,AC=wp.blocks.registerBlockType,IC=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jC(Object(n),!0).forEach((function(t){NC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ei);AC(zC,{title:BC("Price Title","blockspare"),description:BC("Add a product title component with schema markup.","blockspare"),category:YC,icon:r.sectionHeader,attributes:IC,parent:["blockspare/blockspare-pricing-inner"],keywords:[BC("pricing table","blockspare"),BC("title","blockspare"),BC("shop","blockspare")],edit:vC,save:SC,deprecated:PC});var RC=n(38);const HC=wp.i18n.__,WC=wp.element.Component,GC=(wp.compose.compose,wp.blockEditor),UC=GC.InspectorControls,qC=(GC.FontSizePicker,GC.withFontSizes,GC.withColors,GC.ContrastChecker,GC.PanelColorSettings),VC=wp.components,$C=(VC.withFallbackStyles,VC.PanelBody),JC=VC.ToggleControl,XC=VC.TextControl;VC.RangeControl;class KC extends WC{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.showTerm,a=t.showCurrency,r=t.term,o=t.currency,i=t.paddingTop,l=t.paddingRight,s=t.paddingBottom,c=t.paddingLeft,u=t.priceUnitFontSize,p=t.priceUnitLoadGoogleFonts,d=t.priceUnitFontFamily,m=t.priceUnitFontWeight,b=t.priceUnitFontSubset,f=t.priceUnitFontSizeType,g=t.priceUnitFontSizeMobile,h=t.priceUnitFontSizeTablet,y=(t.backgroundColor,t.priceColor),w=e.attributes,v=e.setAttributes;return wp.element.createElement(UC,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement($C,{title:HC("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(JC,{label:HC("Show currency symbol","blockspare"),checked:a,onChange:()=>this.props.setAttributes({showCurrency:!a})}),a&&wp.element.createElement(XC,{label:HC("Currency Symbol","blockspare"),type:"text",value:o,onChange:e=>this.props.setAttributes({currency:e})}),wp.element.createElement(JC,{label:HC("Show pricing duration","blockspare"),checked:n,onChange:()=>this.props.setAttributes({showTerm:!n})}),n&&wp.element.createElement(XC,{label:HC("Pricing Duration","blockspare"),type:"text",value:r,onChange:e=>this.props.setAttributes({term:e})})),wp.element.createElement($C,{title:HC("Typography Settings","blockspare")},wp.element.createElement(br,{label:HC("Price Fonts Settings"),attributes:w,setAttributes:v,loadGoogleFonts:{value:p,label:HC("priceUnitLoadGoogleFonts")},fontFamily:{value:d,label:HC("priceUnitFontFamily")},fontWeight:{value:m,label:HC("priceUnitFontWeight")},fontSubset:{value:b,label:HC("priceUnitFontSubset")},fontSizeType:{value:f,label:HC("priceUnitFontSizeType")},fontSize:{value:u,label:HC("priceUnitFontSize")},fontSizeMobile:{value:g,label:HC("priceUnitFontSizeMobile")},fontSizeTablet:{value:h,label:HC("priceUnitFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(qC,{title:HC("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:y,onChange:e=>v({priceColor:e}),label:HC("Text Color","blockspare")}]}),wp.element.createElement($C,{title:HC("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:i,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>v({paddingTop:e}),paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>v({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:s,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>v({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:c,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>v({paddingLeft:e})}))))}}var QC=e=>{const t=e.attributes,n=t.sectionAlignment,a=(t.price,t.currency,t.fontSize,t.customFontSize,t.backgroundColor,t.priceColor),r=(t.customBackgroundColor,t.customTextColor,t.term,t.showTerm,t.showCurrency,t.paddingTop),o=t.paddingRight,i=t.paddingBottom,l=t.paddingLeft,s=t.priceUnitFontSize,c=t.priceUnitFontFamily,u=t.priceUnitFontWeight,p=t.priceUnitFontSizeType,d=t.priceUnitFontSizeMobile,m=t.priceUnitFontSizeTablet;var b=s,f=Math.floor(b/2.5),g=Math.floor(b/2.5),h=m,y=Math.floor(h/2.5),w=Math.floor(y/2.5),v=d,k=Math.floor(v/1.5),_=Math.floor(k/1.5);const S=[];return S.push({".blockspare-pricing-table-price-wrap":{textAlign:n,paddingTop:r?r+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:i?i+"px":void 0,paddingLeft:l?l+"px":void 0},".blockspare-pricing-table-price":{color:a,fontSize:s+p,fontFamily:c,fontWeight:u},".blockspare-pricing-table-currency":{color:a,fontSize:f+"px",fontFamily:c,fontWeight:u},".blockspare-pricing-table-term":{color:a,fontSize:g+"px",fontFamily:c,fontWeight:u},tablet:{".blockspare-pricing-table-price":{fontSize:m+p},".blockspare-pricing-table-currency":{fontSize:y+p},".blockspare-pricing-table-term":{fontSize:w+p}},mobile:{".blockspare-pricing-table-price":{fontSize:d+p},".blockspare-pricing-table-currency":{fontSize:k+p},".blockspare-pricing-table-term":{fontSize:_+p}}}),qr.a.all(S)};const ZC=wp.i18n.__,eO=(wp.blocks.registerBlockType,wp.compose.compose),tO=wp.element,nO=tO.Component,aO=tO.Fragment,rO=wp.blockEditor,oO=rO.RichText,iO=(rO.withFontSizes,rO.withColors,rO.AlignmentToolbar),lO=rO.BlockControls;var sO=eO([Gr,Rr(QC)])(class extends nO{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.price,r=t.currency,o=t.term,l=t.showTerm,s=t.showCurrency,c=(t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft,t.priceUnitLoadGoogleFonts),u=t.priceUnitFontFamily,p=t.priceUnitFontWeight,d=(e.isSelected,e.className),m=e.setAttributes;e.fallbackFontSize,e.fontSize,e.backgroundColor,e.textColor;let b;if(1==c){const e={google:{families:[u+(p?":"+p:"")]}};b=wp.element.createElement(oo,{config:e})}const f=i()({"blockspare-pricing-table-price-wrap":!0,"blockspare-pricing-has-currency":s}),g=i()({"blockspare-pricing-table-price":!0}),h=i()([d,"blockpare-priceunit"]);return[wp.element.createElement(aO,null,wp.element.createElement(lO,{key:"controls"},wp.element.createElement(iO,{value:n,onChange:e=>{m({sectionAlignment:e})}})),wp.element.createElement(KC,this.props),wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:f||void 0},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},s&&wp.element.createElement(oO,{tagName:"span",itemProp:"priceCurrency",placeholder:ZC("$","blockspare"),keepPlaceholderOnFocus:!0,value:r,className:"blockspare-pricing-table-currency"}),wp.element.createElement(oO,{tagName:"div",itemProp:"price",placeholder:ZC("49","blockspare"),keepPlaceholderOnFocus:!0,value:a,onChange:e=>m({price:e}),className:g||void 0,className:"blockspare-pricing-table-price"}),l&&wp.element.createElement(oO,{tagName:"span",value:o,placeholder:ZC("/mo","blockspare"),keepPlaceholderOnFocus:!0,onChange:e=>m({term:e}),className:"blockspare-pricing-table-term"})))),b)]}});wp.i18n.__;const cO=wp.element,uO=cO.Component,pO=(cO.Fragment,wp.compose.compose),dO=wp.blockEditor,mO=dO.RichText;dO.getFontSizeClass,dO.getColorClassName;var bO=pO(Gr,Rr(QC))(class extends uO{render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.price),a=t.currency,r=(t.fontSize,t.customFontSize,t.backgroundColor,t.textColor,t.customBackgroundColor,t.customTextColor,t.term),o=t.showTerm,l=t.showCurrency,s=(t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft,e.className),c=i()({"blockspare-pricing-table-price-wrap":!0,"blockspare-pricing-has-currency":l}),u=i()({"blockspare-pricing-table-price":!0}),p=i()([s,"blockpare-priceunit"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:c||void 0},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&l&&wp.element.createElement(mO.Content,{tagName:"span",itemProp:"priceCurrency",value:a,className:"blockspare-pricing-table-currency"}),wp.element.createElement(mO.Content,{tagName:"div",itemProp:"price",value:n,className:u||void 0}),r&&o&&wp.element.createElement(mO.Content,{tagName:"span",value:r,className:"blockspare-pricing-table-term"}))))}});function fO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const hO=wp.element,yO=(hO.Component,hO.Fragment,wp.blockEditor),wO=yO.RichText,vO=yO.getFontSizeClass,kO=yO.getColorClassName;var _O=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fO(Object(n),!0).forEach((function(t){gO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},RC.attributes),save:function(e){const t=e.attributes,n=t.sectionAlignment,a=t.price,r=t.currency,o=t.fontSize,l=t.customFontSize,s=t.backgroundColor,c=t.textColor,u=t.customBackgroundColor,p=(t.customTextColor,t.term),d=t.showTerm,m=t.showCurrency,b=t.paddingTop,f=t.paddingRight,g=t.paddingBottom,h=t.paddingLeft,y=vO(o),w=(kO("color",c),kO("background-color",s)),v=i()({"has-background":s||u,"blockspare-pricing-table-price-wrap":!0,[w]:w,"blockspare-pricing-has-currency":m&&r}),k=i()({"blockspare-pricing-table-price":!0,[y]:y}),_={textAlign:n,backgroundColor:w?void 0:u,color:c||"#af0000",paddingTop:b?b+"px":void 0,paddingRight:f?f+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:h?h+"px":void 0},S={fontSize:y?void 0:l};var T=y?void 0:l,E=Math.floor(T/2.5);const x={fontSize:T?E+"px":void 0};var M=Math.floor(T/2.5);const C={fontSize:T?M+"px":void 0};return wp.element.createElement("div",{className:v||void 0,style:_},wp.element.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},r&&m&&wp.element.createElement(wO.Content,{tagName:"span",itemProp:"priceCurrency",value:r,className:"blockspare-pricing-table-currency",style:x}),wp.element.createElement(wO.Content,{tagName:"div",itemProp:"price",value:a,className:k||void 0,style:S}),p&&d&&wp.element.createElement(wO.Content,{tagName:"span",value:p,className:"blockspare-pricing-table-term",style:C})))}}];const SO=wp.i18n.__,TO=wp.blocks.registerBlockType,EO=RC.name,xO=RC.category,MO=RC.attributes;TO(EO,{title:SO("Price","blockspare"),description:SO("Adds a product price component with schema markup.","blockspare"),icon:r.price,category:xO,parent:["blockspare/blockspare-pricing-inner"],keywords:[SO("pricing table","blockspare"),SO("title","blockspare"),SO("shop","blockspare")],attributes:MO,edit:sO,save:bO,deprecated:_O});var CO=n(71);var OO=e=>{const t=e.attributes,n=t.sectionAlignment,a=(t.customFontSize,t.descriptionBacgroundColor),r=t.borderColor,o=t.paddingTop,i=t.paddingRight,l=t.paddingBottom,s=t.paddingLeft,c=t.color,u=t.descriptionFontSize,p=t.descriptionFontFamily,d=t.descriptionFontWeight,m=(t.descriptionFontSubset,t.descriptionFontSizeType),b=t.descriptionFontSizeMobile,f=t.descriptionFontSizeTablet,g=[];let h;return h=16===u?u-2:u,g.push({".blockspare-list-wrap":{backgroundColor:a,borderColor:r||void 0,paddingTop:o?o+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0},".blockspare-pricing-table-features li":{textAlign:n,color:c||"#000",fontSize:u+m,fontFamily:p,fontWeight:d},".blockspare-pricing-table-features li:before":{fontSize:h+m},tablet:{".blockspare-pricing-table-features":{fontSize:f+m}},mobile:{"blockspare-pricing-table-features":{fontSize:b+m}}}),qr.a.all(g)};const LO=wp.i18n.__,FO=wp.element.Component,DO=(wp.compose.compose,wp.blockEditor),PO=DO.InspectorControls,jO=(DO.FontSizePicker,DO.withFontSizes,DO.withColors,DO.ContrastChecker,DO.PanelColorSettings),NO=(DO.ColorPalette,wp.components),zO=(NO.withFallbackStyles,NO.PanelBody);NO.PanelRow,NO.SelectControl,NO.BaseControl,NO.RangeControl;class YO extends FO{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.borderStyle,t.borderColor,t.borderWidth,t.descriptionBacgroundColor),a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.name,s=t.listType,c=t.orderListStyle,u=t.color,p=t.descriptionFontSize,d=t.descriptionFontFamily,m=t.descriptionFontWeight,b=t.descriptionFontSubset,f=t.descriptionFontSizeType,g=t.descriptionFontSizeMobile,h=t.descriptionFontSizeTablet,y=t.descriptionLoadGoogleFonts,w=e.attributes,v=e.setAttributes;e.fallbackFontSize,e.fontSize,e.setFontSize,e.textColor,e.setBackgroundColor,e.setTextColor,e.fallbackBackgroundColor,e.fallbackTextColor,LO("None"),LO("Solid"),LO("Dotted"),LO("Dashed");return wp.element.createElement(PO,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(zO,{title:LO("Custom List Settings"),initialOpen:!1},wp.element.createElement(uh,{name:l,onChangeName:e=>v({name:e}),listType:s,onChangeListStyle:e=>v({listType:e}),orderListStyle:c,onChangeOrderListStyle:e=>v({orderListStyle:e}),color:u,onchangeColor:e=>v({color:e})})),wp.element.createElement(zO,{title:LO("Typography Settings","blockspare")},wp.element.createElement(br,{label:LO("Description Fonts Settings"),attributes:w,setAttributes:v,loadGoogleFonts:{value:y,label:LO("descriptionLoadGoogleFonts")},fontFamily:{value:d,label:LO("descriptionFontFamily")},fontWeight:{value:m,label:LO("descriptionFontWeight")},fontSubset:{value:b,label:LO("descriptionFontSubset")},fontSizeType:{value:f,label:LO("descriptionFontSizeType")},fontSize:{value:p,label:LO("descriptionFontSize")},fontSizeMobile:{value:g,label:LO("descriptionFontSizeMobile")},fontSizeTablet:{value:h,label:LO("descriptionFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(jO,{title:LO("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>v({descriptionBacgroundColor:e}),label:LO("Background Color","blockspare")}]}),wp.element.createElement(zO,{title:LO("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:a,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>v({paddingTop:e}),paddingEnableRight:!0,paddingRight:r,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>v({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>v({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:i,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>v({paddingLeft:e})}))))}}const BO=wp.i18n.__,AO=wp.compose.compose,IO=wp.element,RO=IO.Component,HO=IO.Fragment,WO=wp.blockEditor,GO=WO.RichText,UO=(WO.withFontSizes,WO.withColors,WO.AlignmentToolbar),qO=WO.BlockControls;WO.BlockAlignmentToolbar;var VO=AO([Gr,Rr(OO)])(class extends RO{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.features,a=t.borderStyle,r=t.borderWidth,o=t.sectionAlignment,l=t.name,s=t.listType,c=t.orderListStyle,u=(t.color,t.descriptionLoadGoogleFonts),p=t.descriptionFontFamily,d=t.descriptionFontWeight,m=(e.isSelected,e.className),b=e.setAttributes;e.fallbackFontSize,e.fontSize,e.backgroundColor,e.textColor;let f;if(1==u){const e={google:{families:[p+(d?":"+d:"")]}};f=wp.element.createElement(oo,{config:e})}let g="";g="ul"==s?l:"ol"==s?c:"";const h=i()([m,"blockspare-pirce-description"]);return wp.element.createElement(HO,null,wp.element.createElement(qO,null,wp.element.createElement(UO,{value:o,onChange:e=>{b({sectionAlignment:e})}})),wp.element.createElement(YO,this.props),wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(GO,{tagName:"none"==s?"ul":s,multiline:"li",itemProp:"description",placeholder:BO("Add a product feature","blockspare"),keepPlaceholderOnFocus:!0,value:n,onChange:e=>b({features:e}),className:i()("blockspare-pricing-table-features",a,"blockspare-list-border-width-"+r,g)}))),f)}});wp.i18n.__;const $O=wp.element,JO=$O.Component,XO=($O.Fragment,wp.compose.compose),KO=wp.blockEditor.RichText;var QO=XO(Gr,Rr(OO))(class extends JO{render(){const e=this.props,t=e.attributes,n=t.features,a=t.borderStyle,r=t.borderWidth,o=t.name,l=t.listType,s=t.orderListStyle,c=(t.color,e.className);let u="";u="ul"==l?o:"ol"==l?s:"";const p=i()([c,"blockspare-pirce-description"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(KO.Content,{tagName:"none"==l?"ul":l,multiline:"li",itemProp:"description",value:n,className:i()("blockspare-pricing-table-features",a,"blockspare-list-border-width-"+r,u)})))}}),ZO=n(99);var eL=e=>{const t=e.attributes,n=t.sectionAlignment,a=(t.customFontSize,t.descriptionBacgroundColor),r=t.borderColor,o=t.paddingTop,i=t.paddingRight,l=t.paddingBottom,s=t.paddingLeft,c=t.color,u=t.descriptionFontSize,p=t.descriptionFontFamily,d=t.descriptionFontWeight,m=(t.descriptionFontSubset,t.descriptionFontSizeType),b=t.descriptionFontSizeMobile,f=t.descriptionFontSizeTablet,g=[];return g.push({".blockspare-list-wrap":{backgroundColor:a,borderColor:r||void 0,paddingTop:o?o+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0},".blockspare-pricing-table-features li":{textAlign:n,color:c||"#000",fontSize:u+m,fontFamily:p,fontWeight:d},".blockspare-pricing-table-features li:before":{fontSize:u+m},tablet:{".blockspare-pricing-table-features":{fontSize:f+m}},mobile:{"blockspare-pricing-table-features":{fontSize:b+m}}}),qr.a.all(g)};wp.i18n.__;const tL=wp.element,nL=tL.Component,aL=(tL.Fragment,wp.compose.compose),rL=wp.blockEditor.RichText;var oL=aL(Gr,Rr(eL))(class extends nL{render(){const e=this.props,t=e.attributes,n=t.features,a=t.borderStyle,r=t.borderWidth,o=t.name,l=t.listType,s=t.orderListStyle,c=(t.color,e.className);let u="";u="ul"==l?o:"ol"==l?s:"";const p=i()([c,"blockspare-pirce-description"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(rL.Content,{tagName:"none"==l?"ul":l,multiline:"li",itemProp:"description",value:n,className:i()("blockspare-pricing-table-features",a,"blockspare-list-border-width-"+r,u)})))}});function iL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function lL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iL(Object(n),!0).forEach((function(t){sL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const cL=wp.blockEditor,uL=cL.RichText,pL=cL.getFontSizeClass,dL=cL.getColorClassName;var mL=[{attributes:lL({},ZO.attributes),save:function(e){const t=e.attributes,n=t.features,a=t.fontSize,r=t.sectionAlignment,o=t.customFontSize,l=t.backgroundColor,s=t.textColor,c=t.customBackgroundColor,u=(t.customTextColor,t.borderStyle),p=t.borderColor,d=t.borderWidth,m=t.paddingTop,b=t.paddingRight,f=t.paddingBottom,g=t.paddingLeft,h=t.name,y=t.listType,w=t.orderListStyle,v=t.color;let k="";k="ul"==y?h:"ol"==y?w:"";const _=pL(a),S=dL("color",s),T=dL("background-color",l),E=i()({"has-background":l||c,"blockspare-pricing-table-features":!0,[_]:_,[S]:S,[T]:T,[u]:u,["blockspare-list-border-width-"+d]:d,[k]:k}),x={textAlign:r,fontSize:_?void 0:o,backgroundColor:T?void 0:c,color:v||"#6d6d6d",borderColor:p||void 0,paddingTop:m?m+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:f?f+"px":void 0,paddingLeft:g?g+"px":void 0};return wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-list-wrap")},wp.element.createElement(uL.Content,{tagName:"none"==y?"ul":y,itemProp:"description",value:n,className:E||void 0,style:x}))}},{attributes:lL({},ZO.attributes),save:e=>wp.element.createElement(oL,e)}];const bL=wp.i18n.__,fL=wp.blocks.registerBlockType,gL=CO.name,hL=CO.category,yL=CO.attributes;fL(gL,{title:bL("Price Features","blockspare"),description:bL("Adds a product feature component with schema markup.","blockspare"),category:hL,icon:r.iconlist,attributes:yL,parent:["blockspare/blockspare-pricing-inner"],keywords:[bL("pricing table","blockspare"),bL("features","blockspare"),bL("shop","blockspare")],edit:VO,save:QO,deprecated:mL});var wL=n(11);const vL=wp.i18n.__,kL=wp.element.Component,_L=wp.compose.compose,SL=wp.blockEditor,TL=SL.InspectorControls,EL=SL.withFontSizes,xL=SL.withColors,ML=(SL.PanelColorSettings,wp.components),CL=ML.withFallbackStyles,OL=ML.PanelBody,LL=ML.ToggleControl,FL=CL((e,t)=>{const n=t.attributes.backgroundColor,a=e.querySelector('[contenteditable="true"]'),r=a?getComputedStyle(a):null;return{fallbackBackgroundColor:n||!r?void 0:r.backgroundColor}});var DL=_L([FL,EL("fontSize"),xL("backgroundColor")])(class extends kL{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.buttonStyle,a=t.borderColor,r=t.borderBtnTextColor,o=t.buttonBackgroundColor,i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,c=t.buttonTarget,u=t.paddingTop,p=t.paddingBottom,d=t.enableGradient,m=t.backgroundColor1,b=t.backgroundColor2,f=t.gradientAngle,g=t.colorLocation1,h=t.colorLocation2,y=t.btnFontWeight,w=t.btnBorderWidth,v=t.buttonHoverEffect,k=t.buttonFontSize,_=t.buttonFontFamily,S=t.buttonFontWeight,T=t.buttonFontSubset,E=t.buttonFontSizeType,x=t.buttonFontSizeMobile,M=t.buttonFontSizeTablet,C=t.buttonLoadGoogleFonts,O=e.attributes,L=e.setAttributes;e.backgroundColor,e.setBackgroundColor;return wp.element.createElement(TL,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(OL,{title:vL("Button Settings","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonTarget:!1,buttonTarget:c,onChangeButtonTarget:e=>L({buttonTarget:!c}),enableGradient:d,onChangeGradient:e=>L({enableGradient:e}),enableButtonSize:!0,buttonSize:l,onChangeButtonSize:e=>L({buttonSize:e}),enableButtonShape:!0,buttonShape:s,onChangeButtonShape:e=>L({buttonShape:e}),buttonBackgroundColor:o,onChangeButtonColor:e=>L({buttonBackgroundColor:e}),buttonTextColor:i,onChangeButtonTextColor:e=>L({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:n,onChangeBorderStyle:e=>L({buttonStyle:e}),buttonHoverEffect:v,onchangeButtonHoverEffect:e=>L({buttonHoverEffect:e}),borderColor:a,onchangeBorderColor:e=>L({borderColor:e}),borderBtnTextColor:r,onChangeBorderBtnTextColor:e=>L({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:w,onchangebtnBorderWidth:e=>L({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:y,onchangeBtnFontWeight:e=>L({btnFontWeight:e})}),wp.element.createElement(OL,{title:vL("Typography Settings","blockspare")},wp.element.createElement(br,{label:vL("Button Fonts Settings"),attributes:O,setAttributes:L,loadGoogleFonts:{value:C,label:vL("buttonLoadGoogleFonts")},fontFamily:{value:_,label:vL("buttonFontFamily")},fontWeight:{value:S,label:vL("buttonFontWeight")},fontSubset:{value:T,label:vL("buttonFontSubset")},fontSizeType:{value:E,label:vL("buttonFontSizeType")},fontSize:{value:k,label:vL("buttonFontSize")},fontSizeMobile:{value:x,label:vL("buttonFontSizeMobile")},fontSizeTablet:{value:M,label:vL("buttonFontSizeTablet")},disableLineHeight:!0})),"none"===n&&wp.element.createElement(LL,{label:vL("Enable Gradient","blockspare"),checked:d,onChange:()=>this.props.setAttributes({enableGradient:!d})}),d&&"none"===n&&wp.element.createElement(OL,{title:vL("Gradient Option","blockspare"),initialOpen:!0},wp.element.createElement(Oe,{backgroundColor1:m,onChangeBackgroundColor1:e=>L({backgroundColor1:e}),backgroundColor2:b,onChangeBackgroundColor2:e=>L({backgroundColor2:e}),gradientAngle:f,onChangeGradientAngle:e=>L({gradientAngle:e}),colorLocation1:g,onChangeColorLocation1:e=>L({colorLocation1:e}),colorLocation2:h,onChangeColorLocation2:e=>L({colorLocation2:e})}))),wp.element.createElement(OL,{title:vL("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:u,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>L({paddingTop:e}),paddingEnableBottom:!0,paddingBottom:p,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>L({paddingBottom:e})}))))}});var PL=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.buttonStyle,s=t.enableGradient,c=t.backgroundColor1,u=t.backgroundColor2,p=t.gradientAngle,d=t.colorLocation1,m=t.colorLocation2,b=(t.btnFontWeight,t.btnBorderWidth),f=t.borderColor,g=t.buttonBackgroundColor,h=t.borderBtnTextColor,y=t.buttonTextColor,w=t.buttonFontSize,v=t.buttonFontFamily,k=t.buttonFontWeight,_=t.buttonFontSizeType,S=t.buttonFontSizeMobile,T=t.buttonFontSizeTablet,E=[];if(E.push({".blockspare-block-button":{textAlign:n},".blockspare-pricing-table-button":{paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),"none"===l)if(1==s){const e=p+"deg",t=d+"%",n=m+"%";E.push({".blockspare-block-button span":{color:y||"#fff",borderWidth:b+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${c||"#3B1A5B"} ${t},${u||"#8B249C"} ${n})`}})}else E.push({".blockspare-block-button span":{color:y||"#fff",borderWidth:b+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:g||"#3c1a5b"}});else E.push({".blockspare-block-button span":{color:h||"#404040",borderColor:f||"#3c1a5b",borderStyle:l,borderWidth:b+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return E.push({".blockspare-block-button span":{fontSize:w+_,fontFamily:v,fontWeight:k},tablet:{".blockspare-block-button span":{fontSize:T+_}},mobile:{".blockspare-block-button span":{fontSize:S+_}}}),qr.a.all(E)};const jL=wp.i18n.__,NL=wp.compose.compose,zL=wp.element,YL=zL.Component,BL=zL.Fragment,AL=wp.blockEditor,IL=AL.RichText,RL=AL.AlignmentToolbar,HL=AL.BlockControls,WL=AL.URLInput,GL=wp.components,UL=GL.IconButton,qL=GL.Dashicon;var VL=NL([Gr,Rr(PL)])(class extends YL{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.sectionAlignment,o=t.buttonSize,l=t.buttonShape,s=t.buttonHoverEffect,c=t.buttonLoadGoogleFonts,u=t.buttonFontFamily,p=t.buttonFontWeight,d=e.className,m=e.isSelected,b=(e.attributes,e.setAttributes);e.backgroundColor;let f;if(1==c){const e={google:{families:[u+(p?":"+p:"")]}};f=wp.element.createElement(oo,{config:e})}const g=i()({"blockspare-pricing-table-button":!0}),h=i()([d,"blockspare-block-button-wrap"]);return[wp.element.createElement(BL,null,wp.element.createElement(HL,{key:"controls"},wp.element.createElement(RL,{value:r,onChange:e=>{b({sectionAlignment:e})}})),wp.element.createElement(DL,this.props),wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:g||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},wp.element.createElement("a",{href:"#"},wp.element.createElement(IL,{tagName:"span",placeholder:jL("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:""+n,allowedFormats:[],className:i()("blockspare-button",l,o,s),onChange:e=>b({buttonText:e})}))),m&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+r,onSubmit:e=>e.preventDefault()},wp.element.createElement(qL,{icon:"admin-links"}),wp.element.createElement(WL,{className:"button-url",value:a,onChange:e=>b({buttonUrl:e})}),wp.element.createElement(UL,{icon:"editor-break",label:jL("Apply","blockspare"),type:"submit"})))),f)]}});const $L=wp.blockEditor,JL=$L.RichText,XL=($L.getColorClassName,wp.i18n.__,wp.compose.compose),KL=wp.element,QL=KL.Component;KL.Fragment;var ZL=XL(Gr,Rr(PL))(class extends QL{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonSize,o=t.buttonShape,l=t.buttonTarget,s=t.buttonHoverEffect,c=(e.attributes,e.className),u=i()({"blockspare-pricing-table-button":!0}),p=i()([c,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:u||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",o,r,s)},wp.element.createElement(JL.Content,{tagName:"span",value:n})))))}});const eF=wp.element.Component;class tF extends eF{constructor(e){super(...arguments)}render(){return wp.element.createElement("div",{style:{textAlign:this.props.attributes.sectionAlignment},className:i()(this.props.className,"blockspare-block-button")},this.props.children)}}function nF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function aF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nF(Object(n),!0).forEach((function(t){rF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oF=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=[];return l.push({".blockspare-block-button":{textAlign:n},".blockspare-button":aF({},Mo(e.attributes)),".blockspare-pricing-table-button":{paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),qr.a.all(l)};const iF=wp.blockEditor,lF=iF.RichText,sF=(iF.getColorClassName,wp.i18n.__,wp.compose.compose),cF=wp.element,uF=cF.Component;cF.Fragment;var pF=sF(Gr,Rr(oF))(class extends uF{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonSize,o=t.buttonShape,l=t.buttonTarget,s=t.buttonHoverEffect,c=(e.attributes,e.className),u=i()({"blockspare-pricing-table-button":!0}),p=i()([c,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:u||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",o,r,s)},wp.element.createElement(lF.Content,{value:n})))))}});function dF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function mF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dF(Object(n),!0).forEach((function(t){bF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fF=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=[];return l.push({".blockspare-block-button":{textAlign:n},".blockspare-button":mF({},xo(e.attributes)),".blockspare-pricing-table-button":{paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),qr.a.all(l)};const gF=wp.blockEditor,hF=gF.RichText,yF=(gF.getColorClassName,wp.i18n.__,wp.compose.compose),wF=wp.element,vF=wF.Component;wF.Fragment;var kF=yF(Gr,Rr(fF))(class extends vF{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonSize,o=t.buttonShape,l=t.buttonTarget,s=t.buttonHoverEffect,c=(e.attributes,e.className),u=i()({"blockspare-pricing-table-button":!0}),p=i()([c,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:u||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",o,r,s)},wp.element.createElement(hF.Content,{value:n})))))}});var _F=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.buttonStyle,s=t.enableGradient,c=t.backgroundColor1,u=t.backgroundColor2,p=t.gradientAngle,d=t.colorLocation1,m=t.colorLocation2,b=t.btnFontWeight,f=t.btnBorderWidth,g=t.borderColor,h=t.buttonBackgroundColor,y=t.borderBtnTextColor,w=t.buttonTextColor,v=[];if(v.push({".blockspare-block-button":{textAlign:n},".blockspare-pricing-table-button":{paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),"none"===l)if(1==s){const e=p+"deg",t=d+"%",n=m+"%";v.push({".blockspare-block-button span":{color:w||"#fff",fontWeight:b,borderWidth:f+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${c||"#3B1A5B"} ${t},${u||"#8B249C"} ${n})`}})}else v.push({".blockspare-block-button span":{color:w||"#fff",fontWeight:b,borderWidth:f+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:h||"#3c1a5b"}});else v.push({".blockspare-block-button span":{color:y||"#404040",borderColor:g||"#3c1a5b",borderStyle:l,fontWeight:b,borderWidth:f+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return qr.a.all(v)};const SF=wp.blockEditor,TF=SF.RichText,EF=(SF.getColorClassName,wp.i18n.__,wp.compose.compose),xF=wp.element,MF=xF.Component;xF.Fragment;var CF=EF(Gr,Rr(_F))(class extends MF{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonSize,o=t.buttonShape,l=t.buttonTarget,s=t.buttonHoverEffect,c=(e.attributes,e.className),u=i()({"blockspare-pricing-table-button":!0}),p=i()([c,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:u||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",o,r,s)},wp.element.createElement(TF.Content,{tagName:"span",value:n})))))}});function OF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function LF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OF(Object(n),!0).forEach((function(t){FF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const DF=wp.blockEditor,PF=DF.RichText,jF=DF.getColorClassName;var NF=[{attributes:LF(LF({},wL.attributes),Eo),save:function(e){const t=e.attributes,n=t.backgroundColor,a=t.customBackgroundColor,r=t.paddingTop,o=t.paddingRight,l=t.paddingBottom,s=t.paddingLeft,c=t.buttonText,u=t.buttonUrl,p=t.buttonSize,d=t.buttonShape,m=t.buttonTarget,b=t.buttonHoverEffect,f=jF("background-color",n),g=i()({"has-background":n||a,"blockspare-pricing-table-button":!0,[f]:f}),h=LF({},Yl(e.attributes)),y={backgroundColor:f?void 0:a,paddingTop:r?r+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0};return wp.element.createElement("div",{className:g||void 0,style:y},wp.element.createElement(tF,e,c&&wp.element.createElement("a",{href:u,target:m?"_blank":null,rel:m?"noopener noreferrer":null,className:i()("blockspare-button",d,p,b),style:h},wp.element.createElement(PF.Content,{value:c}))))}},{attributes:LF(LF({},wL.attributes),Eo),save:e=>wp.element.createElement(kF,e)},{attributes:LF(LF({},wL.attributes),Eo),save:e=>wp.element.createElement(pF,e)},{attributes:LF(LF({},wL.attributes),Eo),save:e=>wp.element.createElement(CF,e)}];function zF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function YF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zF(Object(n),!0).forEach((function(t){BF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AF=wp.i18n.__,IF=wp.blocks.registerBlockType,RF=wp.blockEditor,HF=(RF.RichText,RF.getColorClassName,wL.name),WF=wL.category,GF=YF(YF({},wL.attributes),Eo);IF(HF,{title:AF("Button","blockspare"),description:AF("Add button with schema markup.","blockspare"),category:WF,icon:r.button,attributes:GF,parent:["blockspare/blockspare-pricing-inner"],keywords:[AF("pricing button","blockspare"),AF("button","blockspare"),AF("link","blockspare")],edit:VL,save:ZL,deprecated:NF});n(525),n(526);var UF=n(39);const qF=wp.i18n.__,VF=wp.element,$F=VF.Component,JF=(VF.Fragment,wp.blockEditor),XF=JF.InspectorControls,KF=(JF.PanelColorSettings,wp.components),QF=KF.PanelBody,ZF=KF.TextControl,eD=KF.SelectControl;class tD extends $F{render(){const e=this.props,t=e.attributes,n=e.setAttributes,a=(e.clients,qF(" Icon only","blockspare"),qF("Texts only","blockspare"),qF("Icon with Texts","blockspare"),qF(" Official","blockspare"),qF("Custom","blockspare"),[{value:"blockspare-social-icon-square",label:qF("Square","blockspare")},{value:"blockspare-social-icon-circle",label:qF("Circle","blockspare")},{value:"blockspare-social-icon-rounded",label:qF("Rounded Square","blockspare")}]),r=[{value:"blockspare-social-icon-small",label:qF("Small","blockspare")},{value:"blockspare-social-icon-medium",label:qF("Medium","blockspare")},{value:"blockspare-social-icon-large",label:qF("Large","blockspare")}];qF("Solid","blockspare"),qF("Border","blockspare"),qF("None","blockspare");return wp.element.createElement(XF,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"social-links"}),wp.element.createElement(QF,{title:qF("Social Icon Option","blockspare"),initialOpen:!1},wp.element.createElement(eD,{label:qF("Shape","blockspare"),options:a,value:t.buttonShapes,onChange:e=>this.props.setAttributes({buttonShapes:e})}),wp.element.createElement(eD,{label:qF("Size","blockspare"),options:r,value:t.buttonSizes,onChange:e=>this.props.setAttributes({buttonSizes:e})})),wp.element.createElement(QF,{title:qF("Social Settings","blockspare"),className:"blockspare-hide-query",initialOpen:!1},wp.element.createElement(QF,{title:qF("Facebook","blockspare"),initialOpen:!1},wp.element.createElement(ZF,{label:qF("Title","blockspare"),type:"text",value:t.facebookTitle,onChange:e=>this.props.setAttributes({facebookTitle:e})}),wp.element.createElement(ZF,{label:qF("URL","blockspare"),type:"url",value:t.facebookUrl,onChange:e=>this.props.setAttributes({facebookUrl:e})})),wp.element.createElement(QF,{title:qF("Twitter","blockspare"),initialOpen:!1},wp.element.createElement(ZF,{label:qF("Title","blockspare"),type:"text",value:t.twitterTitle,onChange:e=>this.props.setAttributes({twitterTitle:e})}),wp.element.createElement(ZF,{label:qF("URL","blockspare"),type:"url",value:t.twitterUrl,onChange:e=>this.props.setAttributes({twitterUrl:e})})),wp.element.createElement(QF,{title:qF("Instagram","blockspare"),initialOpen:!1},wp.element.createElement(ZF,{label:qF("Title","blockspare"),type:"text",value:t.instagramTitle,onChange:e=>this.props.setAttributes({instagramTitle:e})}),wp.element.createElement(ZF,{label:qF("URL","blockspare"),type:"url",value:t.instagramUrl,onChange:e=>this.props.setAttributes({instagramUrl:e})})),wp.element.createElement(QF,{title:qF("YouTube","blockspare"),initialOpen:!1},wp.element.createElement(ZF,{label:qF("Title","blockspare"),type:"text",value:t.youtubeTitle,onChange:e=>this.props.setAttributes({youtubeTitle:e})}),wp.element.createElement(ZF,{label:qF("URL","blockspare"),type:"url",value:t.youtubeUrl,onChange:e=>this.props.setAttributes({youtubeUrl:e})})),wp.element.createElement(QF,{title:qF("LinkedIn","blockspare"),initialOpen:!1},wp.element.createElement(ZF,{label:qF("Title","blockspare"),type:"text",value:t.linkedinTitle,onChange:e=>this.props.setAttributes({linkedinTitle:e})}),wp.element.createElement(ZF,{label:qF("URL","blockspare"),type:"url",value:t.linkedinUrl,onChange:e=>this.props.setAttributes({linkedinUrl:e})})),wp.element.createElement(QF,{title:qF("Pinterest","blockspare"),initialOpen:!1},wp.element.createElement(ZF,{label:qF("Title","blockspare"),type:"text",value:t.pinterestTitle,onChange:e=>this.props.setAttributes({pinterestTitle:e})}),wp.element.createElement(ZF,{label:qF("URL","blockspare"),type:"url",value:t.pinterestUrl,onChange:e=>this.props.setAttributes({pinterestUrl:e})}))),wp.element.createElement(QF,{title:qF("Block Gap Settings","blockspare"),initialOpen:!1},wp.element.createElement(QF,{title:qF("Margin Settings","blockspare"),initialOpen:!0},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:t.marginTop,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>n({marginTop:e}),marginEnableBottom:!0,marginBottom:t.marginBottom,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>n({marginBottom:e})})))))}}var nD=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.iconColorOption,r=t.customfontColorOption,o=t.custombackgroundColorOption,i=t.marginTop,l=t.marginBottom,s=[];return"blockspare-default-official-color"!=a&&s.push({".blockspare-social-links a span":{color:r,backgroundColor:o}}),s.push({".blockspare-social-wrapper":{textAlign:n,marginTop:i?i+"px":"0px",marginBottom:l?l+"px":"0px"}}),qr.a.all(s)};function aD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function rD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aD(Object(n),!0).forEach((function(t){oD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iD=wp.element,lD=iD.Component,sD=iD.Fragment,cD=(wp.i18n.__,wp.compose.compose),uD=wp.blockEditor,pD=uD.BlockControls,dD=uD.AlignmentToolbar;var mD=cD(Gr,Rr(nD))(class extends lD{render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.iconColorOption,r=t.buttonShapes,o=t.buttonSizes,l=t.buttonOptions,s=t.buttonFills,c=t.facebookUrl,u=t.facebookTitle,p=t.linkedinUrl,d=t.linkedinTitle,m=t.twitterUrl,b=t.twitterTitle,f=t.instagramUrl,g=t.instagramTitle,h=t.youtubeUrl,y=t.youtubeTitle,w=t.pinterestUrl,v=t.pinterestTitle,k=t.tumblrUrl,_=t.tumblrTitle,S=t.telegramUrl,T=t.telegramTitle,E=t.redditUrl,x=t.redditTitle,M=t.flickrUrl,C=t.flickrTitle,O=t.dribbbleUrl,L=t.dribbbleTitle,F=t.vkUrl,D=t.vkTitle,P=t.yelpUrl,j=t.yelpTitle,N=t.quoraUrl,z=t.quoraTitle,Y=t.meetupUrl,B=t.meetupTitle,A=t.githubUrl,I=t.githubTitle,R=e.className,H=(e.attributes,e.setAttributes),W=i()([R,"blockspare-socaillink-block"]);return[wp.element.createElement(sD,null,wp.element.createElement(tD,rD({setAttributes:H},this.props)),wp.element.createElement(pD,null,wp.element.createElement(dD,{value:n,onChange:e=>{H({sectionAlignment:e})}})),wp.element.createElement("div",{className:W},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks","blockspare-social-wrapper")},wp.element.createElement("div",{className:"blockspare-section-head-wrap"},wp.element.createElement("ul",{className:i()("blockspare-social-links",a,r,o,l,s)},c&&wp.element.createElement("li",null,wp.element.createElement("a",{href:c,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-facebook-f"})," ",wp.element.createElement("span",{className:"screen-reader-text"},u)))),p&&wp.element.createElement("li",null,wp.element.createElement("a",{href:p,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"screen-reader-text"},d)))),m&&wp.element.createElement("li",null,wp.element.createElement("a",{href:m,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"screen-reader-text"},b)))),f&&wp.element.createElement("li",null,wp.element.createElement("a",{href:f,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-instagram"}),wp.element.createElement("span",{className:"screen-reader-text"},g)))),h&&wp.element.createElement("li",null,wp.element.createElement("a",{href:h,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-youtube"}),wp.element.createElement("span",{className:"screen-reader-text"},y)))),w&&wp.element.createElement("li",null,wp.element.createElement("a",{href:w,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-pinterest"}),wp.element.createElement("span",{className:"screen-reader-text"},v)))),k&&wp.element.createElement("li",null,wp.element.createElement("a",{href:k,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-tumblr"}),wp.element.createElement("span",{className:"screen-reader-text"},_)))),S&&wp.element.createElement("li",null,wp.element.createElement("a",{href:S,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-telegram"}),wp.element.createElement("span",{className:"screen-reader-text"},T)))),E&&wp.element.createElement("li",null,wp.element.createElement("a",{href:E,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-reddit"}),wp.element.createElement("span",{className:"screen-reader-text"},x)))),M&&wp.element.createElement("li",null,wp.element.createElement("a",{href:M,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-flickr"}),wp.element.createElement("span",{className:"screen-reader-text"},C)))),O&&wp.element.createElement("li",null,wp.element.createElement("a",{href:O,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-dribbble"}),wp.element.createElement("span",{className:"screen-reader-text"},L)))),F&&wp.element.createElement("li",null,wp.element.createElement("a",{href:F,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-vk"}),wp.element.createElement("span",{className:"screen-reader-text"},D)))),P&&wp.element.createElement("li",null,wp.element.createElement("a",{href:P,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-yelp"}),wp.element.createElement("span",{className:"screen-reader-text"},j)))),N&&wp.element.createElement("li",null,wp.element.createElement("a",{href:N,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-quora"}),wp.element.createElement("span",{className:"screen-reader-text"},z)))),Y&&wp.element.createElement("li",null,wp.element.createElement("a",{href:Y,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-meetup"}),wp.element.createElement("span",{className:"screen-reader-text"},B)))),A&&wp.element.createElement("li",null,wp.element.createElement("a",{href:A,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-github"}),wp.element.createElement("span",{className:"screen-reader-text"},I)))))))))]}});const bD=wp.element,fD=bD.Component,gD=(bD.Fragment,wp.i18n.__,wp.blockEditor);gD.BlockAlignmentToolbar,gD.BlockControls;class hD extends fD{constructor(e){super(...arguments)}render(){let e="";return e="blockspare-default-official-color"!=this.props.attributes.iconColorOption?{color:this.props.attributes.customfontColorOption,backgroundColor:this.props.attributes.custombackgroundColorOption}:{},wp.element.createElement("ul",{className:i()("blockspare-social-links",this.props.attributes.iconColorOption,this.props.attributes.buttonShapes,this.props.attributes.buttonSizes,this.props.attributes.buttonOptions,this.props.attributes.buttonFills)},this.props.attributes.facebookUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.facebookUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.facebookTitle))),this.props.attributes.linkedinUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.linkedinUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.linkedinTitle))),this.props.attributes.twitterUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.twitterUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.twitterTitle))),this.props.attributes.instagramUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.instagramUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-instagram"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.instagramTitle))),this.props.attributes.youtubeUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.youtubeUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-youtube"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.youtubeTitle))),this.props.attributes.pinterestUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.pinterestUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-pinterest"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.pinterestTitle))),this.props.attributes.tumblrUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.tumblrUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-tumblr"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.tumblrTitle))),this.props.attributes.telegramUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.telegramUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-telegram"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.telegramTitle))),this.props.attributes.redditUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.redditUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-reddit"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.redditTitle))),this.props.attributes.flickrUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.flickrUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-flickr"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.flickrTitle))),this.props.attributes.dribbbleUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.dribbbleUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-dribbble"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.dribbbleTitle))),this.props.attributes.vkUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.vkUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-vk"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.vkTitle))),this.props.attributes.yelpUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.yelpUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-yelp"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.yelpTitle))),this.props.attributes.quoraUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.quoraUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-quora"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.quoraTitle))),this.props.attributes.meetupUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.meetupUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-meetup"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.meetupTitle))),this.props.attributes.githubUrl&&wp.element.createElement("li",null,wp.element.createElement("a",{style:e,href:this.props.attributes.githubUrl,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-github"}),wp.element.createElement("span",{className:"screen-reader-text"},this.props.attributes.githubTitle))))}}const yD=wp.element.Component,wD=wp.compose.compose;var vD=wD(Gr,Rr(nD))(class extends yD{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.iconColorOption),a=t.buttonShapes,r=t.buttonSizes,o=t.buttonOptions,l=t.buttonFills,s=t.facebookUrl,c=t.facebookTitle,u=t.linkedinUrl,p=t.linkedinTitle,d=t.twitterUrl,m=t.twitterTitle,b=t.instagramUrl,f=t.instagramTitle,g=t.youtubeUrl,h=t.youtubeTitle,y=t.pinterestUrl,w=t.pinterestTitle,v=t.tumblrUrl,k=t.tumblrTitle,_=t.telegramUrl,S=t.telegramTitle,T=t.redditUrl,E=t.redditTitle,x=t.flickrUrl,M=t.flickrTitle,C=t.dribbbleUrl,O=t.dribbbleTitle,L=t.vkUrl,F=t.vkTitle,D=t.yelpUrl,P=t.yelpTitle,j=t.quoraUrl,N=t.quoraTitle,z=t.meetupUrl,Y=t.meetupTitle,B=t.githubUrl,A=t.githubTitle,I=e.className,R=(e.attributes,e.setAttributes,i()([I,"blockspare-socaillink-block"]));return wp.element.createElement("div",{className:R},this.props.styles,wp.element.createElement("div",{className:"blockspare-blocks blockspare-social-wrapper"},wp.element.createElement("ul",{className:i()("blockspare-social-links",n,a,r,o,l)},s&&wp.element.createElement("li",null,wp.element.createElement("a",{href:s,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-facebook-f"})," ",wp.element.createElement("span",{className:"screen-reader-text"},c)))),u&&wp.element.createElement("li",null,wp.element.createElement("a",{href:u,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"screen-reader-text"},p)))),d&&wp.element.createElement("li",null,wp.element.createElement("a",{href:d,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"screen-reader-text"},m)))),b&&wp.element.createElement("li",null,wp.element.createElement("a",{href:b,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-instagram"}),wp.element.createElement("span",{className:"screen-reader-text"},f)))),g&&wp.element.createElement("li",null,wp.element.createElement("a",{href:g,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-youtube"}),wp.element.createElement("span",{className:"screen-reader-text"},h)))),y&&wp.element.createElement("li",null,wp.element.createElement("a",{href:y,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-pinterest"}),wp.element.createElement("span",{className:"screen-reader-text"},w)))),v&&wp.element.createElement("li",null,wp.element.createElement("a",{href:v,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-tumblr"}),wp.element.createElement("span",{className:"screen-reader-text"},k)))),_&&wp.element.createElement("li",null,wp.element.createElement("a",{href:_,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-telegram"}),wp.element.createElement("span",{className:"screen-reader-text"},S)))),T&&wp.element.createElement("li",null,wp.element.createElement("a",{href:T,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-reddit"}),wp.element.createElement("span",{className:"screen-reader-text"},E)))),x&&wp.element.createElement("li",null,wp.element.createElement("a",{href:x,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-flickr"}),wp.element.createElement("span",{className:"screen-reader-text"},M)))),C&&wp.element.createElement("li",null,wp.element.createElement("a",{href:C,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-dribbble"}),wp.element.createElement("span",{className:"screen-reader-text"},O)))),L&&wp.element.createElement("li",null,wp.element.createElement("a",{href:L,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-vk"}),wp.element.createElement("span",{className:"screen-reader-text"},F)))),D&&wp.element.createElement("li",null,wp.element.createElement("a",{href:D,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-yelp"}),wp.element.createElement("span",{className:"screen-reader-text"},P)))),j&&wp.element.createElement("li",null,wp.element.createElement("a",{href:j,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-quora"}),wp.element.createElement("span",{className:"screen-reader-text"},N)))),z&&wp.element.createElement("li",null,wp.element.createElement("a",{href:z,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-meetup"}),wp.element.createElement("span",{className:"screen-reader-text"},Y)))),B&&wp.element.createElement("li",null,wp.element.createElement("a",{href:B,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-github"}),wp.element.createElement("span",{className:"screen-reader-text"},A)))))))}});const kD=wp.element.Component;class _D extends kD{constructor(){super(...arguments)}render(){return wp.element.createElement("div",{style:{textAlign:this.props.attributes.sectionAlignment},className:"blockspare-blocks blockspare-social-wrapper"},wp.element.createElement(hD,this.props))}}var SD=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.iconColorOption,r=t.customfontColorOption,o=t.custombackgroundColorOption,i=[];return"blockspare-default-official-color"!=a&&i.push({".blockspare-social-links a":{color:r,backgroundColor:o}}),i.push({".blockspare-social-wrapper":{textAlign:n}}),qr.a.all(i)};const TD=wp.element.Component,ED=wp.compose.compose;var xD=ED(Gr,Rr(SD))(class extends TD{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.sectionAlignment,t.iconColorOption),a=t.buttonShapes,r=t.buttonSizes,o=t.buttonOptions,l=t.buttonFills,s=t.facebookUrl,c=t.facebookTitle,u=t.linkedinUrl,p=t.linkedinTitle,d=t.twitterUrl,m=t.twitterTitle,b=t.instagramUrl,f=t.instagramTitle,g=t.youtubeUrl,h=t.youtubeTitle,y=t.pinterestUrl,w=t.pinterestTitle,v=t.tumblrUrl,k=t.tumblrTitle,_=t.telegramUrl,S=t.telegramTitle,T=t.redditUrl,E=t.redditTitle,x=t.flickrUrl,M=t.flickrTitle,C=t.dribbbleUrl,O=t.dribbbleTitle,L=t.vkUrl,F=t.vkTitle,D=t.yelpUrl,P=t.yelpTitle,j=t.quoraUrl,N=t.quoraTitle,z=t.meetupUrl,Y=t.meetupTitle,B=t.githubUrl,A=t.githubTitle,I=e.className,R=(e.attributes,e.setAttributes,i()([I,"blockspare-socaillink-block"]));return wp.element.createElement("div",{className:R},this.props.styles,wp.element.createElement("div",{className:"blockspare-blocks blockspare-social-wrapper"},wp.element.createElement("ul",{className:i()("blockspare-social-links",n,a,r,o,l)},s&&wp.element.createElement("li",null,wp.element.createElement("a",{href:s,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"screen-reader-text"},c))),u&&wp.element.createElement("li",null,wp.element.createElement("a",{href:u,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"screen-reader-text"},p))),d&&wp.element.createElement("li",null,wp.element.createElement("a",{href:d,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"screen-reader-text"},m))),b&&wp.element.createElement("li",null,wp.element.createElement("a",{href:b,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-instagram"}),wp.element.createElement("span",{className:"screen-reader-text"},f))),g&&wp.element.createElement("li",null,wp.element.createElement("a",{href:g,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-youtube"}),wp.element.createElement("span",{className:"screen-reader-text"},h))),y&&wp.element.createElement("li",null,wp.element.createElement("a",{href:y,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-pinterest"}),wp.element.createElement("span",{className:"screen-reader-text"},w))),v&&wp.element.createElement("li",null,wp.element.createElement("a",{href:v,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-tumblr"}),wp.element.createElement("span",{className:"screen-reader-text"},k))),_&&wp.element.createElement("li",null,wp.element.createElement("a",{href:_,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-telegram"}),wp.element.createElement("span",{className:"screen-reader-text"},S))),T&&wp.element.createElement("li",null,wp.element.createElement("a",{href:T,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-reddit"}),wp.element.createElement("span",{className:"screen-reader-text"},E))),x&&wp.element.createElement("li",null,wp.element.createElement("a",{href:x,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-flickr"}),wp.element.createElement("span",{className:"screen-reader-text"},M))),C&&wp.element.createElement("li",null,wp.element.createElement("a",{href:C,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-dribbble"}),wp.element.createElement("span",{className:"screen-reader-text"},O))),L&&wp.element.createElement("li",null,wp.element.createElement("a",{href:L,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-vk"}),wp.element.createElement("span",{className:"screen-reader-text"},F))),D&&wp.element.createElement("li",null,wp.element.createElement("a",{href:D,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-yelp"}),wp.element.createElement("span",{className:"screen-reader-text"},P))),j&&wp.element.createElement("li",null,wp.element.createElement("a",{href:j,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-quora"}),wp.element.createElement("span",{className:"screen-reader-text"},N))),z&&wp.element.createElement("li",null,wp.element.createElement("a",{href:z,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-meetup"}),wp.element.createElement("span",{className:"screen-reader-text"},Y))),B&&wp.element.createElement("li",null,wp.element.createElement("a",{href:B,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-github"}),wp.element.createElement("span",{className:"screen-reader-text"},A))))))}});function MD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function CD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OD=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MD(Object(n),!0).forEach((function(t){CD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},UF.attributes);var LD=[{attributes:OD,save:e=>wp.element.createElement(_D,e)},{attributes:OD,save:e=>wp.element.createElement(xD,e)}];const FD=wp.blocks.registerBlockType,DD=UF.name,PD=UF.category,jD=UF.attributes,ND=wp.i18n.__;FD(DD,{title:ND("BS Social Links","blockspare"),category:PD,icon:r.sociallinks,attributes:jD,keywords:[ND("block","blockspare"),ND("social","blockspare"),ND("links","blockspare"),ND("share","blockspare")],example:{attributes:{facebookUrl:"https://facebook.com",twitterUrl:"https://twitter.com",linkedinUrl:"https://www.linkedin.com/",instagramUrl:"https://instagram.com"}},edit:mD,save:vD,deprecated:LD});const zD=wp.i18n.__,YD=wp.element.Component,BD=wp.blockEditor,AD=BD.InspectorControls,ID=(BD.PanelColorSettings,wp.components),RD=ID.PanelBody,HD=ID.SelectControl,WD=ID.ToggleControl,GD=ID.TextControl;class UD extends YD{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=e.setAttributes,a=(e.clients,zD(" Icon only","blockspare"),zD("Texts only","blockspare"),zD("Icon with Texts","blockspare"),zD(" Official","blockspare"),zD("Custom","blockspare"),[{value:"blockspare-social-icon-square",label:zD("Square","blockspare")},{value:"blockspare-social-icon-circle",label:zD("Circle","blockspare")},{value:"blockspare-social-icon-rounded",label:zD("Rounded Square","blockspare")}]),r=[{value:"blockspare-social-icon-small",label:zD("Small","blockspare")},{value:"blockspare-social-icon-medium",label:zD("Medium","blockspare")},{value:"blockspare-social-icon-large",label:zD("Large","blockspare")}];zD("Solid","blockspare"),zD("Border","blockspare"),zD("None","blockspare");return wp.element.createElement(AD,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"social-sharing"}),wp.element.createElement(RD,{title:zD("Social Icon Option","blockspare"),initialOpen:!1},wp.element.createElement(HD,{label:zD("Shape","blockspare"),options:a,value:t.buttonShapes,onChange:e=>this.props.setAttributes({buttonShapes:e})}),wp.element.createElement(HD,{label:zD("Size","blockspare"),options:r,value:t.buttonSizes,onChange:e=>this.props.setAttributes({buttonSizes:e})})),wp.element.createElement(RD,{title:zD("Social Sharing Settings","blockspare"),initialOpen:!1},wp.element.createElement(RD,{title:zD("Facebook","blockspare"),initialOpen:!1},wp.element.createElement(WD,{label:zD("Enable","blockspare"),checked:!!this.props.attributes.facebook,onChange:()=>this.props.setAttributes({facebook:!this.props.attributes.facebook})}),this.props.attributes.facebook&&wp.element.createElement(GD,{label:zD("Title","blockspare"),type:"text",value:t.facebookTitle,onChange:e=>this.props.setAttributes({facebookTitle:e})})),wp.element.createElement(RD,{title:zD("Twitter","blockspare"),initialOpen:!1},wp.element.createElement(WD,{label:zD("Enable","blockspare"),checked:!!this.props.attributes.twitter,onChange:()=>this.props.setAttributes({twitter:!this.props.attributes.twitter})}),this.props.attributes.twitter&&wp.element.createElement(GD,{label:zD("Title","blockspare"),type:"text",value:t.twitterTitle,onChange:e=>this.props.setAttributes({twitterTitle:e})})),wp.element.createElement(RD,{title:zD("Pinterest","blockspare"),initialOpen:!1},wp.element.createElement(WD,{label:zD("Enable","blockspare"),checked:!!this.props.attributes.pinterest,onChange:()=>this.props.setAttributes({pinterest:!this.props.attributes.pinterest})}),this.props.attributes.pinterest&&wp.element.createElement(GD,{label:zD("Title","blockspare"),type:"text",value:t.pinterestTitle,onChange:e=>this.props.setAttributes({pinterestTitle:e})})),wp.element.createElement(RD,{title:zD("LinkedIn","blockspare"),initialOpen:!1},wp.element.createElement(WD,{label:zD("Enable","blockspare"),checked:!!this.props.attributes.linkedin,onChange:()=>this.props.setAttributes({linkedin:!this.props.attributes.linkedin})}),this.props.attributes.linkedin&&wp.element.createElement(GD,{label:zD("Title","blockspare"),type:"text",value:t.linkedinTitle,onChange:e=>this.props.setAttributes({linkedinTitle:e})}))),wp.element.createElement(RD,{title:zD("Block Gap Settings","blockspare"),initialOpen:!1},wp.element.createElement(RD,{title:zD("Margin Settings","blockspare"),initialOpen:!0},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:t.marginTop,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>n({marginTop:e}),marginEnableBottom:!0,marginBottom:t.marginBottom,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>n({marginBottom:e})})))))}}var qD=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.iconColorOption,r=t.customfontColorOption,o=t.custombackgroundColorOption,i=t.marginTop,l=t.marginBottom,s=[];return"blockspare-default-official-color"!=a&&s.push({".blockspare-social-sharing a span":{color:r,backgroundColor:o}}),s.push({".blockspare-social-wrapper":{textAlign:n,marginTop:i?i+"px":"0px",marginBottom:l?l+"px":"0px"}}),qr.a.all(s)};wp.i18n.__;const VD=wp.element.Component,$D=wp.compose.compose,JD=wp.blockEditor,XD=JD.AlignmentToolbar,KD=JD.BlockControls;var QD=$D(Gr,Rr(qD))(class extends VD{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.iconColorOption,r=t.buttonShapes,o=t.buttonSizes,l=t.buttonOptions,s=t.buttonFills,c=t.facebook,u=t.facebookTitle,p=t.twitter,d=t.twitterTitle,m=t.pinterest,b=t.pinterestTitle,f=t.linkedin,g=t.linkedinTitle,h=t.reddit,y=t.redditTitle,w=t.email,v=t.emailTitle,k=e.className,_=(e.attributes,i()([k]));return[wp.element.createElement(KD,{key:"controls"},wp.element.createElement(XD,{value:n,onChange:e=>this.props.setAttributes({sectionAlignment:e})})),wp.element.createElement(UD,this.props),wp.element.createElement("div",{className:_},this.props.styles,wp.element.createElement("div",{className:"blockspare-blocks blockspare-social-wrapper"},wp.element.createElement("ul",{className:i()("blockspare-social-sharing",a,r,o,l,s)},c&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"blockspare-share-facebook"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"blockspare-social-text"},u)))),p&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"blockspare-share-twitter"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"blockspare-social-text"},d)))),m&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"blockspare-share-pinterest"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-pinterest-p"}),wp.element.createElement("span",{className:"blockspare-social-text"},b)))),f&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"blockspare-share-linkedin"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"blockspare-social-text"},g)))),h&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"blockspare-share-reddit"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-reddit-alien"}),wp.element.createElement("span",{className:"blockspare-social-text"},y)))),w&&wp.element.createElement("li",null,wp.element.createElement("a",{className:"blockspare-share-email"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fas fa-envelope"}),wp.element.createElement("span",{className:"blockspare-social-text"},v)))))))]}});n(527),n(528);const ZD=wp.i18n.__;(0,wp.blocks.registerBlockType)("blockspare/blockspare-social-sharing",{title:ZD("BS Social Sharing","blockspare"),description:ZD("Add sharing buttons to your posts and pages.","blockspare"),icon:r.socialShare,category:"blockspare",keywords:[ZD("block","blockspare"),ZD("social","blockspare"),ZD("links","blockspare"),ZD("share","blockspare")],example:{attributes:{facebook:!0,twitter:!0,linkedin:!0}},edit:e=>wp.element.createElement(QD,e),save:()=>null});n(529),n(530);var eP=n(100);var tP=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.headerpaddingTop,m=t.headerpaddingRight,b=t.headerpaddingBottom,f=t.headerpaddingLeft,g=t.headermarginTop,h=t.headermarginBottom,y=(t.titleLoadGoogleFonts,t.titleFontFamily),w=t.titleFontWeight,v=(t.titleFontSubset,t.titleFontSizeType),k=t.titleFontSizeMobile,_=t.titleFontSizeTablet,S=t.subTitleFontSize,T=(t.subTitleLoadGoogleFonts,t.subTitleFontFamily),E=t.subTitleFontWeight,x=(t.subTitleFontSubset,t.subTitleFontSizeType),M=t.subTitleFontSizeMobile,C=t.subTitleFontSizeTablet,O=[];return O.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:d+"px",paddingRight:m+"px",paddingBottom:b+"px",marginTop:g+"px",marginBottom:h+"px",paddingLeft:f+"px"}}),O.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+v,fontFamily:y,fontWeight:w,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:S+x,fontFamily:T,fontWeight:E,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:_+v},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:C+x}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:k+v},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:M+x}}}),qr.a.all(O)};const nP=wp.i18n.__,aP=wp.element.Component,rP=wp.blockEditor.InspectorControls,oP=wp.components,iP=oP.PanelBody;oP.SelectControl;class lP extends aP{render(){const e=this.props,t=e.attributes,n=t.titleFontSize,a=t.headerboxColor,r=t.headertitleColor,o=t.headersubtitleColor,i=t.headerpaddingTop,l=t.headerpaddingRight,s=t.headerpaddingBottom,c=t.headerpaddingLeft,u=t.headermarginTop,p=t.headermarginBottom,d=t.headerlayoutOption,m=t.headerTagOption,b=t.titlePaddingTop,f=t.titlePaddingBottom,g=t.subtitlePaddingTop,h=t.subtitlePaddingBottom,y=t.dashColor,w=t.titleLoadGoogleFonts,v=t.titleFontFamily,k=t.titleFontWeight,_=t.titleFontSubset,T=t.titleFontSizeType,E=t.titleFontSizeMobile,x=t.titleFontSizeTablet,M=t.subTitleFontSize,C=t.subTitleLoadGoogleFonts,O=t.subTitleFontFamily,L=t.subTitleFontWeight,F=t.subTitleFontSubset,D=t.subTitleFontSizeType,P=t.subTitleFontSizeMobile,j=t.subTitleFontSizeTablet,N=e.attributes,z=e.setAttributes;nP("Layout 1","blockspare"),nP("Layout 2","blockspare"),nP("Layout 3","blockspare");return wp.element.createElement(rP,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"section-header"}),wp.element.createElement(Di,{headerlayoutOption:d,onChangeHeaderLayput:e=>z({headerlayoutOption:e})}),wp.element.createElement(iP,{title:nP("Typography Settings","blockspare")},wp.element.createElement(br,{label:nP("Title Fonts Settings"),attributes:N,setAttributes:z,loadGoogleFonts:{value:w,label:nP("titleLoadGoogleFonts")},fontFamily:{value:v,label:nP("titleFontFamily")},fontWeight:{value:k,label:nP("titleFontWeight")},fontSubset:{value:_,label:nP("titleFontSubset")},fontSizeType:{value:T,label:nP("titleFontSizeType")},fontSize:{value:n,label:nP("titleFontSize")},fontSizeMobile:{value:E,label:nP("titleFontSizeMobile")},fontSizeTablet:{value:x,label:nP("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:m}),wp.element.createElement(br,{label:nP("Subtitle Fonts Settings"),attributes:N,setAttributes:z,loadGoogleFonts:{value:C,label:nP("subTitleLoadGoogleFonts")},fontFamily:{value:O,label:nP("subTitleFontFamily")},fontWeight:{value:L,label:nP("subTitleFontWeight")},fontSubset:{value:F,label:nP("subTitleFontSubset")},fontSizeType:{value:D,label:nP("subTitleFontSizeType")},fontSize:{value:M,label:nP("subTitleFontSize")},fontSizeMobile:{value:P,label:nP("subTitleFontSizeMobile")},fontSizeTablet:{value:j,label:nP("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0})),wp.element.createElement(ci,{enableBlockGaps:!0,headerboxColor:a,onChangeboxcolor:e=>z({headerboxColor:e}),dashColor:y,headerlayoutOption:d,onChangeDashColor:e=>z({dashColor:e}),headerpaddingTop:i,onChangeheaderpaddingTop:e=>z({headerpaddingTop:e}),headerpaddingRight:l,onChangeheaderpaddingRight:e=>z({headerpaddingRight:e}),headerpaddingBottom:s,onChangeheaderpaddingBottom:e=>z({headerpaddingBottom:e}),headerpaddingLeft:c,onChangeheaderpaddingLeft:e=>z({headerpaddingLeft:e}),headermarginTop:u,onChangeheadermarginTop:e=>z({headermarginTop:e}),headermarginBottom:p,onChangeheadermarginBottom:e=>z({headermarginBottom:e}),headertitleColor:r,onChangetitlecolor:e=>z({headertitleColor:e}),headerTagOption:m,onChangeHeaderTag:e=>z({headerTagOption:e}),titlePaddingTop:b,onChangetitlePaddingTop:e=>z({titlePaddingTop:e}),titlePaddingBottom:f,onChangetitlePaddingBottom:e=>z({titlePaddingBottom:e}),headersubtitleColor:o,onChangesubtitlecolor:e=>z({headersubtitleColor:e}),subtitlePaddingTop:g,onChangesubtitlePaddingTop:e=>z({subtitlePaddingTop:e}),subtitlePaddingBottom:h,onChangesubtitlePaddingBottom:e=>z({subtitlePaddingBottom:e})})))}}function sP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function cP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sP(Object(n),!0).forEach((function(t){uP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pP=wp.element,dP=pP.Component,mP=pP.Fragment,bP=(wp.i18n.__,wp.blockEditor),fP=bP.BlockControls,gP=(bP.RichText,bP.BlockAlignmentToolbar,bP.AlignmentToolbar),hP=wp.components,yP=(hP.IconButton,hP.Dashicon,wp.compose.compose);var wP=yP(Gr,Rr(tP))(class extends dP{render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerTitle,o=t.headerTagOption,l=t.headerSubTitle,s=t.headerlayoutOption,c=t.titleLoadGoogleFonts,u=t.titleFontFamily,p=t.titleFontWeight,d=t.subTitleLoadGoogleFonts,m=t.subTitleFontFamily,b=t.subTitleFontWeight,f=e.className,g=(e.attributes,e.setAttributes),h=(e.isSelected,i()([f,"blockspare-section-header-wrapper blockspare-blocks","align"+n]));return[wp.element.createElement(mP,null,wp.element.createElement(fP,null,wp.element.createElement(gP,{value:a,onChange:e=>{g({sectionAlignment:e})}})),wp.element.createElement(lP,cP({setAttributes:g},this.props)),wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ki,{setAttributes:g,headerTitle:r,headerTagOption:o,headerSubTitle:l,titleFontFamily:u,titleFontWeight:p,titleLoadGoogleFonts:c,subTitleLoadGoogleFonts:d,subTitleFontFamily:m,subTitleFontWeight:b}))))]}});function vP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function kP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__,wp.blockEditor.RichText;const _P=wp.compose.compose,SP=wp.element,TP=SP.Component;SP.Fragment;var EP=_P(Gr,Rr(tP))(class extends TP{render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerTitle,o=t.headerTagOption,l=t.headerSubTitle,s=t.headerlayoutOption,c=e.className,u=e.attributes,p=(e.setAttributes,e.isSelected,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vP(Object(n),!0).forEach((function(t){kP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}}({},Wl(u)),i()([c,"blockspare-section-header-wrapper blockspare-blocks","align"+n]));return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:r,headerTagOption:o,headerSubTitle:l})))}});function xP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function MP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xP(Object(n),!0).forEach((function(t){CP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OP=wp.blockEditor,LP=OP.RichText;OP.getFontSizeClass,OP.getColorClassName;var FP=[{attributes:MP(MP({},ei),ti),save:function(e){const t=e.attributes,n=(t.align,t.headerTitle),a=t.headerTagOption,r=t.headerSubTitle,o=MP({},jl(e.attributes)),i=MP({},Nl(e.attributes)),l=MP({},zl(e.attributes));return wp.element.createElement(Vl,e,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:o}),n&&wp.element.createElement(LP.Content,{tagName:a,className:"blockspare-title",style:i,value:n}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:o})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:o}),r&&wp.element.createElement(LP.Content,{tagName:"p",className:"blockspare-subtitle",style:l,value:r}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:o})))}}];function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function PP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DP(Object(n),!0).forEach((function(t){jP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NP=wp.blocks.registerBlockType,zP=wp.i18n.__,YP=eP.name,BP=eP.category,AP=PP(PP({},ei),ti);NP(YP,{title:zP("Section Header","blockspare"),description:zP("Add your Your Header ","blockspare"),category:BP,icon:r.sectionHeader,attributes:AP,keywords:[zP("block","blockspare"),zP("section","blockspare"),zP("header","blockspare"),zP("title","blockspare"),zP("subtitle","blockspare")],supports:{align:["wide","full","center"]},example:{attributes:{cover:"https://blockspare.com",author:"Blockspare",pages:500}},edit:wP,save:EP,deprecated:FP});var IP=n(72);const RP=wp.i18n.__,HP=wp.element.Component,WP=wp.blockEditor.InspectorControls,GP=wp.components,UP=(GP.Toolbar,GP.Button,GP.PanelBody),qP=(GP.PanelRow,GP.RangeControl);class VP extends HP{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.serviceItems,t.columns),a=t.columnsGap,r=t.marginTop,o=t.marginBottom,i=(e.isSelected,e.className,e.setAttributes);return wp.element.createElement(WP,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper pricing-table-blockspare"},wp.element.createElement(S,{protitle:"👋",demoLink:"services"}),wp.element.createElement(UP,{title:RP("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(qP,{label:RP("Number of Columns","blockspare"),value:n,onChange:e=>this.props.setAttributes({columns:e}),min:1,max:4})),wp.element.createElement(UP,{title:RP("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(qP,{label:RP("Column Gaps","blockspare"),value:a,onChange:e=>this.props.setAttributes({columnsGap:e}),min:0,max:4,step:1}),wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:r,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>i({marginTop:e}),marginEnableBottom:!0,marginBottom:o,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>i({marginBottom:e})}))))}}n(531),n(532);const $P=wp.hooks,JP=($P.addFilter,$P.applyFilters),XP=wp.i18n.__,KP=wp.element.Component,QP=wp.blockEditor,ZP=QP.InspectorControls,ej=(QP.BlockDescription,QP.PanelColorSettings),tj=wp.components,nj=tj.ToggleControl,aj=tj.PanelBody,rj=(tj.FormToggle,tj.RangeControl),oj=tj.Toolbar;class ij extends KP{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.itemPadding,a=t.itemBorderWidth,o=t.itemBorderRadius,i=(t.itemBackgroundColor,t.itemBorderColor),l=(t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.enableIcon),s=t.iconName,c=t.iconSize,u=t.iconStyles,p=t.iconBackgroundColor,d=t.iconBorderColor,m=t.iconColor,b=t.iconBorderRadius,f=t.iconmarginTop,g=t.iconmarginBottom,h=t.iconAlignPosition,y=(t.enableBoxShadow,t.enableImage),w=t.enableSectionHeader,v=t.headerTagOption,k=t.headertitleColor,_=t.headersubtitleColor,S=t.headerlayoutOption,T=t.titlePaddingTop,E=t.titlePaddingBottom,x=t.subtitlePaddingTop,M=t.subtitlePaddingBottom,C=t.dashColor,O=t.headerboxColor,L=t.headerAlignPosition,F=t.titleFontSize,D=t.titleLoadGoogleFonts,P=t.titleFontFamily,j=t.titleFontWeight,N=t.titleFontSubset,z=t.titleFontSizeType,Y=t.titleFontSizeMobile,B=t.titleFontSizeTablet,A=t.subTitleFontSize,I=t.subTitleLoadGoogleFonts,R=t.subTitleFontFamily,H=t.subTitleFontWeight,W=t.subTitleFontSubset,G=t.subTitleFontSizeType,U=t.subTitleFontSizeMobile,q=t.subTitleFontSizeTablet,V=t.enableDescription,$=t.textColor,J=(t.descriptionBacgroundColor,t.descriptionAlignPosition),X=t.descriptionFontSize,K=t.descriptionFontFamily,Q=t.descriptionFontWeight,Z=t.descriptionFontSubset,ee=t.descriptionFontSizeType,te=t.descriptionFontSizeMobile,ne=t.descriptionFontSizeTablet,ae=t.descriptionLoadGoogleFonts,re=t.descriptionpaddingTop,oe=t.descriptionpaddingRight,ie=t.descriptionpaddingBottom,le=t.descriptionpaddingLeft,se=t.enableButton,ce=t.buttonAlignPosition,ue=t.buttonStyle,pe=t.borderColor,de=t.borderBtnTextColor,me=t.buttonBackgroundColor,be=t.buttonTextColor,fe=t.buttonSize,ge=t.buttonShape,he=t.buttonTarget,ye=t.buttonPaddingTop,we=t.buttonPaddingBottom,ve=t.enableGradient,ke=t.backgroundColor1,_e=t.backgroundColor2,Se=t.gradientAngle,Ee=t.colorLocation1,xe=t.colorLocation2,Me=t.btnFontWeight,Ce=t.btnBorderWidth,Le=t.buttonHoverEffect,Fe=t.buttonFontSize,De=t.buttonFontFamily,je=t.buttonFontWeight,Ne=t.buttonFontSubset,ze=t.buttonFontSizeType,Be=t.buttonFontSizeMobile,Ae=t.buttonFontSizeTablet,Ie=t.buttonLoadGoogleFonts,Re=t.imgPaddingTop,He=t.imgPaddingBottom,We=t.servicesLayout,Ge=t.primaryColor,Ue=t.secondaryColor,qe=t.tertianeryColor,Ve=(e.isSelected,e.attributes),$e=(e.className,e.setAttributes);return wp.element.createElement(ZP,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(aj,{title:XP("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(Oi,{initialOpen:!1,selected:We,options:JP("blockspare.cta.edit.layouts",[{label:XP("Style 1","blockspare"),value:"bsl-1",image:"images/service-layout-1.png"},{label:XP("Style 2","blockspare"),value:"bsl-2",image:"images/service-layout-2.png"},{label:XP("Style 3","blockspare"),value:"bsl-3",image:"images/service-layout-3.png"}]),onChange:e=>$e({servicesLayout:e})}),wp.element.createElement(rj,{label:XP("Service Column Border","blockspare"),value:a,onChange:e=>this.props.setAttributes({itemBorderWidth:e}),min:0,max:10,step:1}),wp.element.createElement(rj,{label:XP("Service Column Border Radius","blockspare"),value:o,onChange:e=>this.props.setAttributes({itemBorderRadius:e}),min:0,max:20,step:1})),wp.element.createElement(aj,{title:XP("Icon"),initialOpen:!1,icon:r.iconblockspare},wp.element.createElement(nj,{label:XP("Enable Icon","blockspare"),checked:l,onChange:()=>this.props.setAttributes({enableIcon:!l})}),l&&wp.element.createElement(dd,{enablecontent:!0,enableColor:!1,name:s,onChangeName:e=>$e({iconName:e}),enableiconSize:!1,iconSize:c,onChangeIconSizeOptions:e=>$e({iconSize:e}),enableiconStyles:!1,iconStyles:u,onChangeIconStyles:e=>$e({iconStyles:e}),iconBackgroundColor:p,onChangeIconBackgroundColor:e=>$e({iconBackgroundColor:e}),iconBorderColor:d,onChangeIconBorderColor:e=>$e({iconBorderColor:e}),iconColor:m,OnChangeIconColor:e=>$e({iconColor:e}),borderRadius:b,onChangeBorderRadius:e=>$e({iconBorderRadius:e})})),wp.element.createElement(aj,{icon:r.sectionHeader,title:XP("Header","blockspare"),initialOpen:!1},wp.element.createElement(nj,{label:XP("Enable Title/Subtitle","blockspare"),checked:w,onChange:()=>this.props.setAttributes({enableSectionHeader:!w})}),w&&wp.element.createElement("div",null,wp.element.createElement(Di,{headerlayoutOption:S,onChangeHeaderLayput:e=>$e({headerlayoutOption:e})}))),wp.element.createElement(aj,{title:XP("Description","blockspare"),initialOpen:!1,icon:r.iconlist},wp.element.createElement(nj,{label:XP("Enable Description","blockspare"),checked:V,onChange:()=>this.props.setAttributes({enableDescription:!V})})),wp.element.createElement(aj,{title:XP("Button","blockspare"),initialOpen:!1,icon:r.button},wp.element.createElement(nj,{label:XP("Enable button","blockspare"),checked:se,onChange:()=>this.props.setAttributes({enableButton:!se})}),se&&wp.element.createElement("div",null,wp.element.createElement(Te,{enableButtonBackgroundColor:!1,enableButtonTarget:!1,buttonTarget:he,onChangeButtonTarget:e=>$e({buttonTarget:!he}),enableGradient:ve,onChangeGradient:e=>$e({enableGradient:e}),enableButtonSize:!1,buttonSize:fe,onChangeButtonSize:e=>$e({buttonSize:e}),enableButtonShape:!1,buttonShape:ge,onChangeButtonShape:e=>$e({buttonShape:e}),buttonBackgroundColor:me,onChangeButtonColor:e=>$e({buttonBackgroundColor:e}),buttonTextColor:be,onChangeButtonTextColor:e=>$e({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:ue,onChangeBorderStyle:e=>$e({buttonStyle:e}),enablehover:!0,buttonHoverEffect:Le,onchangeButtonHoverEffect:e=>$e({buttonHoverEffect:e}),borderColor:pe,onchangeBorderColor:e=>$e({borderColor:e}),borderBtnTextColor:de,onChangeBorderBtnTextColor:e=>$e({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:Ce,onchangebtnBorderWidth:e=>$e({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:Me,onchangeBtnFontWeight:e=>$e({btnFontWeight:e})}),"none"===ue&&wp.element.createElement(nj,{label:XP("Enable Gradient","blockspare"),checked:ve,onChange:()=>this.props.setAttributes({enableGradient:!ve})}))),wp.element.createElement(aj,{title:XP("Typography Settings","blockspare"),initialOpen:!1},w&&wp.element.createElement(aj,{title:XP("Title/subtitle","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:XP("Title Fonts Settings"),attributes:Ve,setAttributes:$e,loadGoogleFonts:{value:D,label:XP("titleLoadGoogleFonts")},fontFamily:{value:P,label:XP("titleFontFamily")},fontWeight:{value:j,label:XP("titleFontWeight")},fontSubset:{value:N,label:XP("titleFontSubset")},fontSizeType:{value:z,label:XP("titleFontSizeType")},fontSize:{value:F,label:XP("titleFontSize")},fontSizeMobile:{value:Y,label:XP("titleFontSizeMobile")},fontSizeTablet:{value:B,label:XP("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:v}),wp.element.createElement(br,{label:XP("Subtitle Fonts Settings"),attributes:Ve,setAttributes:$e,loadGoogleFonts:{value:I,label:XP("subTitleLoadGoogleFonts")},fontFamily:{value:R,label:XP("subTitleFontFamily")},fontWeight:{value:H,label:XP("subTitleFontWeight")},fontSubset:{value:W,label:XP("subTitleFontSubset")},fontSizeType:{value:G,label:XP("subTitleFontSizeType")},fontSize:{value:A,label:XP("subTitleFontSize")},fontSizeMobile:{value:U,label:XP("subTitleFontSizeMobile")},fontSizeTablet:{value:q,label:XP("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0})),V&&wp.element.createElement(aj,{title:XP("Description","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:XP("Description Fonts Settings"),attributes:Ve,setAttributes:$e,loadGoogleFonts:{value:ae,label:XP("descriptionLoadGoogleFonts")},fontFamily:{value:K,label:XP("descriptionFontFamily")},fontWeight:{value:Q,label:XP("descriptionFontWeight")},fontSubset:{value:Z,label:XP("descriptionFontSubset")},fontSizeType:{value:ee,label:XP("descriptionFontSizeType")},fontSize:{value:X,label:XP("descriptionFontSize")},fontSizeMobile:{value:te,label:XP("descriptionFontSizeMobile")},fontSizeTablet:{value:ne,label:XP("descriptionFontSizeTablet")},disableLineHeight:!0})),se&&wp.element.createElement(aj,{title:XP("Button","blockspare"),initialOpen:!1},wp.element.createElement(br,{label:XP("Button Fonts Settings"),attributes:Ve,setAttributes:$e,loadGoogleFonts:{value:Ie,label:XP("buttonLoadGoogleFonts")},fontFamily:{value:De,label:XP("buttonFontFamily")},fontWeight:{value:je,label:XP("buttonFontWeight")},fontSubset:{value:Ne,label:XP("buttonFontSubset")},fontSizeType:{value:ze,label:XP("buttonFontSizeType")},fontSize:{value:Fe,label:XP("buttonFontSize")},fontSizeMobile:{value:Be,label:XP("buttonFontSizeMobile")},fontSizeTablet:{value:Ae,label:XP("buttonFontSizeTablet")},disableLineHeight:!0}))),wp.element.createElement(aj,{title:XP("Color Settings","blockspare"),initialOpen:!1},wp.element.createElement(aj,{title:XP("Block Color","blockspare"),initialOpen:!1},0<a&&wp.element.createElement(ej,{title:XP("Border Color","blockspare"),initialOpen:!1,colorSettings:[{value:i,onChange:e=>$e({itemBorderColor:e}),label:XP("Border Color","blockspare")}]})),wp.element.createElement(ej,{title:XP("Item Color","blockspare"),initialOpen:!1,colorSettings:[{value:Ge,onChange:e=>$e({primaryColor:e}),label:XP("Primary Color","blockspare")},{value:Ue,onChange:e=>$e({secondaryColor:e}),label:XP("Secondary Color","blockspare")},{value:qe,onChange:e=>$e({tertianeryColor:e}),label:XP("Tertianery Color","blockspare")}]}),l&&wp.element.createElement(aj,{title:XP("Icon Color","blockspare"),initialOpen:!1},wp.element.createElement(dd,{enablecontent:!1,enableColor:!0,name:s,onChangeName:e=>$e({iconName:e}),enableiconSize:!0,iconSize:c,onChangeIconSizeOptions:e=>$e({iconSize:e}),enableiconStyles:!0,iconStyles:u,onChangeIconStyles:e=>$e({iconStyles:e}),iconBackgroundColor:p,onChangeIconBackgroundColor:e=>$e({iconBackgroundColor:e}),iconBorderColor:d,onChangeIconBorderColor:e=>$e({iconBorderColor:e}),iconColor:m,OnChangeIconColor:e=>$e({iconColor:e}),borderRadius:b,onChangeBorderRadius:e=>$e({iconBorderRadius:e})})),w&&wp.element.createElement(aj,{title:XP("Title/subtitle Color","blockspare"),initialOpen:!1},wp.element.createElement(ci,{enableBlockGaps:!1,enableColors:!0,enablecontentgaps:!1,headerboxColor:O,onChangeboxcolor:e=>$e({headerboxColor:e}),dashColor:C,headerlayoutOption:S,onChangeDashColor:e=>$e({dashColor:e}),headertitleColor:k,onChangetitlecolor:e=>$e({headertitleColor:e}),titlePaddingTop:T,onChangetitlePaddingTop:e=>$e({titlePaddingTop:e}),titlePaddingBottom:E,onChangetitlePaddingBottom:e=>$e({titlePaddingBottom:e}),headersubtitleColor:_,onChangesubtitlecolor:e=>$e({headersubtitleColor:e}),subtitlePaddingTop:x,onChangesubtitlePaddingTop:e=>$e({subtitlePaddingTop:e}),subtitlePaddingBottom:M,onChangesubtitlePaddingBottom:e=>$e({subtitlePaddingBottom:e})})),V&&wp.element.createElement(aj,{title:XP("Description Color","blockspare"),initialOpen:!1},wp.element.createElement(ej,{title:XP("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:$,onChange:e=>$e({textColor:e}),label:XP("Text Color","blockspare")}]})),se&&wp.element.createElement(aj,{title:XP("Button Color","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonBackgroundColor:!0,enableButtonTarget:!1,buttonTarget:he,onChangeButtonTarget:e=>$e({buttonTarget:!he}),enableGradient:ve,onChangeGradient:e=>$e({enableGradient:e}),enableButtonSize:!1,buttonSize:fe,onChangeButtonSize:e=>$e({buttonSize:e}),enableButtonShape:!1,buttonShape:ge,onChangeButtonShape:e=>$e({buttonShape:e}),buttonBackgroundColor:me,onChangeButtonColor:e=>$e({buttonBackgroundColor:e}),buttonTextColor:be,onChangeButtonTextColor:e=>$e({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:ue,onChangeBorderStyle:e=>$e({buttonStyle:e}),enablehover:!1,buttonHoverEffect:Le,onchangeButtonHoverEffect:e=>$e({buttonHoverEffect:e}),borderColor:pe,onchangeBorderColor:e=>$e({borderColor:e}),borderBtnTextColor:de,onChangeBorderBtnTextColor:e=>$e({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:Ce,onchangebtnBorderWidth:e=>$e({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:Me,onchangeBtnFontWeight:e=>$e({btnFontWeight:e})}),ve&&"none"===ue&&wp.element.createElement(Oe,{backgroundColor1:ke,onChangeBackgroundColor1:e=>$e({backgroundColor1:e}),backgroundColor2:_e,onChangeBackgroundColor2:e=>$e({backgroundColor2:e}),gradientAngle:Se,onChangeGradientAngle:e=>$e({gradientAngle:e}),colorLocation1:Ee,onChangeColorLocation1:e=>$e({colorLocation1:e}),colorLocation2:xe,onChangeColorLocation2:e=>$e({colorLocation2:e})}))),wp.element.createElement(aj,{title:"Alignment",initialOpen:!1},l&&wp.element.createElement(aj,{title:"Icon"},wp.element.createElement(oj,{controls:[{icon:"align-left",title:XP("Left","blockspare"),onClick:()=>$e({iconAlignPosition:"left"}),isActive:"left"===h},{icon:"align-center",title:XP("Center","blockspare"),onClick:()=>$e({iconAlignPosition:"center"}),isActive:"center"===h},{icon:"align-right",title:XP("Right","blockspare"),onClick:()=>$e({iconAlignPosition:"right"}),isActive:"right"===h}]})),w&&wp.element.createElement(aj,{title:"Title"},wp.element.createElement(oj,{controls:[{icon:"align-left",title:XP("Left","blockspare"),onClick:()=>$e({headerAlignPosition:"left"}),isActive:"left"===L},{icon:"align-center",title:XP("Center","blockspare"),onClick:()=>$e({headerAlignPosition:"center"}),isActive:"center"===L},{icon:"align-right",title:XP("Right","blockspare"),onClick:()=>$e({headerAlignPosition:"right"}),isActive:"right"===L}]})),V&&wp.element.createElement(aj,{title:"Description"},wp.element.createElement(oj,{controls:[{icon:"align-left",title:XP("Left","blockspare"),onClick:()=>$e({descriptionAlignPosition:"left"}),isActive:"left"===J},{icon:"align-center",title:XP("Center","blockspare"),onClick:()=>$e({descriptionAlignPosition:"center"}),isActive:"center"===J},{icon:"align-right",title:XP("Right","blockspare"),onClick:()=>$e({descriptionAlignPosition:"right"}),isActive:"right"===J}]})),se&&wp.element.createElement(aj,{title:"Button"},wp.element.createElement(oj,{controls:[{icon:"align-left",title:XP("Left","blockspare"),onClick:()=>$e({buttonAlignPosition:"left"}),isActive:"left"===ce},{icon:"align-center",title:XP("Center","blockspare"),onClick:()=>$e({buttonAlignPosition:"center"}),isActive:"center"===ce},{icon:"align-right",title:XP("Right","blockspare"),onClick:()=>$e({buttonAlignPosition:"right"}),isActive:"right"===ce}]}))),wp.element.createElement(aj,{title:XP("Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(aj,{title:XP("Block","blockspare"),initialOpen:!1},wp.element.createElement(rj,{label:XP("Service Column Padding","blockspare"),value:n,onChange:e=>this.props.setAttributes({itemPadding:e}),min:0,max:20,initialPosition:5,step:1})),l&&wp.element.createElement(aj,{title:XP("Icon Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:f,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>$e({iconmarginTop:e}),marginEnableBottom:!0,marginBottom:g,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>$e({iconmarginBottom:e})})),y&&wp.element.createElement(aj,{title:XP("Image Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:Re,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>$e({imgPaddingTop:e}),paddingEnableBottom:!0,paddingBottom:He,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>$e({imgPaddingBottom:e})})),w&&wp.element.createElement(ci,{enableBlockGaps:!1,enableColors:!1,enablecontentgaps:!0,headerboxColor:O,onChangeboxcolor:e=>$e({headerboxColor:e}),dashColor:C,headerlayoutOption:S,onChangeDashColor:e=>$e({dashColor:e}),headertitleColor:k,onChangetitlecolor:e=>$e({headertitleColor:e}),titlePaddingTop:T,onChangetitlePaddingTop:e=>$e({titlePaddingTop:e}),titlePaddingBottom:E,onChangetitlePaddingBottom:e=>$e({titlePaddingBottom:e}),headersubtitleColor:_,onChangesubtitlecolor:e=>$e({headersubtitleColor:e}),subtitlePaddingTop:x,onChangesubtitlePaddingTop:e=>$e({subtitlePaddingTop:e}),subtitlePaddingBottom:M,onChangesubtitlePaddingBottom:e=>$e({subtitlePaddingBottom:e})}),V&&wp.element.createElement(aj,{title:XP("Description Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:re,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>$e({descriptionpaddingTop:e}),paddingEnableRight:!0,paddingRight:oe,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>$e({descriptionpaddingRight:e}),paddingEnableBottom:!0,paddingBottom:ie,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>$e({descriptionpaddingBottom:e}),paddingEnableLeft:!0,paddingLeft:le,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>$e({descriptionpaddingLeft:e})})),se&&wp.element.createElement(aj,{title:XP("Button Gaps","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:ye,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>$e({buttonPaddingTop:e}),paddingEnableBottom:!0,paddingBottom:we,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>$e({buttonPaddingBottom:e})})))))}}function lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function sj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lj(Object(n),!0).forEach((function(t){cj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uj=e=>{const t=e.attributes,n=t.itemBorderWidth,a=t.itemBorderColor,r=t.itemBorderRadius,o=t.itemBackgroundColor,i=t.itemPadding,l=t.servicesLayout,s=t.primaryColor,c=t.secondaryColor,u=t.tertianeryColor,p=[];return p.push({".blockspare-block-service-table-inside":sj(sj({},Qi(e.attributes)),{},{borderWidth:n?n+"px":null,borderStyle:0<n?"solid":null,borderColor:a||null,borderRadius:r?r+"px":null,backgroundColor:o||"",padding:i+"px"})}),"bsl-1"===l&&(p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-1:before":{backgroundColor:s}}),p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-2:before":{backgroundColor:c}}),p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-3:before":{backgroundColor:u}})),"bsl-2"===l&&(p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-1:before":{backgroundColor:s}}),p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-2:before":{backgroundColor:c}}),p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-3:before":{backgroundColor:u}})),"bsl-3"===l&&(p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-1:before":{backgroundColor:s}}),p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-2:before":{backgroundColor:c}}),p.push({".blockspare-block-service-table-inside .blockspare-service-wrap-3:before":{backgroundColor:u}})),qr.a.all(p)};var pj=e=>{const t=e.attributes,n=(t.sectionAlignment,t.iconStyles),a=t.iconBackgroundColor,r=t.iconBorderColor,o=t.iconColor,i=t.iconBorderRadius,l=t.iconmarginTop,s=t.iconmarginBottom,c=t.iconAlignPosition,u=[];return u.push({".blockspare-block-icon-wrapper":{textAlign:c,marginTop:l+"px",marginBottom:s+"px"}}),"blockspare-icon-style2"===n?u.push({".blockspare-block-icon":{backgroundColor:a||"#8b249c",borderColor:r||"#8b249c",color:o||"#fff",borderRadius:i+"%"}}):"blockspare-icon-style3"===n?u.push({".blockspare-block-icon":{backgroundColor:"transparent",borderColor:r||"#8b249c",color:o||"#fff",borderRadius:i+"%"}}):u.push({".blockspare-block-icon":{color:o||"#fff"}}),qr.a.all(u)};const dj=wp.element,mj=dj.Component,bj=dj.Fragment,fj=(wp.i18n.__,wp.compose.compose),gj=wp.blockEditor;gj.AlignmentToolbar,gj.BlockControls;var hj=fj(Gr,Rr(pj,{editorMode:!0}))(class extends mj{constructor(){super(...arguments),this.state={device:"md",spacer:!0}}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}render(){const e=this.props,t=e.attributes,n=t.iconName,a=t.iconSize,r=t.iconStyles,o=(t.sectionAlignment,e.className),l=(e.attributes,e.setAttributes,i()([o,"blockspare-service-icon"]));return wp.element.createElement(bj,null,wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r)},wp.element.createElement("i",{className:n})))))}});var yj=e=>{const t=e.attributes,n=t.imgPaddingTop,a=t.imgPaddingBottom,r=[];return r.push({".blockspare-service-image":{paddingTop:n+"px",paddingBottom:a+"px"}}),qr.a.all(r)};const wj=wp.i18n.__,vj=wp.element,kj=vj.Component,_j=vj.Fragment,Sj=wp.compose.compose,Tj=wp.blockEditor.MediaUpload,Ej=wp.components.IconButton;var xj=Sj(Gr,Rr(yj))(class extends kj{render(){const e=this.props,t=e.attributes,n=t.imgURL,a=t.imgID,r=t.imgAlt,o=(e.attributes,e.setAttributes),i=()=>{o({imgID:null,imgURL:null,imgAlt:null})};return wp.element.createElement(_j,null,wp.element.createElement("div",{className:"blockspare-img-wrap"},this.props.styles,wp.element.createElement(Tj,{onSelect:e=>{o({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:a,render:({open:e})=>wp.element.createElement("div",null,wp.element.createElement(Ej,{className:"aft-cta-inspector-media",label:wj("Edit image","blockspare"),icon:"format-image",onClick:e},n&&!!n.length&&wp.element.createElement("p",null,wj("Edit Image","blockspare")),!n&&wp.element.createElement("p",null,wj("Add Image","blockspare"))),n&&!!n.length&&wp.element.createElement(Ej,{className:"blockspare-cta-inspector-media",label:wj("Remove Image","blockspare"),icon:"dismiss",onClick:i},wj("Remove","blockspare")))}),wp.element.createElement("div",{className:"blockspare-service-image"},n&&!!n.length&&wp.element.createElement("img",{src:n,alt:r}))))}});var Mj=e=>{const t=e.attributes,n=t.headerAlignPosition,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.subTitleFontSize,y=(t.subTitleLoadGoogleFonts,t.subTitleFontFamily),w=t.subTitleFontWeight,v=(t.subTitleFontSubset,t.subTitleFontSizeType),k=t.subTitleFontSizeMobile,_=t.subTitleFontSizeTablet,S=t.headerpaddingTop,T=(t.headerpaddingRight,t.headerpaddingBottom),E=(t.headerpaddingLeft,t.headermarginTop,t.headermarginBottom,[]);return E.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:S+"px",paddingBottom:T+"px"}}),E.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:h+v,fontFamily:y,fontWeight:w,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-title":{fontSize:g+b},".blockspare-subtitle":{fontSize:_+v}},mobile:{".blockspare-title":{fontSize:f+b},".blockspare-subtitle":{fontSize:k+v}}}),qr.a.all(E)};const Cj=wp.element,Oj=Cj.Component,Lj=Cj.Fragment,Fj=(wp.i18n.__,wp.compose.compose),Dj=wp.blockEditor;Dj.RichText,Dj.AlignmentToolbar,Dj.BlockControls;var Pj=Fj(Gr,Rr(Mj))(class extends Oj{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.headerAlignPosition,r=t.headerTagOption,o=t.headerTitle,l=t.headerSubTitle,s=t.headerlayoutOption,c=t.titleLoadGoogleFonts,u=t.titleFontFamily,p=t.titleFontWeight,d=t.subTitleLoadGoogleFonts,m=t.subTitleFontFamily,b=t.subTitleFontWeight,f=e.className,g=(e.attributes,e.setAttributes),h=i()([f,"blockspare-section-header-wrapper blockspare-blocks","align"+n]);return[wp.element.createElement(Lj,null,wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ki,{setAttributes:g,headerTitle:o,headerTagOption:r,headerSubTitle:l,titleFontFamily:u,titleFontWeight:p,titleLoadGoogleFonts:c,subTitleLoadGoogleFonts:d,subTitleFontFamily:m,subTitleFontWeight:b}))))]}});var jj=e=>{const t=e.attributes,n=t.buttonAlignPosition,a=t.buttonPaddingTop,r=t.buttonPaddingRight,o=t.buttonPaddingBottom,i=t.buttonPaddingLeft,l=t.buttonStyle,s=t.enableGradient,c=t.backgroundColor1,u=t.backgroundColor2,p=t.gradientAngle,d=t.colorLocation1,m=t.colorLocation2,b=(t.btnFontWeight,t.btnBorderWidth),f=t.borderColor,g=t.buttonBackgroundColor,h=t.borderBtnTextColor,y=t.buttonTextColor,w=t.buttonFontSize,v=t.buttonFontFamily,k=t.buttonFontWeight,_=t.buttonFontSizeType,S=t.buttonFontSizeMobile,T=t.buttonFontSizeTablet,E=t.enableButtonIcon,x=t.buttonIconColor,M=[];if(M.push({".blockspare-block-button":{textAlign:n},".blockspare-pricing-table-button":{paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),E&&M.push({".blockspare-block-button i":{color:x}}),"none"===l)if(1==s){const e=p+"deg",t=d+"%",n=m+"%";M.push({".blockspare-block-button span":{color:y||"#fff",borderWidth:b+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${c||"#3B1A5B"} ${t},${u||"#8B249C"} ${n})`}})}else M.push({".blockspare-block-button span":{color:y||"#fff",borderWidth:b+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:g||"#3c1a5b"}});else M.push({".blockspare-block-button span":{color:h||"#404040"},".blockspare-block-button .blockspare-button":{borderColor:f||"#3c1a5b",borderStyle:l,borderWidth:b+"px",backgroundColor:"transparent"}});return M.push({".blockspare-block-button span":{fontSize:w+_,fontFamily:v,fontWeight:k},tablet:{".blockspare-block-button span":{fontSize:T+_}},mobile:{".blockspare-block-button span":{fontSize:S+_}}}),qr.a.all(M)};const Nj=wp.i18n.__,zj=wp.compose.compose,Yj=wp.element,Bj=Yj.Component,Aj=Yj.Fragment,Ij=wp.blockEditor,Rj=Ij.RichText,Hj=(Ij.AlignmentToolbar,Ij.BlockControls,Ij.URLInput),Wj=wp.components,Gj=Wj.IconButton,Uj=Wj.Dashicon;var qj=zj([Gr,Rr(jj)])(class extends Bj{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.sectionAlignment,o=t.buttonSize,l=t.buttonShape,s=t.buttonHoverEffect,c=t.buttonLoadGoogleFonts,u=t.buttonFontFamily,p=t.buttonFontWeight,d=t.enableButtonIcon,m=t.buttonIcon,b=t.buttonIconPosition,f=e.className,g=(e.isSelected,e.attributes,e.setAttributes);e.backgroundColor;let h;if(1==c){const e={google:{families:[u+(p?":"+p:"")]}};h=wp.element.createElement(oo,{config:e})}const y=i()({"blockspare-pricing-table-button":!0}),w=i()([f,"blockspare-block-button-wrap"]);return[wp.element.createElement(Aj,null,wp.element.createElement("div",{className:w},this.props.styles,wp.element.createElement("div",{className:y||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},wp.element.createElement("a",{href:"#",className:i()("blockspare-button",l,o,s,b)},d&&wp.element.createElement("i",{className:m}),wp.element.createElement(Rj,{tagName:"span",placeholder:Nj("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:""+n,allowedFormats:[],onChange:e=>g({buttonText:e})}))),wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+r,onSubmit:e=>e.preventDefault()},wp.element.createElement(Uj,{icon:"admin-links"}),wp.element.createElement(Hj,{className:"button-url",value:a,onChange:e=>g({buttonUrl:e})}),wp.element.createElement(Gj,{icon:"editor-break",label:Nj("Apply","blockspare"),type:"submit"})))),h)]}});var Vj=e=>{const t=e.attributes,n=t.descriptionAlignPosition,a=(t.customFontSize,t.descriptionBacgroundColor),r=t.textColor,o=t.descriptionpaddingTop,i=t.descriptionpaddingRight,l=t.descriptionpaddingBottom,s=t.descriptionpaddingLeft,c=t.descriptionFontSize,u=t.descriptionFontFamily,p=t.descriptionFontWeight,d=(t.descriptionFontSubset,t.descriptionFontSizeType),m=t.descriptionFontSizeMobile,b=t.descriptionFontSizeTablet,f=(t.descriptionLoadGoogleFonts,[]);return f.push({".blockspare-services-inner-description":{fontSize:c+d,fontFamily:u,fontWeight:p,color:r||"#6d6d6d",backgroundColor:a,paddingTop:o?o+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0},tablet:{".blockspare-services-inner-description":{fontSize:b+d}},mobile:{".blockspare-services-inner-description":{fontSize:m+d}}}),n&&f.push({".blockspare-services-inner-description":{textAlign:n}}),qr.a.all(f)};const $j=wp.i18n.__,Jj=wp.compose.compose,Xj=wp.element,Kj=Xj.Component,Qj=Xj.Fragment,Zj=wp.blockEditor,eN=Zj.RichText;Zj.AlignmentToolbar,Zj.BlockControls;var tN=Jj([Gr,Rr(Vj)])(class extends Kj{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.features,a=t.descriptionLoadGoogleFonts,r=t.descriptionFontFamily,o=t.descriptionFontWeight,l=(t.sectionAlignment,e.isSelected,e.className),s=e.setAttributes;let c;if(1==a){const e={google:{families:[r+(o?":"+o:"")]}};c=wp.element.createElement(oo,{config:e})}const u=i()([l,"blockspare-services-description"]);return[wp.element.createElement(Qj,null,wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement(eN,{tagName:"p",itemProp:"description",placeholder:$j("Add a service feature","blockspare"),keepPlaceholderOnFocus:!0,value:n,onChange:e=>s({features:e}),className:"blockspare-services-inner-description"})),c)]}});wp.i18n.__;const nN=wp.element,aN=nN.Component,rN=nN.Fragment,oN=wp.compose.compose;var iN=oN(Gr,Rr(uj))(class extends aN{render(){const e=this.props,t=e.attributes,n=t.alignment,a=t.enableSectionHeader,r=t.enableButton,o=t.enableDescription,l=t.enableIcon,s=t.enableImage,c=t.servicesLayout,u=(e.attributes,e.className);e.setAttributes;return wp.element.createElement(rN,null,wp.element.createElement(ij,this.props),wp.element.createElement("div",{className:i()(u,n?"blockspare-block-service-table-"+n:"blockspare-block-service-table-center","blockspare-block-service-table",l&&s?"enable-img-icon":"",l?"enable-icon":"",s?"enable-img":"","bsl-1"==c?"layout-item-1 order-1":"","bsl-2"==c?"layout-item-1 order-2":"","bsl-3"==c?"layout-item-1 order-3":"","bsl-4"==c?"layout-item-2 order-1":"","bsl-5"==c?"layout-item-2 order-2":"","bsl-6"==c?"layout-item-2 order-3":""),itemScope:!0,itemType:"http://schema.org/Product"},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-service-table-inside")},wp.element.createElement("div",{className:"blockspare-service-wrap-1"},l&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c||"bsl-4"==c||"bsl-5"==c||"bsl-6"==c)&&wp.element.createElement(hj,this.props),s&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c||"bsl-4"==c||"bsl-5"==c||"bsl-6"==c)&&wp.element.createElement(xj,this.props)),wp.element.createElement("div",{className:"blockspare-service-wrap-2"},a&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c)&&wp.element.createElement(Pj,this.props)),wp.element.createElement("div",{className:"blockspare-service-wrap-3"},o&&("bsl-1"==c||"bsl-2"===c||"bsl-3"===c)&&wp.element.createElement(tN,this.props),r&&("bsl-1"===c||"bsl-2"===c||"bsl-3"===c)&&wp.element.createElement(qj,this.props)))))}});const lN=wp.element.Component,sN=wp.compose.compose;var cN=sN(Gr,Rr(pj))(class extends lN{render(){const e=this.props,t=e.attributes,n=t.iconName,a=t.iconSize,r=t.iconStyles,o=e.className,l=i()([o,"blockspare-service-icon"]);return wp.element.createElement("div",{className:l},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-icon-wrapper"},wp.element.createElement("div",{className:i()("blockspare-block-icon",a,r)},wp.element.createElement("i",{className:n}))))}});wp.i18n.__;const uN=wp.element,pN=uN.Component,dN=uN.Fragment,mN=wp.compose.compose;var bN=mN(Gr,Rr(yj))(class extends pN{render(){const e=this.props.attributes.imgURL;return wp.element.createElement(dN,null,this.props.styles,wp.element.createElement("div",{className:"blockspare-service-image"},e&&wp.element.createElement("img",{src:e})))}});const fN=wp.element.Component,gN=(wp.i18n.__,wp.compose.compose);var hN=gN(Gr,Rr(Mj))(class extends fN{render(){const e=this.props,t=e.attributes,n=t.align,a=t.headerAlignPosition,r=t.headerTitle,o=t.headerTagOption,l=t.headerSubTitle,s=t.headerlayoutOption,c=e.className,u=(e.attributes,e.setAttributes,e.isSelected,i()([c,"blockspare-section-header-wrapper blockspare-blocks","align"+n]));return wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:r,headerTagOption:o,headerSubTitle:l})))}});wp.i18n.__;const yN=wp.compose.compose,wN=wp.element,vN=wN.Component,kN=(wN.Fragment,wp.blockEditor),_N=kN.RichText;kN.withFontSizes,kN.withColors;var SN=yN([Gr,Rr(Vj)])(class extends vN{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes.features,n=e.className,a=i()([n,"blockspare-services-description"]);return wp.element.createElement("div",{className:a},this.props.styles,wp.element.createElement(_N.Content,{tagName:"p",itemProp:"description",value:t,className:"blockspare-services-inner-description"}))}});const TN=wp.blockEditor,EN=TN.RichText,xN=(TN.getColorClassName,wp.i18n.__,wp.compose.compose),MN=wp.element,CN=MN.Component;MN.Fragment;var ON=xN(Gr,Rr(jj))(class extends CN{render(){const e=this.props,t=e.attributes,n=t.buttonText,a=t.buttonUrl,r=t.buttonSize,o=t.buttonShape,l=t.buttonTarget,s=t.buttonHoverEffect,c=t.enableButtonIcon,u=t.buttonIcon,p=t.buttonIconPosition,d=(e.attributes,e.className),m=i()({"blockspare-pricing-table-button":!0}),b=i()([d,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:b},this.props.styles,wp.element.createElement("div",{className:m||void 0},wp.element.createElement("div",{className:"blockspare-block-button"},n&&wp.element.createElement("a",{href:a,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("blockspare-button",o,r,s,p)},c&&wp.element.createElement("i",{className:u}),wp.element.createElement(EN.Content,{tagName:"span",value:n})))))}});wp.i18n.__;const LN=wp.element,FN=LN.Component,DN=(LN.Fragment,wp.compose.compose);wp.blockEditor.InnerBlocks;var PN=DN(Gr,Rr(uj))(class extends FN{render(){const e=this.props,t=e.attributes,n=t.alignment,a=t.enableSectionHeader,r=t.enableButton,o=t.enableDescription,l=t.enableIcon,s=t.enableImage,c=t.servicesLayout,u=e.className;e.attributes;return wp.element.createElement("div",{className:i()(u,"blockspare-blocks",n?"blockspare-block-service-table-"+n:"blockspare-block-service-table-center","blockspare-block-service-table",l&&s?"enable-img-icon":"",l?"enable-icon":"",s?"enable-img":"","bsl-1"==c?"layout-item-1 order-1":"","bsl-2"==c?"layout-item-1 order-2":"","bsl-3"==c?"layout-item-1 order-3":"","bsl-4"==c?"layout-item-2 order-1":"","bsl-5"==c?"layout-item-2 order-2":"","bsl-6"==c?"layout-item-2 order-3":"")},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-service-table-inside")},wp.element.createElement("div",{className:"blockspare-service-wrap-1"},l&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c)&&wp.element.createElement(cN,this.props),s&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c)&&wp.element.createElement("div",{className:"blockspare-img-wrap"},wp.element.createElement(bN,this.props))),wp.element.createElement("div",{className:"blockspare-service-wrap-2"},a&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c)&&wp.element.createElement(hN,this.props)),wp.element.createElement("div",{className:"blockspare-service-wrap-3"},o&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c)&&wp.element.createElement(SN,this.props),r&&("bsl-1"==c||"bsl-2"==c||"bsl-3"==c)&&wp.element.createElement(ON,this.props))))}}),jN=n(290),NN=n(291),zN=n(292),YN=n(293),BN=n(101);function AN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function IN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AN(Object(n),!0).forEach((function(t){RN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HN=wp.i18n.__,WN=wp.blocks.registerBlockType,GN=BN.category,UN=IN(IN(IN(IN(IN(IN(IN({},jN.attributes),NN.attributes),ei),zN.attributes),YN.attributes),ti),BN.attributes),qN={title:HN("Service Inner Section","blockspare"),description:HN("Add a service column.","blockspare"),icon:r.services,category:GN,parent:["blockspare/blockspare-services"],keywords:[HN("service","blockspare"),HN("shop","blockspare"),HN("buy","blockspare")],attributes:UN,edit:iN,save:PN};WN("blockspare/blockspare-services-inner-item",qN);var VN=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=[];return r.push({".blockspare-service-block-wrapper":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0}}),qr.a.all(r)};function $N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function JN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const XN=wp.element,KN=XN.Component,QN=XN.Fragment,ZN=wp.blocks.createBlock,ez=wp.data,tz=ez.withSelect,nz=ez.withDispatch,az=wp.blockEditor,rz=az.InnerBlocks,oz=(az.InspectorControls,wp.compose.compose);var iz=oz([tz((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),nz(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}}),Gr,Rr(VN)])(class extends KN{constructor(...e){super(...e),JN(this,"getServiceTemplate",e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++)t.push(["blockspare/blockspare-services-inner-item",{}]);return t})}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertServiceItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes.itemNumber+1,n=qN.heading;e=Object.assign({},{},{itemNumber:t,heading:n,active:!1,defaultText:""})}else e=qN;a(ZN("blockspare/blockspare-services-inner-item",e),void 0,n)}render(){const e=this.props,t=e.attributes,n=(e.isSelectedBlockInRoot,e.attributes),a=(n.uniqueId,n.columns),r=n.columnsGap,o=(n.marginTop,n.marginBottom,e.className),l=(e.isSelected,e.setAttributes),s=i()(["blockspare-service-columns-"+a]),c=i()([o,"blockspare-main-blockwrapper"]);return wp.element.createElement(QN,null,wp.element.createElement(VP,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$N(Object(n),!0).forEach((function(t){JN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:l},this.props)),wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:"blockspare-blocks blockspare-service-block-wrapper"},wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:i()("blockspare-service-section-admin","blockspare-service-section-gap-"+r)},wp.element.createElement(rz,{template:this.getServiceTemplate(t),allowedBlocks:["blockspare/blockspare-services-inner-item"],renderAppender:!1}))))))}});wp.i18n.__;const lz=wp.element.Component,sz=wp.compose.compose,cz=wp.blockEditor.InnerBlocks;var uz=sz(Gr,Rr(VN))(class extends lz{render(){const e=this.props,t=e.attributes,n=t.columns,a=t.columnsGap,r=(t.align,t.marginTop,t.marginBottom,e.className),o=i()(["blockspare-service-table-wrap","blockspare-block-service-table-gap-"+a]),l=i()(["blockspare-service-columns-"+n]),s=i()([r,"blockspare-main-blockwrapper"]);return wp.element.createElement("div",{className:s},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-service-block-wrapper","blockspare-section-header-wrapper")},wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:o||void 0},wp.element.createElement(cz.Content,null)))))}}),pz=(n(533),n(534),n(102));const dz=wp.i18n.__,mz=wp.element.Component,bz=wp.blockEditor,fz=bz.InspectorControls,gz=(bz.BlockDescription,bz.PanelColorSettings),hz=wp.components,yz=(hz.ToggleControl,hz.PanelBody),wz=(hz.FormToggle,hz.RangeControl);class vz extends mz{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.borderWidth,a=t.borderColor,r=(t.borderRadius,t.backgroundColor),o=t.padding,i=(t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.marginTop),l=t.marginBottom,s=(e.isSelected,e.className,e.setAttributes);return wp.element.createElement(fz,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(yz,{title:dz("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(wz,{label:dz("Service Column Padding","blockspare"),value:o,onChange:e=>this.props.setAttributes({padding:e}),min:0,max:20,initialPosition:5,step:1}),wp.element.createElement(wz,{label:dz("Service Column Border","blockspare"),value:n,onChange:e=>this.props.setAttributes({borderWidth:e}),min:0,max:10,step:1})),wp.element.createElement(yz,{title:dz("Color Settings","blockspare"),initialOpen:!1},0<n&&wp.element.createElement(gz,{title:dz("Border Color","blockspare"),initialOpen:!1,colorSettings:[{value:a,onChange:e=>s({borderColor:e}),label:dz("Border Color","blockspare")}]}),wp.element.createElement(gz,{title:dz("Background Color","blockspare"),initialOpen:!1,colorSettings:[{value:r,onChange:e=>s({backgroundColor:e}),label:dz("Background Color","blockspare")}]})),wp.element.createElement(yz,{title:dz("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:i,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>s({marginTop:e}),marginEnableBottom:!0,marginBottom:l,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>s({marginBottom:e})}))))}}function kz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function _z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kz(Object(n),!0).forEach((function(t){Sz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tz=e=>{const t=e.attributes,n=t.borderWidth,a=t.borderColor,r=t.borderRadius,o=t.backgroundColor,i=t.padding,l=[];return l.push({".blockspare-block-service-table-inside":_z(_z({},Qi(e.attributes)),{},{borderWidth:n?n+"px":null,borderStyle:0<n?"solid":null,borderColor:a||null,borderRadius:r||null,backgroundColor:o||null,padding:i?i+"px":"5px"})}),qr.a.all(l)};wp.i18n.__;const Ez=wp.element,xz=Ez.Component,Mz=Ez.Fragment,Cz=wp.compose.compose,Oz=wp.blockEditor,Lz=Oz.InnerBlocks,Fz=(Oz.AlignmentToolbar,Oz.BlockControls,["blockspare/blockspare-iconset","blockspare/blockspare-services-inner-title","blockspare/blockspare-services-inner-description","blockspare/blockspare-service-inner-button"]);var Dz=Cz(Gr,Rr(Tz))(class extends xz{render(){const e=this.props,t=e.attributes,n=(t.borderWidth,t.borderColor,t.borderRadius,t.backgroundColor,t.padding,t.alignment),a=(e.attributes,e.className);e.setAttributes;return wp.element.createElement(Mz,null,wp.element.createElement(vz,this.props),wp.element.createElement("div",{className:i()(a,n?"blockspare-block-service-table-"+n:"blockspare-block-service-table-center","blockspare-block-service-table"),itemScope:!0,itemType:"http://schema.org/Product"},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-service-table-inside")},wp.element.createElement(Lz,{template:[["blockspare/blockspare-iconset",{}],["blockspare/blockspare-services-inner-title",{headerTitle:"Service Title",headerSubTitle:"Add your services text",titlePaddingTop:5,titlePaddingBottom:5,subtitlePaddingTop:5,subtitlePaddingBottom:5}],["blockspare/blockspare-services-inner-description",{features:"Aspernatur morbi sit cursus mauris aspernatur! Quos tortor. Ea montes anim.",tagName:"p",ordered:!1,customFontSize:18,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["blockspare/blockspare-service-inner-button",{buttonText:"Get Started",paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}]],renderAppender:!1,allowedBlocks:Fz}))))}});wp.i18n.__;const Pz=wp.element,jz=Pz.Component,Nz=(Pz.Fragment,wp.compose.compose),zz=wp.blockEditor.InnerBlocks;var Yz=Nz(Gr,Rr(Tz))(class extends jz{render(){const e=this.props,t=e.attributes,n=(t.borderWidth,t.borderColor,t.borderRadius,t.backgroundColor,t.alignment),a=(t.padding,t.marginTop,t.marginBottom,e.className);e.attributes;return wp.element.createElement("div",{className:i()(a,"blockspare-blocks",n?"blockspare-block-service-table-"+n:"blockspare-block-service-table-center","blockspare-block-service-table")},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-service-table-inside")},wp.element.createElement(zz.Content,null)))}});function Bz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Az(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bz(Object(n),!0).forEach((function(t){Iz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rz=e=>{const t=e.attributes,n=t.borderWidth,a=t.borderColor,r=t.borderRadius,o=t.backgroundColor,i=t.padding,l=[];return l.push({".blockspare-block-service-table-inside":Az(Az({},Qi(e.attributes)),{},{borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:a||null,borderRadius:r||null,backgroundColor:o||null,padding:i?i+"px":"5px"})}),qr.a.all(l)};wp.i18n.__;const Hz=wp.element,Wz=Hz.Component,Gz=(Hz.Fragment,wp.compose.compose),Uz=wp.blockEditor.InnerBlocks;var qz=Gz(Gr,Rr(Rz))(class extends Wz{render(){const e=this.props,t=e.attributes,n=(t.borderWidth,t.borderColor,t.borderRadius,t.backgroundColor,t.alignment),a=(t.padding,t.marginTop,t.marginBottom,e.className);e.attributes;return wp.element.createElement("div",{className:i()(a,"blockspare-blocks blockspare-service-block-wrapper",n?"blockspare-block-service-table-"+n:"blockspare-block-service-table-center","blockspare-block-service-table")},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-service-table-inside")},wp.element.createElement(Uz.Content,null)))}});function Vz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vz(Object(n),!0).forEach((function(t){Jz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xz=wp.blockEditor.InnerBlocks;var Kz=[{attributes:{borderWidth:{type:"number",default:1},borderColor:{type:"string",default:"#ececec"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string",default:"#fff"},alignment:{type:"string"},padding:{type:"number",default:0}},save:function(e){const t=e.attributes,n=t.borderWidth,a=t.borderColor,r=t.borderRadius,o=t.backgroundColor,l=t.alignment,s=t.padding,c=(t.marginTop,t.marginBottom,$z($z({},Qi(e.attributes)),{},{borderWidth:n||null,borderStyle:0<n?"solid":null,borderColor:a||null,borderRadius:r||null,backgroundColor:o||null,padding:s?s+"%":null}));return wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-service-block-wrapper",l?"blockspare-block-service-table-"+l:"blockspare-block-service-table-center","blockspare-block-service-table")},wp.element.createElement("div",{className:i()("blockspare-block-service-table-inside"),style:c},wp.element.createElement(Xz.Content,null)))}},{attributes:{borderWidth:{type:"number",default:1},borderColor:{type:"string",default:"#ececec"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string",default:"#fff"},alignment:{type:"string"},padding:{type:"number",default:0},uniqueClass:{type:"string",default:""}},save:e=>wp.element.createElement(qz,e)}];function Qz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Zz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qz(Object(n),!0).forEach((function(t){eY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tY=wp.i18n.__,nY=wp.blocks.registerBlockType,aY=pz.category,rY=Zz(Zz({},pz.attributes),ti),oY={title:tY("Service Inner Section","blockspare"),description:tY("Add a service column.","blockspare"),icon:r.services,category:aY,parent:["blockspare/blockspare-services"],keywords:[tY("service","blockspare"),tY("shop","blockspare"),tY("buy","blockspare")],attributes:rY,edit:Dz,save:Yz,deprecated:Kz};nY("blockspare/blockspare-services-inner",oY);var iY=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=[];return r.push({".blockspare-service-block-wrapper":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0}}),qr.a.all(r)};function lY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function sY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cY=wp.i18n.__,uY=wp.element,pY=uY.Component,dY=uY.Fragment,mY=wp.components.IconButton,bY=wp.blocks.createBlock,fY=wp.data,gY=fY.withSelect,hY=fY.withDispatch,yY=wp.blockEditor,wY=yY.InnerBlocks,vY=(yY.InspectorControls,wp.compose.compose);var kY=vY([gY((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),hY(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}}),Gr,Rr(iY)])(class extends pY{constructor(...e){super(...e),sY(this,"getServiceTemplate",e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++)t.push(["blockspare/blockspare-services-inner",{}]);return t})}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertServiceItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes.itemNumber+1,n=oY.heading;e=Object.assign({},{},{itemNumber:t,heading:n,active:!1,defaultText:""})}else e=oY;a(bY("blockspare/blockspare-services-inner",e),void 0,n)}render(){const e=this.props,t=e.attributes,n=e.isSelectedBlockInRoot,a=e.attributes,r=(a.uniqueId,a.columns),o=a.columnsGap,l=(a.marginTop,a.marginBottom,e.className),s=(e.isSelected,e.setAttributes),c=i()(["blockspare-service-columns-"+r]),u=i()([l,"blockspare-main-blockwrapper"]);return wp.element.createElement(dY,null,wp.element.createElement(VP,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lY(Object(n),!0).forEach((function(t){sY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:s},this.props)),wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:"blockspare-blocks blockspare-service-block-wrapper"},wp.element.createElement("div",{className:c},wp.element.createElement("div",{className:i()("blockspare-service-section-admin","blockspare-service-section-gap-"+o)},wp.element.createElement(wY,{template:this.getServiceTemplate(t),allowedBlocks:["blockspare/blockspare-services-inner"],renderAppender:!1})),n&&wp.element.createElement("div",{className:"blockspare-price-add-item blockspare-add-more-item"},wp.element.createElement(mY,{icon:"insert",onClick:()=>{this.insertServiceItem()}},cY("Add More Service")))))))}});wp.i18n.__;const _Y=wp.element.Component,SY=wp.compose.compose,TY=wp.blockEditor.InnerBlocks;var EY=SY(Gr,Rr(iY))(class extends _Y{render(){const e=this.props,t=e.attributes,n=t.columns,a=t.columnsGap,r=(t.align,t.marginTop,t.marginBottom,e.className),o=i()(["blockspare-service-table-wrap","blockspare-block-service-table-gap-"+a]),l=i()(["blockspare-service-columns-"+n]),s=i()([r,"blockspare-main-blockwrapper"]);return wp.element.createElement("div",{className:s},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-service-block-wrapper","blockspare-section-header-wrapper")},wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:o||void 0},wp.element.createElement(TY.Content,null)))))}});const xY=wp.element.Component;class MY extends xY{constructor(e){super(...arguments)}render(){const e=this.props.attributes,t=e.columns,n=(e.columnsGap,e.align),a=i()([this.props.className,"blockspare-service-columns-"+t],{["align"+n]:n});return wp.element.createElement("div",{className:a||void 0},this.props.children)}}wp.i18n.__;const CY=wp.blockEditor.InnerBlocks;var OY=[{attributes:{serviceItems:{type:"number",default:2},columns:{type:"number",default:2},columnsGap:{type:"number",default:1},align:{type:"string"},defaultItems:{type:"number",default:2},sectionAlignment:{type:"string",default:"center"},marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30}},save:function(e){const t=e.attributes,n=t.columnsGap,a=t.align,r=t.marginTop,o=t.marginBottom,l=i()(["blockspare-service-table-wrap","blockspare-block-service-table-gap-"+n]);return wp.element.createElement("div",{className:i()("blockspare-blocks blockspare-service-block-wrapper","blockspare-section-header-wrapper","align"+a),style:{marginTop:r?r+"px":void 0,marginBottom:o?o+"px":void 0}},wp.element.createElement(MY,e,wp.element.createElement("div",{className:l||void 0},wp.element.createElement(CY.Content,null))))}},{attributes:{serviceItems:{type:"number",default:3},columns:{type:"number",default:3},columnsGap:{type:"number",default:1},align:{type:"string",default:"wide"},defaultItems:{type:"number",default:3},sectionAlignment:{type:"string",default:"center"},marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30},uniqueClass:{type:"string",default:""},edit:e=>wp.element.createElement(kY,e),save:e=>wp.element.createElement(EY,e)}}];const LY=wp.i18n.__,FY=(wp.element.Component,wp.blocks.registerBlockType),DY=(wp.blockEditor.InnerBlocks,IP.name),PY=IP.category,jY=IP.attributes;FY(DY,{title:LY("BS Services","blockspare"),description:LY("Add a service section.","blockspare"),icon:r.services,category:PY,keywords:["blockspare",LY("block","blockspare"),LY("services","blockspare"),LY("box","blockspare"),LY("portfolio","blockspare")],attributes:jY,getEditWrapperProps({align:e}){if("right"===e||"full"===e||"wide"===e)return{"data-align":e}},supports:{align:["wide","full","center"],html:!0},edit:iz,save:uz,deprecated:OY});var NY=n(103);const zY=wp.i18n.__,YY=wp.element.Component,BY=(wp.compose.compose,wp.blockEditor.InspectorControls),AY=wp.components,IY=(AY.withFallbackStyles,AY.PanelBody);AY.SelectControl;class RY extends YY{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.subtitleFontSize,t.headerTagOption),a=t.headertitleColor,r=t.headersubtitleColor,o=t.headerlayoutOption,i=t.titlePaddingTop,l=t.titlePaddingBottom,s=t.subtitlePaddingTop,c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontSize,m=t.titleLoadGoogleFonts,b=t.titleFontFamily,f=t.titleFontWeight,g=t.titleFontSubset,h=t.titleFontSizeType,y=t.titleFontSizeMobile,w=t.titleFontSizeTablet,v=t.subTitleFontSize,k=t.subTitleLoadGoogleFonts,_=t.subTitleFontFamily,S=t.subTitleFontWeight,T=t.subTitleFontSubset,E=t.subTitleFontSizeType,x=t.subTitleFontSizeMobile,M=t.subTitleFontSizeTablet,C=e.attributes,O=e.setAttributes;zY("Layout 1","blockspare"),zY("Layout 2","blockspare"),zY("Layout 3","blockspare");return wp.element.createElement(BY,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(IY,{title:zY("Header Settings","blockspare"),initialOpen:!0},wp.element.createElement(Di,{headerlayoutOption:o,onChangeHeaderLayput:e=>O({headerlayoutOption:e})}),wp.element.createElement(IY,{title:zY("Typography Settings","blockspare")},wp.element.createElement(br,{label:zY("Title Fonts Settings"),attributes:C,setAttributes:O,loadGoogleFonts:{value:m,label:zY("titleLoadGoogleFonts")},fontFamily:{value:b,label:zY("titleFontFamily")},fontWeight:{value:f,label:zY("titleFontWeight")},fontSubset:{value:g,label:zY("titleFontSubset")},fontSizeType:{value:h,label:zY("titleFontSizeType")},fontSize:{value:d,label:zY("titleFontSize")},fontSizeMobile:{value:y,label:zY("titleFontSizeMobile")},fontSizeTablet:{value:w,label:zY("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:n}),wp.element.createElement(br,{label:zY("Subtitle Fonts Settings"),attributes:C,setAttributes:O,loadGoogleFonts:{value:k,label:zY("subTitleLoadGoogleFonts")},fontFamily:{value:_,label:zY("subTitleFontFamily")},fontWeight:{value:S,label:zY("subTitleFontWeight")},fontSubset:{value:T,label:zY("subTitleFontSubset")},fontSizeType:{value:E,label:zY("subTitleFontSizeType")},fontSize:{value:v,label:zY("subTitleFontSize")},fontSizeMobile:{value:x,label:zY("subTitleFontSizeMobile")},fontSizeTablet:{value:M,label:zY("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0})),wp.element.createElement(ci,{enableBlockGaps:!1,headerboxColor:p,onChangeboxcolor:e=>O({headerboxColor:e}),dashColor:u,headerlayoutOption:o,onChangeDashColor:e=>O({dashColor:e}),headertitleColor:a,onChangetitlecolor:e=>O({headertitleColor:e}),titlePaddingTop:i,onChangetitlePaddingTop:e=>O({titlePaddingTop:e}),titlePaddingBottom:l,onChangetitlePaddingBottom:e=>O({titlePaddingBottom:e}),headersubtitleColor:r,onChangesubtitlecolor:e=>O({headersubtitleColor:e}),subtitlePaddingTop:s,onChangesubtitlePaddingTop:e=>O({subtitlePaddingTop:e}),subtitlePaddingBottom:c,onChangesubtitlePaddingBottom:e=>O({subtitlePaddingBottom:e})}))))}}var HY=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.subTitleFontSize,y=(t.subTitleLoadGoogleFonts,t.subTitleFontFamily),w=t.subTitleFontWeight,v=(t.subTitleFontSubset,t.subTitleFontSizeType),k=t.subTitleFontSizeMobile,_=t.subTitleFontSizeTablet,S=t.headerpaddingTop,T=(t.headerpaddingRight,t.headerpaddingBottom),E=(t.headerpaddingLeft,t.headermarginTop,t.headermarginBottom,[]);return E.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:S+"px",paddingBottom:T+"px"}}),E.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m,paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:h+v,fontFamily:y,fontWeight:w,paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:_+v}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:k+v}}}),qr.a.all(E)};wp.i18n.__;const WY=wp.compose.compose,GY=wp.element,UY=GY.Component,qY=GY.Fragment,VY=wp.blockEditor,$Y=(VY.RichText,VY.withFontSizes,VY.withColors,VY.AlignmentToolbar),JY=VY.BlockControls;var XY=WY(Gr,Rr(HY))(class extends UY{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerTagOption,o=t.headerTitle,l=t.headerSubTitle,s=t.headerlayoutOption,c=t.titleLoadGoogleFonts,u=t.titleFontFamily,p=t.titleFontWeight,d=t.subTitleLoadGoogleFonts,m=t.subTitleFontFamily,b=t.subTitleFontWeight,f=e.className,g=(e.attributes,e.setAttributes),h=i()([f,"blockspare-section-header-wrapper blockspare-blocks","align"+n]);return[wp.element.createElement(qY,null,wp.element.createElement(RY,this.props),wp.element.createElement(JY,null,wp.element.createElement($Y,{value:a,onChange:e=>{g({sectionAlignment:e})}})),wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ki,{setAttributes:g,headerTitle:o,headerTagOption:r,headerSubTitle:l,titleFontFamily:u,titleFontWeight:p,titleLoadGoogleFonts:c,subTitleLoadGoogleFonts:d,subTitleFontFamily:m,subTitleFontWeight:b}))))]}});wp.i18n.__,wp.blockEditor.RichText;const KY=wp.compose.compose,QY=wp.element,ZY=QY.Component;QY.Fragment;var eB=KY(Gr,Rr(HY))(class extends ZY{render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerTitle,o=t.headerTagOption,l=t.headerSubTitle,s=t.headerlayoutOption,c=e.className,u=(e.attributes,e.setAttributes,e.isSelected,i()([c,"blockspare-section-header-wrapper blockspare-blocks","align"+n]));return wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:r,headerTagOption:o,headerSubTitle:l})))}});function tB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function nB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aB=wp.element.Component;class rB extends aB{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerlayoutOption,o=e.attributes,l=(e.setAttributes,e.isSelected,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tB(Object(n),!0).forEach((function(t){nB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Wl(o)));return wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+n),style:l},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",r,"blockspare-"+a)},this.props.children))}}function oB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function iB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oB(Object(n),!0).forEach((function(t){lB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sB=wp.blockEditor,cB=sB.RichText;sB.getFontSizeClass,sB.getColorClassName;var uB=[{attributes:iB({},ei),save:function(e){const t=e.attributes,n=t.headerTagOption,a=t.headerTitle,r=t.headerSubTitle,o=iB({},jl(e.attributes)),i=iB({},Nl(e.attributes)),l=iB({},zl(e.attributes));return wp.element.createElement("div",{className:"blockspare-title-wrap"},wp.element.createElement(rB,e,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:o}),a&&wp.element.createElement(cB.Content,{tagName:n,className:"blockspare-title",style:i,value:a}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:o})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:o}),r&&wp.element.createElement(cB.Content,{tagName:"p",className:"blockspare-subtitle",style:l,value:r}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:o}))))}}];function pB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function dB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mB=wp.i18n.__,bB=wp.blocks.registerBlockType,fB=NY.name,gB=NY.category,hB=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pB(Object(n),!0).forEach((function(t){dB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ei);bB(fB,{title:mB("Service Title","blockspare"),description:mB("Adds a product title component with schema markup.","blockspare"),icon:r.sectionHeader,category:gB,parent:["blockspare/blockspare-services-inner"],keywords:[mB("Service","blockspare"),mB("title","blockspare")],attributes:hB,edit:XY,save:eB,deprecated:uB});var yB=n(73);const wB=wp.i18n.__,vB=wp.element.Component,kB=(wp.compose.compose,wp.blockEditor),_B=kB.InspectorControls,SB=(kB.FontSizePicker,kB.PanelColorSettings),TB=(kB.ColorPalette,wp.components),EB=(TB.withFallbackStyles,TB.PanelBody);TB.PanelRow,TB.SelectControl,TB.BaseControl,TB.RangeControl;class xB extends vB{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=(t.borderStyle,t.borderColor,t.borderWidth,t.backgroundColor,t.paddingTop),a=t.paddingRight,r=t.paddingBottom,o=t.paddingLeft,i=t.descriptionFontSize,l=t.descriptionFontFamily,s=t.descriptionFontWeight,c=t.descriptionFontSubset,u=t.descriptionFontSizeType,p=t.descriptionFontSizeMobile,d=t.descriptionFontSizeTablet,m=t.descriptionLoadGoogleFonts,b=e.attributes,f=e.setAttributes,g=e.textColor;wB("None"),wB("Solid"),wB("Dotted"),wB("Dashed");return wp.element.createElement(_B,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(EB,{title:wB("Typography Settings","blockspare")},wp.element.createElement(br,{label:wB("Description Fonts Settings"),attributes:b,setAttributes:f,loadGoogleFonts:{value:m,label:wB("descriptionLoadGoogleFonts")},fontFamily:{value:l,label:wB("descriptionFontFamily")},fontWeight:{value:s,label:wB("descriptionFontWeight")},fontSubset:{value:c,label:wB("descriptionFontSubset")},fontSizeType:{value:u,label:wB("descriptionFontSizeType")},fontSize:{value:i,label:wB("descriptionFontSize")},fontSizeMobile:{value:p,label:wB("descriptionFontSizeMobile")},fontSizeTablet:{value:d,label:wB("descriptionFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(SB,{title:wB("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:g,onChange:e=>f({textColor:e}),label:wB("Text Color","blockspare")}]}),wp.element.createElement(EB,{title:wB("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>f({paddingTop:e}),paddingEnableRight:!0,paddingRight:a,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>f({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:r,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>f({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:o,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>f({paddingLeft:e})}))))}}var MB=e=>{const t=e.attributes,n=t.sectionAlignment,a=(t.customFontSize,t.backgroundColor),r=t.textColor,o=t.paddingTop,i=t.paddingRight,l=t.paddingBottom,s=t.paddingLeft,c=t.descriptionFontSize,u=t.descriptionFontFamily,p=t.descriptionFontWeight,d=(t.descriptionFontSubset,t.descriptionFontSizeType),m=t.descriptionFontSizeMobile,b=t.descriptionFontSizeTablet,f=(t.descriptionLoadGoogleFonts,[]);return f.push({".blockspare-services-inner-description":{fontSize:c+d,fontFamily:u,fontWeight:p,color:r||"#6d6d6d",backgroundColor:a,paddingTop:o?o+"px":void 0,paddingRight:i?i+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0},tablet:{".blockspare-services-inner-description":{fontSize:b+d}},mobile:{".blockspare-services-inner-description":{fontSize:m+d}}}),n&&f.push({".blockspare-services-inner-description":{textAlign:n}}),qr.a.all(f)};const CB=wp.i18n.__,OB=wp.compose.compose,LB=wp.element,FB=LB.Component,DB=LB.Fragment,PB=wp.blockEditor,jB=PB.RichText,NB=PB.AlignmentToolbar,zB=PB.BlockControls;var YB=OB([Gr,Rr(MB)])(class extends FB{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.features,a=t.descriptionLoadGoogleFonts,r=t.descriptionFontFamily,o=t.descriptionFontWeight,l=t.sectionAlignment,s=(e.isSelected,e.className),c=e.setAttributes;let u;if(1==a){const e={google:{families:[r+(o?":"+o:"")]}};u=wp.element.createElement(oo,{config:e})}const p=i()([s,"blockspare-services-description"]);return[wp.element.createElement(DB,null,wp.element.createElement(xB,this.props),wp.element.createElement(zB,null,wp.element.createElement(NB,{value:l,onChange:e=>{c({sectionAlignment:e})}})),wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement(jB,{tagName:"p",itemProp:"description",placeholder:CB("Add a service feature","blockspare"),keepPlaceholderOnFocus:!0,value:n,onChange:e=>c({features:e}),className:"blockspare-services-inner-description"})),u)]}});wp.i18n.__;const BB=wp.compose.compose,AB=wp.element,IB=AB.Component,RB=(AB.Fragment,wp.blockEditor),HB=RB.RichText;RB.withFontSizes,RB.withColors;var WB=BB([Gr,Rr(MB)])(class extends IB{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes.features,n=e.className,a=i()([n,"blockspare-services-description"]);return wp.element.createElement("div",{className:a},this.props.styles,wp.element.createElement(HB.Content,{tagName:"p",itemProp:"description",value:t,className:"blockspare-services-inner-description"}))}}),GB=n(104);var UB=e=>{const t=e.attributes,n=(t.customFontSize,t.backgroundColor),a=t.textColor,r=t.paddingTop,o=t.paddingRight,i=t.paddingBottom,l=t.paddingLeft,s=t.descriptionFontSize,c=t.descriptionFontFamily,u=t.descriptionFontWeight,p=(t.descriptionFontSubset,t.descriptionFontSizeType),d=t.descriptionFontSizeMobile,m=t.descriptionFontSizeTablet,b=(t.descriptionLoadGoogleFonts,[]);return b.push({".blockspare-services-inner-description":{fontSize:s+p,fontFamily:c,fontWeight:u,color:a||"#6d6d6d",backgroundColor:n,paddingTop:r?r+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:i?i+"px":void 0,paddingLeft:l?l+"px":void 0},tablet:{".blockspare-services-inner-description":{fontSize:m+p}},mobile:{".blockspare-services-inner-description":{fontSize:d+p}}}),qr.a.all(b)};wp.i18n.__;const qB=wp.compose.compose,VB=wp.element,$B=VB.Component,JB=(VB.Fragment,wp.blockEditor),XB=JB.RichText;JB.withFontSizes,JB.withColors;var KB=qB([Gr,Rr(UB)])(class extends $B{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes.features,n=e.className,a=i()([n,"blockspare-services-description"]);return wp.element.createElement("div",{className:a},this.props.styles,wp.element.createElement(XB.Content,{tagName:"p",itemProp:"description",value:t,className:"blockspare-services-inner-description"}))}});function QB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ZB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eA=wp.blockEditor,tA=eA.RichText,nA=eA.getFontSizeClass,aA=eA.getColorClassName;var rA=[{attributes:GB.attributes,save:function(e){const t=e.attributes,n=t.features,a=t.fontSize,r=t.customFontSize,o=t.backgroundColor,l=t.textColor,s=t.customBackgroundColor,c=(t.customTextColor,t.paddingTop),u=t.paddingRight,p=t.paddingBottom,d=t.paddingLeft,m=nA(a),b=aA("background-color",o),f=i()({"has-background":o||s,"blockspare-service-table-features":!0,[m]:m,[b]:b}),g={fontSize:m?void 0:r,backgroundColor:b?void 0:s,color:l||"#6d6d6d",paddingTop:c?c+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:p?p+"px":void 0,paddingLeft:d?d+"px":void 0};return wp.element.createElement(tA.Content,{tagName:"p",itemProp:"description",value:n,className:f||void 0,style:g})}},{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QB(Object(n),!0).forEach((function(t){ZB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},GB.attributes),save:e=>wp.element.createElement(KB,e)}];const oA=wp.i18n.__,iA=wp.blocks.registerBlockType,lA=wp.blockEditor,sA=(lA.RichText,lA.getFontSizeClass,lA.getColorClassName,yB.name),cA=yB.category,uA=yB.attributes;iA(sA,{title:oA("Service Features","blockspare"),description:oA("Adds a feature component with schema markup.","blockspare"),icon:r.iconlist,category:cA,parent:["blockspare/blockspare-services-inner"],keywords:[oA("Service table","blockspare"),oA("features","blockspare"),oA("shop","blockspare")],attributes:uA,edit:YB,save:WB,deprecated:rA});var pA=n(12);const dA=wp.i18n.__,mA=wp.element.Component,bA=wp.compose.compose,fA=wp.blockEditor,gA=fA.InspectorControls,hA=fA.withFontSizes,yA=fA.withColors,wA=fA.PanelColorSettings,vA=wp.components,kA=vA.withFallbackStyles,_A=vA.PanelBody,SA=vA.ToggleControl,TA=kA((e,t)=>{const n=t.attributes.backgroundColor,a=e.querySelector('[contenteditable="true"]'),r=a?getComputedStyle(a):null;return{fallbackBackgroundColor:n||!r?void 0:r.backgroundColor}});var EA=bA([TA,hA("fontSize"),yA("backgroundColor")])(class extends mA{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.buttonStyle,a=t.borderColor,r=t.borderBtnTextColor,o=t.buttonBackgroundColor,i=t.buttonTextColor,l=t.buttonSize,s=t.buttonShape,c=t.buttonTarget,u=t.paddingTop,p=t.paddingBottom,d=t.enableGradient,m=t.backgroundColor1,b=t.backgroundColor2,f=t.gradientAngle,g=t.colorLocation1,h=t.colorLocation2,y=t.btnFontWeight,w=t.btnBorderWidth,v=t.buttonHoverEffect,k=t.btnBackgroudColor,_=t.buttonFontSize,S=t.buttonFontFamily,T=t.buttonFontWeight,E=t.buttonFontSubset,x=t.buttonFontSizeType,M=t.buttonFontSizeMobile,C=t.buttonFontSizeTablet,O=t.buttonLoadGoogleFonts,L=e.attributes,F=e.setAttributes;e.backgroundColor,e.setBackgroundColor;return wp.element.createElement(gA,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(_A,{title:dA("Button Settings","blockspare"),initialOpen:!1},wp.element.createElement(Te,{enableButtonTarget:!1,buttonTarget:c,onChangeButtonTarget:e=>F({buttonTarget:!c}),enableGradient:d,onChangeGradient:e=>F({enableGradient:e}),enableButtonSize:!0,buttonSize:l,onChangeButtonSize:e=>F({buttonSize:e}),enableButtonShape:!0,buttonShape:s,onChangeButtonShape:e=>F({buttonShape:e}),buttonBackgroundColor:o,onChangeButtonColor:e=>F({buttonBackgroundColor:e}),buttonTextColor:i,onChangeButtonTextColor:e=>F({buttonTextColor:e}),enableButtonStyle:!1,buttonStyle:n,onChangeBorderStyle:e=>F({buttonStyle:e}),buttonHoverEffect:v,onchangeButtonHoverEffect:e=>F({buttonHoverEffect:e}),borderColor:a,onchangeBorderColor:e=>F({borderColor:e}),borderBtnTextColor:r,onChangeBorderBtnTextColor:e=>F({borderBtnTextColor:e}),enableBtnBorderWidth:!1,btnBorderWidth:w,onchangebtnBorderWidth:e=>F({btnBorderWidth:e}),enableBtnFontWeight:!1,btnFontWeight:y,onchangeBtnFontWeight:e=>F({btnFontWeight:e})}),wp.element.createElement(_A,{title:dA("Typography Settings","blockspare")},wp.element.createElement(br,{label:dA("Button Fonts Settings"),attributes:L,setAttributes:F,loadGoogleFonts:{value:O,label:dA("buttonLoadGoogleFonts")},fontFamily:{value:S,label:dA("buttonFontFamily")},fontWeight:{value:T,label:dA("buttonFontWeight")},fontSubset:{value:E,label:dA("buttonFontSubset")},fontSizeType:{value:x,label:dA("buttonFontSizeType")},fontSize:{value:_,label:dA("buttonFontSize")},fontSizeMobile:{value:M,label:dA("buttonFontSizeMobile")},fontSizeTablet:{value:C,label:dA("buttonFontSizeTablet")},disableLineHeight:!0})),"none"===n&&wp.element.createElement(SA,{label:dA("Enable Gradient","blockspare"),checked:d,onChange:()=>this.props.setAttributes({enableGradient:!d})}),d&&"none"===n&&wp.element.createElement(_A,{title:dA("Gradient Option","blockspare"),initialOpen:!0},wp.element.createElement(Oe,{backgroundColor1:m,onChangeBackgroundColor1:e=>F({backgroundColor1:e}),backgroundColor2:b,onChangeBackgroundColor2:e=>F({backgroundColor2:e}),gradientAngle:f,onChangeGradientAngle:e=>F({gradientAngle:e}),colorLocation1:g,onChangeColorLocation1:e=>F({colorLocation1:e}),colorLocation2:h,onChangeColorLocation2:e=>F({colorLocation2:e})}))),wp.element.createElement(wA,{title:dA("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:k,onChange:e=>F({btnBackgroudColor:e}),label:dA("Background Color","blockspare")}]}),wp.element.createElement(_A,{title:dA("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:u,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>F({paddingTop:e}),paddingEnableBottom:!0,paddingBottom:p,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>F({paddingBottom:e})}))))}});var xA=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.btnBackgroudColor,s=t.buttonStyle,c=t.enableGradient,u=t.backgroundColor1,p=t.backgroundColor2,d=t.gradientAngle,m=t.colorLocation1,b=t.colorLocation2,f=(t.btnFontWeight,t.btnBorderWidth),g=t.borderColor,h=t.buttonBackgroundColor,y=t.borderBtnTextColor,w=t.buttonTextColor,v=t.buttonFontSize,k=t.buttonFontFamily,_=t.buttonFontWeight,S=t.buttonFontSizeType,T=t.buttonFontSizeMobile,E=t.buttonFontSizeTablet,x=[];if(x.push({".blockspare-block-button":{textAlign:n},".blockspare-service-button":{backgroundColor:l,paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),"none"===s)if(1==c){const e=d+"deg",t=m+"%",n=b+"%";x.push({".blockspare-block-button span":{color:w||"#fff",borderWidth:f+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${u||"#3B1A5B"} ${t},${p||"#8B249C"} ${n})`}})}else x.push({".blockspare-block-button span":{color:w||"#fff",borderWidth:f+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:h||"#3c1a5b"}});else x.push({".blockspare-block-button span":{color:y||"#404040",borderColor:g||"#3c1a5b",borderStyle:s,borderWidth:f+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return x.push({".blockspare-block-button span":{fontSize:v+S,fontFamily:k,fontWeight:_},tablet:{".blockspare-block-button span":{fontSize:E+S}},mobile:{".blockspare-block-button span":{fontSize:T+S}}}),qr.a.all(x)};const MA=wp.i18n.__,CA=wp.compose.compose,OA=wp.element,LA=OA.Component,FA=OA.Fragment,DA=wp.blockEditor,PA=DA.RichText,jA=(DA.withFontSizes,DA.withColors,DA.URLInput),NA=DA.AlignmentToolbar,zA=DA.BlockControls,YA=wp.components,BA=YA.IconButton,AA=YA.Dashicon;var IA=CA([Gr,Rr(xA)])(class extends LA{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=(t.paddingTop,t.paddingBottom,t.buttonText),r=t.buttonUrl,o=t.buttonAlignment,l=(t.buttonBackgroundColor,t.buttonTextColor,t.buttonSize),s=t.buttonShape,c=t.buttonHoverEffect,u=t.buttonLoadGoogleFonts,p=t.buttonFontFamily,d=t.buttonFontWeight,m=e.className,b=e.isSelected,f=(e.attributes,e.setAttributes);e.backgroundColor;let g;if(1==u){const e={google:{families:[p+(d?":"+d:"")]}};g=wp.element.createElement(oo,{config:e})}const h=i()({"blockspare-service-button":!0}),y=i()([m,"blockspare-block-button-wrap"]);return[wp.element.createElement(FA,null,wp.element.createElement(EA,this.props),wp.element.createElement(zA,null,wp.element.createElement(NA,{value:n,onChange:e=>{f({sectionAlignment:e})}})),wp.element.createElement("div",{className:y},this.props.styles,wp.element.createElement("div",{className:h||void 0},wp.element.createElement("div",{className:i()(this.props.className,"blockspare-block-button")},wp.element.createElement(PA,{tagName:"span",placeholder:MA("Button text...","blockspare"),keepPlaceholderOnFocus:!0,value:`<span>${a}</span>`,allowedFormats:[],className:i()("blockspare-button",s,l,c),onChange:e=>f({buttonText:e})})),b&&wp.element.createElement("form",{key:"form-link",className:"blocks-button__inline-link blockspare-button-"+o,onSubmit:e=>e.preventDefault(),style:{textAlign:o}},wp.element.createElement(AA,{icon:"admin-links"}),wp.element.createElement(jA,{className:"button-url",value:r,onChange:e=>f({buttonUrl:e})}),wp.element.createElement(BA,{icon:"editor-break",label:MA("Apply","blockspare"),type:"submit"})))),g)]}});const RA=wp.compose.compose,HA=wp.element,WA=HA.Component,GA=(HA.Fragment,wp.blockEditor),UA=GA.RichText,qA=GA.getColorClassName;var VA=RA(Gr,Rr(xA))(class extends WA{render(){const e=this.props,t=e.attributes,n=t.backgroundColor,a=t.customBackgroundColor,r=(t.paddingTop,t.paddingBottom,t.buttonText),o=t.buttonUrl,l=t.sectionAlignment,s=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,p=t.buttonHoverEffect,d=(e.attributes,e.className),m=qA("background-color",n),b=i()({"has-background":n||a,"blockspare-service-button":!0,[m]:m}),f=i()([d,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:f},this.props.styles,wp.element.createElement("div",{className:b||void 0},wp.element.createElement("div",{style:{textAlign:l},className:i()(d,"blockspare-block-button")},r&&wp.element.createElement("a",{href:o,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:i()("blockspare-button",c,s,p)},wp.element.createElement(UA.Content,{tagName:"span",value:r})))))}});function $A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function JA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$A(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KA=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.btnBackgroudColor,s=[];return s.push({".blockspare-block-button":{textAlign:n},".blockspare-button":JA({},Mo(e.attributes)),".blockspare-service-button":{backgroundColor:l,paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),qr.a.all(s)};const QA=wp.compose.compose,ZA=wp.element,eI=ZA.Component,tI=(ZA.Fragment,wp.blockEditor),nI=tI.RichText,aI=tI.getColorClassName;var rI=QA(Gr,Rr(KA))(class extends eI{render(){const e=this.props,t=e.attributes,n=t.backgroundColor,a=t.customBackgroundColor,r=(t.paddingTop,t.paddingBottom,t.buttonText),o=t.buttonUrl,l=t.sectionAlignment,s=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,p=t.buttonHoverEffect,d=(e.attributes,e.className),m=aI("background-color",n),b=i()({"has-background":n||a,"blockspare-service-button":!0,[m]:m}),f=i()([d,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:f},this.props.styles,wp.element.createElement("div",{className:b||void 0},wp.element.createElement("div",{style:{textAlign:l},className:i()(d,"blockspare-block-button")},r&&wp.element.createElement("a",{href:o,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:i()("blockspare-button",c,s,p)},wp.element.createElement(nI.Content,{value:r})))))}});function oI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function iI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oI(Object(n),!0).forEach((function(t){lI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sI=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.btnBackgroudColor,s=[];return s.push({".blockspare-block-button":{textAlign:n},".blockspare-button":iI({},xo(e.attributes)),".blockspare-service-button":{backgroundColor:l,paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),qr.a.all(s)};const cI=wp.compose.compose,uI=wp.element,pI=uI.Component,dI=(uI.Fragment,wp.blockEditor),mI=dI.RichText,bI=dI.getColorClassName;var fI=cI(Gr,Rr(sI))(class extends pI{render(){const e=this.props,t=e.attributes,n=t.backgroundColor,a=t.customBackgroundColor,r=(t.paddingTop,t.paddingBottom,t.buttonText),o=t.buttonUrl,l=t.sectionAlignment,s=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,p=t.buttonHoverEffect,d=(e.attributes,e.className),m=bI("background-color",n),b=i()({"has-background":n||a,"blockspare-service-button":!0,[m]:m}),f=i()([d,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:f},this.props.styles,wp.element.createElement("div",{className:b||void 0},wp.element.createElement("div",{style:{textAlign:l},className:i()(d,"blockspare-block-button")},r&&wp.element.createElement("a",{href:o,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:i()("blockspare-button",c,s,p)},wp.element.createElement(mI.Content,{value:r})))))}});var gI=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,i=t.paddingLeft,l=t.btnBackgroudColor,s=t.buttonStyle,c=t.enableGradient,u=t.backgroundColor1,p=t.backgroundColor2,d=t.gradientAngle,m=t.colorLocation1,b=t.colorLocation2,f=t.btnFontWeight,g=t.btnBorderWidth,h=t.borderColor,y=t.buttonBackgroundColor,w=t.borderBtnTextColor,v=t.buttonTextColor,k=[];if(k.push({".blockspare-block-button":{textAlign:n},".blockspare-service-button":{backgroundColor:l,paddingTop:a?a+"px":"0px",paddingRight:r?r+"px":"0px",paddingBottom:o?o+"px":"0px",paddingLeft:i?i+"px":"0px"},"blocks-button__inline-link":{textAlign:n}}),"none"===s)if(1==c){const e=d+"deg",t=m+"%",n=b+"%";k.push({".blockspare-block-button span":{color:v||"#fff",fontWeight:f,borderWidth:g+"px"},".blockspare-block-button .blockspare-button":{backgroundImage:`linear-gradient(${e},${u||"#3B1A5B"} ${t},${p||"#8B249C"} ${n})`}})}else k.push({".blockspare-block-button span":{color:v||"#fff",fontWeight:f,borderWidth:g+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:y||"#3c1a5b"}});else k.push({".blockspare-block-button span":{color:w||"#404040",borderColor:h||"#3c1a5b",borderStyle:s,fontWeight:f,borderWidth:g+"px"},".blockspare-block-button .blockspare-button":{backgroundColor:"transparent"}});return qr.a.all(k)};const hI=wp.compose.compose,yI=wp.element,wI=yI.Component,vI=(yI.Fragment,wp.blockEditor),kI=vI.RichText,_I=vI.getColorClassName;var SI=hI(Gr,Rr(gI))(class extends wI{render(){const e=this.props,t=e.attributes,n=t.backgroundColor,a=t.customBackgroundColor,r=(t.paddingTop,t.paddingBottom,t.buttonText),o=t.buttonUrl,l=t.sectionAlignment,s=t.buttonSize,c=t.buttonShape,u=t.buttonTarget,p=t.buttonHoverEffect,d=(e.attributes,e.className),m=_I("background-color",n),b=i()({"has-background":n||a,"blockspare-service-button":!0,[m]:m}),f=i()([d,"blockspare-block-button-wrap"]);return wp.element.createElement("div",{className:f},this.props.styles,wp.element.createElement("div",{className:b||void 0},wp.element.createElement("div",{style:{textAlign:l},className:i()(d,"blockspare-block-button")},r&&wp.element.createElement("a",{href:o,target:u?"_blank":null,rel:u?"noopener noreferrer":null,className:i()("blockspare-button",c,s,p)},wp.element.createElement(kI.Content,{tagName:"span",value:r})))))}});function TI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function EI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TI(Object(n),!0).forEach((function(t){xI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const MI=wp.blockEditor,CI=MI.RichText,OI=MI.getColorClassName;var LI=[{attributes:EI(EI({},pA.attributes),Eo),edit:function(e){},save:function(e){const t=e.attributes,n=t.backgroundColor,a=t.customBackgroundColor,r=t.paddingTop,o=t.paddingBottom,l=t.buttonText,s=t.buttonUrl,c=t.sectionAlignment,u=t.buttonSize,p=t.buttonShape,d=t.buttonTarget,m=t.buttonHoverEffect,b=(t.className,OI("background-color",n)),f=i()({"has-background":n||a,"blockspare-service-button":!0,[b]:b}),g=EI({},Yl(e.attributes)),h={backgroundColor:b?void 0:a,paddingTop:r?r+"px":void 0,paddingBottom:o?o+"px":void 0};return wp.element.createElement("div",{className:f||void 0,style:h},wp.element.createElement("div",{style:{textAlign:c},className:i()("blockspare-block-button")},l&&wp.element.createElement("a",{href:s,target:d?"_blank":null,rel:d?"noopener noreferrer":null,className:i()("blockspare-button",p,u,m),style:g},wp.element.createElement(CI.Content,{value:l}))))}},{attributes:EI(EI({},pA.attributes),Eo),save:e=>wp.element.createElement(fI,e)},{attributes:EI(EI({},pA.attributes),Eo),save:e=>wp.element.createElement(rI,e)},{attributes:EI(EI({},pA.attributes),Eo),save:e=>wp.element.createElement(SI,e)}];function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function DI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FI(Object(n),!0).forEach((function(t){PI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jI=wp.i18n.__,NI=wp.blocks.registerBlockType,zI=wp.blockEditor,YI=(zI.RichText,zI.getColorClassName,pA.name),BI=pA.category,AI=DI(DI({},pA.attributes),Eo);NI(YI,{title:jI("Button","blockspare"),description:jI("Adds a product title component with schema markup.","blockspare"),icon:r.button,category:BI,parent:["blockspare/blockspare-services-inner"],keywords:[jI("Services","blockspare"),jI("title","blockspare"),jI("shop","blockspare")],attributes:AI,edit:IA,save:VA,deprecated:LI});n(535);var II=n(18);const RI=e=>wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{fill:e.fillColor},fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 510 510",className:"empty-star-rating"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})),HI=e=>wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{fill:e.fillColor},fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"})),WI=e=>wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{fill:e.fillColor},fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25",id:"star"})),GI=wp.i18n.__,UI=wp.element.Component,qI=wp.blockEditor,VI=qI.InspectorControls,$I=(qI.PanelColorSettings,wp.components),JI=$I.PanelBody,XI=$I.RangeControl;class KI extends UI{render(){const e=this.props,t=e.attributes,n=t.starCount,a=(t.starSize,t.starColor,t.backgroundColor,e.setAttributes);return wp.element.createElement(VI,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"star-rating"}),wp.element.createElement(JI,{title:GI("Star Settings","blockspare"),initialOpen:!1},wp.element.createElement(XI,{label:GI("Number Of Stars","blockspare"),value:n,onChange:e=>a({starCount:e}),min:1,max:5,step:1}))))}}var QI=e=>{const t=e.attributes.backgroundColor,n=[];return n.push({".blockspare-block-star-ratings-wrap":{backgroundColor:t||"transparent"},".empty-star-rating":{opacity:.4}}),qr.a.all(n)};wp.i18n.__;const ZI=wp.element,eR=ZI.Fragment,tR=ZI.Component,nR=wp.compose.compose,aR=wp.blockEditor,rR=aR.BlockControls,oR=aR.AlignmentToolbar;var iR=nR(Gr,Rr(QI))(class extends tR{render(){const e=this.props,t=e.attributes,n=t.starAlign,a=t.starCount,r=t.starSize,o=t.starColor,l=t.selectedStars,s=(t.emptyStarColor,t.backgroundColor,e.className),c=e.highlightedStars,u=e.setAttributes,p=i()([s,"blockspare-ratings"]);return wp.element.createElement(eR,null,wp.element.createElement(rR,null,wp.element.createElement(oR,{value:n,onChange:e=>{u({starAlign:e})}})),wp.element.createElement(KI,this.props),wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-star-ratings-wrap")},wp.element.createElement("div",{className:i()("blockspare-star-inner-container","star-align-"+n),onMouseLeave:()=>this.setState({highlightedStars:0})},[...Array(a)].map((e,t)=>wp.element.createElement("div",{className:"blockspare-ratings",key:t,onMouseEnter:()=>{this.setState({highlightedStars:t+1})},onClick:()=>{u(l%1==0?{selectedStars:t+(l-1===t?.5:1)}:{selectedStars:t+(l-.5===t?1:.5)})}},t<(c||l)?c?c-1===t?l%1>0?c-l-.5!=0?wp.element.createElement(HI,{size:r,fillColor:o||"#fbd012"}):wp.element.createElement(WI,{size:r,fillColor:o||"#fbd012"}):c-l!=0?wp.element.createElement(WI,{size:r,fillColor:o||"#fbd012"}):wp.element.createElement(HI,{size:r,fillColor:o||"#fbd012"}):wp.element.createElement(WI,{size:r,fillColor:o||"#fbd012"}):l-t>=1?wp.element.createElement(WI,{size:r,fillColor:o||"#fbd012"}):wp.element.createElement(HI,{size:r,fillColor:o||"#fbd012"}):wp.element.createElement(RI,{size:r,fillColor:o})))))))}});wp.blockEditor.RichText;const lR=wp.element.Component,sR=wp.compose.compose;var cR=sR(Gr,Rr(QI))(class extends lR{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.starAlign,a=t.starCount,r=t.starSize,o=t.starColor,l=t.selectedStars,s=(t.emptyStarColor,t.backgroundColor,e.className),c=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"}," ",wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#fbd012",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"}))),u=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t,width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})));let p=[];for(let e=0;e<a;e++)p.push(e<l?l-e>=1?(d=r,m=o,wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:m||"#fbd012",width:d,height:d,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25"})))):c(r,o):u(r,o));var d,m;const b=i()([s,"blockspare-ratings"]);return wp.element.createElement("div",{className:b},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-star-ratings-wrap"},wp.element.createElement("div",{className:i()("blockspare-star-inner-container","star-align-"+n)},p)))}});var uR=e=>{const t=e.attributes.backgroundColor,n=[];return n.push({".blockspare-section":{backgroundColor:t||"transparent"}}),qr.a.all(n)};wp.blockEditor.RichText;const pR=wp.element.Component,dR=wp.compose.compose;var mR=dR(Gr,Rr(uR))(class extends pR{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.starAlign,a=t.starCount,r=t.starSize,o=t.starColor,l=t.selectedStars,s=t.emptyStarColor,c=(t.backgroundColor,e.className),u=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"}," ",wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#fbd012",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"}))),p=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#d5d3d3",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})));let d=[];for(let e=0;e<a;e++)d.push(e<l?l-e>=1?(m=r,b=o,wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:b||"#fbd012",width:m,height:m,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25"})))):u(r,o):p(r,s));var m,b;const f=i()([c,"blockspare-ratings"]);return wp.element.createElement("div",{className:f},this.props.styles,wp.element.createElement("div",{className:"blockspare-block-star-ratings-wrap"},wp.element.createElement("div",{className:i()("blockspare-star-inner-container","star-align-"+n)},d)))}});function bR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bR(Object(n),!0).forEach((function(t){gR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hR=[{attributes:fR({},II.attributes),save:function(e){const t=e.attributes,n=t.starAlign,a=t.starCount,r=t.starSize,o=t.starColor,l=t.selectedStars,s=t.emptyStarColor,c=t.backgroundColor,u=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"}," ",wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#fbd012",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"}))),p=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#d5d3d3",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})));let d=[];for(let e=0;e<a;e++)d.push(e<l?l-e>=1?(m=r,b=o,wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:b||"#fbd012",width:m,height:m,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25"})))):u(r,o):p(r,s));var m,b;return wp.element.createElement("div",{className:"blockspare-block-star-ratings-wrap",style:{backgroundColor:c||"transparent"}},wp.element.createElement("div",{className:i()("blockspare-star-inner-container","star-align-"+n)},d))}},{attributes:fR({},II.attributes),save:e=>wp.element.createElement(mR,e)}];const yR=wp.i18n.__,wR=wp.blocks.registerBlockType,vR=II.name,kR=II.category,_R=II.attributes;wR(vR,{title:yR("BS Star Ratings","blockspare"),description:yR("Display creative star ratings.","blockspare"),category:kR,icon:r.starrating,attributes:_R,example:{attributes:{cover:"https://blockspare.com",author:"blockspare",pages:500}},keywords:[yR("block","blockspare"),yR("star","blockspare"),yR("review","blockspare"),yR("rating","blockspare")],edit:iR,save:cR,deprecated:hR});const SR=wp.i18n.__;var TR={uniqueClass:{type:"string"},uniqueID:{type:"string",default:""},tabCount:{type:"number",default:3},blockAlignment:{type:"string",default:"none"},titles:{type:"array",default:[{text:SR("Tab 1"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""},{text:SR("Tab 2"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""},{text:SR("Tab 3"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""}]},layout:{type:"string",default:"blockspare-layout1"},tabStyle:{type:"string",default:"blockspare-horizontal"},iSize:{type:"number",default:14},startTab:{type:"number",default:""},enableSubtitle:{type:"bool",default:!1},widthType:{type:"string",default:"normal"},tabWidth:{type:"array",default:[4,"",""]},currentTab:{type:"number",default:1},tabBackGroundColor:{type:"string",default:"#3c1a5b"},activeTabBackgroundColor:{type:"string",default:"#8b249c"},tabTextColor:{type:"string",default:"#fff"},activetabTextColor:{type:"string",default:"#fff"},tabFontSize:{type:"number",default:16},tabFontFamily:{type:"string",default:"default"},tabFontWeight:{type:"string"},tabFontSubset:{type:"string"},tabFontSizeType:{type:"string",default:"px"},tabFontSizeMobile:{type:"number"},tabFontSizeTablet:{type:"number"},tabLoadGoogleFonts:{type:"boolean",default:!1}},ER=(n(536),n(537),n(40)),xR=n.n(ER),MR=n(294),CR=n.n(MR);const OR=wp.i18n.__,LR=wp.element,FR=LR.Component,DR=(LR.Fragment,wp.blockEditor),PR=DR.InspectorControls,jR=DR.PanelColorSettings,NR=wp.components,zR=NR.PanelBody,YR=NR.SelectControl;NR.RangeControl;class BR extends FR{render(){const e=this.props,t=e.attributes,n=(t.tabStyle,t.tabLayout,t.tabBackGroundColor),a=t.activeTabBackgroundColor,r=t.tabTextColor,o=t.activetabTextColor,i=t.layout,l=(t.tabAlignment,t.tabFontSize),s=t.tabFontFamily,c=t.tabFontWeight,u=t.tabFontSubset,p=t.tabFontSizeType,d=t.tabFontSizeMobile,m=t.tabFontSizeTablet,b=t.tabLoadGoogleFonts,f=e.attributes,g=e.setAttributes,h=(OR("Default","blockspare"),OR("Vertical","blockspare"),[{value:"blockspare-layout1",label:OR("Layout 1","blockspare")},{value:"blockspare-layout2",label:OR("Layout 2","blockspare")}]);OR("Left","blockspare"),OR("Right","blockspare"),OR("center","blockspare");return wp.element.createElement(PR,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"tabs"}),wp.element.createElement(zR,{title:OR("Tab Settings"),initialOpen:!1},wp.element.createElement(YR,{label:OR("Tab Layout","blockspare"),options:h,value:i,onChange:e=>this.props.setAttributes({layout:e})})),wp.element.createElement(zR,{title:OR("Typography Settings","blockspare")},wp.element.createElement(br,{label:OR("Tab Fonts Settings"),attributes:f,setAttributes:g,loadGoogleFonts:{value:b,label:OR("tabLoadGoogleFonts")},fontFamily:{value:s,label:OR("tabFontFamily")},fontWeight:{value:c,label:OR("tabFontWeight")},fontSubset:{value:u,label:OR("tabFontSubset")},fontSizeType:{value:p,label:OR("tabFontSizeType")},fontSize:{value:l,label:OR("tabFontSize")},fontSizeMobile:{value:d,label:OR("tabFontSizeMobile")},fontSizeTablet:{value:m,label:OR("tabFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(jR,{title:OR("Color Settings","blockspare"),initialOpen:!1,colorSettings:[{value:r,onChange:e=>g({tabTextColor:e}),label:OR("Text Color","blockspare")},{value:o,onChange:e=>g({activetabTextColor:e}),label:OR("Active Text Color","blockspare")},{value:n,onChange:e=>g({tabBackGroundColor:e}),label:OR("Tab Background Color","blockspare")},{value:a,onChange:e=>g({activeTabBackgroundColor:e}),label:OR("Active Tab Background Color","blockspare")}]})))}}var AR=e=>{const t=e.attributes,n=t.tabFontSize,a=t.tabFontFamily,r=t.tabFontWeight,o=(t.tabFontSubset,t.tabFontSizeType),i=t.tabFontSizeMobile,l=t.tabFontSizeTablet,s=t.tabTextColor,c=t.tabBackGroundColor,u=t.activetabTextColor,p=t.activeTabBackgroundColor,d=[];return d.push({".bs-tabs-title-list .bs-title-item .bs-title-text":{fontSize:n+o,fontFamily:a,fontWeight:r},tablet:{".bs-tabs-title-list .bs-title-item .bs-title-text":{fontSize:l+o}},mobile:{".bs-tabs-title-list .bs-title-item .bs-title-text":{fontSize:i+o}}}),d.push({".bs-tabs-title-list .bs-title-item .bs-title-text":{color:s},".bs-tabs-title-list .bs-tab-title-inactive .bs-tab-title":{backgroundColor:c},"li.bs-tab-title-active .bs-tab-title":{backgroundColor:p},"li.bs-tab-title-active .bs-tab-title .bs-title-text":{color:u}}),qr.a.all(d)};function IR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function RR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IR(Object(n),!0).forEach((function(t){HR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WR=wp.blocks.createBlock,GR=wp.data,UR=GR.withSelect,qR=GR.withDispatch,VR=wp.compose.compose,$R=wp.element,JR=$R.Component,XR=$R.Fragment,KR=wp.blockEditor,QR=KR.InnerBlocks,ZR=KR.RichText,eH=(KR.BlockAlignmentToolbar,wp.components),tH=eH.Button,nH=(eH.ButtonGroup,eH.Tooltip,eH.TabPanel,eH.IconButton),aH=eH.Dashicon,rH=wp.i18n,oH=rH.__,iH=rH.sprintf,lH=["blockspare/inner-tab"],sH=CR()(e=>xR()(e,e=>["blockspare/inner-tab",{id:e+1}])),cH=[];var uH=VR([UR((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.getBlockOrder,i=r(n);return{tabsBlock:i,realTabsCount:i.innerBlocks.length,tabsInner:o(n)}}),qR((e,{clientId:t},{select:n})=>{const a=n("core/block-editor").getBlock,r=e("core/block-editor"),o=r.moveBlockToPosition,i=r.removeBlock,l=r.updateBlockAttributes,s=r.insertBlock,c=a(t);return{resetOrder(){xR()(c.innerBlocks.length,e=>{l(c.innerBlocks[e].clientId,{id:e+1})})},moveTab(e,n){o(e,t,t,parseInt(n))},insertTab(e){s(e,parseInt(c.innerBlocks.length),t)},removeTab(e){i(e)}}}),Gr,Rr(AR)])(class extends JR{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBack=this.onMoveBack.bind(this),this.state={hovered:"false",showPreset:!1,settings:{}}}componentDidMount(){if(this.props.attributes.uniqueID)cH.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),cH.push("_"+this.props.clientId.substr(2,9))):cH.push(this.props.attributes.uniqueID);else{const e=blockspare_globals.config["blockspare/inner-tab"],t=blockspare_globals.configuration?JSON.parse(blockspare_globals.configuration):[];void 0!==t["blockspare/inner-tab"]&&"object"==typeof t["blockspare/inner-tab"]?Object.keys(t["blockspare/inner-tab"]).map(e=>{this.props.attributes[e]=t["blockspare/inner-tab"][e]}):void 0!==e&&"object"==typeof e&&Object.keys(e).map(t=>{this.props.attributes[t]=e[t]}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),cH.push("_"+this.props.clientId.substr(2,9))}const e=blockspare_globals.settings?JSON.parse(blockspare_globals.settings):{};void 0!==e["blockspare/inner-tab"]&&"object"==typeof e["blockspare/inner-tab"]&&this.setState({settings:e["blockspare/inner-tab"]})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||("contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||("author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||("editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user)))}saveArrayUpdate(e,t){const n=this.props,a=n.attributes;(0,n.setAttributes)({titles:a.titles.map((n,a)=>(t===a&&(n=RR(RR({},n),e)),n))})}onMove(e,t){const n=[...this.props.attributes.titles];n.splice(t,1,this.props.attributes.titles[e]),n.splice(e,1,this.props.attributes.titles[t]),this.props.setAttributes({titles:n,currentTab:parseInt(t+1)}),this.props.attributes.startTab===e+1?this.props.setAttributes({startTab:t+1}):this.props.attributes.startTab===t+1&&this.props.setAttributes({startTab:e+1}),this.props.moveTab(this.props.tabsBlock.innerBlocks[e].clientId,t),this.props.resetOrder(),this.props.setAttributes({currentTab:parseInt(t+1)})}onMoveForward(e){return()=>{e!==this.props.realTabsCount-1&&this.onMove(e,e+1)}}onMoveBack(e){return()=>{0!==e&&this.onMove(e,e-1)}}render(){const e=this.props,t=e.attributes,n=t.uniqueID,a=t.tabCount,r=t.currentTab,o=t.tabStyle,l=t.layout,s=t.titles,c=t.tabAlignment,u=t.iSize,p=t.startTab,d=t.enableSubtitle,m=t.tabWidth,b=t.widthType,f=t.tabFontFamily,g=t.tabFontWeight,h=t.tabLoadGoogleFonts,y=(e.clientId,e.className),w=e.setAttributes;let v;if(1==h){const e={google:{families:[f+(g?":"+g:"")]}};v=wp.element.createElement(oo,{config:e})}const k=i()(l,o,y,`bs-tabs-wrap bs-tabs-id${n} bs-tabs-has-${a}-tabs bs-active-tab-${r} bs-tab-alignment-${c}`),_=e=>wp.element.createElement(XR,null,wp.element.createElement("li",{className:`bs-title-item bs-title-item-${e} bs-tabs-svg-show-${s[e]&&s[e].onlyIcon?"only":"always"} bs-tabs-icon-side-${s[e]&&s[e].iconSide?s[e].iconSide:"right"} bs-tabs-has-icon-${s[e]&&s[e].icon?"true":"false"} bs-tab-title-${1+e===r?"active":"inactive"}`},wp.element.createElement("div",{className:"bs-tab-title bs-tab-title-"+(1+e),onClick:()=>w({currentTab:1+e}),onKeyPress:()=>w({currentTab:1+e}),tabIndex:"0",role:"button"},s[e]&&s[e].icon&&"right"!==s[e].iconSide&&wp.element.createElement(IconRender,{className:`bs-tab-svg-icon bs-tab-svg-icon-${s[e].icon} bs-title-svg-side-${s[e].iconSide}`,name:s[e].icon,size:u||"14",htmltag:"span"}),(void 0===d||!d)&&wp.element.createElement(ZR,{tagName:"div",placeholder:oH("Tab Title"),value:s[e]&&s[e].text?s[e].text:"",unstableOnFocus:()=>w({currentTab:1+e}),onChange:t=>{this.saveArrayUpdate({text:t},e)},formattingControls:["bold","italic","strikethrough"],allowedFormats:["core/bold","core/italic","core/strikethrough"],className:"bs-title-text",keepPlaceholderOnFocus:!0}),s[e]&&s[e].icon&&"right"===s[e].iconSide&&wp.element.createElement(IconRender,{className:`bs-tab-svg-icon bs-tab-svg-icon-${s[e].icon} bs-title-svg-side-${s[e].iconSide}`,name:s[e].icon,size:u||"14",htmltag:"span"})),wp.element.createElement("div",{className:"blockspare-blocks-tab-item__control-menu"},0!==e&&wp.element.createElement(nH,{icon:"vtabs"===l?"arrow-up":"arrow-left",onClick:0===e?void 0:this.onMoveBack(e),className:"blockspare-blocks-tab-item__move-back",label:oH("vtabs"===l?"Move Item Up":"Move Item Back"),"aria-disabled":0===e,disabled:0===e}),e+1!==a&&wp.element.createElement(nH,{icon:"vtabs"===l?"arrow-down":"arrow-right",onClick:e+1===a?void 0:this.onMoveForward(e),className:"blockspare-blocks-tab-item__move-forward",label:oH("vtabs"===l?"Move Item Down":"Move Item Forward"),"aria-disabled":e+1===a,disabled:e+1===a}),a>1&&wp.element.createElement(nH,{icon:"no-alt",onClick:()=>{const t=this.props.tabsBlock.innerBlocks[e].clientId,n=Jm()(this.props.attributes.titles,(t,n)=>e!==n);let r;r=p===e+1?"":p>e+1?p-1:p,w({titles:n,tabCount:a-1,currentTab:0===e?1:e,startTab:r}),this.props.removeTab(t),this.props.resetOrder()},className:"blockspare-blocks-tab-item__remove",label:oH("Remove Item"),disabled:!r===e+1})))),S=wp.element.createElement(XR,null,xR()(a,e=>_(e)));return wp.element.createElement(XR,null,wp.element.createElement(BR,RR({setAttributes:w},this.props)),wp.element.createElement("div",{className:k},this.props.styles,wp.element.createElement("div",{className:"bs-tabs-wrap"},wp.element.createElement("div",{className:"kb-add-new-tab-contain"},wp.element.createElement(tH,{className:"bs-tab-add",isPrimary:!0,onClick:()=>{const e=WR("blockspare/inner-tab",{id:a+1});w({tabCount:a+1}),this.props.insertTab(e);const t=s;t.push({text:iH(oH("Tab %d"),a+1),icon:s[0].icon,iconSide:s[0].iconSide,onlyIcon:s[0].onlyIcon,subText:""}),w({titles:t}),this.saveArrayUpdate({iconSide:s[0].iconSide},0)}},wp.element.createElement(aH,{icon:"plus"}),oH("Add Tab"))),wp.element.createElement("ul",{className:"bs-tabs-title-list"+("tabs"===l&&"percent"===b?" kb-tabs-list-columns kb-tab-title-columns-"+m[0]:"")},S),wp.element.createElement("div",{className:"bs-tabs-content-wrap"},wp.element.createElement(QR,{template:sH(a),templateLock:!1,allowedBlocks:lH})))),v)}});const pH=wp.element,dH=pH.Component,mH=pH.Fragment,bH=wp.blockEditor,fH=bH.InnerBlocks,gH=bH.RichText,hH=wp.compose.compose,yH=wp.i18n,wH=yH.__,vH=yH.sprintf;var kH=hH([Gr,Rr(AR)])(class extends dH{stripStringRender(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}render(){const e=this.props,t=e.attributes,n=t.uniqueID,a=t.tabCount,r=t.currentTab,o=t.tabStyle,l=t.layout,s=t.titles,c=t.tabAlignment,u=(t.iSize,t.startTab),p=t.enableSubtitle,d=t.tabWidth,m=t.widthType,b=t.blockAlignment,f=e.className,g=void 0===f||f,h=l||"tabs",y=n||"notset",w=i()(g,"align"+b),v=u||r,k=i()(l,o,`bs-tabs-wrap bs-tabs-id${y} bs-tabs-has-${a}-tabs bs-active-tab-${v} bs-tabs-layout-${h} bs-tab-alignment-${c}`),_=e=>{const t="tab-"+(s[e]&&s[e].text?this.stripStringRender(s[e].text.toString()):this.stripStringRender(wH("Tab")+(1+e)));return wp.element.createElement(mH,null,wp.element.createElement("li",{id:s[e]&&s[e].anchor?s[e].anchor:t,className:`bs-title-item bs-title-item-${1+e} bs-tabs-svg-show-${s[e]&&s[e].onlyIcon?"only":"always"} bs-tabs-icon-side-${s[e]&&s[e].iconSide?s[e].iconSide:"right"} bs-tab-title-${1+e===v?"active":"inactive"}`},wp.element.createElement("a",{href:"#"+(s[e]&&s[e].anchor?s[e].anchor:t),"data-tab":1+e,className:`bs-tab-title bs-tab-title-${1+e} `},(!p||void 0!==s[e]&&void 0===s[e].subText||void 0!==s[e]&&void 0!==s[e].subText&&""===s[e].subText)&&wp.element.createElement(gH.Content,{tagName:"span",value:s[e]&&s[e].text?s[e].text:vH(wH("Tab %d"),1+e),className:"bs-title-text"}),p&&s[e]&&void 0!==s[e].subText&&""!==s[e].subText&&wp.element.createElement("div",{className:"kb-tab-titles-wrap"},wp.element.createElement(gH.Content,{tagName:"span",value:s[e]&&s[e].text?s[e].text:vH(wH("Tab %d"),1+e),className:"bs-title-text"}),wp.element.createElement(gH.Content,{tagName:"span",value:s[e].subText,className:"bs-title-sub-text"})))))};return wp.element.createElement("div",{className:w},this.props.styles,wp.element.createElement("div",{className:k},wp.element.createElement("ul",{className:"bs-tabs-title-list"+("tabs"===l&&"percent"===m?" kb-tabs-list-columns kb-tab-title-columns-"+d[0]:"")},xR()(a,e=>_(e))),wp.element.createElement("div",{className:"bs-tabs-content-wrap"},wp.element.createElement(fH.Content,null))))}}),_H=n(295);const SH=wp.element.Component,TH=wp.blockEditor.InnerBlocks;var EH=class extends SH{constructor(...e){var t,n,a;super(...e),a=()=>{const e=this.props.attributes,t=e.tabTitles,n=e.tabBackGroundColor,a=e.activeTabBackgroundColor,r=e.tabTextColor,o=e.activetabTextColor,i=e.iconPosition;e.tabAlignment;let l="#8b249c";a&&(l=a);let s="#3c1a5b";n&&(s=n);let c="#fff";o&&(c=o);let u="#fff";return r&&(u=r),t.map((e,t)=>wp.element.createElement("span",{className:"blockspare-tab-item "+(0==t?"blockspare-active":"")},wp.element.createElement("span",{class:"blockspare-tab-title "+(e.iconName?"blockspare-has-icon-"+i:""),role:"button",style:{backgroundColor:0==t?l:s,color:0==t?c:u},"tab-bg":s,"atab-bg":l,"tab-text":u,"atab-text":c},e.title)))},(n="renderTabTitles")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a}render(){const e=this.props.attributes,t=(e.uniqueId,e.tabs),n=e.tabStyle,a=e.tabLayout,r=e.tabAlignment;let o=[],l=0;for(;l<t;)o.push(l),l++;return wp.element.createElement("div",{className:"blockspare-block"},wp.element.createElement("div",{className:i()("blockspare-block-tab",n,a)},wp.element.createElement("div",{className:i()("blockspare-tab-nav","blockspare-horizontal"==n?r:"")},this.renderTabTitles(o)),wp.element.createElement("div",{className:"blockspare-tab-body"},wp.element.createElement(TH.Content,null))))}},xH=(n(538),n(10)),MH=n.n(xH);var CH=e=>{const t=e.attributes,n=t.tabFontSize,a=t.tabFontFamily,r=t.tabFontWeight,o=(t.tabFontSubset,t.tabFontSizeType),i=t.tabFontSizeMobile,l=t.tabFontSizeTablet,s=[];return s.push({".blockspare-tabsitems":{fontSize:n+o,fontFamily:a,fontWeight:r},tablet:{".blockspare-tabsitems":{fontSize:l+o}},mobile:{".blockspare-tabsitems":{fontSize:i+o}}}),qr.a.all(s)};function OH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function LH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OH(Object(n),!0).forEach((function(t){FH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DH=wp.i18n.__,PH=wp.components,jH=PH.Tooltip,NH=(PH.PanelBody,PH.Toolbar,wp.compose.compose),zH=wp.data,YH=zH.withSelect,BH=zH.withDispatch,AH=wp.element,IH=AH.Component,RH=AH.Fragment,HH=wp.blockEditor,WH=HH.InnerBlocks,GH=HH.RichText;var UH=NH([YH((e,t)=>{const n=t.clientId;return{block:(0,e("core/block-editor").getBlock)(n)}}),BH(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,removeBlock:t.removeBlock,updateBlockAttributes:t.updateBlockAttributes}}),Gr,Rr(CH)])(class extends IH{constructor(e){super(e),FH(this,"updateTitles",(e,t)=>{const n=this.props,a=n.attributes.tabTitles;(0,n.setAttributes)({tabTitles:a.map((n,a)=>(t===a&&(n=LH(LH({},n),e)),n))})}),FH(this,"renderTabTitles",()=>{const e=this.props,t=e.attributes,n=t.tabTitles,a=t.tabBackGroundColor,r=t.activeTabBackgroundColor,o=t.tabTextColor,i=t.activetabTextColor,l=e.block,s=e.clientId;let c="#8b249c";r&&(c=r);let u="#3c1a5b";a&&(u=a);let p="#fff";i&&(p=i);let d="#fff";o&&(d=o);let m=MH()("#block-"+s);const b=this.state.showIconPicker;return n.map((e,t)=>wp.element.createElement("span",{className:"blockspare-tab-item "+(this.state.activeTab==t+1?"blockspare-active":"")},wp.element.createElement("span",{className:"blockspare-tab-title "+(e.iconName?"blockspare-has-icon-"+iconPosition:""),onClick:()=>{let e=MH()("#block-"+l.innerBlocks[t].clientId,m);MH()(".blockspare-tab-content.blockspare-active",m).removeClass("blockspare-active"),e.addClass("blockspare-active"),this.setState({activeTab:t+1,initialRender:!1,showIconPicker:!b})},role:"button",style:{backgroundColor:this.state.activeTab==t+1?c:u,color:this.state.activeTab==t+1?p:d}},wp.element.createElement(GH,{key:"editable",keepPlaceholderOnFocus:!0,placeholder:DH("Add Tab Title"),value:e.title,className:"blockspare-tabsitems",onChange:e=>this.updateTitles({title:e},t)})),wp.element.createElement(jH,{text:DH("Delete this tab")},wp.element.createElement("span",{className:"blockspare-action-tab-remove",onClick:()=>this.deleteTab(t),role:"button"},wp.element.createElement("i",{className:"fas fa-times"})))))}),FH(this,"deleteTab",e=>{const t=this.state.activeTab,n=this.props,a=n.attributes,r=a.tabTitles,o=a.tabs,i=n.setAttributes,l=n.block,s=n.removeBlock,c=n.updateBlockAttributes,u=n.clientId;i({tabTitles:r.filter((t,n)=>n!=e),tabs:o-1});let p=e+1;for(;p<o;)c(l.innerBlocks[p].clientId,Object.assign(l.innerBlocks[p].attributes,{id:l.innerBlocks[p].attributes.id-1})),p++;if(s(l.innerBlocks[e].clientId),e+1===t){let t=MH()("#block-"+u),n=MH()("#block-"+l.innerBlocks[e+1<o?e+1:o>=2?e-1:e].clientId,t);MH()(".blockspare-active",t).removeClass("blockspare-active"),n.addClass("blockspare-active"),this.setState({activeTab:0==e?1:e+1<o?e+1:e,initialRender:!1})}e+1<t&&this.setState({activeTab:t-1,initialRender:!1})}),FH(this,"newTitles",()=>{const e=this.props.attributes,t=e.tabs,n=e.tabTitles;let a=JSON.parse(JSON.stringify(n));return a[t]={title:DH("Tab "+(t+1)),icon:{}},a}),this.state={device:"md",initialRender:!0,activeTab:1,spacer:!0,showIconPicker:!1}}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}componentDidUpdate(e,t){const n=this.props,a=n.attributes.tabs,r=n.clientId,o=n.block;if(!this.state.initialRender&&e.block.innerBlocks.length<o.innerBlocks.length){let e=MH()("#block-"+r),t=MH()("#block-"+o.innerBlocks[a-1].clientId,e);MH()(".blockspare-active",e).removeClass("blockspare-active"),t.addClass("blockspare-active")}}render(){const e=this.props,t=e.attributes,n=t.uniqueId,a=t.tabs,r=(t.tabTitles,t.tabStyle),o=t.tabLayout,l=t.tabAlignment,s=t.tabFontFamily,c=t.tabFontWeight,u=t.tabLoadGoogleFonts,p=e.className;let d;if(1==u){const e={google:{families:[s+(c?":"+c:"")]}};d=wp.element.createElement(oo,{config:e})}const m=this.props,b=(m.name,m.setAttributes);m.isSelected;let f=[],g=0;for(;g<a;)f.push(g),g++;const h=i()([p,"blockspare-tabs"]);return wp.element.createElement(RH,null,wp.element.createElement(BR,LH({setAttributes:b},this.props)),wp.element.createElement("div",{className:"blockspare-block-"+n},wp.element.createElement("div",{className:h},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-tab blockspare-tab-style",r,o)},wp.element.createElement("div",{className:i()("blockspare-tab-nav","blockspare-horizontal"==r?l:"")},this.renderTabTitles(),wp.element.createElement(jH,{text:DH("Add new tab")},wp.element.createElement("strong",{className:"blockspare-add-new-tab",onClick:()=>{this.setState({activeTab:a+1,initialRender:!1}),b({tabs:a+1,tabTitles:this.newTitles()})},role:"button",areaLabel:DH("Add new tab")},wp.element.createElement("i",{className:"fas fa-plus-circle"})))),wp.element.createElement("div",{className:"blockspare-tab-body"},wp.element.createElement(WH,{tagName:"div",template:f.map(e=>["blockspare/blockspare-tab",{id:e+1,customClassName:0===e?"blockspare-tab-content blockspare-active wp-block-blockspare-blockspare-tab":"blockspare-tab-content wp-block-blockspare-blockspare-tab"}]),templateLock:"all",allowedBlocks:["blockspare/blockspare-tab"]}))))),d)}});const qH=wp.element.Component,VH=wp.blockEditor.InnerBlocks,$H=wp.compose.compose;var JH=$H(Gr,Rr(CH))(class extends qH{constructor(...e){var t,n,a;super(...e),a=()=>{const e=this.props.attributes,t=e.tabTitles,n=e.tabBackGroundColor,a=e.activeTabBackgroundColor,r=e.tabTextColor,o=e.activetabTextColor,i=e.iconPosition;e.tabAlignment;let l="#8b249c";a&&(l=a);let s="#3c1a5b";n&&(s=n);let c="#fff";o&&(c=o);let u="#fff";return r&&(u=r),t.map((e,t)=>wp.element.createElement("span",{className:"blockspare-tab-item "+(0==t?"blockspare-active":"")},wp.element.createElement("span",{class:"blockspare-tab-title blockspare-tabsitems "+(e.iconName?"blockspare-has-icon-"+i:""),role:"button",style:{backgroundColor:0==t?l:s,color:0==t?c:u},"tab-bg":s,"atab-bg":l,"tab-text":u,"atab-text":c},e.title)))},(n="renderTabTitles")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a}render(){const e=this.props,t=e.attributes,n=(t.uniqueId,t.tabs),a=t.tabStyle,r=t.tabLayout,o=t.tabAlignment,l=e.className;let s=[],c=0;for(;c<n;)s.push(c),c++;const u=i()([l,"blockspare-tabs"]);return wp.element.createElement("div",{className:"blockspare-block"},wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-tab",a,r)},wp.element.createElement("div",{className:i()("blockspare-tab-nav","blockspare-horizontal"==a?o:"")},this.renderTabTitles(s)),wp.element.createElement("div",{className:"blockspare-tab-body"},wp.element.createElement(VH.Content,null)))))}});function XH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function KH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QH=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XH(Object(n),!0).forEach((function(t){KH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_H.attributes),save:e=>wp.element.createElement(EH,e)},{attributes:{className:{type:"string"},tabs:{type:"number",default:3},tabTitles:{type:"array",default:[{title:"Tab 1"},{title:"Tab 2"},{title:"Tab 3"}]},tabStyle:{type:"string",default:"blockspare-horizontal"},tabLayout:{type:"string",default:"blockspare-layout1"},tabBackGroundColor:{type:"string",default:"#3c1a5b"},activeTabBackgroundColor:{type:"string",default:"#8b249c"},tabTextColor:{type:"string",default:"#fff"},activetabTextColor:{type:"string",default:"#fff"},tabAlignment:{type:"string",default:"blockspare-left"},uniqueClass:{type:"string"},tabFontSize:{type:"number",default:16},tabFontFamily:{type:"string",default:"Default"},tabFontWeight:{type:"string"},tabFontSubset:{type:"string"},tabFontSizeType:{type:"string",default:"px"},tabFontSizeMobile:{type:"number"},tabFontSizeTablet:{type:"number"},tabLoadGoogleFonts:{type:"boolean",default:!1}},edit:e=>wp.element.createElement(UH,e),save:e=>wp.element.createElement(JH,e)}];const ZH=wp.i18n.__;(0,wp.blocks.registerBlockType)("blockspare/blockspare-tabs",{title:ZH("BS Tabs","blockspare"),description:ZH("Add tabs","blockspare"),category:"blockspare",icon:r.tabs,attributes:TR,supports:{html:!1,className:!0,align:["center","wide","full"]},keywords:[ZH("block","blockspare"),ZH("tab","blockspare"),ZH("tabs","blockspare"),ZH("tabbed","blockspare"),ZH("content","blockspare")],edit:uH,save:kH,deprecated:QH});var eW=n(105);const tW=wp.element.Component,nW=wp.blockEditor.InnerBlocks;var aW=class extends tW{render(){const e=this.props.attributes.id;return wp.element.createElement("div",{className:"blockspare-tab-content "+(1==e?"blockspare-active":"")},wp.element.createElement(nW.Content,null))}};const rW=wp.element.Component,oW=wp.blockEditor.InnerBlocks;var iW=class extends rW{render(){return wp.element.createElement("div",null,wp.element.createElement(oW,{templateLock:!1,templateInsertUpdatesSelection:!1,renderAppender:()=>wp.element.createElement(oW.ButtonBlockAppender,null)}))}};const lW=wp.i18n.__,sW=wp.blocks.registerBlockType,cW=eW.name,uW=eW.category;sW(cW,{title:lW("Tab","blockspare"),category:uW,parent:["blockspare/blockspare-tabs"],supports:{html:!1,inserter:!1,reusable:!1},icon:"cart",attributes:{uniqueId:{type:"string",default:""},id:{type:"number",default:1},customClassName:{type:"string",default:""}},getEditWrapperProps:e=>({"data-tab":e.id,className:"wp-block editor-block-list__block block-editor-block-list__block "+e.customClassName}),edit:iW,save:aW});const pW=wp.blockEditor.InnerBlocks,dW=wp.element.Fragment,mW=wp.element.Component,bW=[];var fW=class extends mW{componentDidMount(){this.props.attributes.uniqueID?bW.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),bW.push("_"+this.props.clientId.substr(2,9))):bW.push(this.props.attributes.uniqueID):(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),bW.push("_"+this.props.clientId.substr(2,9)))}render(){const e=this.props,t=e.attributes,n=t.id,a=t.uniqueID,r=e.clientId,o=wp.data.select("core/block-editor").getBlockOrder(r).length>0;return wp.element.createElement(dW,null,wp.element.createElement("div",{className:`bs-tab-inner-content bs-inner-tab-${n} bs-inner-tab${a}`},wp.element.createElement(pW,{templateLock:!1,renderAppender:o?void 0:()=>wp.element.createElement(pW.ButtonBlockAppender,null)})))}};const gW=wp.blockEditor.InnerBlocks,hW=wp.i18n.__;(0,wp.blocks.registerBlockType)("blockspare/inner-tab",{title:hW("Tab"),icon:r.tabs,category:"blockspare",parent:["blockspare/blockspare-tabs"],attributes:{id:{type:"number",default:1},uniqueID:{type:"string",default:""}},supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:e=>({"data-tab":e.id}),edit:fW,save({attributes:e}){const t=e.id,n=e.uniqueID;return wp.element.createElement("div",{className:`bs-tab-inner-content bs-inner-tab-${t} bs-inner-tab${n}`},wp.element.createElement("div",{className:"bs-tab-inner-content-inner"},wp.element.createElement(gW.Content,null)))}});var yW=e=>{const t=e.attributes,n=t.marginTop,a=t.marginBottom,r=[];return r.push({".blockspare-main-testimonial-wrapper":{marginTop:n?n+"px":void 0,marginBottom:a?a+"px":void 0}}),qr.a.all(r)};const wW=wp.element.Component,vW=wp.compose.compose;var kW=vW(Gr,Rr(yW))(class extends wW{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.columns,a=t.columnsGap,r=t.align,o=e.className,l=(e.attributes,i()(o,"align"+r)),s=i()(["blockspare-main-testimonial-wrapper","blockspare-testimonial-admin","blockspare-testimonial-columns-"+n,"blockspare-testimonial-gap-"+a]);return wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:s},this.props.styles,this.props.children))}});const _W=wp.components,SW=(_W.IconButton,_W.PanelBody),TW=_W.RangeControl,EW=(_W.ToggleControl,wp.i18n.__),xW=wp.element,MW=xW.Component,CW=(xW.Fragment,wp.blockEditor.InspectorControls);class OW extends MW{render(){const e=this.props,t=(e.attributes,e.isSelectedBlockInRoot,e.attributes),n=(t.uniqueId,t.columns),a=t.columnsGap,r=t.marginTop,o=t.marginBottom,i=e.setAttributes;return wp.element.createElement(CW,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"testimonial"}),wp.element.createElement(SW,{title:EW("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(TW,{label:EW("Columns","blockspare"),value:n,onChange:e=>this.props.setAttributes({columns:e}),min:1,max:3}),wp.element.createElement(TW,{label:EW("Columns Gap","blockspare"),value:a,onChange:e=>this.props.setAttributes({columnsGap:e}),min:0,max:4,step:1})),wp.element.createElement(SW,{title:EW("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:r,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>i({marginTop:e}),marginEnableBottom:!0,marginBottom:o,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>i({marginBottom:e})}))))}}n(539),n(540);var LW=n(106);const FW=wp.i18n.__,DW=wp.element.Component,PW=wp.blockEditor,jW=PW.InspectorControls,NW=PW.PanelColorSettings,zW=wp.components,YW=zW.PanelBody,BW=(zW.SelectControl,zW.RangeControl);class AW extends DW{render(){const e=this.props,t=e.attributes,n=(t.starColor,t.starSize,t.enableRatings,t.titleFontSize),a=(t.subtitleFontSize,t.headerTagOption),r=t.headertitleColor,o=t.headersubtitleColor,i=t.headerlayoutOption,l=t.titlePaddingTop,s=t.titlePaddingBottom,c=t.subtitlePaddingTop,u=t.subtitlePaddingBottom,p=t.headerboxColor,d=t.dashColor,m=(t.testimonialDescriptionTextSize,t.testimonialDescriptionTextColor),b=t.backGroundColor,f=(t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.borderRadius,t.titleLoadGoogleFonts),g=t.titleFontFamily,h=t.titleFontWeight,y=t.titleFontSubset,w=t.titleFontSizeType,v=t.titleFontSizeMobile,k=t.titleFontSizeTablet,_=t.subTitleFontSize,S=t.subTitleLoadGoogleFonts,T=t.subTitleFontFamily,E=t.subTitleFontWeight,x=t.subTitleFontSubset,M=t.subTitleFontSizeType,C=t.subTitleFontSizeMobile,O=t.subTitleFontSizeTablet,L=t.descriptionFontSize,F=t.descriptionFontFamily,D=t.descriptionFontWeight,P=t.descriptionFontSubset,j=t.descriptionFontSizeType,N=t.descriptionFontSizeMobile,z=t.descriptionFontSizeTablet,Y=t.descriptionLoadGoogleFonts,B=t.padding,A=t.borderWidth,I=t.borderColor,R=e.attributes,H=e.setAttributes;FW("Layout 1","blockspare"),FW("Layout 2","blockspare"),FW("Layout 3","blockspare");return wp.element.createElement(jW,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(YW,{title:FW("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(BW,{label:FW("Testimonial Column Padding","blockspare"),value:B,onChange:e=>this.props.setAttributes({padding:e}),min:0,max:20,step:1}),wp.element.createElement(BW,{label:FW("Testimonial Column Border","blockspare"),value:A,onChange:e=>this.props.setAttributes({borderWidth:e}),min:0,max:10,step:1})),wp.element.createElement(YW,{title:FW("Color Settings","blockspare"),initialOpen:!1},0<A&&wp.element.createElement(NW,{title:FW("Border Color","blockspare"),initialOpen:!1,colorSettings:[{value:I,onChange:e=>H({borderColor:e}),label:FW("Border Color","blockspare")}]}),wp.element.createElement(NW,{title:FW("Background Color","blockspare"),initialOpen:!1,colorSettings:[{value:b,onChange:e=>H({backGroundColor:e}),label:FW("Background Color","blockspare")}]}),wp.element.createElement(NW,{title:FW("Description Color","blockspare"),initialOpen:!1,colorSettings:[{value:m,onChange:e=>H({testimonialDescriptionTextColor:e}),label:FW("Description Color","blockspare")}]})),wp.element.createElement(YW,{title:FW("Header Settings","blockspare"),initialOpen:!1},wp.element.createElement(Di,{headerlayoutOption:i,onChangeHeaderLayput:e=>H({headerlayoutOption:e})}),wp.element.createElement(YW,{title:FW("Typography Settings","blockspare")},wp.element.createElement(br,{label:FW("Title Fonts Settings"),attributes:R,setAttributes:H,loadGoogleFonts:{value:f,label:FW("titleLoadGoogleFonts")},fontFamily:{value:g,label:FW("titleFontFamily")},fontWeight:{value:h,label:FW("titleFontWeight")},fontSubset:{value:y,label:FW("titleFontSubset")},fontSizeType:{value:w,label:FW("titleFontSizeType")},fontSize:{value:n,label:FW("titleFontSize")},fontSizeMobile:{value:v,label:FW("titleFontSizeMobile")},fontSizeTablet:{value:k,label:FW("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:a}),wp.element.createElement(br,{label:FW("Subtitle Fonts Settings"),attributes:R,setAttributes:H,loadGoogleFonts:{value:S,label:FW("subTitleLoadGoogleFonts")},fontFamily:{value:T,label:FW("subTitleFontFamily")},fontWeight:{value:E,label:FW("subTitleFontWeight")},fontSubset:{value:x,label:FW("subTitleFontSubset")},fontSizeType:{value:M,label:FW("subTitleFontSizeType")},fontSize:{value:_,label:FW("subTitleFontSize")},fontSizeMobile:{value:C,label:FW("subTitleFontSizeMobile")},fontSizeTablet:{value:O,label:FW("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0}),wp.element.createElement(br,{label:FW("Description"),attributes:R,setAttributes:H,loadGoogleFonts:{value:Y,label:FW("descriptionLoadGoogleFonts")},fontFamily:{value:F,label:FW("descriptionFontFamily")},fontWeight:{value:D,label:FW("descriptionFontWeight")},fontSubset:{value:P,label:FW("descriptionFontSubset")},fontSizeType:{value:j,label:FW("descriptionFontSizeType")},fontSize:{value:L,label:FW("descriptionFontSize")},fontSizeMobile:{value:N,label:FW("descriptionFontSizeMobile")},fontSizeTablet:{value:z,label:FW("descriptionFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(ci,{enableBlockGaps:!1,headerTagOption:a,onChangeHeaderTag:e=>H({headerTagOption:e}),headerboxColor:p,onChangeboxcolor:e=>H({headerboxColor:e}),dashColor:d,headerlayoutOption:i,onChangeDashColor:e=>H({dashColor:e}),headertitleColor:r,onChangetitlecolor:e=>H({headertitleColor:e}),titlePaddingTop:l,onChangetitlePaddingTop:e=>H({titlePaddingTop:e}),titlePaddingBottom:s,onChangetitlePaddingBottom:e=>H({titlePaddingBottom:e}),headersubtitleColor:o,onChangesubtitlecolor:e=>H({headersubtitleColor:e}),subtitlePaddingTop:c,onChangesubtitlePaddingTop:e=>H({subtitlePaddingTop:e}),subtitlePaddingBottom:u,onChangesubtitlePaddingBottom:e=>H({subtitlePaddingBottom:e})}))))}}function IW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function RW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IW(Object(n),!0).forEach((function(t){HW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WW=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.subTitleFontSize,y=t.subTitleFontFamily,w=(t.subTitleFontWeight,t.subTitleFontSizeType),v=t.subTitleFontSizeMobile,k=t.subTitleFontSizeTablet,_=(t.descriptionColor,t.descriptionFontSize),S=t.descriptionFontFamily,T=t.descriptionFontWeight,E=(t.descriptionFontSubset,t.descriptionFontSizeType),x=t.descriptionFontSizeMobile,M=t.descriptionFontSizeTablet,C=(t.headerpaddingTop,t.headerpaddingRight,t.headerpaddingBottom,t.headerpaddingLeft,t.headermarginTop),O=t.headermarginBottom,L=t.testimonialDescriptionTextColor,F=(t.testimonialDescriptionTextSize,t.backGroundColor),D=t.borderRadius,P=t.borderWidth,j=t.borderColor,N=t.padding,z=[];return z.push({".blockspare-block-testimonial-wrap":RW(RW({},Qi(e.attributes)),{},{backgroundColor:F||"#fff",borderWidth:P?P+"px":null,borderStyle:0<P?"solid":null,borderColor:j||null,borderRadius:D?D+"px":null,padding:N?N+"px":"15px"})}),z.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:o+"px",paddingBottom:i+"px",marginTop:C+"px",marginBottom:O+"px"}}),z.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m+"!important",paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:h+w,fontFamily:y,fontWeight:y+"!important",paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-description":{color:L,fontSize:_+E,fontFamily:S,textAlign:n,fontWeight:T+"!important"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:k+w},".blockspare-description":{fontSize:M+E}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:v+w},".blockspare-description":{fontSize:x+E}}}),qr.a.all(z)};const GW=blockspare_globals,UW=["core/image"],qW=[["core/image",{url:GW.menu_img_url,width:120,height:120,align:"center"}]],VW=wp.i18n.__,$W=wp.element,JW=$W.Component,XW=$W.Fragment,KW=wp.compose.compose,QW=wp.blockEditor,ZW=QW.RichText,eG=QW.InnerBlocks,tG=QW.AlignmentToolbar,nG=QW.BlockControls;var aG=KW(Gr,Rr(WW))(class extends JW{render(){const e=this.props,t=e.attributes,n=t.align,a=t.testimonialDescription,r=t.enableRatings,o=t.starCount,l=t.starSize,s=t.starColor,c=t.selectedStars,u=t.emptyStarColor,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=(t.testimonialDescriptionTextSize,t.testimonialDescriptionTextColor,t.backGroundColor,t.borderRadius,t.titleLoadGoogleFonts),f=t.titleFontFamily,g=t.titleFontWeight,h=t.subTitleLoadGoogleFonts,y=t.subTitleFontFamily,w=t.subTitleFontWeight,v=t.headerlayoutOption,k=t.sectionAlignment,_=t.descriptionLoadGoogleFonts,S=t.descriptionFontFamily,T=t.descriptionFontWeight,E=e.className,x=e.highlightedStars,M=(e.attributes,e.setAttributes);let C;if(1==_){const e={google:{families:[S+(T?":"+T:"")]}};C=wp.element.createElement(oo,{config:e})}const O=i()([E,"blockspare-testimonials","textalignment-"+k]);return wp.element.createElement(XW,null,wp.element.createElement(AW,this.props),wp.element.createElement(nG,{key:"controls"},wp.element.createElement(tG,{value:k,onChange:e=>{M({sectionAlignment:e})}})),wp.element.createElement("div",{className:O},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-testimonial-wrap")},wp.element.createElement("div",{className:"blockspare-author-wrap"},wp.element.createElement("div",{className:"blockspare-img-wrapper"},wp.element.createElement(eG,{template:qW,allowedBlocks:UW,templateLock:!0,templateInsertUpdatesSelection:!0}))),wp.element.createElement("div",{className:"blockspare-author-designation"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+n)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",v,"blockspare-"+k)},wp.element.createElement(Ki,{setAttributes:M,headerTitle:d,headerTagOption:p,headerSubTitle:m,titleFontFamily:f,titleFontWeight:g,titleLoadGoogleFonts:b,subTitleLoadGoogleFonts:h,subTitleFontFamily:y,subTitleFontWeight:w})))),r&&wp.element.createElement("div",{className:"blockspare-star-rating"},wp.element.createElement("div",{className:"blockspare-star-outer-container"},wp.element.createElement("div",{className:"blockspare-star-inner-container",onMouseLeave:()=>this.setState({highlightedStars:0})},[...Array(o)].map((e,t)=>wp.element.createElement("div",{className:"blockspare-ratings",key:t,onMouseEnter:()=>{this.setState({highlightedStars:t+1})},onClick:()=>{M(c%1==0?{selectedStars:t+(c-1===t?.5:1)}:{selectedStars:t+(c-.5===t?1:.5)})}},t<(x||c)?x?x-1===t?c%1>0?x-c-.5!=0?wp.element.createElement(HI,{size:l,fillColor:s||"#fbd012"}):wp.element.createElement(WI,{size:l,fillColor:s||"#fbd012"}):x-c!=0?wp.element.createElement(WI,{size:l,fillColor:s||"#fbd012"}):wp.element.createElement(HI,{size:l,fillColor:s||"#fbd012"}):wp.element.createElement(WI,{size:l,fillColor:s||"#fbd012"}):c-t>=1?wp.element.createElement(WI,{size:l,fillColor:s||"#fbd012"}):wp.element.createElement(HI,{size:l,fillColor:s||"#fbd012"}):wp.element.createElement(RI,{size:l,fillColor:u||"#d5d3d3"})))))),wp.element.createElement("div",{className:"blockspare-testimonial-content"},wp.element.createElement(ZW,{tagName:"p",className:"blockspare-description",onChange:e=>M({testimonialDescription:e}),value:a,placeholder:VW("Description","blockspare"),keepPlaceholderOnFocus:!0})))),C)}});const rG=wp.blockEditor,oG=rG.InnerBlocks,iG=rG.RichText,lG=wp.element.Component,sG=wp.compose.compose;var cG=sG(Gr,Rr(WW))(class extends lG{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.testimonialDescription,a=t.sectionAlignment,r=t.enableRatings,o=t.starCount,l=t.starSize,s=t.starColor,c=t.selectedStars,u=t.emptyStarColor,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=t.align,f=(t.testimonialDescriptionTextSize,t.testimonialDescriptionTextColor,t.backGroundColor,t.borderRadius,t.headerlayoutOption),g=e.className,h=(e.attributes,(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"}," ",wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#fbd012",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"})))),y=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#d5d3d3",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})));let w=[];for(let e=0;e<o;e++)w.push(e<c?c-e>=1?(v=l,k=s,wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:k||"#fbd012",width:v,height:v,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25"})))):h(l,s):y(l,u));var v,k;const _=i()([g,"blockspare-testimonials","textalignment-"+a]);return wp.element.createElement("div",{className:_},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-testimonial-wrap")},wp.element.createElement("div",{className:"blockspare-author-wrap"},wp.element.createElement("div",{className:"blockspare-img-wrapper"},wp.element.createElement(oG.Content,null))),wp.element.createElement("div",{className:"blockspare-author-designation"},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+b)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",f,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:d,headerTagOption:p,headerSubTitle:m})))),r&&wp.element.createElement("div",{className:"blockspare-star-rating"},wp.element.createElement("div",{className:"blockspare-star-outer-container"},wp.element.createElement("div",{className:"blockspare-star-inner-container"},w))),wp.element.createElement("div",{className:"blockspare-testimonial-content"},wp.element.createElement(iG.Content,{tagName:"p",className:"blockspare-description",value:n}))))}}),uG=n(107),pG=n(296);function dG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function mG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dG(Object(n),!0).forEach((function(t){bG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fG=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.subTitleFontSize,y=t.subTitleFontFamily,w=(t.subTitleFontWeight,t.subTitleFontSizeType),v=t.subTitleFontSizeMobile,k=t.subTitleFontSizeTablet,_=(t.descriptionColor,t.descriptionFontSize),S=t.descriptionFontFamily,T=t.descriptionFontWeight,E=(t.descriptionFontSubset,t.descriptionFontSizeType),x=t.descriptionFontSizeMobile,M=t.descriptionFontSizeTablet,C=t.headerpaddingTop,O=t.headerpaddingRight,L=t.headerpaddingBottom,F=t.headerpaddingLeft,D=t.headermarginTop,P=t.headermarginBottom,j=t.testimonialDescriptionTextColor,N=(t.testimonialDescriptionTextSize,t.backGroundColor),z=t.borderRadius,Y=[];return Y.push({".blockspare-block-testimonial-wrap":mG(mG({},Qi(e.attributes)),{},{backgroundColor:N||"#fff",borderRadius:z||null})}),Y.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:C+"px",paddingRight:O+"px",paddingBottom:L+"px",marginTop:D+"px",marginBottom:P+"px",paddingLeft:F+"px"}}),Y.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m+"!important",paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:h+w,fontFamily:y,fontWeight:y+"!important",paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-description":{color:j,fontSize:_+E,fontFamily:S,fontWeight:T+"!important"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:k+w},".blockspare-description":{fontSize:M+E}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:v+w},".blockspare-description":{fontSize:x+E}}}),qr.a.all(Y)};const gG=wp.blockEditor,hG=gG.InnerBlocks,yG=gG.RichText,wG=wp.element.Component,vG=wp.compose.compose;var kG=vG(Gr,Rr(fG))(class extends wG{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.testimonialDescription,a=t.sectionAlignment,r=t.enableRatings,o=t.starCount,l=t.starSize,s=t.starColor,c=t.selectedStars,u=t.emptyStarColor,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=t.align,f=(t.testimonialDescriptionTextSize,t.testimonialDescriptionTextColor,t.backGroundColor,t.borderRadius,t.headerlayoutOption),g=e.className,h=(e.attributes,(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"}," ",wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#fbd012",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"})))),y=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#d5d3d3",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})));let w=[];for(let e=0;e<o;e++)w.push(e<c?c-e>=1?(v=l,k=s,wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:k||"#fbd012",width:v,height:v,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25"})))):h(l,s):y(l,u));var v,k;const _=i()([g,"blockspare-testimonials"]);return wp.element.createElement("div",{className:_},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-testimonial-wrap")},wp.element.createElement("div",{className:"blockspare-author-wrap"},wp.element.createElement("div",{className:"blockspare-img-wrapper"},wp.element.createElement(hG.Content,null)),wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+b)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",f,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:d,headerTagOption:p,headerSubTitle:m})))),r&&wp.element.createElement("div",{className:"blockspare-star-rating"},wp.element.createElement("div",{className:"blockspare-star-outer-container"},wp.element.createElement("div",{className:"blockspare-star-inner-container"},w))),wp.element.createElement("div",{className:"blockspare-testimonial-content"},wp.element.createElement(yG.Content,{tagName:"p",className:"blockspare-description",value:n}))))}});function _G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function SG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_G(Object(n),!0).forEach((function(t){TG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EG=e=>{const t=e.attributes,n=t.sectionAlignment,a=t.headertitleColor,r=t.titleFontSize,o=t.titlePaddingTop,i=t.titlePaddingBottom,l=t.headersubtitleColor,s=(t.subtitleFontSize,t.subtitlePaddingTop),c=t.subtitlePaddingBottom,u=t.dashColor,p=t.headerboxColor,d=t.titleFontFamily,m=t.titleFontWeight,b=t.titleFontSizeType,f=t.titleFontSizeMobile,g=t.titleFontSizeTablet,h=t.subTitleFontSize,y=t.subTitleFontFamily,w=(t.subTitleFontWeight,t.subTitleFontSizeType),v=t.subTitleFontSizeMobile,k=t.subTitleFontSizeTablet,_=(t.descriptionColor,t.descriptionFontSize),S=t.descriptionFontFamily,T=t.descriptionFontWeight,E=(t.descriptionFontSubset,t.descriptionFontSizeType),x=t.descriptionFontSizeMobile,M=t.descriptionFontSizeTablet,C=t.headerpaddingTop,O=t.headerpaddingRight,L=t.headerpaddingBottom,F=t.headerpaddingLeft,D=t.headermarginTop,P=t.headermarginBottom,j=t.testimonialDescriptionTextColor,N=(t.testimonialDescriptionTextSize,t.backGroundColor),z=t.borderRadius,Y=t.borderWidth,B=t.borderColor,A=t.padding,I=[];return I.push({".blockspare-block-testimonial-wrap":SG(SG({},Qi(e.attributes)),{},{backgroundColor:N||"#fff",borderWidth:Y?Y+"px":null,borderStyle:0<Y?"solid":null,borderColor:B||null,borderRadius:z||null,padding:A?A+"px":"15px"})}),I.push({".blockspare-section-head-wrap":{backgroundColor:p||"transparent",textAlign:n,paddingTop:C+"px",paddingRight:O+"px",paddingBottom:L+"px",marginTop:D+"px",marginBottom:P+"px",paddingLeft:F+"px"}}),I.push({".blockspare-section-head-wrap .blockspare-title":{color:a,fontSize:r+b,fontFamily:d,fontWeight:m+"!important",paddingTop:o+"px ",paddingBottom:i+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:l,fontSize:h+w,fontFamily:y,fontWeight:y+"!important",paddingTop:s+"px",paddingBottom:c+"px"},".blockspare-description":{color:j,fontSize:_+E,fontFamily:S,fontWeight:T+"!important"},".blockspare-title-dash":{color:u},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:g+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:k+w},".blockspare-description":{fontSize:M+E}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:f+b},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:v+w},".blockspare-description":{fontSize:x+E}}}),qr.a.all(I)};const xG=wp.blockEditor,MG=xG.InnerBlocks,CG=xG.RichText,OG=wp.element.Component,LG=wp.compose.compose;var FG=LG(Gr,Rr(EG))(class extends OG{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.testimonialDescription,a=t.sectionAlignment,r=t.enableRatings,o=t.starCount,l=t.starSize,s=t.starColor,c=t.selectedStars,u=t.emptyStarColor,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=t.align,f=(t.testimonialDescriptionTextSize,t.testimonialDescriptionTextColor,t.backGroundColor,t.borderRadius,t.headerlayoutOption),g=e.className,h=(e.attributes,(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"}," ",wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#fbd012",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"})))),y=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#d5d3d3",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})));let w=[];for(let e=0;e<o;e++)w.push(e<c?c-e>=1?(v=l,k=s,wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:k||"#fbd012",width:v,height:v,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25"})))):h(l,s):y(l,u));var v,k;const _=i()([g,"blockspare-testimonials"]);return wp.element.createElement("div",{className:_},this.props.styles,wp.element.createElement("div",{className:i()("blockspare-block-testimonial-wrap")},wp.element.createElement("div",{className:"blockspare-author-wrap"},wp.element.createElement("div",{className:"blockspare-img-wrapper"},wp.element.createElement(MG.Content,null)),wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+b)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",f,"blockspare-"+a)},wp.element.createElement(Ml,{headerTitle:d,headerTagOption:p,headerSubTitle:m})))),r&&wp.element.createElement("div",{className:"blockspare-star-rating"},wp.element.createElement("div",{className:"blockspare-star-outer-container"},wp.element.createElement("div",{className:"blockspare-star-inner-container"},w))),wp.element.createElement("div",{className:"blockspare-testimonial-content"},wp.element.createElement(CG.Content,{tagName:"p",className:"blockspare-description",value:n}))))}});function DG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function PG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DG(Object(n),!0).forEach((function(t){jG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NG=wp.blockEditor,zG=NG.InnerBlocks,YG=NG.RichText;var BG=[{attributes:PG(PG(PG({},ei),uG.attributes),ti),save:function(e){const t=e.attributes,n=t.testimonialDescription,a=t.sectionAlignment,r=t.enableRatings,o=t.starCount,l=t.starSize,s=t.starColor,c=t.selectedStars,u=t.emptyStarColor,p=t.headerTagOption,d=t.headerTitle,m=t.headerSubTitle,b=t.testimonialDescriptionTextSize,f=t.testimonialDescriptionTextColor,g=t.backGroundColor,h=t.borderRadius,y=PG({},jl(e.attributes)),w=PG({},Nl(e.attributes)),v=PG({},zl(e.attributes)),k=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"}," ",wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#fbd012",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l0,0l0,0l139.103,120.539L97.41,497.25L255,402.186l0,0 l157.59,95.039l-41.692-179.239L510,197.472z M255,354.348V117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166 L255,354.348z"}))),_=(e,t)=>wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t||"#d5d3d3",width:e,height:e,viewBox:"0 0 510 510"},wp.element.createElement("path",{d:"M510,197.472l-183.37-15.734L255,12.75l-71.629,168.988L0,197.472l139.103,120.539L97.41,497.25L255,402.186 l157.59,95.064l-41.692-179.239L510,197.472z M255,354.348l-95.957,57.886l25.398-109.166l-84.736-73.389l111.69-9.588 L255,117.172l43.605,102.918l111.689,9.588l-84.711,73.389l25.398,109.166L255,354.348z"})));let S=[];for(let e=0;e<o;e++)S.push(e<c?c-e>=1?(T=l,E=s,wp.element.createElement("div",{className:"blockspare-ratings"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:E||"#fbd012",width:T,height:T,viewBox:"0 0 510 510"},wp.element.createElement("polygon",{points:"255,402.212 412.59,497.25 370.897,318.011 510,197.472 326.63,181.738 255,12.75 183.371,181.738 0,197.472 139.103,318.011 97.41,497.25"})))):k(l,s):_(l,u));var T,E;return wp.element.createElement("div",{className:i()("blockspare-block-testimonial-wrap"),style:PG(PG({},Qi(e)),{},{borderRadius:h||null,backgroundColor:g||"#fff"})},wp.element.createElement("div",{className:"blockspare-author-wrap"},wp.element.createElement("div",{className:"blockspare-img-wrapper"},wp.element.createElement(zG.Content,null)),wp.element.createElement("div",{className:"blockspare-section-head-wrap",style:{textAlign:a}},wp.element.createElement(Vl,e,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:y}),d&&wp.element.createElement(YG.Content,{tagName:p,className:"blockspare-title",style:w,value:d}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:y})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:y}),m&&wp.element.createElement(YG.Content,{tagName:"p",className:"blockspare-subtitle",style:v,value:m}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:y}))))),r&&wp.element.createElement("div",{className:"blockspare-star-rating"},wp.element.createElement("div",{className:"blockspare-star-outer-container"},wp.element.createElement("div",{className:"blockspare-star-inner-container"},S))),wp.element.createElement("div",{className:"blockspare-testimonial-content"},wp.element.createElement(YG.Content,{tagName:"p",className:"blockspare-description",value:n,style:{fontSize:b+"px",color:f||"#6d6d6d"}})))}},{attributes:PG(PG(PG({},ei),uG.attributes),ti),save:e=>wp.element.createElement(kG,e)},{attributes:PG(PG(PG({},ei),pG.attributes),ti),save:e=>wp.element.createElement(FG,e)}];function AG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function IG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AG(Object(n),!0).forEach((function(t){RG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HG=wp.i18n.__,WG=wp.blocks.registerBlockType,GG=LW.category,UG=IG(IG(IG({},ei),LW.attributes),ti),qG={title:HG("Testimonial Item","blockspare"),description:HG("Display creative testimonial.","blockspare"),parent:["blockspare/blockspare-testimonial"],icon:r.testimonial,category:GG,supports:{html:!1,inserter:!1,reusable:!1},attributes:UG,edit:aG,save:cG,deprecated:BG};WG("blockspare/testimonial-item",qG);wp.i18n.__;const VG=wp.element,$G=VG.Component,JG=VG.Fragment,XG=wp.blocks.createBlock,KG=wp.data,QG=KG.withSelect,ZG=KG.withDispatch,eU=wp.blockEditor.InnerBlocks,tU=wp.compose.compose;var nU=tU([QG((e,t)=>{const n=t.clientId,a=e("core/block-editor"),r=a.getBlock,o=a.isBlockSelected,i=a.hasSelectedInnerBlock;return{block:r(n),isSelectedBlockInRoot:o(n)||i(n,!0)}}),ZG(e=>{const t=e("core/block-editor");return{insertBlock:t.insertBlock,updateBlockAttributes:t.updateBlockAttributes}})])(class extends $G{constructor(...e){var t,n,a;super(...e),a=e=>{const t=[],n=e.defaultItems;for(let e=0;e<n;e++)t.push(["blockspare/testimonial-item",{}]);return t},(n="getTestimonialTemplate")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a}componentDidMount(){const e=this.props,t=e.setAttributes,n=e.clientId,a=e.attributes.uniqueId,r=n.substr(0,6);a?a&&a!=r&&t({uniqueId:r}):t({uniqueId:r})}insertTestimonialItem(){let e;const t=this.props,n=t.clientId,a=t.insertBlock,r=t.block;if(r.innerBlocks&&r.innerBlocks.length){const t=r.innerBlocks[r.innerBlocks.length-1].attributes.itemNumber+1,n=qG.heading;e=Object.assign({},{},{itemNumber:t,heading:n,active:!1,defaultText:""})}else e=qG;a(XG("blockspare/testimonial-item",e),void 0,n)}render(){const e=this.props.attributes;return[wp.element.createElement(JG,null,wp.element.createElement(OW,this.props),wp.element.createElement(kW,this.props,wp.element.createElement(eU,{template:this.getTestimonialTemplate(e),allowedBlocks:["blockspare/testimonial-item"]})))]}});const aU=wp.element.Component,rU=wp.blockEditor.InnerBlocks,oU=wp.compose.compose;var iU=oU(Gr,Rr(yW))(class extends aU{render(){const e=this.props,t=e.attributes,n=t.columns,a=t.columnsGap,r=t.align,o=(t.backgroundColor,e.className),l=i()(o,"align"+r),s=i()(["blockspare-main-testimonial-wrapper","blockspare-testimonial-columns-"+n,"blockspare-testimonial-gap-"+a]);return wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:s},this.props.styles,wp.element.createElement(rU.Content,null)))}}),lU=n(44);const sU=wp.element.Component,cU=wp.blockEditor.InnerBlocks;var uU=class extends sU{render(){const e=this.props.attributes,t=e.columns,n=e.columnsGap,a=e.align,r=e.backgroundColor,o=i()([this.props.className,"blockspare-testimonial-wrapper","blockspare-testimonial-columns-"+t,"blockspare-testimonial-gap-"+n],{["align"+a]:a});return wp.element.createElement("div",{className:o||void 0,style:{backgroundColor:r||"transparent"}},wp.element.createElement(cU.Content,null))}};var pU=[{attributes:{serviceItems:{type:"number",default:2},columns:{type:"number",default:2},columnsGap:{type:"number",default:1},align:{type:"string",default:"center"},defaultItems:{type:"number",default:2},marginTop:{type:"number",default:30},marginBottom:{type:"number",default:30}},save:e=>wp.element.createElement(uU,e)}];const dU=wp.i18n.__,mU=wp.blocks.registerBlockType,bU=lU.name,fU=lU.category,gU=lU.attributes;mU(bU,{title:dU("BS Testimonial","blockspare"),description:dU("Add a testimonial","blockspare"),category:fU,icon:r.testimonial,attributes:gU,keywords:[dU("block","blockspare"),dU("testimonial","blockspare"),dU("team","blockspare"),dU("rating","blockspare")],supports:{align:["wide","full","center"],html:!0},edit:nU,save:iU,deprecated:pU});n(541),n(542);var hU=n(41);const yU=wp.i18n.__,wU=wp.element.Component,vU=wp.blockEditor,kU=vU.InspectorControls,_U=vU.PanelColorSettings,SU=wp.components,TU=SU.PanelBody,EU=(SU.ToggleControl,SU.SelectControl),xU=SU.TextControl;SU.RangeControl;class MU extends wU{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.profileTextColor,a=(t.profileBackgroundColor,t.twitter),r=t.facebook,o=(t.instagram,t.youtube,t.linkedin),i=(t.buttonFill,t.paddingTop),l=t.paddingRight,s=t.paddingBottom,c=t.paddingLeft,u=t.marginTop,p=t.marginBottom,d=(t.iconColorOption,t.customfontColorOption,t.custombackgroundColorOption,t.buttonShapes),m=t.buttonSizes,b=t.titleFontSize,f=(t.subtitleFontSize,t.headerTagOption),g=t.headertitleColor,h=t.headersubtitleColor,y=t.headerlayoutOption,w=t.titlePaddingTop,v=t.titlePaddingBottom,k=t.subtitlePaddingTop,_=t.subtitlePaddingBottom,T=t.headerboxColor,E=t.dashColor,x=(t.enableBoxShadow,t.xOffset,t.yOffset,t.blur,t.spread,t.shadowColor,t.borderRadius,t.titleLoadGoogleFonts),M=t.titleFontFamily,C=t.titleFontWeight,O=t.titleFontSubset,L=t.titleFontSizeType,F=t.titleFontSizeMobile,D=t.titleFontSizeTablet,P=t.subTitleFontSize,j=t.subTitleLoadGoogleFonts,N=t.subTitleFontFamily,z=t.subTitleFontWeight,Y=t.subTitleFontSubset,B=t.subTitleFontSizeType,A=t.subTitleFontSizeMobile,I=t.subTitleFontSizeTablet,R=t.descriptionFontSize,H=t.descriptionFontFamily,W=t.descriptionFontWeight,G=t.descriptionFontSubset,U=t.descriptionFontSizeType,q=t.descriptionFontSizeMobile,V=t.descriptionFontSizeTablet,$=t.descriptionLoadGoogleFonts,J=e.attributes,X=e.setAttributes,K=(yU("Layout 1","blockspare"),yU("Layout 2","blockspare"),yU("Layout 3","blockspare"),yU(" Official","blockspare"),yU("Custom","blockspare"),[{value:"blockspare-social-icon-square",label:yU("Square","blockspare")},{value:"blockspare-social-icon-circle",label:yU("Circle","blockspare")},{value:"blockspare-social-icon-rounded",label:yU("Rounded Square","blockspare")}]),Q=[{value:"blockspare-social-icon-small",label:yU("Small","blockspare")},{value:"blockspare-social-icon-medium",label:yU("Medium","blockspare")},{value:"blockspare-social-icon-large",label:yU("Large","blockspare")}];yU("Solid","blockspare"),yU("Border","blockspare"),yU("None","blockspare");return wp.element.createElement(kU,{key:"inspector"},wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{proTitle:"👋",demoLink:"user-profile"}),wp.element.createElement(TU,{title:yU("Header Settings","blockspare"),initialOpen:!1},wp.element.createElement(Di,{headerlayoutOption:y,onChangeHeaderLayput:e=>X({headerlayoutOption:e})}),wp.element.createElement(TU,{title:yU("Typography Settings","blockspare")},wp.element.createElement(br,{label:yU("Title Fonts Settings"),attributes:J,setAttributes:X,loadGoogleFonts:{value:x,label:yU("titleLoadGoogleFonts")},fontFamily:{value:M,label:yU("titleFontFamily")},fontWeight:{value:C,label:yU("titleFontWeight")},fontSubset:{value:O,label:yU("titleFontSubset")},fontSizeType:{value:L,label:yU("titleFontSizeType")},fontSize:{value:b,label:yU("titleFontSize")},fontSizeMobile:{value:F,label:yU("titleFontSizeMobile")},fontSizeTablet:{value:D,label:yU("titleFontSizeTablet")},disableLineHeight:!0,disableTag:!1,headerTagOption:f}),wp.element.createElement(br,{label:yU("Subtitle Fonts Settings"),attributes:J,setAttributes:X,loadGoogleFonts:{value:j,label:yU("subTitleLoadGoogleFonts")},fontFamily:{value:N,label:yU("subTitleFontFamily")},fontWeight:{value:z,label:yU("subTitleFontWeight")},fontSubset:{value:Y,label:yU("subTitleFontSubset")},fontSizeType:{value:B,label:yU("subTitleFontSizeType")},fontSize:{value:P,label:yU("subTitleFontSize")},fontSizeMobile:{value:A,label:yU("subTitleFontSizeMobile")},fontSizeTablet:{value:I,label:yU("subTitleFontSizeTablet")},disableLineHeight:!0,disableTag:!0}),wp.element.createElement(br,{label:yU("Description Fonts Settings"),attributes:J,setAttributes:X,loadGoogleFonts:{value:$,label:yU("descriptionLoadGoogleFonts")},fontFamily:{value:H,label:yU("descriptionFontFamily")},fontWeight:{value:W,label:yU("descriptionFontWeight")},fontSubset:{value:G,label:yU("descriptionFontSubset")},fontSizeType:{value:U,label:yU("descriptionFontSizeType")},fontSize:{value:R,label:yU("descriptionFontSize")},fontSizeMobile:{value:q,label:yU("descriptionFontSizeMobile")},fontSizeTablet:{value:V,label:yU("descriptionFontSizeTablet")},disableLineHeight:!0})),wp.element.createElement(ci,{enableBlockGaps:!1,headerTagOption:f,onChangeHeaderTag:e=>X({headerTagOption:e}),headerboxColor:T,onChangeboxcolor:e=>X({headerboxColor:e}),dashColor:E,headerlayoutOption:y,onChangeDashColor:e=>X({dashColor:e}),headertitleColor:g,onChangetitlecolor:e=>X({headertitleColor:e}),titlePaddingTop:w,onChangetitlePaddingTop:e=>X({titlePaddingTop:e}),titlePaddingBottom:v,onChangetitlePaddingBottom:e=>X({titlePaddingBottom:e}),headersubtitleColor:h,onChangesubtitlecolor:e=>X({headersubtitleColor:e}),subtitlePaddingTop:k,onChangesubtitlePaddingTop:e=>X({subtitlePaddingTop:e}),subtitlePaddingBottom:_,onChangesubtitlePaddingBottom:e=>X({subtitlePaddingBottom:e})})),wp.element.createElement(TU,{title:yU("Color Settings","blockspare"),initialOpen:!1},wp.element.createElement(_U,{title:yU("Colors","blockspare"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>X({profileTextColor:e}),label:yU("Description Color","blockspare")}]})),wp.element.createElement(TU,{title:yU("Social link Urls","blockspare"),className:"blockspare-hide-query",initialOpen:!1},wp.element.createElement(xU,{label:yU("Facebook Url","blockspare"),type:"text",value:r,onChange:e=>this.props.setAttributes({facebook:e})}),wp.element.createElement(xU,{label:yU("LinkedIn Url","blockspare"),type:"text",value:o,onChange:e=>this.props.setAttributes({linkedin:e})}),wp.element.createElement(xU,{label:yU("Twitter Url","blockspare"),type:"text",value:a,onChange:e=>this.props.setAttributes({twitter:e})})),wp.element.createElement(TU,{title:yU("Social Icon Option","blockspare"),initialOpen:!1},wp.element.createElement(EU,{label:yU("Size","blockspare"),options:Q,value:m,onChange:e=>this.props.setAttributes({buttonSizes:e})}),wp.element.createElement(EU,{label:yU("Shape","blockspare"),options:K,value:d,onChange:e=>this.props.setAttributes({buttonShapes:e})})),wp.element.createElement(TU,{title:yU("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(TU,{title:yU("Padding Settings","blockspare"),initialOpen:!1},wp.element.createElement(Pe,{paddingEnableTop:!0,paddingTop:i,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>X({paddingTop:e}),paddingEnableRight:!0,paddingRight:l,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>X({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:s,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>X({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:c,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>X({paddingLeft:e})})),wp.element.createElement(TU,{title:yU("Margin Settings","blockspare"),initialOpen:!1},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:u,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>X({marginTop:e}),marginEnableBottom:!0,marginBottom:p,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>X({marginBottom:e})})))))}}wp.element.Component;const CU=wp.i18n.__,OU=wp.element.Component;class LU extends OU{constructor(e){super(...arguments)}render(){const e=this.props.attributes,t=e.facebook,n=e.linkedin,a=e.instagram,r=e.twitter,o=e.youtube,l=e.iconColorOption,s=e.buttonShapes,c=e.buttonSizes,u=e.buttonOptions,p=e.buttonFills;return wp.element.createElement("ul",{className:i()("blockspare-social-links",l,s,c,u,p)},t&&wp.element.createElement("li",null,wp.element.createElement("a",{href:t,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"screen-reader-text"},CU("Facebook","blockspare"))))),n&&wp.element.createElement("li",null,wp.element.createElement("a",{href:n,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"screen-reader-text"},CU("Linkedin","blockspare"))))),a&&wp.element.createElement("li",null,wp.element.createElement("a",{href:a,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-instagram"}),wp.element.createElement("span",{className:"screen-reader-text"},CU("Instagram","blockspare"))))),r&&wp.element.createElement("li",null,wp.element.createElement("a",{href:r,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"screen-reader-text"},CU("Twitter","blockspare"))))),o&&wp.element.createElement("li",null,wp.element.createElement("a",{href:o,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"blockspare-social-icons"},wp.element.createElement("i",{className:"fab fa-youtube"}),wp.element.createElement("span",{className:"screen-reader-text"},CU("Youtube","blockspare"))))))}}const FU=wp.element.Component;class DU extends FU{constructor(e){super(...arguments)}render(){return wp.element.createElement("div",{className:"blockspare-profile-column blockspare-profile-avatar-wrap"},wp.element.createElement("div",{className:"blockspare-profile-image-wrap"},this.props.children))}}function PU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function jU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PU(Object(n),!0).forEach((function(t){NU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zU=e=>{const t=e.attributes,n=t.profileBackgroundColor,a=t.profileTextColor,r=t.borderRadius,o=t.buttonFills,i=t.iconColorOption,l=t.paddingTop,s=t.paddingRight,c=t.paddingBottom,u=t.paddingLeft,p=t.marginTop,d=t.marginBottom,m=(t.profileContentFontSize,t.sectionAlignment),b=t.headertitleColor,f=t.titleFontSize,g=t.titlePaddingTop,h=t.titlePaddingBottom,y=t.headersubtitleColor,w=(t.subtitleFontSize,t.subtitlePaddingTop),v=t.subtitlePaddingBottom,k=t.dashColor,_=t.headerboxColor,S=t.titleFontFamily,T=t.titleFontWeight,E=t.titleFontSizeType,x=t.titleFontSizeMobile,M=t.titleFontSizeTablet,C=t.subTitleFontSize,O=t.subTitleFontFamily,L=t.subTitleFontWeight,F=t.subTitleFontSizeType,D=t.subTitleFontSizeMobile,P=t.subTitleFontSizeTablet,j=(t.descriptionColor,t.descriptionFontSize),N=t.descriptionFontFamily,z=t.descriptionFontWeight,Y=(t.descriptionFontSubset,t.descriptionFontSizeType),B=t.descriptionFontSizeMobile,A=t.descriptionFontSizeTablet,I=t.headerpaddingTop,R=t.headerpaddingRight,H=t.headerpaddingBottom,W=t.headerpaddingLeft,G=t.headermarginTop,U=t.headermarginBottom,q=t.customfontColorOption,V=t.custombackgroundColorOption,$=[];return $.push({".blockspare-author-wrapper":jU({backgroundColor:n||"#fff",paddingTop:l?l+"px":"0px",paddingRight:s?s+"px":"0px",paddingBottom:c?c+"px":"0px",paddingLeft:u?u+"px":"0px",borderRadius:r?r+"px":null},Qi(e.attributes)),".blockspare-section-wrapper":{marginTop:p?p+"px":"0px",marginBottom:d?d+"px":"0px"},".blockspare-block-profile":{color:a||"#6d6d6d"},".blockspare-profile-text-description":{fontSize:j+Y,fontFamily:N+"!important",fontWeight:z+"!important"}}),"blockspare-default-official-color"!=i&&("blockspare-social-icon-border"==o?$.push({".blockspare-author-wrapper .blockspare-social-links a":{color:q,border:"2px solid "+V}}):"blockspare-social-icon-solid"==o?$.push({".blockspare-social-links a":{color:q,backgroundColor:V}}):$.push({".blockspare-social-links a":{color:q}})),$.push({".blockspare-section-head-wrap":{backgroundColor:_||"transparent",textAlign:m,paddingTop:I+"px",paddingRight:R+"px",paddingBottom:H+"px",marginTop:G+"px",marginBottom:U+"px",paddingLeft:W+"px"}}),$.push({".blockspare-section-head-wrap .blockspare-title":{color:b,fontSize:f+E,fontFamily:S,fontWeight:T+"!important",paddingTop:g+"px ",paddingBottom:h+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:y,fontSize:C+F,fontFamily:O,fontWeight:L+"!important",paddingTop:w+"px",paddingBottom:v+"px"},".blockspare-user-profile-desc":{fontSize:j+Y,fontFamily:N,fontWeight:z+"!important"},".blockspare-title-dash":{color:k},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:M+E},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:P+F},".blockspare-user-profile-desc":{fontSize:A+Y}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:x+E},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:D+F},".blockspare-user-profile-desc":{fontSize:B+Y}}}),qr.a.all($)};function YU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function BU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AU=wp.compose.compose,IU=blockspare_globals,RU=["core/image"],HU=[["core/image",{url:IU.menu_img_url,width:120,height:120,align:"center"}]],WU=wp.i18n.__,GU=wp.element,UU=GU.Component,qU=GU.Fragment,VU=wp.blockEditor,$U=VU.RichText,JU=VU.AlignmentToolbar,XU=VU.BlockControls,KU=VU.InnerBlocks;var QU=AU(Gr,Rr(zU))(class extends UU{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.headerTagOption,r=t.headerTitle,o=t.headerSubTitle,l=t.profileContent,s=t.headerlayoutOption,c=t.titleLoadGoogleFonts,u=t.titleFontFamily,p=t.titleFontWeight,d=t.subTitleLoadGoogleFonts,m=t.subTitleFontFamily,b=t.subTitleFontWeight,f=t.descriptionLoadGoogleFonts,g=t.descriptionFontFamily,h=t.descriptionFontWeight,y=e.className,w=(e.attributes,e.setAttributes);let v,k="";if(k="left"==n?"blockspare-layout-left":"right"==n?"blockspare-layout-right":"blockspare-layout-center",1==f){const e={google:{families:[g+(h?":"+h:"")]}};v=wp.element.createElement(oo,{config:e})}const _=i()([y,"blockspare-authorprofile"]);return wp.element.createElement(qU,null,wp.element.createElement("div",{className:_},wp.element.createElement("div",{className:"blockspare-section-wrapper"},this.props.styles,wp.element.createElement("div",{className:"blockspare-author-wrapper blockspare-blocks"},wp.element.createElement(XU,{key:"controls"},wp.element.createElement(JU,{value:n,onChange:e=>w({sectionAlignment:e})})),wp.element.createElement(MU,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YU(Object(n),!0).forEach((function(t){BU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:w},this.props)),wp.element.createElement("div",{className:i()("blockspare-profile-admin",k,"blockspare-block-profile","blockspare-profile-columns")},wp.element.createElement(DU,this.props,wp.element.createElement(KU,{template:HU,allowedBlocks:RU,templateLock:!0,templateInsertUpdatesSelection:!0})),wp.element.createElement("div",{className:i()("blockspare-profile-column blockspare-profile-content-wrap")},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+n)},wp.element.createElement(Ki,{setAttributes:w,headerTitle:r,headerTagOption:a,headerSubTitle:o,titleFontFamily:u,titleFontWeight:p,titleLoadGoogleFonts:c,subTitleLoadGoogleFonts:d,subTitleFontFamily:m,subTitleFontWeight:b}))),wp.element.createElement($U,{tagName:"div",className:i()("blockspare-profile-text","blockspare-user-profile-desc"),multiline:"p",placeholder:WU("Add your content...","blockspare"),keepPlaceholderOnFocus:!0,value:l,allowedFormats:["bold","italic","strikethrough","link"],onChange:e=>w({profileContent:e})}),wp.element.createElement(LU,this.props)))),v)))}});const ZU=wp.compose.compose,eq=wp.element.Component,tq=wp.blockEditor,nq=tq.RichText,aq=tq.InnerBlocks;var rq=ZU(Gr,Rr(zU))(class extends eq{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.profileContent,r=t.headerTagOption,o=t.headerTitle,l=t.headerSubTitle,s=(t.profileContentFontSize,t.headerlayoutOption),c=(t.align,e.className),u=i()([c,"blockspare-authorprofile authorbox"]);let p="";return p="left"==n?"blockspare-layout-left":"right"==n?"blockspare-layout-right":"blockspare-layout-center",wp.element.createElement("div",{className:u},wp.element.createElement("div",{className:"blockspare-section-wrapper"},this.props.styles,wp.element.createElement("div",{className:"blockspare-author-wrapper blockspare-blocks"},wp.element.createElement("div",{className:i()(p,"blockspare-block-profile","blockspare-profile-columns")},wp.element.createElement(DU,this.props,wp.element.createElement(aq.Content,null)),wp.element.createElement("div",{className:i()("blockspare-profile-column blockspare-profile-content-wrap")},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks")},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+n)},wp.element.createElement(Ml,{headerTitle:o,headerTagOption:r,headerSubTitle:l}))),a&&wp.element.createElement(nq.Content,{tagName:"div",className:i()("blockspare-profile-text","blockspare-user-profile-desc"),value:a}),wp.element.createElement(LU,this.props))))))}}),oq=n(108);function iq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function lq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sq=wp.element.Component;class cq extends sq{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.align,a=t.sectionAlignment,r=t.headerlayoutOption,o=e.attributes,l=(e.setAttributes,e.isSelected,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iq(Object(n),!0).forEach((function(t){lq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Wl(o)));return wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+n),style:l},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",r,"blockspare-"+a)},this.props.children))}}function uq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uq(Object(n),!0).forEach((function(t){dq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mq=wp.i18n.__,bq=wp.element.Component,fq=wp.blockEditor,gq=fq.RichText,hq=fq.InnerBlocks;class yq extends bq{constructor(){super(...arguments)}render(){const e=this.props.attributes,t=e.sectionAlignment,n=e.profileImgURL,a=e.profileFontSize,r=e.profileBackgroundColor,o=e.profileTextColor,l=e.profileAvatarShape,s=e.borderRadius,c=e.profileContent,u=e.paddingTop,p=e.paddingRight,d=e.paddingBottom,m=e.paddingLeft,b=e.marginTop,f=e.marginBottom,g=e.headerTagOption,h=e.headerTitle,y=e.headerSubTitle,w=e.profileContentFontSize,v=e.iconColorOption,k=e.customfontColorOption,_=e.custombackgroundColorOption,S=e.facebook,T=e.linkedin,E=e.instagram,x=e.twitter,M=e.youtube,C=e.buttonShapes,O=e.buttonSizes,L=e.buttonOptions,F=e.buttonFills,D={paddingTop:u?u+"px":"0px",paddingRight:p?p+"px":"0px",paddingBottom:d?d+"px":"0px",paddingLeft:m?m+"px":"0px",marginTop:b?b+"px":"0px",marginBottom:f?f+"px":"0px"};let P="";P="left"==t?"blockspare-layout-left":"right"==t?"blockspare-layout-right":"blockspare-layout-center";const j=pq({},jl(this.props.attributes)),N=pq({},Nl(this.props.attributes)),z=pq({},zl(this.props.attributes));let Y="";return Y="blockspare-default-official-color"!=v?{color:k,backgroundColor:_}:{},wp.element.createElement("div",{className:"blockspare-author-wrapper blockspare-blocks",style:D},wp.element.createElement("div",{style:pq(pq({},Qi(this.props.attributes)),{},{backgroundColor:r||"#f2f2f2",color:o||"#6d6d6d",borderRadius:s||null}),className:i()(this.props.className,l,P,{"blockspare-has-avatar":n},"blockspare-font-size-"+a,"blockspare-block-profile","blockspare-profile-columns")},wp.element.createElement(DU,this.props,wp.element.createElement(hq.Content,null)),wp.element.createElement("div",{className:i()("blockspare-profile-column blockspare-profile-content-wrap")},wp.element.createElement(cq,this.props,wp.element.createElement("div",{className:"blockspare-title-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:j}),h&&wp.element.createElement(gq.Content,{tagName:g,className:"blockspare-title",style:N,value:h}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:j})),wp.element.createElement("div",{className:"blockspare-subtitle-wrapper"},wp.element.createElement("span",{className:"blockspare-title-dash blockspare-upper-dash",style:j}),y&&wp.element.createElement(gq.Content,{tagName:"p",className:"blockspare-subtitle",style:z,value:y}),wp.element.createElement("span",{className:"blockspare-title-dash blockspare-lower-dash",style:j}))),c&&wp.element.createElement(gq.Content,{tagName:"div",className:"blockspare-profile-text",value:c,style:{fontSize:w+"px"}}),wp.element.createElement("ul",{className:i()("blockspare-social-links",v,C,O,L,F)},S&&wp.element.createElement("li",null,wp.element.createElement("a",{style:Y,href:S,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"screen-reader-text"},mq("Facebook","blockspare")))),T&&wp.element.createElement("li",null,wp.element.createElement("a",{style:Y,href:T,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"screen-reader-text"},mq("Linkedin","blockspare")))),E&&wp.element.createElement("li",null,wp.element.createElement("a",{style:Y,href:E,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-instagram"}),wp.element.createElement("span",{className:"screen-reader-text"},mq("Instagram","blockspare")))),x&&wp.element.createElement("li",null,wp.element.createElement("a",{style:Y,href:x,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"screen-reader-text"},mq("Twitter","blockspare")))),M&&wp.element.createElement("li",null,wp.element.createElement("a",{style:Y,href:M,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-youtube"}),wp.element.createElement("span",{className:"screen-reader-text"},mq("Youtube","blockspare"))))))))}}const wq=wp.element.Component;class vq extends wq{constructor(e){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.profileImgURL,r=t.profileFontSize,o=t.profileAvatarShape;e.attributes;let l="";return l="left"==n?"blockspare-layout-left":"right"==n?"blockspare-layout-right":"blockspare-layout-center",wp.element.createElement("div",{className:i()(this.props.className,o,l,{"blockspare-has-avatar":a},"blockspare-font-size-"+r,"blockspare-block-profile","blockspare-profile-columns")},this.props.children)}}const kq=wp.i18n.__,_q=wp.element.Component;class Sq extends _q{constructor(e){super(...arguments)}render(){const e=this.props.attributes,t=e.facebook,n=e.linkedin,a=e.instagram,r=e.twitter,o=e.youtube,l=e.iconColorOption,s=e.buttonShapes,c=e.buttonSizes,u=e.buttonOptions,p=e.buttonFills;return wp.element.createElement("ul",{className:i()("blockspare-social-links",l,s,c,u,p)},t&&wp.element.createElement("li",null,wp.element.createElement("a",{href:t,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-facebook-f"}),wp.element.createElement("span",{className:"screen-reader-text"},kq("Facebook","blockspare")))),n&&wp.element.createElement("li",null,wp.element.createElement("a",{href:n,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-linkedin"}),wp.element.createElement("span",{className:"screen-reader-text"},kq("Linkedin","blockspare")))),a&&wp.element.createElement("li",null,wp.element.createElement("a",{href:a,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-instagram"}),wp.element.createElement("span",{className:"screen-reader-text"},kq("Instagram","blockspare")))),r&&wp.element.createElement("li",null,wp.element.createElement("a",{href:r,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-twitter"}),wp.element.createElement("span",{className:"screen-reader-text"},kq("Twitter","blockspare")))),o&&wp.element.createElement("li",null,wp.element.createElement("a",{href:o,className:"",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"fab fa-youtube"}),wp.element.createElement("span",{className:"screen-reader-text"},kq("Youtube","blockspare")))))}}function Tq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Eq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tq(Object(n),!0).forEach((function(t){xq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mq=e=>{const t=e.attributes,n=t.profileBackgroundColor,a=t.profileTextColor,r=t.borderRadius,o=t.iconColorOption,i=t.paddingTop,l=t.paddingRight,s=t.paddingBottom,c=t.paddingLeft,u=t.marginTop,p=t.marginBottom,d=(t.profileContentFontSize,t.sectionAlignment),m=t.headertitleColor,b=t.titleFontSize,f=t.titlePaddingTop,g=t.titlePaddingBottom,h=t.headersubtitleColor,y=(t.subtitleFontSize,t.subtitlePaddingTop),w=t.subtitlePaddingBottom,v=t.dashColor,k=t.headerboxColor,_=t.titleFontFamily,S=t.titleFontWeight,T=t.titleFontSizeType,E=t.titleFontSizeMobile,x=t.titleFontSizeTablet,M=t.subTitleFontSize,C=t.subTitleFontFamily,O=t.subTitleFontWeight,L=t.subTitleFontSizeType,F=t.subTitleFontSizeMobile,D=t.subTitleFontSizeTablet,P=(t.descriptionColor,t.descriptionFontSize),j=t.descriptionFontFamily,N=t.descriptionFontWeight,z=(t.descriptionFontSubset,t.descriptionFontSizeType),Y=t.descriptionFontSizeMobile,B=t.descriptionFontSizeTablet,A=t.headerpaddingTop,I=t.headerpaddingRight,R=t.headerpaddingBottom,H=t.headerpaddingLeft,W=t.headermarginTop,G=t.headermarginBottom,U=t.customfontColorOption,q=t.custombackgroundColorOption,V=[];return V.push({".blockspare-author-wrapper":{backgroundColor:n||"#fff",paddingTop:i?i+"px":"0px",paddingRight:l?l+"px":"0px",paddingBottom:s?s+"px":"0px",paddingLeft:c?c+"px":"0px",marginTop:u?u+"px":"0px",marginBottom:p?p+"px":"0px"},".blockspare-block-profile":Eq(Eq({},Qi(e.attributes)),{},{color:a||"#6d6d6d",borderRadius:r||null}),".blockspare-profile-text-description":{fontSize:P+z,fontFamily:j+"!important",fontWeight:N+"!important"}}),"blockspare-default-official-color"!=o&&V.push({".blockspare-social-links a":{color:U,backgroundColor:q}}),V.push({".blockspare-section-head-wrap":{backgroundColor:k||"transparent",textAlign:d,paddingTop:A+"px",paddingRight:I+"px",paddingBottom:R+"px",marginTop:W+"px",marginBottom:G+"px",paddingLeft:H+"px"}}),V.push({".blockspare-section-head-wrap .blockspare-title":{color:m,fontSize:b+T,fontFamily:_,fontWeight:S+"!important",paddingTop:f+"px ",paddingBottom:g+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:h,fontSize:M+L,fontFamily:C,fontWeight:O+"!important",paddingTop:y+"px",paddingBottom:w+"px"},".blockspare-user-profile-desc":{fontSize:P+z,fontFamily:j,fontWeight:N+"!important"},".blockspare-title-dash":{color:v},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:x+T},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:D+L},".blockspare-user-profile-desc":{fontSize:B+z}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:E+T},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:F+L},".blockspare-user-profile-desc":{fontSize:Y+z}}}),qr.a.all(V)};const Cq=wp.compose.compose,Oq=wp.element.Component,Lq=wp.blockEditor,Fq=Lq.RichText,Dq=Lq.InnerBlocks;var Pq=Cq(Gr,Rr(Mq))(class extends Oq{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.profileContent,r=t.headerTagOption,o=t.headerTitle,l=t.headerSubTitle,s=(t.profileContentFontSize,t.headerlayoutOption),c=t.align,u=e.className,p=i()([u,"blockspare-authorprofile"]);return wp.element.createElement("div",{className:p},this.props.styles,wp.element.createElement("div",{className:"blockspare-author-wrapper blockspare-blocks"},wp.element.createElement(vq,this.props,wp.element.createElement(DU,this.props,wp.element.createElement(Dq.Content,null)),wp.element.createElement("div",{className:i()("blockspare-profile-column blockspare-profile-content-wrap")},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+c)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+n)},wp.element.createElement(Ml,{headerTitle:o,headerTagOption:r,headerSubTitle:l}))),a&&wp.element.createElement(Fq.Content,{tagName:"div",className:i()("blockspare-profile-text","blockspare-user-profile-desc"),value:a}),wp.element.createElement(Sq,this.props)))))}});function jq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Nq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jq(Object(n),!0).forEach((function(t){zq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yq=e=>{const t=e.attributes,n=t.profileBackgroundColor,a=t.profileTextColor,r=t.borderRadius,o=t.iconColorOption,i=t.paddingTop,l=t.paddingRight,s=t.paddingBottom,c=t.paddingLeft,u=t.marginTop,p=t.marginBottom,d=(t.profileContentFontSize,t.sectionAlignment),m=t.headertitleColor,b=t.titleFontSize,f=t.titlePaddingTop,g=t.titlePaddingBottom,h=t.headersubtitleColor,y=(t.subtitleFontSize,t.subtitlePaddingTop),w=t.subtitlePaddingBottom,v=t.dashColor,k=t.headerboxColor,_=t.titleFontFamily,S=t.titleFontWeight,T=t.titleFontSizeType,E=t.titleFontSizeMobile,x=t.titleFontSizeTablet,M=t.subTitleFontSize,C=t.subTitleFontFamily,O=t.subTitleFontWeight,L=t.subTitleFontSizeType,F=t.subTitleFontSizeMobile,D=t.subTitleFontSizeTablet,P=(t.descriptionColor,t.descriptionFontSize),j=t.descriptionFontFamily,N=t.descriptionFontWeight,z=(t.descriptionFontSubset,t.descriptionFontSizeType),Y=t.descriptionFontSizeMobile,B=t.descriptionFontSizeTablet,A=t.headerpaddingTop,I=t.headerpaddingRight,R=t.headerpaddingBottom,H=t.headerpaddingLeft,W=t.headermarginTop,G=t.headermarginBottom,U=t.customfontColorOption,q=t.custombackgroundColorOption,V=[];return V.push({".blockspare-author-wrapper":{backgroundColor:n||"#fff",paddingTop:i?i+"px":"0px",paddingRight:l?l+"px":"0px",paddingBottom:s?s+"px":"0px",paddingLeft:c?c+"px":"0px"},".blockspare-section-wrapper":{marginTop:u?u+"px":"0px",marginBottom:p?p+"px":"0px"},".blockspare-block-profile":Nq(Nq({},Qi(e.attributes)),{},{color:a||"#6d6d6d",borderRadius:r||null}),".blockspare-profile-text-description":{fontSize:P+z,fontFamily:j+"!important",fontWeight:N+"!important"}}),"blockspare-default-official-color"!=o&&V.push({".blockspare-social-links a span":{color:U,backgroundColor:q}}),V.push({".blockspare-section-head-wrap":{backgroundColor:k||"transparent",textAlign:d,paddingTop:A+"px",paddingRight:I+"px",paddingBottom:R+"px",marginTop:W+"px",marginBottom:G+"px",paddingLeft:H+"px"}}),V.push({".blockspare-section-head-wrap .blockspare-title":{color:m,fontSize:b+T,fontFamily:_,fontWeight:S+"!important",paddingTop:f+"px ",paddingBottom:g+"px"},".blockspare-section-head-wrap .blockspare-subtitle":{color:h,fontSize:M+L,fontFamily:C,fontWeight:O+"!important",paddingTop:y+"px",paddingBottom:w+"px"},".blockspare-user-profile-desc":{fontSize:P+z,fontFamily:j,fontWeight:N+"!important"},".blockspare-title-dash":{color:v},tablet:{".blockspare-section-head-wrap .blockspare-title":{fontSize:x+T},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:D+L},".blockspare-user-profile-desc":{fontSize:B+z}},mobile:{".blockspare-section-head-wrap .blockspare-title":{fontSize:E+T},".blockspare-section-head-wrap .blockspare-subtitle":{fontSize:F+L},".blockspare-user-profile-desc":{fontSize:Y+z}}}),qr.a.all(V)};const Bq=wp.compose.compose,Aq=wp.element.Component,Iq=wp.blockEditor,Rq=Iq.RichText,Hq=Iq.InnerBlocks;var Wq=Bq(Gr,Rr(Yq))(class extends Aq{constructor(){super(...arguments)}render(){const e=this.props,t=e.attributes,n=t.sectionAlignment,a=t.profileContent,r=t.headerTagOption,o=t.headerTitle,l=t.headerSubTitle,s=(t.profileContentFontSize,t.headerlayoutOption),c=t.align,u=e.className,p=i()([u,"blockspare-authorprofile"]);let d="";return d="left"==n?"blockspare-layout-left":"right"==n?"blockspare-layout-right":"blockspare-layout-center",wp.element.createElement("div",{className:p},wp.element.createElement("div",{className:"blockspare-section-wrapper"},this.props.styles,wp.element.createElement("div",{className:"blockspare-author-wrapper blockspare-blocks"},wp.element.createElement("div",{className:i()(d,"blockspare-block-profile","blockspare-profile-columns")},wp.element.createElement(DU,this.props,wp.element.createElement(Hq.Content,null)),wp.element.createElement("div",{className:i()("blockspare-profile-column blockspare-profile-content-wrap")},wp.element.createElement("div",{className:i()("blockspare-section-header-wrapper blockspare-blocks","align"+c)},wp.element.createElement("div",{className:i()("blockspare-section-head-wrap",s,"blockspare-"+n)},wp.element.createElement(Ml,{headerTitle:o,headerTagOption:r,headerSubTitle:l}))),a&&wp.element.createElement(Rq.Content,{tagName:"div",className:i()("blockspare-profile-text","blockspare-user-profile-desc"),value:a}),wp.element.createElement(LU,this.props))))))}});function Gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Uq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gq(Object(n),!0).forEach((function(t){qq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vq=Uq(Uq(Uq({},ei),oq.attributes),ti),$q=Uq(Uq(Uq({},ei),hU.attributes),ti);var Jq=[{attributes:Vq,save:e=>wp.element.createElement(yq,e)},{attributes:Uq(Uq(Uq({},ei),oq.attributes),ti),save:e=>wp.element.createElement(Pq,e)},{attributes:$q,save:e=>wp.element.createElement(Wq,e)}];function Xq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Kq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xq(Object(n),!0).forEach((function(t){Qq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zq=wp.i18n.__,eV=wp.blocks.registerBlockType,tV=hU.name,nV=hU.category,aV=Kq(Kq(Kq({},ei),hU.attributes),ti);eV(tV,{title:Zq("BS User Profile","blockspare"),description:Zq("Add User profile","blockspare"),category:nV,icon:r.userprofile,attributes:aV,keywords:[Zq("block","blockspare"),Zq("user","blockspare"),Zq("profile","blockspare"),Zq("team","blockspare")],supports:{align:["center","wide","full"]},edit:QU,save:rq,deprecated:Jq});n(543),n(544);const rV=wp.i18n.__,oV=wp.element,iV=oV.Component,lV=(oV.Fragment,wp.blockEditor),sV=lV.InspectorControls,cV=lV.PanelColorSettings,uV=wp.components,pV=uV.PanelBody,dV=uV.RangeControl,mV=uV.ToggleControl;class bV extends iV{constructor(e){super(...arguments)}render(){const e=this.props.attributes,t=e.design,n=void 0===t?"double-wave":t,a=(e.width,e.height),r=e.color,o=e.marginTop,i=e.marginBottom,l=e.verticalFlip,s=e.horizontalFlip,c=this.props.setAttributes;return wp.element.createElement(sV,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"shape-divider"}),wp.element.createElement(Oi,null,wp.element.createElement(Ti,{onChange:e=>c({design:e}),selected:n,excludeDesigns:["straight-1"]})),wp.element.createElement(pV,{title:rV("Divider Settings","blockspare"),initialOpen:!1},wp.element.createElement(mV,{label:rV("Flip Vertically","blockspare"),checked:l,onChange:()=>this.props.setAttributes({verticalFlip:!l})}),wp.element.createElement(mV,{label:rV("Flip Horizontally","blockspare"),checked:s,onChange:()=>this.props.setAttributes({horizontalFlip:!s})}),wp.element.createElement(cV,{title:rV("Shape Color","blockspare"),initialOpen:!0,colorSettings:[{value:r,onChange:e=>c({color:e}),label:rV("Shape Color","blockspare")}]}),wp.element.createElement(dV,{label:rV("Height","blockspare"),value:a,onChange:e=>c({height:e}),min:30,step:2,max:300})),wp.element.createElement(pV,{title:rV("Block Gaps Settings","blockspare"),initialOpen:!1},wp.element.createElement(pV,{title:rV("Margin Settings","blockspare"),initialOpen:!0},wp.element.createElement(Ye,{marginEnableTop:!0,marginTop:o,marginTopMin:"0",marginTopMax:"100",onChangeMarginTop:e=>c({marginTop:e}),marginEnableBottom:!0,marginBottom:i,marginBottomMin:"0",marginBottomMax:"100",onChangeMarginBottom:e=>c({marginBottom:e})})))))}}function fV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fV(Object(n),!0).forEach((function(t){hV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yV=e=>{const t=e.attributes,n=t.height,a=t.color,r=[];return r.push({".blockspare-svg-wrapper":gV({color:a||"#3c1a5b",height:n+"px"},Zi(e.attributes))}),qr.a.all(r)};function wV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function vV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const kV=wp.element,_V=kV.Component,SV=kV.Fragment,TV=wp.compose.compose;var EV=TV(Gr,Rr(yV))(class extends _V{constructor(e){super(...arguments)}render(){const e=this.props,t=e.className,n=e.attributes,a=n.design,r=void 0===a?"double-wave":a,o=n.layer1Shadow,l=void 0!==o&&o,s=n.width,c=(n.height,n.verticalFlip),u=n.horizontalFlip,p=(n.color,e.attributes,e.isSelected,e.setAttributes),d=i()([t]);let m=i()("blockspare-blocks blockspare-svg-wrapper",function(e){return"has-width-"+e.toString().replace(".","-")}(s),{"is-vertically-flipped":c,"is-horizontally-flipped":u});return wp.element.createElement(SV,null,wp.element.createElement(bV,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wV(Object(n),!0).forEach((function(t){vV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({setAttributes:p},this.props)),wp.element.createElement("div",{className:d},this.props.styles,wp.element.createElement("div",{className:m},wp.element.createElement(Uu,{design:r,shadow:l,className:"blockspare-svg-svg-inner"}))))}});const xV=wp.element,MV=xV.Component,CV=xV.Fragment,OV=wp.compose.compose;var LV=OV(Gr,Rr(yV))(class extends MV{render(){const e=this.props.className,t=this.props,n=t.attributes,a=n.design,r=void 0===a?"double-wave":a,o=(n.align,n.width),l=(n.height,n.verticalFlip),s=n.horizontalFlip,c=(n.color,t.attributes,i()([e]));let u=i()("blockspare-blocks blockspare-svg-wrapper",{"is-vertically-flipped":l,"is-horizontally-flipped":s},function(e){return"has-width-"+e.toString().replace(".","-")}(o));return wp.element.createElement(CV,null,wp.element.createElement("div",{className:c},this.props.styles,wp.element.createElement("div",{className:u},wp.element.createElement(Uu,{design:r,className:"blockspare-svg-svg-inner"}))))}});var FV=n(19);const DV=wp.element,PV=DV.Component,jV=DV.Fragment,NV=wp.compose.compose;var zV=NV(Gr,Rr(yV))(class extends PV{render(){const e=this.props.className,t=this.props,n=t.attributes,a=n.design,r=void 0===a?"double-wave":a,o=n.align,l=n.width,s=(n.height,n.verticalFlip),c=n.horizontalFlip,u=(n.color,t.attributes,i()([e]));let p=i()("blockspare-blocks blockspare-svg-wrapper",e,{"is-vertically-flipped":s,"is-horizontally-flipped":c},"align"+o,function(e){return"has-width-"+e.toString().replace(".","-")}(l));return wp.element.createElement(jV,null,wp.element.createElement("div",{className:u},this.props.styles,wp.element.createElement("div",{className:p},wp.element.createElement(Uu,{design:r,className:"blockspare-svg-svg-inner"}))))}});function YV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function BV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YV(Object(n),!0).forEach((function(t){AV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const IV=wp.element,RV=(IV.Component,IV.Fragment);var HV=[{attributes:BV({},FV.attributes),save:function(e){const t=e.attributes,n=t.design,a=void 0===n?"double-wave":n,r=t.align,o=t.width,l=t.height,s=t.verticalFlip,c=t.horizontalFlip,u=t.color,p=t.className;t.attributes;let d=i()(p,{"is-vertically-flipped":s,"is-horizontally-flipped":c},"align"+r,"blockspare-blocks blockspare-svg-wrapper",function(e){return"has-width-"+e.toString().replace(".","-")}(o));return wp.element.createElement(RV,null,wp.element.createElement("div",{className:d,style:BV({color:u||"#3c1a5b",height:l},Zi(e.attributes))},wp.element.createElement(Uu,{design:a,className:"blockspare-svg-svg-inner"})))}},{attributes:BV({},FV.attributes),save:e=>wp.element.createElement(zV,e)}];const WV=wp.i18n.__,GV=wp.blocks.registerBlockType,UV=FV.name,qV=FV.category,VV=FV.attributes;GV(UV,{title:WV("BS Shape Divider","blockspare"),description:WV("Decorations for section shapes.","blockspare"),category:qV,icon:r.shapediviver,attributes:VV,keywords:[WV("shape","blockspare"),WV("divider","blockspare"),WV("space","blockspare")],supports:{align:["wide","full","center"]},example:{design:"double-wave",color:"#3c1a5b"},edit:EV,save:LV,deprecated:HV});var $V=n(42);const JV=wp.element.Component,XV=wp.i18n.__,KV=wp.blockEditor,QV=KV.PanelColorSettings,ZV=KV.InspectorControls,e$=wp.components,t$=e$.RangeControl,n$=e$.PanelBody;class a$ extends JV{render(){const e=this.props.attributes,t=e.height,n=e.backGroundColor,a=this.props.setAttributes;return wp.element.createElement(ZV,null,wp.element.createElement("div",{className:"blockspare-inspector-wrapper"},wp.element.createElement(S,{protitle:"👋",demoLink:"empty-section"}),wp.element.createElement(n$,{title:XV("Block Settings","blockspare"),initialOpen:!1},wp.element.createElement(t$,{label:XV("Height","blockspare"),value:t,onChange:e=>a({height:e}),min:0,step:5,max:500}),wp.element.createElement(QV,{title:XV("Background Color","blockspare"),initialOpen:!0,colorSettings:[{value:n,onChange:e=>a({backGroundColor:e}),label:XV("Background Color","blockspare")}]}))))}}var r$=e=>{const t=e.attributes,n=t.height,a=t.backGroundColor,r=[];return r.push({".blockspare-emptysection":{height:n+"px",width:"100%",backgroundColor:a||"#fff"}}),qr.a.all(r)};const o$=wp.element,i$=o$.Component,l$=o$.Fragment,s$=wp.compose.compose;var c$=s$(Gr,Rr(r$))(class extends i${render(){const e=this.props,t=(e.height,e.backGroundColor,e.className),n=i()([t,"blockspare-blocks blockspare-empty-section-wrapper"]);return wp.element.createElement(l$,null,wp.element.createElement(a$,this.props),wp.element.createElement("div",{className:n},this.props.styles,wp.element.createElement("div",{className:"blockspare-emptysection"})))}});const u$=wp.element,p$=u$.Component,d$=(u$.Fragment,wp.compose.compose);var m$=d$(Gr,Rr(r$))(class extends p${render(){const e=this.props,t=(e.height,e.backGroundColor,e.className),n=i()([t,"blockspare-blocks blockspare-empty-section-wrapper"]);return wp.element.createElement("div",{className:n},this.props.styles,wp.element.createElement("div",{className:"blockspare-emptysection"}))}});function b$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function f$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g$=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b$(Object(n),!0).forEach((function(t){f$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},$V.attributes),save:function(e){const t=e.attributes,n=t.height,a=t.backGroundColor;return wp.element.createElement("div",{className:"blockspare-blocks blockspare-empty-section-wrapper"},wp.element.createElement("div",{className:"blockspare-section",style:{height:n+"px",width:"100%",backgroundColor:a||"#fff"}}))}}];function h$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w$=$V.name,v$=$V.category,k$=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h$(Object(n),!0).forEach((function(t){y$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},$V.attributes),_$=wp.blocks.registerBlockType,S$=wp.i18n.__;_$(w$,{title:S$("BS Spacer Section","blockspare"),description:S$("Spacer Section","blockspare"),category:v$,icon:r.emptySpaces,attributes:k$,keywords:[S$("empty","blockspare")],supports:{align:["wide","full","center"]},example:{attributes:{cover:"https://blockspare.com",author:"Blockspare",pages:500}},edit:c$,save:m$,deprecated:g$})},function(e,t){},,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,function(e,t){},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]); |