Plugin Directory

Changeset 3234546 for smart-blocks


Ignore:
Timestamp:
02/04/2025 09:34:40 AM (10 months ago)
Author:
hashthemes
Message:

code fixed

Location:
smart-blocks
Files:
62 added
5 edited

Legend:

Unmodified
Added
Removed
  • smart-blocks/trunk/build/index.asset.php

    r3130673 r3234546  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'a6345cb24e29df42b21b');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'd5d5ccdab93a5de3d474');
  • smart-blocks/trunk/build/index.js

    r3130673 r3234546  
    1 (()=>{var e={184:(e,t)=>{var a;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var r=o.apply(null,a);r&&e.push(r)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var l in a)i.call(a,l)&&a[l]&&e.push(l);else e.push(a.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(a=function(){return o}.apply(t,[]))||(e.exports=a)}()},679:(e,t,a)=>{"use strict";var i=a(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return i.isMemo(e)?r:l[e.$$typeof]||o}l[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[i.Memo]=r;var m=Object.defineProperty,d=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,u=Object.prototype;e.exports=function e(t,a,i){if("string"!=typeof a){if(u){var o=g(a);o&&o!==u&&e(t,o,i)}var r=d(a);c&&(r=r.concat(c(a)));for(var l=s(t),h=s(a),y=0;y<r.length;++y){var b=r[y];if(!(n[b]||i&&i[b]||h&&h[b]||l&&l[b])){var v=p(a,b);try{m(t,b,v)}catch(e){}}}}return t}},103:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,m=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.async_mode"):60111,c=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,g=a?Symbol.for("react.suspense"):60113,u=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,v=a?Symbol.for("react.fundamental"):60117,T=a?Symbol.for("react.responder"):60118,S=a?Symbol.for("react.scope"):60119;function f(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case c:case n:case l:case r:case g:return e;default:switch(e=e&&e.$$typeof){case m:case p:case y:case h:case s:return e;default:return t}}case o:return t}}}function L(e){return f(e)===c}t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=m,t.ContextProvider=s,t.Element=i,t.ForwardRef=p,t.Fragment=n,t.Lazy=y,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=r,t.Suspense=g,t.isAsyncMode=function(e){return L(e)||f(e)===d},t.isConcurrentMode=L,t.isContextConsumer=function(e){return f(e)===m},t.isContextProvider=function(e){return f(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return f(e)===p},t.isFragment=function(e){return f(e)===n},t.isLazy=function(e){return f(e)===y},t.isMemo=function(e){return f(e)===h},t.isPortal=function(e){return f(e)===o},t.isProfiler=function(e){return f(e)===l},t.isStrictMode=function(e){return f(e)===r},t.isSuspense=function(e){return f(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===l||e===r||e===g||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===s||e.$$typeof===m||e.$$typeof===p||e.$$typeof===v||e.$$typeof===T||e.$$typeof===S||e.$$typeof===b)},t.typeOf=f},296:(e,t,a)=>{"use strict";e.exports=a(103)},568:function(e,t,a){e.exports=function(e){"use strict";var t="default"in e?e.default:e,a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};var i=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};(function(e,t,a,i){function o(t,a){this.settings=null,this.options=e.extend({},o.Defaults,a),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy((function(t,a){this._handlers[a]=e.proxy(this[a],this)}),this)),e.each(o.Plugins,e.proxy((function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)}),this)),e.each(o.Workers,e.proxy((function(t,a){this._pipe.push({filter:a.filter,run:e.proxy(a.run,this)})}),this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Type={Event:"event",State:"state"},o.Plugins={},o.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",a=!this.settings.autoWidth,i=this.settings.rtl,o={width:"auto","margin-left":i?t:"","margin-right":i?"":t};!a&&this.$stage.children().css(o),e.css=o}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,a=null,i=this._items.length,o=!this.settings.autoWidth,n=[];for(e.items={merge:!1,width:t};i--;)a=this._mergers[i],a=this.settings.mergeFit&&Math.min(a,this.settings.items)||a,e.items.merge=a>1||e.items.merge,n[i]=o?t*a:this._items[i].width();this._widths=n}},{filter:["items","settings"],run:function(){var t=[],a=this._items,i=this.settings,o=Math.max(2*i.items,4),n=2*Math.ceil(a.length/2),r=i.loop&&a.length?i.rewind?o:Math.max(o,n):0,l="",s="";for(r/=2;r>0;)t.push(this.normalize(t.length/2,!0)),l+=a[t[t.length-1]][0].outerHTML,t.push(this.normalize(a.length-1-(t.length-1)/2,!0)),s=a[t[t.length-1]][0].outerHTML+s,r-=1;this._clones=t,e(l).addClass("cloned").appendTo(this.$stage),e(s).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,a=-1,i=0,o=0,n=[];++a<t;)i=n[a-1]||0,o=this._widths[this.relative(a)]+this.settings.margin,n.push(i+o*e);this._coordinates=n}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,a={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(a)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,a=!this.settings.autoWidth,i=this.$stage.children();if(a&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],i.eq(t).css(e.css);else a&&(e.css.width=e.items.width,i.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,a,i,o=this.settings.rtl?1:-1,n=2*this.settings.stagePadding,r=this.coordinates(this.current())+n,l=r+this.width()*o,s=[];for(a=0,i=this._coordinates.length;a<i;a++)e=this._coordinates[a-1]||0,t=Math.abs(this._coordinates[a])+n*o,(this.op(e,"<=",r)&&this.op(e,">",l)||this.op(t,"<",r)&&this.op(t,">",l))&&s.push(a);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+s.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],o.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},o.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map((function(t){return e(t)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},o.prototype.initialize=function(){var e,t,a;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:i,a=this.$element.children(t).width(),e.length&&a<=0&&this.preloadAutoWidthImages(e)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},o.prototype.setup=function(){var t=this.viewport(),a=this.options.responsive,i=-1,o=null;a?(e.each(a,(function(e){e<=t&&e>i&&(i=Number(e))})),"function"==typeof(o=e.extend({},this.options,a[i])).stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):o=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=i,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(t){var a=this.trigger("prepare",{content:t});return a.data||(a.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:a.data}),a.data},o.prototype.update=function(){for(var t=0,a=this._pipe.length,i=e.proxy((function(e){return this[e]}),this._invalidated),o={};t<a;)(this._invalidated.all||e.grep(this._pipe[t].filter,i).length>0)&&this._pipe[t].run(o),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},o.prototype.width=function(e){switch(e=e||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},o.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},o.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(t){var i=null;3!==t.which&&(e.support.transform?i={x:(i=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===i.length?12:4],y:i[16===i.length?13:5]}:(i=this.$stage.position(),i={x:this.settings.rtl?i.left+this.$stage.width()-this.width()+this.settings.margin:i.left,y:i.top}),this.is("animating")&&(e.support.transform?this.animate(i.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=i,this._drag.stage.current=i,this._drag.pointer=this.pointer(t),e(a).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(a).one("mousemove.owl.core touchmove.owl.core",e.proxy((function(t){var i=this.difference(this._drag.pointer,this.pointer(t));e(a).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(i.x)<Math.abs(i.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},o.prototype.onDragMove=function(e){var t=null,a=null,i=null,o=this.difference(this._drag.pointer,this.pointer(e)),n=this.difference(this._drag.stage.start,o);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),a=this.coordinates(this.maximum()+1)-t,n.x=((n.x-t)%a+a)%a+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),a=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),i=this.settings.pullDrag?-1*o.x/5:0,n.x=Math.max(Math.min(n.x,t+i),a+i)),this._drag.stage.current=n,this.animate(n.x))},o.prototype.onDragEnd=function(t){var i=this.difference(this._drag.pointer,this.pointer(t)),o=this._drag.stage.current,n=i.x>0^this.settings.rtl?"left":"right";e(a).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==i.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(o.x,0!==i.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,(Math.abs(i.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},o.prototype.closest=function(t,a){var o=-1,n=this.width(),r=this.coordinates();return this.settings.freeDrag||e.each(r,e.proxy((function(e,l){return"left"===a&&t>l-30&&t<l+30?o=e:"right"===a&&t>l-n-30&&t<l-n+30?o=e+1:this.op(t,"<",l)&&this.op(t,">",r[e+1]!==i?r[e+1]:l-n)&&(o="left"===a?e+1:e),-1===o}),this)),this.settings.loop||(this.op(t,">",r[this.minimum()])?o=t=this.minimum():this.op(t,"<",r[this.maximum()])&&(o=t=this.maximum())),o},o.prototype.animate=function(t){var a=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),a&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):a?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},o.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},o.prototype.current=function(e){if(e===i)return this._current;if(0===this._items.length)return i;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==i&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},o.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,(function(e,t){return t}))},o.prototype.reset=function(e){(e=this.normalize(e))!==i&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},o.prototype.normalize=function(e,t){var a=this._items.length,o=t?0:this._clones.length;return!this.isNumeric(e)||a<1?e=i:(e<0||e>=a+o)&&(e=((e-o/2)%a+a)%a+o/2),e},o.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},o.prototype.maximum=function(e){var t,a,i,o=this.settings,n=this._coordinates.length;if(o.loop)n=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){if(t=this._items.length)for(a=this._items[--t].width(),i=this.$element.width();t--&&!((a+=this._items[t].width()+this.settings.margin)>i););n=t+1}else n=o.center?this._items.length-1:this._items.length-o.items;return e&&(n-=this._clones.length/2),Math.max(n,0)},o.prototype.minimum=function(e){return e?0:this._clones.length/2},o.prototype.items=function(e){return e===i?this._items.slice():(e=this.normalize(e,!0),this._items[e])},o.prototype.mergers=function(e){return e===i?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},o.prototype.clones=function(t){var a=this._clones.length/2,o=a+this._items.length,n=function(e){return e%2==0?o+e/2:a-(e+1)/2};return t===i?e.map(this._clones,(function(e,t){return n(t)})):e.map(this._clones,(function(e,a){return e===t?n(a):null}))},o.prototype.speed=function(e){return e!==i&&(this._speed=e),this._speed},o.prototype.coordinates=function(t){var a,o=1,n=t-1;return t===i?e.map(this._coordinates,e.proxy((function(e,t){return this.coordinates(t)}),this)):(this.settings.center?(this.settings.rtl&&(o=-1,n=t+1),a=this._coordinates[t],a+=(this.width()-a+(this._coordinates[n]||0))/2*o):a=this._coordinates[n]||0,a=Math.ceil(a))},o.prototype.duration=function(e,t,a){return 0===a?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(a||this.settings.smartSpeed)},o.prototype.to=function(e,t){var a=this.current(),i=null,o=e-this.relative(a),n=(o>0)-(o<0),r=this._items.length,l=this.minimum(),s=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>r/2&&(o+=-1*n*r),(i=(((e=a+o)-l)%r+r)%r+l)!==e&&i-o<=s&&i-o>0&&(a=i-o,e=i,this.reset(a))):e=this.settings.rewind?(e%(s+=1)+s)%s:Math.max(l,Math.min(s,e)),this.speed(this.duration(a,e,t)),this.current(e),this.isVisible()&&this.update()},o.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},o.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},o.prototype.onTransitionEnd=function(e){if(e!==i&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},o.prototype.viewport=function(){var i;return this.options.responsiveBaseElement!==t?i=e(this.options.responsiveBaseElement).width():t.innerWidth?i=t.innerWidth:a.documentElement&&a.documentElement.clientWidth?i=a.documentElement.clientWidth:console.warn("Can not detect viewport width."),i},o.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter((function(){return 1===this.nodeType})).each(e.proxy((function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(t,a){var o=this.relative(this._current);a=a===i?this._items.length:this.normalize(a,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:a}),t=this.prepare(t),0===this._items.length||a===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[a-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[a].before(t),this._items.splice(a,0,t),this._mergers.splice(a,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[o]&&this.reset(this._items[o].index()),this.invalidate("items"),this.trigger("added",{content:t,position:a})},o.prototype.remove=function(e){(e=this.normalize(e,!0))!==i&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},o.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy((function(t,a){this.enter("pre-loading"),a=e(a),e(new Image).one("load",e.proxy((function(e){a.attr("src",e.target.src),a.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",a.attr("src")||a.attr("data-src")||a.attr("data-src-retina"))}),this))},o.prototype.destroy=function(){for(var i in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(a).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},o.prototype.op=function(e,t,a){var i=this.settings.rtl;switch(t){case"<":return i?e>a:e<a;case">":return i?e<a:e>a;case">=":return i?e<=a:e>=a;case"<=":return i?e>=a:e<=a}},o.prototype.on=function(e,t,a,i){e.addEventListener?e.addEventListener(t,a,i):e.attachEvent&&e.attachEvent("on"+t,a)},o.prototype.off=function(e,t,a,i){e.removeEventListener?e.removeEventListener(t,a,i):e.detachEvent&&e.detachEvent("on"+t,a)},o.prototype.trigger=function(t,a,i,n,r){var l={item:{count:this._items.length,index:this.current()}},s=e.camelCase(e.grep(["on",t,i],(function(e){return e})).join("-").toLowerCase()),m=e.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},l,a));return this._supress[t]||(e.each(this._plugins,(function(e,t){t.onTrigger&&t.onTrigger(m)})),this.register({type:o.Type.Event,name:t}),this.$element.trigger(m),this.settings&&"function"==typeof this.settings[s]&&this.settings[s].call(this,m)),m},o.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]===i&&(this._states.current[t]=0),this._states.current[t]++}),this))},o.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]--}),this))},o.prototype.register=function(t){if(t.type===o.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var a=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!a||!a.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:a.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===o.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy((function(a,i){return e.inArray(a,this._states.tags[t.name])===i}),this)))},o.prototype.suppress=function(t){e.each(t,e.proxy((function(e,t){this._supress[t]=!0}),this))},o.prototype.release=function(t){e.each(t,e.proxy((function(e,t){delete this._supress[t]}),this))},o.prototype.pointer=function(e){var a={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(a.x=e.pageX,a.y=e.pageY):(a.x=e.clientX,a.y=e.clientY),a},o.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},o.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var a=Array.prototype.slice.call(arguments,1);return this.each((function(){var i=e(this),n=i.data("owl.carousel");n||(n=new o(this,"object"==typeof t&&t),i.data("owl.carousel",n),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(t,a){n.register({type:o.Type.Event,name:a}),n.$element.on(a+".owl.carousel.core",e.proxy((function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([a]),n[a].apply(this,[].slice.call(arguments,1)),this.release([a]))}),n))}))),"string"==typeof t&&"_"!==t.charAt(0)&&n[t].apply(n,a)}))},e.fn.owlCarousel.Constructor=o})(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var e,a;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(a in Object.getOwnPropertyNames(this))"function"!=typeof this[a]&&(this[a]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy((function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var a=this._core.settings,i=a.center&&Math.ceil(a.items/2)||a.items,o=a.center&&-1*i||0,n=(t.property&&undefined!==t.property.value?t.property.value:this._core.current())+o,r=this._core.clones().length,l=e.proxy((function(e,t){this.load(t)}),this);for(a.lazyLoadEager>0&&(i+=a.lazyLoadEager,a.loop&&(n-=a.lazyLoadEager,i++));o++<i;)this.load(r/2+this._core.relative(n)),r&&e.each(this._core.clones(this._core.relative(n)),l),n++}}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1,lazyLoadEager:0},o.prototype.load=function(a){var i=this._core.$stage.children().eq(a),o=i&&i.find(".owl-lazy");!o||e.inArray(i.get(0),this._loaded)>-1||(o.each(e.proxy((function(a,i){var o,n=e(i),r=t.devicePixelRatio>1&&n.attr("data-src-retina")||n.attr("data-src")||n.attr("data-srcset");this._core.trigger("load",{element:n,url:r},"lazy"),n.is("img")?n.one("load.owl.lazy",e.proxy((function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:r},"lazy")}),this)).attr("src",r):n.is("source")?n.one("load.owl.lazy",e.proxy((function(){this._core.trigger("loaded",{element:n,url:r},"lazy")}),this)).attr("srcset",r):((o=new Image).onload=e.proxy((function(){n.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:n,url:r},"lazy")}),this),o.src=r)}),this)),this._loaded.push(i.get(0)))},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(a){this._core=a,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()}),this),"loaded.owl.lazy":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var i=this;e(t).on("load",(function(){i._core.settings.autoHeight&&i.update()})),e(t).resize((function(){i._core.settings.autoHeight&&(null!=i._intervalId&&clearTimeout(i._intervalId),i._intervalId=setTimeout((function(){i.update()}),250))}))};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,a=t+this._core.settings.items,i=this._core.settings.lazyLoad,o=this._core.$stage.children().toArray().slice(t,a),n=[],r=0;e.each(o,(function(t,a){n.push(e(a).height())})),(r=Math.max.apply(null,n))<=1&&i&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var a=e(t.content).find(".owl-video");a.length&&(a.css("display","none"),this.fetch(a,e(t.content)))}}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy((function(e){this.play(e)}),this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(e,t){var a=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",i=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),o=e.attr("data-width")||this._core.settings.videoWidth,n=e.attr("data-height")||this._core.settings.videoHeight,r=e.attr("href");if(!r)throw new Error("Missing video URL.");if((i=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)a="youtube";else if(i[3].indexOf("vimeo")>-1)a="vimeo";else{if(!(i[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");a="vzaar"}i=i[6],this._videos[r]={type:a,id:i,width:o,height:n},t.attr("data-video",r),this.thumbnail(e,this._videos[r])},o.prototype.thumbnail=function(t,a){var i,o,n=a.width&&a.height?"width:"+a.width+"px;height:"+a.height+"px;":"",r=t.find("img"),l="src",s="",m=this._core.settings,d=function(a){'<div class="owl-video-play-icon"></div>',i=m.lazyLoad?e("<div/>",{class:"owl-video-tn "+s,srcType:a}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+a+")"}),t.after(i),t.after('<div class="owl-video-play-icon"></div>')};if(t.wrap(e("<div/>",{class:"owl-video-wrapper",style:n})),this._core.settings.lazyLoad&&(l="data-src",s="owl-lazy"),r.length)return d(r.attr(l)),r.remove(),!1;"youtube"===a.type?(o="//img.youtube.com/vi/"+a.id+"/hqdefault.jpg",d(o)):"vimeo"===a.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+a.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e[0].thumbnail_large,d(o)}}):"vzaar"===a.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+a.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e.framegrab_url,d(o)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(t){var a,i=e(t.target).closest("."+this._core.settings.itemClass),o=this._videos[i.attr("data-video")],n=o.width||"100%",r=o.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(a=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),a.attr("width",n),"youtube"===o.type?a.attr("src","//www.youtube.com/embed/"+o.id+"?autoplay=1&rel=0&v="+o.id):"vimeo"===o.type?a.attr("src","//player.vimeo.com/video/"+o.id+"?autoplay=1"):"vzaar"===o.type&&a.attr("src","//view.vzaar.com/"+o.id+"/player?autoplay=true"),e(a).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=a.fullscreenElement||a.mozFullScreenElement||a.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=i,this.next=i,this.handlers={"change.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy((function(e){e.namespace&&(this.swapping="translated"==e.type)}),this),"translate.owl.carousel":e.proxy((function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,a=e.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(e.support.animation.end,a).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(r)),n&&o.one(e.support.animation.end,a).addClass("animated owl-animated-in").addClass(n))}},o.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy((function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":e.proxy((function(e,t,a){e.namespace&&this.play(t,a)}),this),"stop.owl.autoplay":e.proxy((function(e){e.namespace&&this.stop()}),this),"mouseover.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},o.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype._next=function(i){this._call=t.setTimeout(e.proxy(this._next,this,i),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||a.hidden||this._core.next(i||this._core.settings.autoplaySpeed)},o.prototype.read=function(){return(new Date).getTime()-this._time},o.prototype.play=function(a,i){var o;this._core.is("rotating")||this._core.enter("rotating"),a=a||this._core.settings.autoplayTimeout,o=Math.min(this._time%(this._timeout||a),a),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%a-o,this._timeout=a,this._call=t.setTimeout(e.proxy(this._next,this,i),a-o)},o.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},o.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())}),this),"remove.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&this.draw()}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},o.prototype.initialize=function(){var t,a=this._core.settings;for(t in this._controls.$relative=(a.navContainer?e(a.navContainer):e("<div>").addClass(a.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+a.navElement+">").addClass(a.navClass[0]).html(a.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy((function(e){this.prev(a.navSpeed)}),this)),this._controls.$next=e("<"+a.navElement+">").addClass(a.navClass[1]).html(a.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy((function(e){this.next(a.navSpeed)}),this)),a.dotsData||(this._templates=[e('<button role="button">').addClass(a.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(a.dotsContainer?e(a.dotsContainer):e("<div>").addClass(a.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy((function(t){var i=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(i,a.dotsSpeed)}),this)),this._overrides)this._core[t]=e.proxy(this[t],this)},o.prototype.destroy=function(){var e,t,a,i,o;for(e in o=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&o.navContainer?this._controls[t].html(""):this._controls[t].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(a in Object.getOwnPropertyNames(this))"function"!=typeof this[a]&&(this[a]=null)},o.prototype.update=function(){var e,t,a=this._core.clones().length/2,i=a+this._core.items().length,o=this._core.maximum(!0),n=this._core.settings,r=n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],e=a,t=0;e<i;e++){if(t>=r||0===t){if(this._pages.push({start:Math.min(o,e-a),end:e-a+r-1}),Math.min(o,e-a)===o)break;t=0}t+=this._core.mergers(this._core.relative(e))}},o.prototype.draw=function(){var t,a=this._core.settings,i=this._core.items().length<=a.items,o=this._core.relative(this._core.current()),n=a.loop||a.rewind;this._controls.$relative.toggleClass("disabled",!a.nav||i),a.nav&&(this._controls.$previous.toggleClass("disabled",!n&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!n&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!a.dots||i),a.dots&&(t=this._pages.length-this._controls.$absolute.children().length,a.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},o.prototype.onTrigger=function(t){var a=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:a&&(a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy((function(e,a){return e.start<=t&&e.end>=t}),this)).pop()},o.prototype.getPosition=function(t){var a,i,o=this._core.settings;return"page"==o.slideBy?(a=e.inArray(this.current(),this._pages),i=this._pages.length,t?++a:--a,a=this._pages[(a%i+i)%i].start):(a=this._core.relative(this._core.current()),i=this._core.items().length,t?a+=o.slideBy:a-=o.slideBy),a},o.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},o.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},o.prototype.to=function(t,a,i){var o;!i&&this._pages.length?(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,a)):e.proxy(this._overrides.to,this._core)(t,a)},e.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(a){this._core=a,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy((function(a){a.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var a=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!a)return;this._hashes[a]=t.content}}),this),"changed.owl.carousel":e.proxy((function(a){if(a.namespace&&"position"===a.property.name){var i=this._core.items(this._core.relative(this._core.current())),o=e.map(this._hashes,(function(e,t){return e===i?t:null})).join();if(!o||t.location.hash.slice(1)===o)return;t.location.hash=o}}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy((function(e){var a=t.location.hash.substring(1),i=this._core.$stage.children(),o=this._hashes[a]&&i.index(this._hashes[a]);undefined!==o&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)}),this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var a,i;for(a in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(a,this._handlers[a]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=e("<support>").get(0).style,n="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},l=function(){return!!d("transform")},s=function(){return!!d("perspective")},m=function(){return!!d("animation")};function d(t,a){var i=!1,r=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+n.join(r+" ")+r).split(" "),(function(e,t){if(undefined!==o[t])return i=!a||t,!1})),i}function c(e){return d(e,!0)}(function(){return!!d("transition")})()&&(e.support.transition=new String(c("transition")),e.support.transition.end=r.transition.end[e.support.transition]),m()&&(e.support.animation=new String(c("animation")),e.support.animation.end=r.animation.end[e.support.animation]),l()&&(e.support.transform=new String(c("transform")),e.support.transform3d=s())}(window.Zepto||window.jQuery,window,document);var o=window.jQuery,n=function(e){function n(t){var a=e.call(this,t)||this;a.containerRef=function(e){a.container=e};var i=l(a.props),o=i[0],n=i[1];return a.options=o,a.propsWithoutOptions=n,a}return function(e,t){function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}(n,e),n.prototype.componentDidMount=function(){this.$ele=o(this.container),this.create()},n.prototype.UNSAFE_componentWillReceiveProps=function(){this.destory()},n.prototype.componentDidUpdate=function(){var e=l(this.props),t=e[0],a=e[1];this.options=t,this.propsWithoutOptions=a,this.create()},n.prototype.next=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e?this.$ele.trigger("next.owl.carousel",[e]):this.$ele.trigger("next.owl.carousel",e)},n.prototype.prev=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e?this.$ele.trigger("prev.owl.carousel",[e]):this.$ele.trigger("prev.owl.carousel",e)},n.prototype.to=function(e,t){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e&&"number"==typeof t?this.$ele.trigger("to.owl.carousel",[e,t]):this.$ele.trigger("to.owl.carousel")},n.prototype.create=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.owlCarousel(e||this.options)},n.prototype.destory=function(){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.trigger("destroy.owl.carousel")},n.prototype.play=function(e,t){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e&&"number"==typeof t?this.$ele.trigger("play.owl.autoplay",[e,t]):this.$ele.trigger("play.owl.autoplay")},n.prototype.stop=function(){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.trigger("stop.owl.autoplay")},n.prototype.render=function(){var e=this.propsWithoutOptions,a=e.className,o=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(a[i[o]]=e[i[o]])}return a}(e,["className"]);return t.createElement("div",i({className:"owl-carousel "+a,ref:this.containerRef},o))},n}(e.Component),r=new Set(["items","margin","loop","center","mouseDrag","touchDrag","pullDrag","freeDrag","stagePadding","merge","mergeFit","autoWidth","startPosition","URLhashListener","nav","rewind","navText","navElement","slideBy","dots","dotsEach","dotData","lazyLoad","lazyContent","autoplay","autoplayTimeout","autoplayHoverPause","smartSpeed","fluidSpeed","autoplaySpeed","navSpeed","dotsSpeed","dragEndSpeed","callbacks","responsive","responsiveRefreshRate","responsiveBaseElement","video","videoHeight","videoWidth","animateOut","animateIn","fallbackEasing","info","nestedItemSelector","itemElement","stageElement","navContainer","dotsContainer","refreshClass","loadingClass","loadedClass","rtlClass","dragClass","grabClass","stageClass","stageOuterClass","navContainerClass","navClass","controlsClass","dotClass","dotsClass","autoHeightClass","responsiveClass","onInitialize","onInitialized","onResize","onResized","onRefresh","onRefreshed","onDrag","onDragged","onTranslate","onTranslated","onChange","onChanged","onLoadLazy","onLoadedLazy","onStopVideo","onPlayVideo"]);function l(e){var t={},a={};return Object.keys(e).forEach((function(i){r.has(i)?t[i]=e[i]:a[i]=e[i]})),[t,a]}return n}(a(196))},196:e=>{"use strict";e.exports=window.React}},t={};function a(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.data,t={viewType:"Desktop"};(0,e.registerStore)("smart-blocks/data",{reducer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===a.type?{viewType:a.viewType}:e},selectors:{getView:e=>e.viewType},actions:{updateView:e=>({type:"UPDATE_VIEW",viewType:e})}});const i=window.wp.element,o=window.wp.blocks,n={id:{type:"string"},sbStyle:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsMarginSmTop:{type:"string"},columnsMarginSmLeft:{type:"string"},columnsMarginSmRight:{type:"string"},columnsMarginSmBottom:{type:"string"},columnsMarginMdTop:{type:"string"},columnsMarginMdLeft:{type:"string"},columnsMarginMdRight:{type:"string"},columnsMarginMdBottom:{type:"string"},columnsMarginTop:{type:"string"},columnsMarginLeft:{type:"string"},columnsMarginRight:{type:"string"},columnsMarginBottom:{type:"string"},columnsMarginUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsPaddingSmTop:{type:"string"},columnsPaddingSmLeft:{type:"string"},columnsPaddingSmRight:{type:"string"},columnsPaddingSmBottom:{type:"string"},columnsPaddingMdTop:{type:"string"},columnsPaddingMdLeft:{type:"string"},columnsPaddingMdRight:{type:"string"},columnsPaddingMdBottom:{type:"string"},columnsPaddingTop:{type:"string"},columnsPaddingLeft:{type:"string"},columnsPaddingRight:{type:"string"},columnsPaddingBottom:{type:"string"},columnsPaddingUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsWidthSm:{type:"string",default:1170},columnsWidthMd:{type:"string"},columnsWidth:{type:"string"},columnsWidthUnit:{type:"string",enum:["px","em","%","vw"],default:"px"},horizontalAlign:{type:"string"},horizontalAlignSm:{type:"string"},horizontalAlignMd:{type:"string"},columnAlignment:{type:"string"},columnAlignmentSm:{type:"string"},columnAlignmentMd:{type:"string"},columnsHeight:{type:"string"},columnsHeightSm:{type:"string"},columnsHeightMd:{type:"string"},columnsHeightUnit:{type:"string",enum:["px","em","%","vh"],default:"px"},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"},borderNormal:{type:"string"},borderHover:{type:"string"},borderNormalColor:{type:"string"},borderHoverColor:{type:"string"},sectionBgColor:{type:"string"},borderNormalWidthTop:{type:"string"},borderNormalWidthLeft:{type:"string"},borderNormalWidthRight:{type:"string"},borderNormalWidthBottom:{type:"string"},borderNormalWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverWidthTop:{type:"string"},borderHoverWidthLeft:{type:"string"},borderHoverWidthRight:{type:"string"},borderHoverWidthBottom:{type:"string"},borderHoverWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalRadiusTop:{type:"string"},borderNormalRadiusLeft:{type:"string"},borderNormalRadiusRight:{type:"string"},borderNormalRadiusBottom:{type:"string"},borderNormalRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverRadiusTop:{type:"string"},borderHoverRadiusLeft:{type:"string"},borderHoverRadiusRight:{type:"string"},borderHoverRadiusBottom:{type:"string"},borderHoverRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalBoxShadowHorizontal:{type:"string"},borderNormalBoxShadowVertical:{type:"string"},borderNormalBoxShadowBlur:{type:"string"},borderNormalBoxShadowSpread:{type:"string"},borderNormalBoxShadowColor:{type:"string"},borderNormalBoxShadowInset:{type:"string"},borderHoverBoxShadowHorizontal:{type:"string"},borderHoverBoxShadowVertical:{type:"string"},borderHoverBoxShadowBlur:{type:"string"},borderHoverBoxShadowSpread:{type:"string"},borderHoverBoxShadowColor:{type:"string"},borderHoverBoxShadowInset:{type:"string"},sectionBgType:{type:"string",default:"imageOrColor",enum:["imageOrColor","gradient"]},sectionBgImgURL:{type:"string"},sectionBgImageID:{type:"string"},sectionBgAttachment:{type:"string",default:"scroll"},sectionBgSize:{type:"string",default:"auto"},sectionBgPositionX:{type:"number",default:"0.5"},sectionBgPositionY:{type:"number",default:"0.5"},sectionBgRepeat:{type:"string",default:"repeat"},sectionBgGradient:{type:"string"},sectionBgOverlayColor:{type:"string"},sectionContentWidth:{type:"string",default:"boxed",enum:["full","boxed"]},columnsGapRow:{type:"string"},columnsGapSmRow:{type:"string"},columnsGapMdRow:{type:"string"},columnsGapColumn:{type:"string"},columnsGapSmColumn:{type:"string",default:20},columnsGapMdColumn:{type:"string"},columnsGapUnit:{type:"string",enum:["px","em","%"],default:"px"}};var r=a(184),l=a.n(r);const s=window.lodash,m=window.wp.compose,d=window.wp.blockEditor,c={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}},p=window.wp.i18n,g=window.wp.components,u=()=>(0,i.createElement)("svg",{className:"fa-desktop","aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"desktop",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512","data-fa-i2svg":""},(0,i.createElement)("path",{fill:"currentColor",d:"M528 0H48C21.5 0 0 21.5 0 48v288c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-6 336H54c-3.3 0-6-2.7-6-6V54c0-3.3 2.7-6 6-6h468c3.3 0 6 2.7 6 6v276c0 3.3-2.7 6-6 6zm-42 152c0 13.3-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h98.7l18.6-55.8c1.6-4.9 6.2-8.2 11.4-8.2h78.7c5.2 0 9.8 3.3 11.4 8.2l18.6 55.8H456c13.3 0 24 10.7 24 24z"})),h=()=>(0,i.createElement)("svg",{className:"fa-tablet-alt","aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"tablet-alt",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","data-fa-i2svg":""},(0,i.createElement)("path",{fill:"currentColor",d:"M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"})),y=()=>(0,i.createElement)("svg",{className:"fa-mobile-alt","aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"mobile-alt",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""},(0,i.createElement)("path",{fill:"currentColor",d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"})),b=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11.126",height:"13.984",viewBox:"0 0 14.126 16.984"},(0,i.createElement)("path",{d:"M8.6,0V1.47A7.051,7.051,0,0,0,4.188,13.412l1.776-1.592A4.681,4.681,0,0,1,8.6,3.858V5.226l4.185-2.613Zm5.716,3.572L12.558,5.165A4.681,4.681,0,0,1,9.9,13.105V11.758L5.719,14.371,9.9,16.984v-1.47A7.051,7.051,0,0,0,14.313,3.572Z",transform:"translate(-2.188)",fill:"#888"})),v=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18.7",height:"17",viewBox:"0 0 18.7 17"},(0,i.createElement)("g",{transform:"translate(-205 -216)"},(0,i.createElement)("g",{transform:"translate(189 182)"},(0,i.createElement)("path",{d:"M16,54h7.932V64.577H16Z",transform:"translate(0 -13.577)"}),(0,i.createElement)("path",{d:"M16,34h7.932v5.288H16Z",transform:"translate(0 0)"}),(0,i.createElement)("path",{d:"M44,34h9.255V51H44Z",transform:"translate(-18.555 0)"})))),T=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16.538",height:"17",viewBox:"0 0 16.538 17"},(0,i.createElement)("g",{transform:"translate(-0.268)"},(0,i.createElement)("g",{transform:"translate(0.268)"},(0,i.createElement)("line",{stroke:"#449fdb",strokeWidth:"1"}),(0,i.createElement)("path",{d:"M15.268,35.672a6.135,6.135,0,0,0,1.35,2.549c.034.04.073.076.108.115l6.942-6.942-2.061-2.062Z",transform:"translate(-13.248 -25.057)"})),(0,i.createElement)("path",{d:"M35.764,47.016l-6.94,6.941a5.234,5.234,0,0,0,2.768,1.352l6.233-6.232Z",transform:"translate(-24.829 -40.164)"}),(0,i.createElement)("path",{d:"M78.833,5.847,76.772,3.785a2.112,2.112,0,0,0-2.865.289l-1,1L77.545,9.71l1-1a2.518,2.518,0,0,0,.734-1.445A1.669,1.669,0,0,0,78.833,5.847Z",transform:"translate(-62.488 -2.858)"}),(0,i.createElement)("path",{d:"M5.82,80.026a7.083,7.083,0,0,1-1.348-2.314l-1.19,5.229a.366.366,0,0,0,.355.446.351.351,0,0,0,.081-.01l5.337-1.214c.01,0,.017-.012.028-.015A6.58,6.58,0,0,1,5.82,80.026Z",transform:"translate(-3.001 -66.387)"}),(0,i.createElement)("path",{d:"M68.206,23.379l-1.03,1.031-4.638-4.637,1.03-1.031Z",transform:"translate(-53.629 -16.011)"}))),S=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17"},(0,i.createElement)("g",{transform:"translate(0.284)"},(0,i.createElement)("g",{transform:"translate(-0.284)"},(0,i.createElement)("line",{stroke:"#449fdb",strokeWidth:"1"})),(0,i.createElement)("path",{d:"M36.617,32.5a4.113,4.113,0,1,0,4.113,4.113A4.118,4.118,0,0,0,36.617,32.5Zm0,6.731a2.618,2.618,0,1,1,2.618-2.618,2.621,2.621,0,0,1-2.618,2.618Z",transform:"translate(-27.864 -27.779)"}),(0,i.createElement)("path",{d:"M20.089,14.537a1.837,1.837,0,0,1,0-3.625.357.357,0,0,0,.25-.162.375.375,0,0,0,.046-.3,8.646,8.646,0,0,0-.751-1.877.358.358,0,0,0-.239-.179.347.347,0,0,0-.289.067A1.783,1.783,0,0,1,16.774,8.3,1.885,1.885,0,0,1,16.619,5.9a.38.38,0,0,0,.063-.3.361.361,0,0,0-.174-.246,8.013,8.013,0,0,0-1.82-.774.353.353,0,0,0-.292.047.368.368,0,0,0-.157.257,1.768,1.768,0,0,1-3.517,0,.37.37,0,0,0-.157-.257.352.352,0,0,0-.292-.047,8.03,8.03,0,0,0-1.819.774.365.365,0,0,0-.175.246.383.383,0,0,0,.064.3A1.884,1.884,0,0,1,8.189,8.3a1.785,1.785,0,0,1-2.333.159.349.349,0,0,0-.289-.067.355.355,0,0,0-.238.179,8.591,8.591,0,0,0-.752,1.877.38.38,0,0,0,.046.3.355.355,0,0,0,.25.162,1.837,1.837,0,0,1,0,3.625.352.352,0,0,0-.249.162.374.374,0,0,0-.045.3,8.643,8.643,0,0,0,.751,1.876.364.364,0,0,0,.238.18.355.355,0,0,0,.289-.067,1.781,1.781,0,0,1,2.333.159,1.883,1.883,0,0,1,.154,2.4.383.383,0,0,0-.064.3.365.365,0,0,0,.174.246,7.993,7.993,0,0,0,1.821.774.346.346,0,0,0,.292-.047.37.37,0,0,0,.157-.257,1.768,1.768,0,0,1,3.517,0,.368.368,0,0,0,.157.257.348.348,0,0,0,.292.047A8.035,8.035,0,0,0,16.51,20.1a.368.368,0,0,0,.174-.246.383.383,0,0,0-.064-.3,1.883,1.883,0,0,1,.154-2.4,1.782,1.782,0,0,1,2.333-.159.354.354,0,0,0,.289.067.363.363,0,0,0,.239-.18A8.555,8.555,0,0,0,20.386,15a.373.373,0,0,0-.046-.3.356.356,0,0,0-.251-.163Zm-7.607,2.97A4.719,4.719,0,0,1,7.84,12.724a4.719,4.719,0,0,1,4.641-4.783,4.72,4.72,0,0,1,4.641,4.783,4.72,4.72,0,0,1-4.641,4.783Z",transform:"translate(-3.683 -3.883)"}),(0,i.createElement)("path",{d:"M51.243,49.366a1.87,1.87,0,1,1-1.87-1.87A1.87,1.87,0,0,1,51.243,49.366Z",transform:"translate(-40.606 -40.532)"}))),f=t=>{let{label:a,className:o,children:n}=t;const r=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()})),{updateView:l}=(0,e.useDispatch)("smart-blocks/data"),{__experimentalSetPreviewDeviceType:s}=!!(0,e.useDispatch)("core/edit-post")&&(0,e.useDispatch)("core/edit-post"),m=s||l;return(0,i.createElement)("div",{className:"sb-device active-md"},(0,i.createElement)("button",{title:(0,p.__)("Desktop","smart-blocks"),className:"sb-device-desktop "+("Desktop"===r?" active":""),onClick:()=>{m("Desktop")}},(0,i.createElement)(u,null)),(0,i.createElement)("button",{title:(0,p.__)("Tablet","smart-blocks"),className:"sb-device-tablet "+("Tablet"===r?" active":""),onClick:()=>{m("Tablet")}},(0,i.createElement)(h,null)),(0,i.createElement)("button",{title:(0,p.__)("Phone","smart-blocks"),className:"sb-device-mobile "+("Mobile"===r?" active":""),onClick:()=>{m("Mobile")}},(0,i.createElement)(y,null)))},L=t=>{let{label:a,onClick:o,layout:n,layoutTablet:r,layoutMobile:s,columns:m}=t;const d=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]);let c;return"Desktop"===d?c=n:"Tablet"===d?c=r:"Mobile"===d&&(c=s),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field"},(0,i.createElement)("div",{className:"sb-label"},a&&(0,i.createElement)("label",{htmlFor:"input"},a),(0,i.createElement)(f,null)),(0,i.createElement)("div",{className:"sb-blocks-columns-layout-control"},1===m&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Single Row","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}))))||2===m&&(0,i.createElement)(i.Fragment,null,("Desktop"==d||"equal"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneTwo"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("1:2","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"oneTwo"===c}),onClick:()=>o("oneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"twoOne"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("2:1","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"twoOne"===c}),onClick:()=>o("twoOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))))||3===m&&(0,i.createElement)(i.Fragment,null,("Desktop"==d||"equal"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneOneTwo"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("1:1:2","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"oneOneTwo"===c}),onClick:()=>o("oneOneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"twoOneOne"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("2:1:1","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"twoOneOne"===c}),onClick:()=>o("twoOneOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneTwoOne"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("1:2:1","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"oneTwoOne"===c}),onClick:()=>o("oneTwoOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneThreeOne"==n)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("1:3:1","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"oneThreeOne"===c}),onClick:()=>o("oneThreeOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"11",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"47",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))))||4===m&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Two Column Grid","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"twoColumnGrid"===c}),onClick:()=>o("twoColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"}))))))||5===m&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"11",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"23",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"35",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"47",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Two Column Grid","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"twoColumnGrid"===c}),onClick:()=>o("twoColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"12.33",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"25.66",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Three Column Grid","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"threeColumnGrid"===c}),onClick:()=>o("threeColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"}))))))||6===m&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"9",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"49",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"59",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Two Column Grid","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"twoColumnGrid"===c}),onClick:()=>o("twoColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"12.33",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"25.66",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Three Column Grid","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"threeColumnGrid"===c}),onClick:()=>o("threeColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(g.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))))))))},M=t=>{let{min:a,max:o,label:n,responsive:r,units:l,unit:s,setUnit:m,dimensionTop:d,setDimensionTop:c,dimensionLeft:p,setDimensionLeft:g,dimensionRight:u,setDimensionRight:h,dimensionBottom:y,setDimensionBottom:b,dimensionMdTop:v,setDimensionMdTop:T,dimensionSmTop:S,setDimensionSmTop:L,dimensionMdLeft:M,setDimensionMdLeft:x,dimensionSmLeft:E,setDimensionSmLeft:B,dimensionMdRight:k,setDimensionMdRight:_,dimensionSmRight:H,setDimensionSmRight:N,dimensionMdBottom:V,setDimensionMdBottom:C,dimensionSmBottom:z,setDimensionSmBottom:w}=t;const[R,F]=(0,i.useState)(!0),D=["Top","Right","Bottom","Left"],U=l||["px","em","%"],P=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),I=(e,t)=>{if(r)switch(e){case"setDimensionTop":return c(t);case"setDimensionLeft":return g(t);case"setDimensionRight":return h(t);case"setDimensionBottom":return b(t);case"setDimensionMdTop":return T(t);case"setDimensionMdLeft":return x(t);case"setDimensionMdRight":return _(t);case"setDimensionMdBottom":return C(t);case"setDimensionSmTop":return L(t);case"setDimensionSmLeft":return B(t);case"setDimensionSmRight":return N(t);case"setDimensionSmBottom":return w(t);default:console.error(`Function ${e} not found.`)}else switch(e){case"setDimensionTop":return c(t);case"setDimensionLeft":return g(t);case"setDimensionRight":return h(t);case"setDimensionBottom":return b(t);default:console.error(`Function ${e} not found.`)}},$=(e,t)=>{if(r)switch(e){case"dimensionTop":return d;case"dimensionLeft":return p;case"dimensionRight":return u;case"dimensionBottom":return y;case"dimensionMdTop":return v;case"dimensionMdLeft":return M;case"dimensionMdRight":return k;case"dimensionMdBottom":return V;case"dimensionSmTop":return S;case"dimensionSmLeft":return E;case"dimensionSmRight":return H;case"dimensionSmBottom":return z;default:console.error(`Value of ${e} not found.`)}else switch(e){case"dimensionTop":return d;case"dimensionLeft":return p;case"dimensionRight":return u;case"dimensionBottom":return y;default:console.error(`Value of ${e} not found.`)}},W=()=>{let e;switch(s){case"em":case"vh":case"vw":case"%":e=0;break;default:e=a}return e},A=()=>{let e;switch(s){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=o}return e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-dimension "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},n&&(0,i.createElement)("label",{htmlFor:"input"},n),r&&(0,i.createElement)(f,null),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},U.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),D.map(((e,t)=>{I(`setDimension${e}`,""),I(`setDimensionMd${e}`,""),I(`setDimensionSm${e}`,"")}))}},e))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},U.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),D.map(((e,t)=>{I(`setDimension${e}`,"")}))}},e)))))),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-dimension-input-group hasLock"},"Desktop"==P&&D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:A(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimension${e}`,t.target.value)})):I(`setDimension${e}`,t.target.value)},value:$(`dimension${e}`)}),(0,i.createElement)("span",null,e)))),"Tablet"==P&&D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:A(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimensionMd${e}`,t.target.value)})):I(`setDimensionMd${e}`,t.target.value)},value:$(`dimensionMd${e}`)}),(0,i.createElement)("span",null,e)))),"Mobile"==P&&D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:A(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimensionSm${e}`,t.target.value)})):I(`setDimensionSm${e}`,t.target.value)},value:$(`dimensionSm${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(R?"active ":"")+"sb-button",onClick:function(){return F(!R)}},R?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"}))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-dimension-input-group hasLock"},D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:A(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimension${e}`,t.target.value)})):I(`setDimension${e}`,t.target.value)},value:$(`dimension${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(R?"active ":"")+"sb-button",onClick:function(){return F(!R)}},R?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"})))))))},x=t=>{let{label:a,min:o,max:n,steps:r,useUnit:l,responsive:s,value:m,setValue:d,valueSm:c,setValueSm:p,valueMd:g,setValueMd:u,units:h,unit:y,setUnit:b}=t;const v=h||["px","em","%"],T=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),S=()=>{let e;switch(y){case"em":case"vh":case"vw":case"%":e=0;break;default:e=o}return e},L=()=>{let e;switch(y){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=n}return e};return(0,i.createElement)("div",{className:"sb-field sb-field-range "+(s?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},a&&(0,i.createElement)("label",{htmlFor:"input"},a),s&&(0,i.createElement)(f,null),l&&(0,i.createElement)("div",{class:"sb-unit-btn-group"},v.map(((e,t)=>(0,i.createElement)("button",{className:y===e?"active":"",value:e,onClick:e=>{b(e.target.value),d(""),s&&p(""),s&&u("")}},e))))),(0,i.createElement)("div",{className:"sb-input-fields"},s?(0,i.createElement)(i.Fragment,null,"Mobile"==T&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:L(),value:c,step:r||1,onChange:e=>{p(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{p(e.target.value)},value:c})),"Tablet"==T&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:L(),value:g,step:r||1,onChange:e=>{u(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{u(e.target.value)},value:g})),"Desktop"==T&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:L(),value:m,step:r||1,onChange:e=>{d(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{d(e.target.value)},value:m}))):(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:L(),value:m,step:r||1,onChange:e=>{d(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{d(e.target.value)},value:m}))))},E=t=>{let{label:a,options:o,steps:n,responsive:r,value:l,setValue:s,valueSm:m,setValueSm:d,valueMd:c,setValueMd:p}=t;const u=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]);return(0,i.createElement)("div",{className:"sb-field sb-field-buttons "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},a&&(0,i.createElement)("label",{htmlFor:"input"},a),r&&(0,i.createElement)(f,null)),(0,i.createElement)("div",{className:"sb-input-fields"},r?(0,i.createElement)(i.Fragment,null,"Mobile"==u&&(0,i.createElement)(g.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(g.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===m,onClick:t=>{d(e.value===m?null:e.value)}})))),"Tablet"==u&&(0,i.createElement)(g.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(g.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===c,onClick:t=>{p(e.value===c?null:e.value)}})))),"Desktop"==u&&(0,i.createElement)(g.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(g.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===l,onClick:t=>{s(e.value===l?null:e.value)}}))))):(0,i.createElement)(g.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(g.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===l,onClick:()=>{s(e.value===l?null:e.value)}}))))))},B=e=>{let{label:t,value:a,setValue:o,enableAlpha:n}=e;const r=e=>{o(e.hex)};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-color"},t&&(0,i.createElement)("label",null,t),(0,i.createElement)("div",{className:"sb-components-dropdown"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{o(void 0)}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(b,null)))),(0,i.createElement)(g.Dropdown,{position:"top right",contentClassName:"sb-popover-style",renderToggle:function(e){let{isOpen:t,onToggle:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("span",{className:"sb-color-picker-container"},(0,i.createElement)("button",{className:"sb-color-picker",isPrimary:!0,onClick:o,"aria-expanded":t,style:a&&{backgroundColor:a,borderColor:a}})))},renderContent:function(){return(0,i.createElement)("span",null,n?(0,i.createElement)(g.ColorPicker,{color:a||"",onChangeComplete:r,enableAlpha:!0}):(0,i.createElement)(g.ColorPicker,{color:a||"",onChangeComplete:r,disableAlpha:!0}))}}))))},k=e=>{let{label:t,options:a,value:o,onChange:n,inline:r=!0}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field "+(r?"sb-field-select sb-display-inline":"")},t&&(0,i.createElement)("label",{className:r?"":"sb-label"},t),(0,i.createElement)("div",{class:"sb-input-fields"},(0,i.createElement)("div",{class:"sb-popup-select"},(0,i.createElement)("select",{value:o,onChange:e=>{n(e.target.value)}},a&&a.map(((e,t)=>(0,i.createElement)("option",{value:e.value,key:e.value},e.label))))))))},_=e=>{let{label:t,imageURL:a,setImageURL:o,imageID:n,setImageID:r,imageAttachment:l,setImageAttachment:s,imageSize:m,setImageSize:c,imagePositionX:u,setImagePositionX:h,imagePositionY:y,setImagePositionY:b,imageRepeat:v,setImageRepeat:T,imageOverlayColor:S,setImageOverlayColor:f}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-background"},t&&(0,i.createElement)("label",{htmlFor:"input"},t)),(0,i.createElement)("div",{className:"sb-input-fields sb-image-container"},a?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.FocalPointPicker,{__nextHasNoMarginBottom:!0,url:a,value:{x:u,y},onDragStart:e=>{h(e.x),b(e.y)},onDrag:e=>{h(e.x),b(e.y)},onChange:e=>{h(e.x),b(e.y)}}),(0,i.createElement)(g.Button,{isSecondary:!0,className:"sb-image-container-delete-button",onClick:()=>{r(""),o("")}},(0,p.__)("Remove Image","smart-blocks")),(0,i.createElement)(k,{label:(0,p.__)("Attachment","smart-blocks"),value:l,options:[{label:(0,p.__)("Scroll","smart-blocks"),value:"scroll"},{label:(0,p.__)("Fixed","smart-blocks"),value:"fixed"}],setValue:e=>s(e)}),(0,i.createElement)(k,{label:(0,p.__)("Repeat","smart-blocks"),value:v,options:[{label:(0,p.__)("Repeat","smart-blocks"),value:"repeat"},{label:(0,p.__)("No Repeat","smart-blocks"),value:"no-repeat"},{label:(0,p.__)("Repeat X","smart-blocks"),value:"repeat-x"},{label:(0,p.__)("Repeat Y","smart-blocks"),value:"repeat-y"}],setValue:e=>T(e)}),(0,i.createElement)(k,{label:(0,p.__)("Size","smart-blocks"),value:m,options:[{label:(0,p.__)("Auto","smart-blocks"),value:"auto"},{label:(0,p.__)("Cover","smart-blocks"),value:"cover"},{label:(0,p.__)("Contain","smart-blocks"),value:"contain"}],setValue:e=>c(e)}),(0,i.createElement)(B,{label:(0,p.__)("Overlay Color","smart-blocks"),enableAlpha:!0,value:S,setValue:e=>f(e)})):(0,i.createElement)(d.MediaPlaceholder,{icon:"format-image",labels:{title:(0,p.__)("Background Image","smart-blocks"),name:(0,p.__)("Background Image","smart-blocks")},value:n,onSelect:e=>{r(e.id),o(e.url)},accept:"image/*",allowedTypes:["image"]})))},H=e=>{let{options:t,value:a,setValue:o,label:n}=e;return(0,i.createElement)("div",{className:"sb-field sb-field-radio-advanced"},n&&(0,i.createElement)("label",null,n),(0,i.createElement)("div",{className:"sb-field-button-wrap"},t.map((function(e,t){return(0,i.createElement)(g.Tooltip,{text:e.title||e.value},(0,i.createElement)("button",{className:(a==e.value?"active":"")+" sb-button",key:t,onClick:()=>o(e.value)},e.icon?(0,i.createElement)("i",{className:e.icon}):e.svg?(0,i.createElement)("span",{className:"sb-option-svg"},e.svg):e.label))}))))},N=e=>{let{label:t,valueHorizontal:a,setValueHorizontal:o,valueVertical:n,setValueVertical:r,valueBlur:l,setValueBlur:s,valueSpread:m,setValueSpread:d,valueColor:c,setValueColor:u,valueInset:h,setValueInset:y}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-boxshadow"},(0,i.createElement)("label",null,(0,p.__)("Box Shadow","smart-blocks")),(0,i.createElement)("div",{className:"sb-components-dropdown"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{o(""),r(""),s(""),d(""),u(void 0),y("")}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(b,null)))),(0,i.createElement)(g.Dropdown,{position:"top right",contentClassName:"sb-popover-style",renderToggle:e=>{let{isOpen:t,onToggle:a}=e;return(0,i.createElement)("button",{className:"sb-shadow-setttings sb-setting-button",isPrimary:!0,onClick:a,"aria-expanded":t},(0,i.createElement)(g.Dashicon,{size:"15",icon:"admin-tools"}))},renderContent:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-boxshadow"},(0,i.createElement)(g.TextControl,{label:(0,p.__)("X","smart-blocks"),type:"number",value:a,onChange:e=>o(e)}),(0,i.createElement)(g.TextControl,{label:(0,p.__)("Y","smart-blocks"),type:"number",value:n,onChange:e=>r(e)}),(0,i.createElement)(g.TextControl,{label:(0,p.__)("Blur","smart-blocks"),type:"number",value:l,onChange:e=>s(e)}),(0,i.createElement)(g.TextControl,{label:(0,p.__)("Spread","smart-blocks"),type:"number",value:m,onChange:e=>d(e)})),(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),value:c,setValue:e=>u(e),enableAlpha:!0}),(0,i.createElement)(H,{label:(0,p.__)("Inset","smart-blocks"),value:h,setValue:e=>y(e),options:[{label:(0,p.__)("Inset"),value:"inset",title:(0,p.__)("Inset")},{label:(0,p.__)("Outset"),value:"",title:(0,p.__)("Outset")}]}))}))))},V=e=>{let{label:t,value:a,setValue:o}=e;const n=[["solid",(0,p.__)("Solid","smart-blocks")],["dotted",(0,p.__)("Dotted","smart-blocks")],["dashed",(0,p.__)("Dashed","smart-blocks")],["double",(0,p.__)("Double","smart-blocks")]];return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-border"},(0,i.createElement)("label",null,(0,p.__)("Border","smart-blocks")),(0,i.createElement)("div",{className:"sb-field-button-list"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{o("")}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(b,null)))),(0,i.createElement)("div",{className:"sb-field-button-wrap"},n.map(((e,t)=>(0,i.createElement)(g.Tooltip,{text:e[1],key:t},(0,i.createElement)("button",{className:(a&&a==e[0]?"active":"")+" sb-button",onClick:()=>{o(e[0])}},(0,i.createElement)("span",{className:`sb-field-border-type sb-field-border-type-${e[0]}`})))))))))},C=t=>{let{min:a,max:o,label:n,responsive:r,units:l,unit:s,setUnit:m,gapRow:d,setGapRow:c,gapColumn:p,setGapColumn:g,gapMdRow:u,setGapMdRow:h,gapMdColumn:y,setGapMdColumn:b,gapSmRow:v,setGapSmRow:T,gapSmColumn:S,setGapSmColumn:L}=t;const[M,x]=(0,i.useState)(!0),E=["Column","Row"],B=l||["px","em","rem"],k=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),_=(e,t)=>{if(r)switch(e){case"setGapRow":return c(t);case"setGapColumn":return g(t);case"setGapMdRow":return h(t);case"setGapMdColumn":return b(t);case"setGapSmRow":return T(t);case"setGapSmColumn":return L(t);default:console.error(`Function ${e} not found.`)}else switch(e){case"setGapRow":return c(t);case"setGapColumn":return g(t);default:console.error(`Function ${e} not found.`)}},H=(e,t)=>{if(r)switch(e){case"gapRow":return d;case"gapColumn":return p;case"gapMdRow":return u;case"gapMdColumn":return y;case"gapSmRow":return v;case"gapSmColumn":return S;default:console.error(`Value of ${e} not found.`)}else switch(e){case"gapRow":return d;case"gapColumn":return p;default:console.error(`Value of ${e} not found.`)}},N=()=>{let e;switch(s){case"em":case"vh":case"vw":case"%":e=0;break;default:e=a}return e},V=()=>{let e;switch(s){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=o}return e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-gap "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},n&&(0,i.createElement)("label",{htmlFor:"input"},n),r&&(0,i.createElement)(f,null),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},B.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),E.map(((e,t)=>{_(`setGap${e}`,""),_(`setGapMd${e}`,""),_(`setGapSm${e}`,"")}))}},e))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},B.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),E.map(((e,t)=>{_(`setGap${e}`,"")}))}},e)))))),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},"Desktop"==k&&E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGap${e}`,t.target.value)})):_(`setGap${e}`,t.target.value)},value:H(`gap${e}`)}),(0,i.createElement)("span",null,e)))),"Tablet"==k&&E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGapMd${e}`,t.target.value)})):_(`setGapMd${e}`,t.target.value)},value:H(`gapMd${e}`)}),(0,i.createElement)("span",null,e)))),"Mobile"==k&&E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGapSm${e}`,t.target.value)})):_(`setGapSm${e}`,t.target.value)},value:H(`gapSm${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(M?"active ":"")+"sb-button",onClick:function(){return x(!M)}},M?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"}))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGap${e}`,t.target.value)})):_(`setGap${e}`,t.target.value)},value:H(`gap${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(M?"active ":"")+"sb-button",onClick:function(){return x(!M)}},M?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"})))))))},z=e=>{let{label:t,checked:a,onChange:o}=e;return(0,i.createElement)("div",{className:"sb-field"},(0,i.createElement)(g.ToggleControl,{label:t,checked:a,onChange:o}))},w=e=>{let{children:t}=e;const a=null!=t[0]?t[0].props.tabTitle:"",[o,n]=(0,i.useState)(a);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},t.map((function(e){return(0,i.createElement)(i.Fragment,null,!1!==e&&(0,i.createElement)(g.Tooltip,{text:e.props.tabTitle},(0,i.createElement)("button",{className:(e.props.tabTitle===o?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>n(e.props.tabTitle)},e.props.tabTitle)))}))),(0,i.createElement)("div",{className:"sb-field-tab-items"},t.map((function(e){return(0,i.createElement)(i.Fragment,null,!1!==e&&e.props.tabTitle===o?e:"")})))))},R=window.wp.hooks,F=t=>{const{attributes:a,setAttributes:o,updateColumnsWidth:n}=t,{columns:r,borderNormal:s,borderHover:m,borderNormalColor:c,borderHoverColor:u,borderNormalWidthTop:h,borderNormalWidthLeft:y,borderNormalWidthRight:b,borderNormalWidthBottom:f,borderNormalWidthUnit:H,borderHoverWidthTop:F,borderHoverWidthLeft:D,borderHoverWidthRight:U,borderHoverWidthBottom:P,borderHoverWidthUnit:I,borderNormalRadiusTop:$,borderNormalRadiusLeft:W,borderNormalRadiusRight:A,borderNormalRadiusBottom:O,borderNormalRadiusUnit:G,borderHoverRadiusTop:j,borderHoverRadiusLeft:Z,borderHoverRadiusRight:q,borderHoverRadiusBottom:K,borderHoverRadiusUnit:Y,borderNormalBoxShadowHorizontal:X,borderNormalBoxShadowVertical:J,borderNormalBoxShadowBlur:Q,borderNormalBoxShadowSpread:ee,borderNormalBoxShadowColor:te,borderNormalBoxShadowInset:ae,borderHoverBoxShadowHorizontal:ie,borderHoverBoxShadowVertical:oe,borderHoverBoxShadowBlur:ne,borderHoverBoxShadowSpread:re,borderHoverBoxShadowColor:le,borderHoverBoxShadowInset:se,sectionBgColor:me,horizontalAlign:de,horizontalAlignSm:ce,horizontalAlignMd:pe,columnAlignment:ge,columnAlignmentSm:ue,columnAlignmentMd:he,layout:ye,layoutTablet:be,layoutMobile:ve,columnsWidth:Te,columnsWidthMd:Se,columnsWidthSm:fe,columnsWidthUnit:Le,columnsHeight:Me,columnsHeightSm:xe,columnsHeightMd:Ee,columnsHeightUnit:Be,hide:ke,hideTablet:_e,hideMobile:He,reverseColumnsTablet:Ne,reverseColumnsMobile:Ve,columnsHTMLTag:Ce,columnsMarginSmTop:ze,columnsMarginSmRight:we,columnsMarginSmBottom:Re,columnsMarginSmLeft:Fe,columnsMarginMdTop:De,columnsMarginMdRight:Ue,columnsMarginMdBottom:Pe,columnsMarginMdLeft:Ie,columnsMarginTop:$e,columnsMarginRight:We,columnsMarginBottom:Ae,columnsMarginLeft:Oe,columnsMarginUnit:Ge,columnsPaddingSmTop:je,columnsPaddingSmRight:Ze,columnsPaddingSmBottom:qe,columnsPaddingSmLeft:Ke,columnsPaddingMdTop:Ye,columnsPaddingMdRight:Xe,columnsPaddingMdBottom:Je,columnsPaddingMdLeft:Qe,columnsPaddingTop:et,columnsPaddingRight:tt,columnsPaddingBottom:at,columnsPaddingLeft:it,columnsPaddingUnit:ot,sectionBgType:nt,sectionBgImgURL:rt,sectionBgImgID:lt,sectionBgAttachment:st,sectionBgSize:mt,sectionBgPositionX:dt,sectionBgPositionY:ct,sectionBgRepeat:pt,sectionBgGradient:gt,sectionBgOverlayColor:ut,sectionContentWidth:ht,columnsGapRow:yt,columnsGapSmRow:bt,columnsGapMdRow:vt,columnsGapColumn:Tt,columnsGapSmColumn:St,columnsGapMdColumn:ft,columnsGapUnit:Lt}=a,Mt=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),[xt,Et]=(0,i.useState)("layout"),[Bt,kt]=(0,i.useState)(!1);(0,i.useEffect)((()=>{Bt&&(6>=r?n(r,"equal"):6<r?n(6,"equal"):1>=r&&n(1,"equal"),kt(!1))}),[r]);const _t=(e,t)=>{"Desktop"===t&&o({hide:e}),"Tablet"===t&&o({hideTablet:e}),"Mobile"===t&&o({hideMobile:e})},Ht=(e,t)=>{"Tablet"===t&&o({reverseColumnsTablet:e}),"Mobile"===t&&o({reverseColumnsMobile:e})};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===xt}),onClick:()=>Et("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===xt}),onClick:()=>Et("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===xt}),onClick:()=>Et("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===xt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Columns & Layout","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Columns","smart-blocks"),min:1,max:6,responsive:!1,useUnit:!1,value:r,setValue:e=>{6>=(e=parseInt(e))&&o({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&o({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&o({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),kt(!0)}}),(0,i.createElement)(L,{label:(0,p.__)("Layout","smart-blocks"),columns:r,layout:ye,layoutTablet:be,layoutMobile:ve,onClick:e=>{"Desktop"===Mt&&(o({layout:e}),n(r,e),(2==r||3==r)&&"collapsedRows"!=be&&o({layoutTablet:e}),(2==r||3==r)&&"collapsedRows"!=ve&&o({layoutMobile:e})),"Tablet"===Mt&&o({layoutTablet:e}),"Mobile"===Mt&&o({layoutMobile:e})}}),(0,i.createElement)(k,{label:(0,p.__)("Content Width","smart-blocks"),value:ht,options:[{label:(0,p.__)("Full Width","smart-blocks"),value:"full"},{label:(0,p.__)("Boxed","smart-blocks"),value:"boxed"}],onChange:e=>{o({sectionContentWidth:e,columnsWidth:"",columnsWidthSm:"",columnsWidthMd:""}),"full"===e&&o({columnsWidthUnit:"%"})},inline:!1}),(0,i.createElement)(x,{label:(0,p.__)("Width","smart-blocks"),min:0,max:2200,responsive:!0,value:Te,setValue:e=>o({columnsWidth:e}),valueSm:fe,setValueSm:e=>o({columnsWidthSm:e}),valueMd:Se,setValueMd:e=>o({columnsWidthMd:e}),useUnit:!0,units:"full"===ht?["%"]:["px","em","%","vw"],unit:Le,setUnit:e=>o({columnsWidthUnit:e})}),(0,i.createElement)(x,{label:(0,p.__)("Min Height","smart-blocks"),min:0,max:1200,responsive:!0,value:Me,setValue:e=>o({columnsHeight:e}),valueSm:xe,setValueSm:e=>o({columnsHeightSm:e}),valueMd:Ee,setValueMd:e=>o({columnsHeightMd:e}),useUnit:!0,units:["px","em","%","vh"],unit:Be,setUnit:e=>o({columnsHeightUnit:e})}),(0,i.createElement)(E,{label:(0,p.__)("Column Align","smart-blocks"),responsive:!0,options:[{value:"flex-start",icon:(0,i.createElement)("i",{class:"sbi-align-start-v"}),label:(0,p.__)("Flex Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-v"}),label:(0,p.__)("Center","smart-blocks")},{value:"flex-end",icon:(0,i.createElement)("i",{class:"sbi-align-end-v"}),label:(0,p.__)("Flex End","smart-blocks")},{value:"stretch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-v"}),label:(0,p.__)("Stretch","smart-blocks")}],value:ge,setValue:e=>o({columnAlignment:e}),valueSm:ue,setValueSm:e=>o({columnAlignmentSm:e}),valueMd:he,setValueMd:e=>o({columnAlignmentMd:e})}),(0,i.createElement)(E,{label:(0,p.__)("Text Align","smart-blocks"),responsive:!0,options:[{value:"left",icon:(0,i.createElement)("i",{class:"sbi-text-align-left"}),label:(0,p.__)("Left","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-text-align-center"}),label:(0,p.__)("Center","smart-blocks")},{value:"right",icon:(0,i.createElement)("i",{class:"sbi-text-align-right"}),label:(0,p.__)("Right","smart-blocks")}],value:de,setValue:e=>o({horizontalAlign:e}),valueSm:ce,setValueSm:e=>o({horizontalAlignSm:e}),valueMd:pe,setValueMd:e=>o({horizontalAlignMd:e})}),(0,i.createElement)(C,{label:(0,p.__)("Gaps","smart-blocks"),min:"0",max:"100",responsive:!0,gapColumn:Tt,setGapColumn:e=>o({columnsGapColumn:e}),gapMdColumn:ft,setGapMdColumn:e=>o({columnsGapMdColumn:e}),gapSmColumn:St,setGapSmColumn:e=>o({columnsGapSmColumn:e}),gapRow:yt,setGapRow:e=>o({columnsGapRow:e}),gapMdRow:vt,setGapMdRow:e=>o({columnsGapMdRow:e}),gapSmRow:bt,setGapSmRow:e=>o({columnsGapSmRow:e}),unit:Lt,setUnit:e=>o({columnsGapUnit:e})})))||"style"===xt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:$e,setDimensionTop:e=>o({columnsMarginTop:e}),dimensionMdTop:De,setDimensionMdTop:e=>o({columnsMarginMdTop:e}),dimensionSmTop:ze,setDimensionSmTop:e=>o({columnsMarginSmTop:e}),dimensionLeft:Oe,setDimensionLeft:e=>o({columnsMarginLeft:e}),dimensionMdLeft:Ie,setDimensionMdLeft:e=>o({columnsMarginMdLeft:e}),dimensionSmLeft:Fe,setDimensionSmLeft:e=>o({columnsMarginSmLeft:e}),dimensionRight:We,setDimensionRight:e=>o({columnsMarginRight:e}),dimensionMdRight:Ue,setDimensionMdRight:e=>o({columnsMarginMdRight:e}),dimensionSmRight:we,setDimensionSmRight:e=>o({columnsMarginSmRight:e}),dimensionBottom:Ae,setDimensionBottom:e=>o({columnsMarginBottom:e}),dimensionMdBottom:Pe,setDimensionMdBottom:e=>o({columnsMarginMdBottom:e}),dimensionSmBottom:Re,setDimensionSmBottom:e=>o({columnsMarginSmBottom:e}),unit:Ge,setUnit:e=>o({columnsMarginUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:et,setDimensionTop:e=>o({columnsPaddingTop:e}),dimensionMdTop:Ye,setDimensionMdTop:e=>o({columnsPaddingMdTop:e}),dimensionSmTop:je,setDimensionSmTop:e=>o({columnsPaddingSmTop:e}),dimensionLeft:it,setDimensionLeft:e=>o({columnsPaddingLeft:e}),dimensionMdLeft:Qe,setDimensionMdLeft:e=>o({columnsPaddingMdLeft:e}),dimensionSmLeft:Ke,setDimensionSmLeft:e=>o({columnsPaddingSmLeft:e}),dimensionRight:tt,setDimensionRight:e=>o({columnsPaddingRight:e}),dimensionMdRight:Xe,setDimensionMdRight:e=>o({columnsPaddingMdRight:e}),dimensionSmRight:Ze,setDimensionSmRight:e=>o({columnsPaddingSmRight:e}),dimensionBottom:at,setDimensionBottom:e=>o({columnsPaddingBottom:e}),dimensionMdBottom:Je,setDimensionMdBottom:e=>o({columnsPaddingMdBottom:e}),dimensionSmBottom:qe,setDimensionSmBottom:e=>o({columnsPaddingSmBottom:e}),unit:ot,setUnit:e=>o({columnsPaddingUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:s,setValue:e=>o({borderNormal:e})}),s&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:c,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:h,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:y,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:b,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:f,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:H,setUnit:e=>o({borderNormalWidthUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:$,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:W,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:A,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:O,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:G,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:X,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:J,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Q,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ee,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:te,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ae,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:m,setValue:e=>o({borderHover:e})}),m&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:u,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:F,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:D,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:U,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:P,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:I,setUnit:e=>o({borderHoverWidthUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:j,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Z,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:q,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:K,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Y,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ie,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:oe,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:ne,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:re,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:le,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:se,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Image/Color","smart-blocks")},(0,i.createElement)("button",{className:("imageOrColor"===nt?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({sectionBgType:"imageOrColor"})},(0,p.__)("Image/Color","smart-blocks"))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Gradient","smart-blocks")},(0,i.createElement)("button",{className:("gradient"===nt?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({sectionBgType:"gradient"})},(0,p.__)("Gradient","smart-blocks")))),(0,i.createElement)("div",{className:"sb-field-tab-items"},"imageOrColor"===nt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:me,setValue:e=>o({sectionBgColor:e})}),(0,i.createElement)(_,{label:(0,p.__)("Background Image","smart-blocks"),imageURL:rt,setImageURL:e=>o({sectionBgImgURL:e}),imageID:lt,setImageID:e=>o({sectionBgImgID:e}),imageAttachment:st,setImageAttachment:e=>o({sectionBgAttachment:e}),imageSize:mt,setImageSize:e=>o({sectionBgSize:e}),imagePositionX:dt,setImagePositionX:e=>o({sectionBgPositionX:e}),imagePositionY:ct,setImagePositionY:e=>o({sectionBgPositionY:e}),imageRepeat:pt,setImageRepeat:e=>o({sectionBgRepeat:e}),imageOverlayColor:ut,setImageOverlayColor:e=>o({sectionBgOverlayColor:e})}))||"gradient"===nt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.GradientPicker,{label:(0,p.__)("Background Gradient","smart-blocks"),value:gt,onChange:e=>o({sectionBgGradient:e})}))))))||"advanced"===xt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Responsive","smart-blocks"),initialOpen:!1},(0,i.createElement)(z,{label:(0,p.__)("Hide this section in Desktop devices?","smart-blocks"),checked:ke,onChange:e=>_t(e,"Desktop")}),(0,i.createElement)(z,{label:(0,p.__)("Hide this section in Tablet devices?","smart-blocks"),checked:_e,onChange:e=>_t(e,"Tablet")}),(0,i.createElement)(z,{label:(0,p.__)("Hide this section in Mobile devices?","smart-blocks"),checked:He,onChange:e=>_t(e,"Mobile")}),(0,i.createElement)("hr",null),!_e&&"collapsedRows"===be&&(0,i.createElement)(z,{label:(0,p.__)("Reverse Columns in Tablet devices?","smart-blocks"),checked:Ne,onChange:e=>Ht(e,"Tablet")}),!He&&"collapsedRows"===ve&&(0,i.createElement)(z,{label:(0,p.__)("Reverse Columns in Mobile devices?","smart-blocks"),checked:Ve,onChange:e=>Ht(e,"Mobile")})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Section Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("HTML Tag","smart-blocks"),value:Ce,options:[{label:(0,p.__)("Default (div)","smart-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))))},D={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var U,P=new Uint8Array(16);function I(){if(!U&&!(U="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return U(P)}for(var $=[],W=0;W<256;++W)$.push((W+256).toString(16).slice(1));const A=function(e,t,a){if(D.randomUUID&&!t&&!e)return D.randomUUID();var i=(e=e||{}).random||(e.rng||I)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){a=a||0;for(var o=0;o<16;++o)t[a+o]=i[o];return t}return function(e,t=0){return($[e[t+0]]+$[e[t+1]]+$[e[t+2]]+$[e[t+3]]+"-"+$[e[t+4]]+$[e[t+5]]+"-"+$[e[t+6]]+$[e[t+7]]+"-"+$[e[t+8]]+$[e[t+9]]+"-"+$[e[t+10]]+$[e[t+11]]+$[e[t+12]]+$[e[t+13]]+$[e[t+14]]+$[e[t+15]]).toLowerCase()}(i)},O={},G=(0,e.select)("core/block-editor").getBlock,j=(0,e.dispatch)("core/block-editor").updateBlockAttributes,Z=e=>t=>{j(e,t)},q=e=>{const t=G(e);return{attributes:null==t?void 0:t.attributes,name:null==t?void 0:t.name}},K=(e,t)=>(e=>{var t;const{attributes:a,setAttributes:i,clientId:o,idPrefix:n,name:r,defaultAttributes:l}=e;if(void 0===a||void 0===i)return e=>{var t;null===(t=O[r])||void 0===t||t.delete(e)};null!==(t=O[r])&&void 0!==t||(O[r]=new Set);const s=n||(e=>`wp-block-${e.replace("/","-")}-`)(r),m=((e,t,a)=>{const i=`${e}${t.substr(0,8)}`;if(a.has(i)){let t=`${e}${A().substr(0,8)}`;for(;a.has(t);)t=`${e}${A().substr(0,8)}`;return t}return i})(s,o,O[r]),d=a.id&&O[r].has(a.id);return void 0===a.id||d?(i({id:m}),O[r].add(m)):O[r].add(a.id),e=>{void 0===a.id||d?O[r].delete(m||e):O[r].delete((null==a?void 0:a.id)||e)}})({clientId:e,defaultAttributes:t,setAttributes:Z(e),...q(e)}),Y=e=>{let{clientId:t,setupColumns:a}=e;return(0,i.createElement)(g.Placeholder,{label:(0,p.__)("Section","smart-blocks"),instructions:(0,p.__)("Select a variation to start with","smart-blocks"),isColumnLayout:!0,className:"sb-onboarding-component"},(0,i.createElement)("div",{className:"sb-layout-picker"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Single","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(1,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(2,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("1:2","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(2,"oneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("2:1","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(2,"twoOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(3,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("1:1:2","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(3,"oneOneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("2:1:1","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(3,"twoOneOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Equal","smart-blocks")},(0,i.createElement)(g.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(4,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"}))))))},X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";var o=[];return e&&"inherit"!=e.toLowerCase()&&o.push("sb-ff"),t&&"inherit"!=t.toLowerCase()&&o.push("sb-fw"),a&&"inherit"!=a.toLowerCase()&&o.push("sb-tt"),i&&"inherit"!=i.toLowerCase()&&o.push("sb-td"),o.join(" ")},J=function(e,t,a,i,o){let n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return`--sb-${e}-top: ${t?t+n:"initial"};\n        --sb-${e}-right: ${a?a+n:"initial"};\n        --sb-${e}-bottom: ${i?i+n:"initial"};\n        --sb-${e}-left: ${o?o+n:"initial"};`},Q=function(e,t,a,i,o,n,r,l,s,m,d,c,p){let g=arguments.length>13&&void 0!==arguments[13]?arguments[13]:"";return`--sb-${e}-top-sm: ${n?n+g:"var(--sb-"+e+"-top-md)"};\n        --sb-${e}-right-sm: ${r?r+g:"var(--sb-"+e+"-right-md)"};\n        --sb-${e}-bottom-sm: ${l?l+g:"var(--sb-"+e+"-bottom-md)"};\n        --sb-${e}-left-sm: ${s?s+g:"var(--sb-"+e+"-left-md)"};\n        --sb-${e}-top-md: ${m?m+g:"var(--sb-"+e+"-top-lg)"};\n        --sb-${e}-right-md: ${d?d+g:"var(--sb-"+e+"-right-lg)"};\n        --sb-${e}-bottom-md: ${c?c+g:"var(--sb-"+e+"-bottom-lg)"};\n        --sb-${e}-left-md: ${p?p+g:"var(--sb-"+e+"-left-lg)"};\n        --sb-${e}-top-lg: ${t?t+g:"initial"};\n        --sb-${e}-right-lg: ${a?a+g:"initial"};\n        --sb-${e}-bottom-lg: ${i?i+g:"initial"};\n        --sb-${e}-left-lg: ${o?o+g:"initial"};`},ee=function(e,t,a,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return`--sb-${e}-sm: ${a?a+o:"var(--sb-"+e+"-md)"};\n        --sb-${e}-md: ${i?i+o:"var(--sb-"+e+"-lg)"};\n        --sb-${e}-lg: ${t?t+o:"initial"};`},te=function(e,t,a,i,o,n,r){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";return`--sb-${e}-horizontal: ${t?t+l:"0"};\n        --sb-${e}-vertical: ${a?a+l:"0"};\n        --sb-${e}-blur: ${i?i+l:"0"};\n        --sb-${e}-spread: ${o?o+l:"0"};\n        --sb-${e}-color: ${n||"transparent"};\n        --sb-${e}-inset: ${r||""};`},ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""!=t?t&&"default"!=t.toLowerCase()?e:"inherit":e&&"default"!=e.toLowerCase()?e:"inherit"},ie=(e,t,a,i,o,n,r,l,s,m,d,c,p,g,u,h,y)=>`--sb-${e}-family: ${t?ae(t):"inherit"};\n        --sb-${e}-weight: ${a?ae(a.replace(/\D/g,""),a):"inherit"};\n        --sb-${e}-style: ${a?ae(a.replace(/\d+/g,""),a):"inherit"};\n        --sb-${e}-tt: ${i||"inherit"};\n        --sb-${e}-td: ${o||"inherit"};\n        --sb-${e}-fs-sm: ${n?n+s:"var(--sb-"+e+"-fs-md)"};\n        --sb-${e}-fs-md: ${r?r+s:"var(--sb-"+e+"-fs-lg)"};\n        --sb-${e}-fs-lg: ${l?l+s:"inherit"};\n        --sb-${e}-ls-sm: ${m?m+p:"var(--sb-"+e+"-ls-md)"};\n        --sb-${e}-ls-md: ${d?d+p:"var(--sb-"+e+"-ls-lg)"};\n        --sb-${e}-ls-lg: ${c?c+p:"inherit"};\n        --sb-${e}-lh-sm: ${g?g+y:"var(--sb-"+e+"-lh-md)"};\n        --sb-${e}-lh-md: ${u?u+y:"var(--sb-"+e+"-lh-lg)"};\n        --sb-${e}-lh-lg: ${h?h+y:"inherit"};\n        `,oe=function(e,t,a,i,o,n,r){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";return`--sb-${e}-row-sm: ${a?a+l:"var(--sb-"+e+"-row-md)"};\n        --sb-${e}-row-md: ${i?i+l:"var(--sb-"+e+"-row-lg)"};\n        --sb-${e}-row-lg: ${t?t+l:"20px"};\n        --sb-${e}-column-sm: ${n?n+l:"var(--sb-"+e+"-column-md)"};\n        --sb-${e}-column-md: ${r?r+l:"var(--sb-"+e+"-column-lg)"};\n        --sb-${e}-column-lg: ${o?o+l:"20px"};`},ne=(e,t,a,i,o,n,r,l,s,m,d)=>`--sb-${e}-img-url: ${("imageOrColor"==l?"url("+(t||"")+")":s||"")||"initial"};\n        --sb-${e}-img-attachment: ${a||"scroll"};\n        --sb-${e}-img-size: ${i||"auto"};\n        --sb-${e}-img-position: ${o&&n?100*o+"%"+100*n+"%":"50% 50%"};\n        --sb-${e}-img-repeat: ${r||"repeat"};\n        --sb-${e}-color: ${m||"transparent"};\n        --sb-${e}-overlay-color: ${d||"transparent"};`;(0,o.registerBlockType)("smart-blocks/columns",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{x:"0",y:"0",width:"18",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"21",y:"0",width:"18",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"42",y:"0",width:"18",height:"40","stroke-width":"0"}))),null),supports:{align:["wide","full"],html:!1},category:"smart-blocks-block-modules",attributes:n,title:(0,p.__)("Columns","smart-blocks"),description:(0,p.__)("Display content in multiple columns, with blocks added to each column.","smart-blocks"),keywords:["section","column","row","container"],edit:t=>{let{attributes:a,setAttributes:o,className:r,clientId:p}=t;const{id:g,columns:u,columnsWidth:h,columnsWidthMd:y,columnsWidthSm:b,columnsWidthUnit:v,columnsHTMLTag:T,layout:S,layoutTablet:f,layoutMobile:L,reverseColumnsTablet:M,reverseColumnsMobile:x,hideTablet:E,hideMobile:B,borderNormal:k,borderHover:_,borderNormalColor:H,borderHoverColor:N,borderNormalWidthTop:V,borderNormalWidthLeft:C,borderNormalWidthRight:z,borderNormalWidthBottom:w,borderNormalWidthUnit:R,borderHoverWidthTop:D,borderHoverWidthLeft:U,borderHoverWidthRight:P,borderHoverWidthBottom:I,borderHoverWidthUnit:$,borderNormalRadiusTop:W,borderNormalRadiusLeft:A,borderNormalRadiusRight:O,borderNormalRadiusBottom:G,borderNormalRadiusUnit:j,borderHoverRadiusTop:Z,borderHoverRadiusLeft:q,borderHoverRadiusRight:X,borderHoverRadiusBottom:ae,borderHoverRadiusUnit:ie,sectionBgColor:re,columnsHeight:le,columnsHeightSm:se,columnsHeightMd:me,columnsHeightUnit:de,sbStyle:ce,horizontalAlign:pe,horizontalAlignSm:ge,horizontalAlignMd:ue,columnAlignment:he,columnAlignmentSm:ye,columnAlignmentMd:be,columnsMarginSmTop:ve,columnsMarginSmRight:Te,columnsMarginSmBottom:Se,columnsMarginSmLeft:fe,columnsMarginMdTop:Le,columnsMarginMdRight:Me,columnsMarginMdBottom:xe,columnsMarginMdLeft:Ee,columnsMarginTop:Be,columnsMarginRight:ke,columnsMarginBottom:_e,columnsMarginLeft:He,columnsMarginUnit:Ne,columnsPaddingSmTop:Ve,columnsPaddingSmRight:Ce,columnsPaddingSmBottom:ze,columnsPaddingSmLeft:we,columnsPaddingMdTop:Re,columnsPaddingMdRight:Fe,columnsPaddingMdBottom:De,columnsPaddingMdLeft:Ue,columnsPaddingTop:Pe,columnsPaddingRight:Ie,columnsPaddingBottom:$e,columnsPaddingLeft:We,columnsPaddingUnit:Ae,sectionBgType:Oe,sectionBgImgURL:Ge,sectionBgAttachment:je,sectionBgSize:Ze,sectionBgPositionX:qe,sectionBgPositionY:Ke,sectionBgRepeat:Ye,sectionBgGradient:Xe,sectionBgOverlayColor:Je,borderNormalBoxShadowHorizontal:Qe,borderNormalBoxShadowVertical:et,borderNormalBoxShadowBlur:tt,borderNormalBoxShadowSpread:at,borderNormalBoxShadowColor:it,borderNormalBoxShadowInset:ot,borderHoverBoxShadowHorizontal:nt,borderHoverBoxShadowVertical:rt,borderHoverBoxShadowBlur:lt,borderHoverBoxShadowSpread:st,borderHoverBoxShadowColor:mt,borderHoverBoxShadowInset:dt,sectionContentWidth:ct,columnsGapRow:pt,columnsGapSmRow:gt,columnsGapMdRow:ut,columnsGapColumn:ht,columnsGapSmColumn:yt,columnsGapMdColumn:bt,columnsGapUnit:vt}=a,{updateBlockAttributes:Tt}=(0,e.useDispatch)("core/block-editor");o({id:(0,d.useBlockProps)().id});const St=`#${g} {\n\t\t${ee("columns-width",h,b,y,v)}\n\t\t${ee("columns-horizontal-align",pe,ge,ue,"")}\n\t\t${oe("columns-gap",pt,gt,ut,ht,yt,bt,vt)}\n\t\t${ee("columns-align",he,ye,be,"")}\n\n        ${Q("columns-margin",Be,ke,_e,He,ve,Te,Se,fe,Le,Me,xe,Ee,Ne)}\n    \t${Q("columns-padding",Pe,Ie,$e,We,Ve,Ce,ze,we,Re,Fe,De,Ue,Ae)}\n\n        --sb-columns-border-normal:${k||"0"};\n        --sb-columns-border-hover: ${_?k:"var(--sb-columns-border-normal)"};\n        --sb-columns-border-normal-color: ${H||"initial"};\n        --sb-columns-border-hover-color: ${N||"var(--sb-columns-border-normal-color)"};\n\n        ${J("columns-border-normal-width",V,z,w,C,R)}\n        ${J("columns-border-hover-width",D,P,I,U,$)}\n        ${J("columns-border-normal-radius",W,O,G,A,j)}\n        ${J("columns-border-hover-radius",Z,X,ae,q,ie)}\n\n        ${te("columns-border-normal-box-shadow",Qe,et,tt,at,it,ot,"px")}\n        ${te("columns-border-hover-box-shadow",nt,rt,lt,st,mt,dt,"px")}\n\n        ${ne("columns-bg",Ge,je,Ze,qe,Ke,Ye,Oe,Xe,re,Je)}\n\n\t\t${ee("columns-height",le,se,me,de)}\n    }`;o({sbStyle:St.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const{sectionBlock:ft,isViewportAvailable:Lt,isPreviewDesktop:Mt,isPreviewTablet:xt,isPreviewMobile:Et}=(0,e.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:t(p),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),Bt=(0,m.useViewportMatch)("large",">="),kt=(0,m.useViewportMatch)("large","<="),_t=(0,m.useViewportMatch)("small",">="),Ht=(0,m.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=K(p,n);return()=>e(g)}),[g]);let Nt=Bt&&!kt&&_t&&!Ht,Vt=!Bt&&!kt&&_t&&!Ht,Ct=!(Bt||kt||_t||Ht);Lt&&!Ct&&(Nt=Mt,Vt=xt,Ct=Et);const zt=T,wt=l()(r,`sb-has-${u}-columns`,`sb-has-desktop-${S}-layout`,`sb-has-tablet-${f}-layout`,`sb-has-mobile-${L}-layout`,{"sb-has-reverse-columns-tablet":M&&!E&&"collapsedRows"===f},{"sb-has-reverse-columns-mobile":x&&!B&&"collapsedRows"===L},{"sb-has-viewport-desktop":Nt},{"sb-has-viewport-tablet":Vt},{"sb-has-viewport-mobile":Ct},`sb-has-${ct}-width`);return u?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},ce),(0,i.createElement)(F,{attributes:a,setAttributes:o,updateColumnsWidth:(e,t)=>{ft.innerBlocks.map(((a,i)=>{Tt(a.clientId,{columnWidth:c[e][t][i]})}))}}),(0,i.createElement)(zt,{className:wt,id:g},(0,i.createElement)("div",{className:"wp-block-smart-blocks-columns-wrap"},(0,i.createElement)(d.InnerBlocks,{allowedBlocks:["smart-blocks/column"],template:(Rt=u,(0,s.times)(Rt,(e=>["smart-blocks/column",{columnWidth:c[Rt][S][e]}]))),templateLock:"all"})))):(0,i.createElement)(Y,{clientId:p,setupColumns:(e,t)=>{o(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}});var Rt},save:e=>{let{attributes:t,className:a}=e;const{id:o,columns:n,columnsHTMLTag:r,layout:s,layoutTablet:m,layoutMobile:c,reverseColumnsTablet:p,reverseColumnsMobile:g,hide:u,hideTablet:h,hideMobile:y,sectionContentWidth:b}=t,v=r,T=u?"":`sb-has-desktop-${s}-layout`,S=h?"":`sb-has-tablet-${m}-layout`,f=y?"":`sb-has-mobile-${c}-layout`,L=l()(a,`sb-has-${n}-columns`,T,S,f,{"hide-in-desktop":u},{"hide-in-tablet":h},{"hide-in-mobile":y},{"sb-has-reverse-columns-tablet":p&&!h&&"collapsedRows"===m},{"sb-has-reverse-columns-mobile":g&&!y&&"collapsedRows"===c},`sb-has-${b}-width`,{"sb-is-frontend":!0});return(0,i.createElement)(v,{className:L,id:o},(0,i.createElement)("div",{className:"wp-block-smart-blocks-columns-wrap"},(0,i.createElement)(d.InnerBlocks.Content,null)))}});const re={id:{type:"string"},sbStyle:{type:"string"},columnMarginSmTop:{type:"string"},columnMarginSmLeft:{type:"string"},columnMarginSmRight:{type:"string"},columnMarginSmBottom:{type:"string"},columnMarginMdTop:{type:"string"},columnMarginMdLeft:{type:"string"},columnMarginMdRight:{type:"string"},columnMarginMdBottom:{type:"string"},columnMarginTop:{type:"string"},columnMarginLeft:{type:"string"},columnMarginRight:{type:"string"},columnMarginBottom:{type:"string"},columnMarginUnit:{type:"string",enum:["px","em","%"],default:"px"},columnPaddingSmTop:{type:"string"},columnPaddingSmLeft:{type:"string"},columnPaddingSmRight:{type:"string"},columnPaddingSmBottom:{type:"string"},columnPaddingMdTop:{type:"string"},columnPaddingMdLeft:{type:"string"},columnPaddingMdRight:{type:"string"},columnPaddingMdBottom:{type:"string"},columnPaddingTop:{type:"string"},columnPaddingLeft:{type:"string"},columnPaddingRight:{type:"string"},columnPaddingBottom:{type:"string"},columnPaddingUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"},borderNormal:{type:"string"},borderHover:{type:"string"},borderNormalColor:{type:"string"},borderHoverColor:{type:"string"},columnBgColor:{type:"string"},borderNormalWidthTop:{type:"string"},borderNormalWidthLeft:{type:"string"},borderNormalWidthRight:{type:"string"},borderNormalWidthBottom:{type:"string"},borderNormalWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverWidthTop:{type:"string"},borderHoverWidthLeft:{type:"string"},borderHoverWidthRight:{type:"string"},borderHoverWidthBottom:{type:"string"},borderHoverWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalRadiusTop:{type:"string"},borderNormalRadiusLeft:{type:"string"},borderNormalRadiusRight:{type:"string"},borderNormalRadiusBottom:{type:"string"},borderNormalRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverRadiusTop:{type:"string"},borderHoverRadiusLeft:{type:"string"},borderHoverRadiusRight:{type:"string"},borderHoverRadiusBottom:{type:"string"},borderHoverRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalBoxShadowHorizontal:{type:"string"},borderNormalBoxShadowVertical:{type:"string"},borderNormalBoxShadowBlur:{type:"string"},borderNormalBoxShadowSpread:{type:"string"},borderNormalBoxShadowColor:{type:"string"},borderNormalBoxShadowInset:{type:"string"},borderHoverBoxShadowHorizontal:{type:"string"},borderHoverBoxShadowVertical:{type:"string"},borderHoverBoxShadowBlur:{type:"string"},borderHoverBoxShadowSpread:{type:"string"},borderHoverBoxShadowColor:{type:"string"},borderHoverBoxShadowInset:{type:"string"},columnBgType:{type:"string",default:"imageOrColor",enum:["imageOrColor","gradient"]},columnBgImgURL:{type:"string"},columnBgImageID:{type:"string"},columnBgAttachment:{type:"string",default:"scroll"},columnBgSize:{type:"string",default:"auto"},columnBgPositionX:{type:"string",default:"0.5"},columnBgPositionY:{type:"string",default:"0.5"},columnBgRepeat:{type:"string",default:"repeat"},columnBgGradient:{type:"string"},columnBgOverlayColor:{type:"string"},columnAlignSelf:{type:"string"},columnAlignSelfSm:{type:"string"},columnAlignSelfMd:{type:"string"},columnGapColumn:{type:"string"},columnGapSmColumn:{type:"string",default:20},columnGapMdColumn:{type:"string"},columnGapUnit:{type:"string",enum:["px","em","%"],default:"px"}},le=t=>{let{min:a,max:o,label:n,responsive:r,units:l,unit:s,setUnit:m,gapColumn:d,setGapColumn:c,gapMdColumn:p,setGapMdColumn:g,gapSmColumn:u,setGapSmColumn:h}=t;const[y,b]=(0,i.useState)(!0),v=["Column"],T=l||["px","em","rem"],S=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),L=(e,t)=>{if(r)switch(e){case"setGapColumn":return c(t);case"setGapMdColumn":return g(t);case"setGapSmColumn":return h(t);default:console.error(`Function ${e} not found.`)}else{if("setGapColumn"===e)return c(t);console.error(`Function ${e} not found.`)}},M=(e,t)=>{if(r)switch(e){case"gapColumn":return d;case"gapMdColumn":return p;case"gapSmColumn":return u;default:console.error(`Value of ${e} not found.`)}else{if("gapColumn"===e)return d;console.error(`Value of ${e} not found.`)}},x=()=>{let e;switch(s){case"em":case"vh":case"vw":case"%":e=0;break;default:e=a}return e},E=()=>{let e;switch(s){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=o}return e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-gap "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},n&&(0,i.createElement)("label",{htmlFor:"input"},n),r&&(0,i.createElement)(f,null),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},T.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),v.map(((e,t)=>{L(`setGap${e}`,""),L(`setGapMd${e}`,""),L(`setGapSm${e}`,"")}))}},e))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},T.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),v.map(((e,t)=>{L(`setGap${e}`,"")}))}},e)))))),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},"Desktop"==S&&v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{L(`setGap${e}`,t.target.value)},value:M(`gap${e}`)}),(0,i.createElement)("span",null,e)))),"Tablet"==S&&v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{L(`setGapMd${e}`,t.target.value)},value:M(`gapMd${e}`)}),(0,i.createElement)("span",null,e)))),"Mobile"==S&&v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{L(`setGapSm${e}`,t.target.value)},value:M(`gapSm${e}`)}),(0,i.createElement)("span",null,e))))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{L(`setGap${e}`,t.target.value)},value:M(`gap${e}`)}),(0,i.createElement)("span",null,e)))))))))},se=t=>{let{attributes:a,setAttributes:o,isSelected:n,clientId:r,adjacentBlock:s,parentBlock:m,updateBlockAttributes:c,adjacentBlockClientId:u}=t;const{columnMarginSmTop:h,columnMarginSmRight:y,columnMarginSmBottom:b,columnMarginSmLeft:f,columnMarginMdTop:L,columnMarginMdRight:x,columnMarginMdBottom:k,columnMarginMdLeft:H,columnMarginTop:C,columnMarginRight:z,columnMarginBottom:R,columnMarginLeft:F,columnMarginUnit:D,columnPaddingSmTop:U,columnPaddingSmRight:P,columnPaddingSmBottom:I,columnPaddingSmLeft:$,columnPaddingMdTop:W,columnPaddingMdRight:A,columnPaddingMdBottom:O,columnPaddingMdLeft:G,columnPaddingTop:j,columnPaddingRight:Z,columnPaddingBottom:q,columnPaddingLeft:K,columnPaddingUnit:Y,columnBgType:X,columnBgColor:J,columnBgImgURL:Q,columnBgImgID:ee,columnBgAttachment:te,columnBgSize:ae,columnBgPositionX:ie,columnBgPositionY:oe,columnBgRepeat:ne,columnBgGradient:re,columnBgOverlayColor:se,borderNormal:me,borderHover:de,borderNormalColor:ce,borderHoverColor:pe,borderNormalWidthTop:ge,borderNormalWidthLeft:ue,borderNormalWidthRight:he,borderNormalWidthBottom:ye,borderNormalWidthUnit:be,borderHoverWidthTop:ve,borderHoverWidthLeft:Te,borderHoverWidthRight:Se,borderHoverWidthBottom:fe,borderHoverWidthUnit:Le,borderNormalRadiusTop:Me,borderNormalRadiusLeft:xe,borderNormalRadiusRight:Ee,borderNormalRadiusBottom:Be,borderNormalRadiusUnit:ke,borderHoverRadiusTop:_e,borderHoverRadiusLeft:He,borderHoverRadiusRight:Ne,borderHoverRadiusBottom:Ve,borderHoverRadiusUnit:Ce,borderNormalBoxShadowHorizontal:ze,borderNormalBoxShadowVertical:we,borderNormalBoxShadowBlur:Re,borderNormalBoxShadowSpread:Fe,borderNormalBoxShadowColor:De,borderNormalBoxShadowInset:Ue,borderHoverBoxShadowHorizontal:Pe,borderHoverBoxShadowVertical:Ie,borderHoverBoxShadowBlur:$e,borderHoverBoxShadowSpread:We,borderHoverBoxShadowColor:Ae,borderHoverBoxShadowInset:Oe,columnAlignSelf:Ge,columnAlignSelfSm:je,columnAlignSelfMd:Ze,columnGapColumn:qe,columnGapSmColumn:Ke,columnGapMdColumn:Ye,columnGapUnit:Xe}=a;(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),(0,i.useEffect)((()=>{if(1<m.innerBlocks.length&&!u){const e=m.innerBlocks.findIndex((e=>e.clientId===r)),t=m.innerBlocks[e-1];tt.current=t.clientId,at.current=t.attributes.columnWidth}}),[]),(0,i.useEffect)((()=>{if(1<m.innerBlocks.length)if(u)at.current=s.attributes.columnWidth,tt.current=u,et.current=a.columnWidth;else{const e=m.innerBlocks.findIndex((e=>e.clientId===r)),t=m.innerBlocks[e-1];at.current=t.attributes.columnWidth,tt.current=t.clientId,et.current=a.columnWidth}}),[n,a.columnWidth,m.innerBlocks.length]);const[Je,Qe]=(0,i.useState)("layout"),et=(0,i.useRef)(a.columnWidth),tt=(0,i.useRef)(u&&u),at=(0,i.useRef)(s&&s.attributes.columnWidth);return(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===Je}),onClick:()=>Qe("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===Je}),onClick:()=>Qe("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===Je}),onClick:()=>Qe("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===Je&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Width","smart-blocks"),initialOpen:!1},1<m.innerBlocks.length&&(0,i.createElement)(g.RangeControl,{label:(0,p.__)("Column Width","smart-blocks"),value:Number(a.columnWidth),onChange:e=>{const t=e||10,a=Number(et.current)-t+Number(at.current);et.current=t,at.current=a,o({columnWidth:t.toFixed(2)}),c(tt.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(a.columnWidth)+Number(at.current)-10})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Layout","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,p.__)("Align Self","smart-blocks"),responsive:!0,options:[{value:"start",icon:(0,i.createElement)("i",{class:"sbi-align-start-v"}),label:(0,p.__)("Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-v"}),label:(0,p.__)("Center","smart-blocks")},{value:"end",icon:(0,i.createElement)("i",{class:"sbi-align-end-v"}),label:(0,p.__)("Stretch","smart-blocks")},{value:"srtetch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-v"}),label:(0,p.__)("Stretch","smart-blocks")}],value:Ge,setValue:e=>o({columnAlignSelf:e}),valueSm:je,setValueSm:e=>o({columnAlignSelfSm:e}),valueMd:Ze,setValueMd:e=>o({columnAlignSelfMd:e})}),(0,i.createElement)(le,{label:(0,p.__)("Gaps","smart-blocks"),min:"0",max:"100",responsive:!0,gapColumn:qe,setGapColumn:e=>o({columnGapColumn:e}),gapMdColumn:Ye,setGapMdColumn:e=>o({columnGapMdColumn:e}),gapSmColumn:Ke,setGapSmColumn:e=>o({columnGapSmColumn:e}),unit:Xe,setUnit:e=>o({columnGapUnit:e})})))||"style"===Je&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:C,setDimensionTop:e=>o({columnMarginTop:e}),dimensionMdTop:L,setDimensionMdTop:e=>o({columnMarginMdTop:e}),dimensionSmTop:h,setDimensionSmTop:e=>o({columnMarginSmTop:e}),dimensionLeft:F,setDimensionLeft:e=>o({columnMarginLeft:e}),dimensionMdLeft:H,setDimensionMdLeft:e=>o({columnMarginMdLeft:e}),dimensionSmLeft:f,setDimensionSmLeft:e=>o({columnMarginSmLeft:e}),dimensionRight:z,setDimensionRight:e=>o({columnMarginRight:e}),dimensionMdRight:x,setDimensionMdRight:e=>o({columnMarginMdRight:e}),dimensionSmRight:y,setDimensionSmRight:e=>o({columnMarginSmRight:e}),dimensionBottom:R,setDimensionBottom:e=>o({columnMarginBottom:e}),dimensionMdBottom:k,setDimensionMdBottom:e=>o({columnMarginMdBottom:e}),dimensionSmBottom:b,setDimensionSmBottom:e=>o({columnMarginSmBottom:e}),unit:D,setUnit:e=>o({columnMarginUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:j,setDimensionTop:e=>o({columnPaddingTop:e}),dimensionMdTop:W,setDimensionMdTop:e=>o({columnPaddingMdTop:e}),dimensionSmTop:U,setDimensionSmTop:e=>o({columnPaddingSmTop:e}),dimensionLeft:K,setDimensionLeft:e=>o({columnPaddingLeft:e}),dimensionMdLeft:G,setDimensionMdLeft:e=>o({columnPaddingMdLeft:e}),dimensionSmLeft:$,setDimensionSmLeft:e=>o({columnPaddingSmLeft:e}),dimensionRight:Z,setDimensionRight:e=>o({columnPaddingRight:e}),dimensionMdRight:A,setDimensionMdRight:e=>o({columnPaddingMdRight:e}),dimensionSmRight:P,setDimensionSmRight:e=>o({columnPaddingSmRight:e}),dimensionBottom:q,setDimensionBottom:e=>o({columnPaddingBottom:e}),dimensionMdBottom:O,setDimensionMdBottom:e=>o({columnPaddingMdBottom:e}),dimensionSmBottom:I,setDimensionSmBottom:e=>o({columnPaddingSmBottom:e}),unit:Y,setUnit:e=>o({columnPaddingUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:me,setValue:e=>o({borderNormal:e})}),me&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ce,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:ge,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ue,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:he,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ye,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:be,setUnit:e=>o({borderNormalWidthUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Me,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:xe,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ee,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Be,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ke,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ze,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:we,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Re,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Fe,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:De,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ue,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:de,setValue:e=>o({borderHover:e})}),de&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:pe,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:ve,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Te,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Se,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:fe,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Le,setUnit:e=>o({borderHoverWidthUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:_e,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:He,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ne,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ve,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ce,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Pe,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ie,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:$e,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:We,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ae,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Oe,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Image/Color","smart-blocks")},(0,i.createElement)("button",{className:("imageOrColor"===X?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"imageOrColor"})},(0,p.__)("Image/Color","smart-blocks"))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Gradient","smart-blocks")},(0,i.createElement)("button",{className:("gradient"===X?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"gradient"})},(0,p.__)("Gradient","smart-blocks")))),(0,i.createElement)("div",{className:"sb-field-tab-items"},"imageOrColor"===X&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:J,setValue:e=>o({columnBgColor:e})}),(0,i.createElement)(_,{label:(0,p.__)("Background Image","smart-blocks"),imageURL:Q,setImageURL:e=>o({columnBgImgURL:e}),imageID:ee,setImageID:e=>o({columnBgImgID:e}),imageAttachment:te,setImageAttachment:e=>o({columnBgAttachment:e}),imageSize:ae,setImageSize:e=>o({columnBgSize:e}),imagePositionX:ie,setImagePositionX:e=>o({columnBgPositionX:e}),imagePositionY:oe,setImagePositionY:e=>o({columnBgPositionY:e}),imageRepeat:ne,setImageRepeat:e=>o({columnBgRepeat:e}),imageOverlayColor:se,setImageOverlayColor:e=>o({columnBgOverlayColor:e})}))||"gradient"===X&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.GradientPicker,{label:(0,p.__)("Background Gradient","smart-blocks"),value:re,onChange:e=>o({columnBgGradient:e})}))))))||"advanced"===Je&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Section Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(g.SelectControl,{label:(0,p.__)("HTML Tag","smart-blocks"),value:a.columnsHTMLTag,options:[{label:(0,p.__)("Default (div)","smart-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>{o({columnsHTMLTag:e})}}))))))};(0,o.registerBlockType)("smart-blocks/column",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{x:"0",y:"0",width:"18",height:"40","stroke-width":"0",opacity:"0.4"}),(0,i.createElement)("rect",{x:"21",y:"0",width:"18",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"42",y:"0",width:"18",height:"40","stroke-width":"0",opacity:"0.4"}))),null),supports:{inserter:!1,reusable:!1,html:!1},category:"smart-blocks-block-modules",attributes:re,title:(0,p.__)("Column","smart-blocks"),description:(0,p.__)("A single column within a columns block.","smart-blocks"),parent:["smart-blocks/columns"],keywords:["column"],edit:function(t){let{attributes:a,setAttributes:o,className:n,isSelected:r,clientId:s,toggleSelection:p}=t;const{updateBlockAttributes:u}=(0,e.useDispatch)("core/block-editor"),{id:h,columnWidth:y,columnsHTMLTag:b,columnMarginSmTop:v,columnMarginSmRight:T,columnMarginSmBottom:S,columnMarginSmLeft:f,columnMarginMdTop:L,columnMarginMdRight:M,columnMarginMdBottom:x,columnMarginMdLeft:E,columnMarginTop:B,columnMarginRight:k,columnMarginBottom:_,columnMarginLeft:H,columnMarginUnit:N,columnPaddingSmTop:V,columnPaddingSmRight:C,columnPaddingSmBottom:z,columnPaddingSmLeft:w,columnPaddingMdTop:R,columnPaddingMdRight:F,columnPaddingMdBottom:D,columnPaddingMdLeft:U,columnPaddingTop:P,columnPaddingRight:I,columnPaddingBottom:$,columnPaddingLeft:W,columnPaddingUnit:A,sbStyle:O,columnBgColor:G,columnBgType:j,columnBgImgURL:Z,columnBgAttachment:q,columnBgSize:Y,columnBgPositionX:X,columnBgPositionY:ae,columnBgRepeat:ie,columnBgGradient:oe,columnBgOverlayColor:le,borderNormal:me,borderHover:de,borderNormalColor:ce,borderHoverColor:pe,borderNormalWidthTop:ge,borderNormalWidthLeft:ue,borderNormalWidthRight:he,borderNormalWidthBottom:ye,borderNormalWidthUnit:be,borderHoverWidthTop:ve,borderHoverWidthLeft:Te,borderHoverWidthRight:Se,borderHoverWidthBottom:fe,borderHoverWidthUnit:Le,borderNormalRadiusTop:Me,borderNormalRadiusLeft:xe,borderNormalRadiusRight:Ee,borderNormalRadiusBottom:Be,borderNormalRadiusUnit:ke,borderHoverRadiusTop:_e,borderHoverRadiusLeft:He,borderHoverRadiusRight:Ne,borderHoverRadiusBottom:Ve,borderHoverRadiusUnit:Ce,borderNormalBoxShadowHorizontal:ze,borderNormalBoxShadowVertical:we,borderNormalBoxShadowBlur:Re,borderNormalBoxShadowSpread:Fe,borderNormalBoxShadowColor:De,borderNormalBoxShadowInset:Ue,borderHoverBoxShadowHorizontal:Pe,borderHoverBoxShadowVertical:Ie,borderHoverBoxShadowBlur:$e,borderHoverBoxShadowSpread:We,borderHoverBoxShadowColor:Ae,borderHoverBoxShadowInset:Oe,columnAlignSelf:Ge,columnAlignSelfSm:je,columnAlignSelfMd:Ze,columnGapColumn:qe,columnGapSmColumn:Ke,columnGapMdColumn:Ye,columnGapUnit:Xe}=a;o({id:(0,d.useBlockProps)().id});const Je=`#${h} {\n        ${"--sb-column-width: "+y+"%;"}\n    \t${Q("column-margin",B,k,_,H,v,T,S,f,L,M,x,E,N)}\n    \t${Q("column-padding",P,I,$,W,V,C,z,w,R,F,D,U,A)}\n\t\t\n\t\t--sb-column-border-normal:${me||"0"};\n        --sb-column-border-hover: ${de?me:"var(--sb-column-border-normal)"};\n        --sb-column-border-normal-color: ${ce||"initial"};\n        --sb-column-border-hover-color: ${pe||"var(--sb-column-border-normal-color)"};\n\n        ${J("column-border-normal-width",ge,he,ye,ue,be)}\n        ${J("column-border-hover-width",ve,Se,fe,Te,Le)}\n        ${J("column-border-normal-radius",Me,Ee,Be,xe,ke)}\n        ${J("column-border-hover-radius",_e,Ne,Ve,He,Ce)}\n\n        ${te("column-border-normal-box-shadow",ze,we,Re,Fe,De,Ue,"px")}\n        ${te("column-border-hover-box-shadow",Pe,Ie,$e,We,Ae,Oe,"px")}\n\n        ${ne("column-bg",Z,q,Y,X,ae,ie,j,oe,G,le)}\n\n        ${ee("column-align-self",Ge,je,Ze)}\n\t\t${function(e,t,a,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return`--sb-${e}-column-sm: ${a?a+o:"var(--sb-"+e+"-column-md)"};\n        --sb-${e}-column-md: ${i?i+o:"var(--sb-"+e+"-column-lg)"};\n        --sb-${e}-column-lg: ${t?t+o:"20px"};`}("column-gap",qe,Ke,Ye,Xe)}\n    }`;o({sbStyle:Je.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const{adjacentBlockClientId:Qe,adjacentBlock:et,parentClientId:tt,parentBlock:at,hasInnerBlocks:it,isViewportAvailable:ot,isPreviewDesktop:nt,isPreviewTablet:rt,isPreviewMobile:lt}=(0,e.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:a,getBlockRootClientId:i}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post"),n=a(s),r=t(s),l=a(r),m=i(s);return{adjacentBlockClientId:r,adjacentBlock:l,parentClientId:m,parentBlock:a(m),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!o,isPreviewDesktop:!!o&&"Desktop"===o(),isPreviewTablet:!!o&&"Tablet"===o(),isPreviewMobile:!!o&&"Mobile"===o()}}),[]),st=(0,m.useViewportMatch)("large",">="),mt=(0,m.useViewportMatch)("large","<="),dt=(0,m.useViewportMatch)("small",">="),ct=(0,m.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=K(s,re);return()=>e(h)}),[h]);const[pt,gt]=(0,i.useState)(0),[ut,ht]=(0,i.useState)(0);let yt=st&&!mt&&dt&&!ct,bt=!st&&!mt&&dt&&!ct,vt=!(st||mt||dt||ct);ot&&!vt&&(yt=nt,bt=rt,vt=lt),void 0===y&&at.innerBlocks.map(((e,t)=>{if(s===e.clientId){const e=at.attributes.columns,a=at.attributes.layout;u(s,{columnWidth:c[e][a][t]})}}));const Tt=b,St=l()(n);return(0,i.createElement)("div",(0,d.useBlockProps)(),(0,i.createElement)("style",{jsx:!0},O),(0,i.createElement)(se,{attributes:a,setAttributes:o,isSelected:r,clientId:s,adjacentBlock:et,parentBlock:at,updateBlockAttributes:u,adjacentBlockClientId:Qe}),(0,i.createElement)(g.ResizableBox,{className:"block-library-spacer__resize-container sb-column-resize-container",enable:{right:!!Qe},handleWrapperClass:"sb-column-resize-container-handle",onResizeStart:()=>{gt(y),ht(et.attributes.columnWidth),p(!1)},onResize:(e,t,a,i)=>{const n=document.getElementById(`block-${tt}`).getBoundingClientRect().width,r=i.width/n*100,l=parseFloat(pt)+r,s=ut-r;10<=l&&10<=s&&(o({columnWidth:l.toFixed(2)}),u(Qe,{columnWidth:s.toFixed(2)}))},onResizeStop:()=>{p(!0)}},(0,i.createElement)(Tt,{className:St,id:h},(0,i.createElement)(d.InnerBlocks,{templateLock:!1,renderAppender:!it&&d.InnerBlocks.ButtonBlockAppender}))))},save:e=>{let{attributes:t,className:a}=e;const{id:o,columnsHTMLTag:n}=t,r=l()(a),s=n;return(0,i.createElement)(s,{className:r,id:o},(0,i.createElement)(d.InnerBlocks.Content,null))}});const me=e=>{let{label:t,value:a,setValue:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-text sb-display-inline"},t&&(0,i.createElement)("label",null,t),(0,i.createElement)("div",{class:"sb-field-child"},(0,i.createElement)(g.TextControl,{value:a,onChange:o}))))},de=t=>{const{attributes:a,setAttributes:o}=t,{enableSticky:n,stickyOffsetTop:r,stickyOffsetTopSm:s,stickyOffsetTopMd:m,stickyOffsetTopUnit:c,columnMarginSmTop:u,columnMarginSmRight:h,columnMarginSmBottom:y,columnMarginSmLeft:b,columnMarginMdTop:f,columnMarginMdRight:L,columnMarginMdBottom:H,columnMarginMdLeft:F,columnMarginTop:D,columnMarginRight:U,columnMarginBottom:P,columnMarginLeft:I,columnMarginUnit:$,columnPaddingSmTop:W,columnPaddingSmRight:A,columnPaddingSmBottom:O,columnPaddingSmLeft:G,columnPaddingMdTop:j,columnPaddingMdRight:Z,columnPaddingMdBottom:q,columnPaddingMdLeft:K,columnPaddingTop:Y,columnPaddingRight:X,columnPaddingBottom:J,columnPaddingLeft:Q,columnPaddingUnit:ee,columnBgType:te,columnBgColor:ae,columnBgImgURL:ie,columnBgImgID:oe,columnBgAttachment:ne,columnBgSize:re,columnBgPositionX:le,columnBgPositionY:se,columnBgRepeat:de,columnBgGradient:ce,columnBgOverlayColor:pe,borderNormal:ge,borderHover:ue,borderNormalColor:he,borderHoverColor:ye,borderNormalWidthTop:be,borderNormalWidthLeft:ve,borderNormalWidthRight:Te,borderNormalWidthBottom:Se,borderNormalWidthUnit:fe,borderHoverWidthTop:Le,borderHoverWidthLeft:Me,borderHoverWidthRight:xe,borderHoverWidthBottom:Ee,borderHoverWidthUnit:Be,borderNormalRadiusTop:ke,borderNormalRadiusLeft:_e,borderNormalRadiusRight:He,borderNormalRadiusBottom:Ne,borderNormalRadiusUnit:Ve,borderHoverRadiusTop:Ce,borderHoverRadiusLeft:ze,borderHoverRadiusRight:we,borderHoverRadiusBottom:Re,borderHoverRadiusUnit:Fe,borderNormalBoxShadowHorizontal:De,borderNormalBoxShadowVertical:Ue,borderNormalBoxShadowBlur:Pe,borderNormalBoxShadowSpread:Ie,borderNormalBoxShadowColor:$e,borderNormalBoxShadowInset:We,borderHoverBoxShadowHorizontal:Ae,borderHoverBoxShadowVertical:Oe,borderHoverBoxShadowBlur:Ge,borderHoverBoxShadowSpread:je,borderHoverBoxShadowColor:Ze,borderHoverBoxShadowInset:qe,flexibleContentDisplay:Ke,flexDirection:Ye,flexDirectionSm:Xe,flexDirectionMd:Je,containerWidthEnable:Qe,containerWidth:et,containerWidthSm:tt,containerWidthMd:at,containerWidthUnit:it,justifyContent:ot,justifyContentSm:nt,justifyContentMd:rt,justifyItems:lt,justifyItemsSm:st,justifyItemsMd:mt,alignItems:dt,alignItemsSm:ct,alignItemsMd:pt,containerWrap:gt,containerWrapSm:ut,containerWrapMd:ht,containerGapRow:yt,containerGapSmRow:bt,containerGapMdRow:vt,containerGapColumn:Tt,containerGapSmColumn:St,containerGapMdColumn:ft,containerGapUnit:Lt,gridColumnNumber:Mt,gridColumnNumberSm:xt,gridColumnNumberMd:Et,hrefLinkURL:Bt,columnsHTMLTag:kt}=a,[_t,Ht]=(0,i.useState)("layout");return(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===_t}),onClick:()=>Ht("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===_t}),onClick:()=>Ht("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===_t}),onClick:()=>Ht("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===_t&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Sticky Options","smart-blocks"),initialOpen:!1},(0,i.createElement)(z,{label:(0,p.__)("Enable Sticky","smart-blocks"),checked:n,onChange:()=>o({enableSticky:!n})}),n&&(0,i.createElement)(x,{label:(0,p.__)("Sticky Offset","smart-blocks"),min:0,max:300,responsive:!1,value:r,setValue:e=>o({stickyOffsetTop:e}),useUnit:!0,units:["px"],unit:c,setUnit:e=>o({stickyOffsetTopUnit:e})}),(0,i.createElement)("p",{className:"sb-inspector-help-text"},(0,p.__)("Container Should be inside column for sticky","smart-blocks"))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Flexible Content Options","smart-blocks"),initialOpen:!1},(0,i.createElement)(z,{label:(0,p.__)("Set Width","smart-blocks"),checked:Qe,onChange:()=>o({containerWidthEnable:!Qe})}),Qe&&(0,i.createElement)(x,{label:(0,p.__)("Container Width","smart-blocks"),min:0,max:2e3,responsive:!0,value:et,setValue:e=>o({containerWidth:e}),valueSm:tt,setValueSm:e=>o({containerWidthSm:e}),valueMd:at,setValueMd:e=>o({containerWidthMd:e}),useUnit:!0,unit:it,setUnit:e=>o({containerWidthUnit:e})}),(0,i.createElement)("div",{className:"sb-inspect-tabs"},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Flex","smart-blocks")},(0,i.createElement)("button",{className:(Ke&&"flex"!==Ke?"":"active-tab")+" components-button sb-tab-menu",onClick:()=>o({flexibleContentDisplay:"flex"})},(0,p.__)("Flex","smart-blocks"))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Grid","smart-blocks")},(0,i.createElement)("button",{className:("grid"===Ke?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({flexibleContentDisplay:"grid"})},(0,p.__)("Grid","smart-blocks"))))),(!Ke||"flex"===Ke)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(E,{label:(0,p.__)("Direction","smart-blocks"),responsive:!0,options:[{value:"row",icon:(0,i.createElement)("i",{class:"sbi-arrow-right"}),label:(0,p.__)("Right","smart-blocks")},{value:"column",icon:(0,i.createElement)("i",{class:"sbi-arrow-down"}),label:(0,p.__)("Bottom","smart-blocks")},{value:"row-reverse",icon:(0,i.createElement)("i",{class:"sbi-arrow-left"}),label:(0,p.__)("Left","smart-blocks")},{value:"column-reverse",icon:(0,i.createElement)("i",{class:"sbi-arrow-up"}),label:(0,p.__)("Top","smart-blocks")}],value:Ye,setValue:e=>o({flexDirection:e}),valueSm:Xe,setValueSm:e=>o({flexDirectionSm:e}),valueMd:Je,setValueMd:e=>o({flexDirectionMd:e})}),(0,i.createElement)(E,{label:(0,p.__)("Container Wrap","smart-blocks"),responsive:!0,options:[{value:"nowrap",icon:(0,i.createElement)("i",{class:"sbi-arrow-right"}),label:(0,p.__)("No Wrap","smart-blocks")},{value:"wrap",icon:(0,i.createElement)("i",{class:"sbi-wrap"}),label:(0,p.__)("Wrap","smart-blocks")}],value:gt,setValue:e=>o({containerWrap:e}),valueSm:ut,setValueSm:e=>o({containerWrapSm:e}),valueMd:ht,setValueMd:e=>o({containerWrapMd:e})})),"grid"===Ke&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(x,{label:(0,p.__)("Column Number","smart-blocks"),min:1,max:8,responsive:!0,value:Mt,setValue:e=>o({gridColumnNumber:e}),valueSm:xt,setValueSm:e=>o({gridColumnNumberSm:e}),valueMd:Et,setValueMd:e=>o({gridColumnNumberMd:e})})),(0,i.createElement)(E,{label:(0,p.__)("Align Items","smart-blocks"),responsive:!0,options:[{value:"flex-start",icon:(0,i.createElement)("i",{class:"sbi-align-start-v"}),label:(0,p.__)("Flex Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-v"}),label:(0,p.__)("Center","smart-blocks")},{value:"flex-end",icon:(0,i.createElement)("i",{class:"sbi-align-end-v"}),label:(0,p.__)("Flex End","smart-blocks")},{value:"stretch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-v"}),label:(0,p.__)("Stretch","smart-blocks")}],value:dt,setValue:e=>o({alignItems:e}),valueSm:ct,setValueSm:e=>o({alignItemsSm:e}),valueMd:pt,setValueMd:e=>o({alignItemsMd:e})}),"flex"===Ke&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(E,{label:(0,p.__)("Justify Content","smart-blocks"),responsive:!0,options:[{value:"flex-start",icon:(0,i.createElement)("i",{class:"sbi-justify-start-h"}),label:(0,p.__)("Flex Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-justify-center-h"}),label:(0,p.__)("Center","smart-blocks")},{value:"flex-end",icon:(0,i.createElement)("i",{class:"sbi-justify-end-h"}),label:(0,p.__)("Flex End","smart-blocks")},{value:"space-between",icon:(0,i.createElement)("i",{class:"sbi-justify-space-between-h"}),label:(0,p.__)("Space Between","smart-blocks")},{value:"space-around",icon:(0,i.createElement)("i",{class:"sbi-justify-space-around-h"}),label:(0,p.__)("Space Around","smart-blocks")},{value:"space-evenly",icon:(0,i.createElement)("i",{class:"sbi-justify-space-evenly-h"}),label:(0,p.__)("Space Evenly","smart-blocks")}],value:ot,setValue:e=>o({justifyContent:e}),valueSm:nt,setValueSm:e=>o({justifyContentSm:e}),valueMd:rt,setValueMd:e=>o({justifyContentMd:e})})),"grid"===Ke&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(E,{label:(0,p.__)("Justify Items","smart-blocks"),responsive:!0,options:[{value:"start",icon:(0,i.createElement)("i",{class:"sbi-align-start-h"}),label:(0,p.__)("Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-h"}),label:(0,p.__)("Center","smart-blocks")},{value:"end",icon:(0,i.createElement)("i",{class:"sbi-align-end-h"}),label:(0,p.__)("Stretch","smart-blocks")},{value:"srtetch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-h"}),label:(0,p.__)("Stretch","smart-blocks")}],value:lt,setValue:e=>o({justifyItems:e}),valueSm:st,setValueSm:e=>o({justifyItemsSm:e}),valueMd:mt,setValueMd:e=>o({justifyItemsMd:e})})),(0,i.createElement)(C,{label:(0,p.__)("Gaps","smart-blocks"),min:"0",max:"100",responsive:!0,gapColumn:Tt,setGapColumn:e=>o({containerGapColumn:e}),gapMdColumn:ft,setGapMdColumn:e=>o({containerGapMdColumn:e}),gapSmColumn:St,setGapSmColumn:e=>o({containerGapSmColumn:e}),gapRow:yt,setGapRow:e=>o({containerGapRow:e}),gapMdRow:vt,setGapMdRow:e=>o({containerGapMdRow:e}),gapSmRow:bt,setGapSmRow:e=>o({containerGapSmRow:e}),unit:Lt,setUnit:e=>o({containerGapUnit:e})})))||"style"===_t&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:D,setDimensionTop:e=>o({columnMarginTop:e}),dimensionMdTop:f,setDimensionMdTop:e=>o({columnMarginMdTop:e}),dimensionSmTop:u,setDimensionSmTop:e=>o({columnMarginSmTop:e}),dimensionLeft:I,setDimensionLeft:e=>o({columnMarginLeft:e}),dimensionMdLeft:F,setDimensionMdLeft:e=>o({columnMarginMdLeft:e}),dimensionSmLeft:b,setDimensionSmLeft:e=>o({columnMarginSmLeft:e}),dimensionRight:U,setDimensionRight:e=>o({columnMarginRight:e}),dimensionMdRight:L,setDimensionMdRight:e=>o({columnMarginMdRight:e}),dimensionSmRight:h,setDimensionSmRight:e=>o({columnMarginSmRight:e}),dimensionBottom:P,setDimensionBottom:e=>o({columnMarginBottom:e}),dimensionMdBottom:H,setDimensionMdBottom:e=>o({columnMarginMdBottom:e}),dimensionSmBottom:y,setDimensionSmBottom:e=>o({columnMarginSmBottom:e}),unit:$,setUnit:e=>o({columnMarginUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:Y,setDimensionTop:e=>o({columnPaddingTop:e}),dimensionMdTop:j,setDimensionMdTop:e=>o({columnPaddingMdTop:e}),dimensionSmTop:W,setDimensionSmTop:e=>o({columnPaddingSmTop:e}),dimensionLeft:Q,setDimensionLeft:e=>o({columnPaddingLeft:e}),dimensionMdLeft:K,setDimensionMdLeft:e=>o({columnPaddingMdLeft:e}),dimensionSmLeft:G,setDimensionSmLeft:e=>o({columnPaddingSmLeft:e}),dimensionRight:X,setDimensionRight:e=>o({columnPaddingRight:e}),dimensionMdRight:Z,setDimensionMdRight:e=>o({columnPaddingMdRight:e}),dimensionSmRight:A,setDimensionSmRight:e=>o({columnPaddingSmRight:e}),dimensionBottom:J,setDimensionBottom:e=>o({columnPaddingBottom:e}),dimensionMdBottom:q,setDimensionMdBottom:e=>o({columnPaddingMdBottom:e}),dimensionSmBottom:O,setDimensionSmBottom:e=>o({columnPaddingSmBottom:e}),unit:ee,setUnit:e=>o({columnPaddingUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:ge,setValue:e=>o({borderNormal:e})}),ge&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:he,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:be,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ve,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Te,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Se,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:fe,setUnit:e=>o({borderNormalWidthUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ke,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:_e,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:He,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ne,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ve,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:De,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Ue,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Pe,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ie,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:$e,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:We,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:ue,setValue:e=>o({borderHover:e})}),ue&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ye,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:Le,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Me,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:xe,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Ee,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Be,setUnit:e=>o({borderHoverWidthUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Ce,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ze,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:we,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Re,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Fe,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ae,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Oe,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ge,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:je,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ze,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:qe,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Image/Color","smart-blocks")},(0,i.createElement)("button",{className:("imageOrColor"===te?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"imageOrColor"})},(0,p.__)("Image/Color","smart-blocks"))),(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Gradient","smart-blocks")},(0,i.createElement)("button",{className:("gradient"===te?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"gradient"})},(0,p.__)("Gradient","smart-blocks")))),(0,i.createElement)("div",{className:"sb-field-tab-items"},"imageOrColor"===te&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ae,setValue:e=>o({columnBgColor:e})}),(0,i.createElement)(_,{label:(0,p.__)("Background Image","smart-blocks"),imageURL:ie,setImageURL:e=>o({columnBgImgURL:e}),imageID:oe,setImageID:e=>o({columnBgImgID:e}),imageAttachment:ne,setImageAttachment:e=>o({columnBgAttachment:e}),imageSize:re,setImageSize:e=>o({columnBgSize:e}),imagePositionX:le,setImagePositionX:e=>o({columnBgPositionX:e}),imagePositionY:se,setImagePositionY:e=>o({columnBgPositionY:e}),imageRepeat:de,setImageRepeat:e=>o({columnBgRepeat:e}),imageOverlayColor:pe,setImageOverlayColor:e=>o({columnBgOverlayColor:e})}))||"gradient"===te&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.GradientPicker,{label:(0,p.__)("Background Gradient","smart-blocks"),value:ce,onChange:e=>o({columnBgGradient:e})}))))))||"advanced"===_t&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Section Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("HTML Tag","smart-blocks"),value:kt,options:[{label:(0,p.__)("Default (div)","smart-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"},{label:"anchor link",value:"a"}],onChange:e=>o({columnsHTMLTag:e}),inline:!1}),"a"==kt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(me,{label:(0,p.__)("Link URL","smart-blocks"),type:"text",value:Bt,setValue:e=>o({hrefLinkURL:e})}),(0,i.createElement)("p",{className:"sb-inspector-help-text"},(0,p.__)("The contents inside the container should not have any anchort link inorder to work properly.","smart-blocks")))),(0,R.applyFilters)("smartblocks.blockTools","",t)))))};(0,o.registerBlockType)("smart-blocks/container",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40"}))),null),supports:{align:["wide","full"],html:!1},category:"smart-blocks-block-modules",attributes:{id:{type:"string"},enableSticky:{type:"boolean",default:!1},stickyOffsetTop:{type:"string",default:0},stickyOffsetTopUnit:{type:"string",enum:["px"],default:"px"},sbStyle:{type:"string"},columnMarginSmTop:{type:"string"},columnMarginSmLeft:{type:"string"},columnMarginSmRight:{type:"string"},columnMarginSmBottom:{type:"string"},columnMarginMdTop:{type:"string"},columnMarginMdLeft:{type:"string"},columnMarginMdRight:{type:"string"},columnMarginMdBottom:{type:"string"},columnMarginTop:{type:"string"},columnMarginLeft:{type:"string"},columnMarginRight:{type:"string"},columnMarginBottom:{type:"string"},columnMarginUnit:{type:"string",enum:["px","em","%"],default:"px"},columnPaddingSmTop:{type:"string"},columnPaddingSmLeft:{type:"string"},columnPaddingSmRight:{type:"string"},columnPaddingSmBottom:{type:"string"},columnPaddingMdTop:{type:"string"},columnPaddingMdLeft:{type:"string"},columnPaddingMdRight:{type:"string"},columnPaddingMdBottom:{type:"string"},columnPaddingTop:{type:"string"},columnPaddingLeft:{type:"string"},columnPaddingRight:{type:"string"},columnPaddingBottom:{type:"string"},columnPaddingUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsHTMLTag:{type:"string",default:"div"},borderNormal:{type:"string"},borderHover:{type:"string"},borderNormalColor:{type:"string"},borderHoverColor:{type:"string"},columnBgColor:{type:"string"},borderNormalWidthTop:{type:"string"},borderNormalWidthLeft:{type:"string"},borderNormalWidthRight:{type:"string"},borderNormalWidthBottom:{type:"string"},borderNormalWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverWidthTop:{type:"string"},borderHoverWidthLeft:{type:"string"},borderHoverWidthRight:{type:"string"},borderHoverWidthBottom:{type:"string"},borderHoverWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalRadiusTop:{type:"string"},borderNormalRadiusLeft:{type:"string"},borderNormalRadiusRight:{type:"string"},borderNormalRadiusBottom:{type:"string"},borderNormalRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverRadiusTop:{type:"string"},borderHoverRadiusLeft:{type:"string"},borderHoverRadiusRight:{type:"string"},borderHoverRadiusBottom:{type:"string"},borderHoverRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalBoxShadowHorizontal:{type:"string"},borderNormalBoxShadowVertical:{type:"string"},borderNormalBoxShadowBlur:{type:"string"},borderNormalBoxShadowSpread:{type:"string"},borderNormalBoxShadowColor:{type:"string"},borderNormalBoxShadowInset:{type:"string"},borderHoverBoxShadowHorizontal:{type:"string"},borderHoverBoxShadowVertical:{type:"string"},borderHoverBoxShadowBlur:{type:"string"},borderHoverBoxShadowSpread:{type:"string"},borderHoverBoxShadowColor:{type:"string"},borderHoverBoxShadowInset:{type:"string"},columnBgType:{type:"string",default:"imageOrColor",enum:["imageOrColor","gradient"]},columnBgImgURL:{type:"string"},columnBgImageID:{type:"string"},columnBgAttachment:{type:"string",default:"scroll"},columnBgSize:{type:"string",default:"auto"},columnBgPositionX:{type:"string",default:"0.5"},columnBgPositionY:{type:"string",default:"0.5"},columnBgRepeat:{type:"string",default:"repeat"},columnBgGradient:{type:"string"},columnBgOverlayColor:{type:"string"},columnAlignSelf:{type:"string"},columnAlignSelfSm:{type:"string"},columnAlignSelfMd:{type:"string"},flexibleContentDisplay:{type:"string",default:"flex",enum:["flex","grid"]},flexDirection:{type:"string"},flexDirectionSm:{type:"string"},flexDirectionMd:{type:"string"},containerWidthEnable:{type:"boolean"},containerWidth:{type:"string"},containerWidthSm:{type:"string"},containerWidthMd:{type:"string"},containerWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},justifyContent:{type:"string"},justifyContentSm:{type:"string"},justifyContentMd:{type:"string"},justifyItems:{type:"string"},justifyItemsSm:{type:"string"},justifyItemsMd:{type:"string"},alignItems:{type:"string"},alignItemsSm:{type:"string"},alignItemsMd:{type:"string"},containerGapRow:{type:"string"},containerGapSmRow:{type:"string"},containerGapMdRow:{type:"string"},containerGapColumn:{type:"string"},containerGapSmColumn:{type:"string",default:20},containerGapMdColumn:{type:"string"},containerGapUnit:{type:"string",enum:["px","em","%"],default:"px"},containerWrap:{type:"string"},containerWrapSm:{type:"string"},containerWrapMd:{type:"string"},gridColumnNumber:{type:"string",default:"3"},gridColumnNumberSm:{type:"string"},gridColumnNumberMd:{type:"string"},hrefLinkURL:{type:"string"}},title:(0,p.__)("Container","smart-blocks"),description:(0,p.__)("Display container wrapper for elements","smart-blocks"),keywords:["section","column","row","container"],edit:function(t){let{attributes:a,setAttributes:o,clientId:n,className:r}=t;const{id:s,enableSticky:m,stickyOffsetTop:c,stickyOffsetTopUnit:p,columnsHTMLTag:g,columnMarginSmTop:u,columnMarginSmRight:h,columnMarginSmBottom:y,columnMarginSmLeft:b,columnMarginMdTop:v,columnMarginMdRight:T,columnMarginMdBottom:S,columnMarginMdLeft:f,columnMarginTop:L,columnMarginRight:M,columnMarginBottom:x,columnMarginLeft:E,columnMarginUnit:B,columnPaddingSmTop:k,columnPaddingSmRight:_,columnPaddingSmBottom:H,columnPaddingSmLeft:N,columnPaddingMdTop:V,columnPaddingMdRight:C,columnPaddingMdBottom:z,columnPaddingMdLeft:w,columnPaddingTop:R,columnPaddingRight:F,columnPaddingBottom:D,columnPaddingLeft:U,columnPaddingUnit:P,sbStyle:I,columnBgColor:$,columnBgType:W,columnBgImgURL:A,columnBgAttachment:O,columnBgSize:G,columnBgPositionX:j,columnBgPositionY:Z,columnBgRepeat:q,columnBgGradient:K,columnBgOverlayColor:Y,borderNormal:X,borderHover:ae,borderNormalColor:ie,borderHoverColor:re,borderNormalWidthTop:le,borderNormalWidthLeft:se,borderNormalWidthRight:me,borderNormalWidthBottom:ce,borderNormalWidthUnit:pe,borderHoverWidthTop:ge,borderHoverWidthLeft:ue,borderHoverWidthRight:he,borderHoverWidthBottom:ye,borderHoverWidthUnit:be,borderNormalRadiusTop:ve,borderNormalRadiusLeft:Te,borderNormalRadiusRight:Se,borderNormalRadiusBottom:fe,borderNormalRadiusUnit:Le,borderHoverRadiusTop:Me,borderHoverRadiusLeft:xe,borderHoverRadiusRight:Ee,borderHoverRadiusBottom:Be,borderHoverRadiusUnit:ke,borderNormalBoxShadowHorizontal:_e,borderNormalBoxShadowVertical:He,borderNormalBoxShadowBlur:Ne,borderNormalBoxShadowSpread:Ve,borderNormalBoxShadowColor:Ce,borderNormalBoxShadowInset:ze,borderHoverBoxShadowHorizontal:we,borderHoverBoxShadowVertical:Re,borderHoverBoxShadowBlur:Fe,borderHoverBoxShadowSpread:De,borderHoverBoxShadowColor:Ue,borderHoverBoxShadowInset:Pe,flexibleContentDisplay:Ie,flexDirection:$e,flexDirectionSm:We,flexDirectionMd:Ae,justifyContent:Oe,justifyContentSm:Ge,justifyContentMd:je,justifyItems:Ze,justifyItemsSm:qe,justifyItemsMd:Ke,alignItems:Ye,alignItemsSm:Xe,alignItemsMd:Je,containerWrap:Qe,containerWrapSm:et,containerWrapMd:tt,containerGapRow:at,containerGapSmRow:it,containerGapMdRow:ot,containerGapColumn:nt,containerGapSmColumn:rt,containerGapMdColumn:lt,containerGapUnit:st,gridColumnNumber:mt,gridColumnNumberSm:dt,gridColumnNumberMd:ct,containerWidthEnable:pt,containerWidth:gt,containerWidthSm:ut,containerWidthMd:ht,containerWidthUnit:yt}=a,{hasInnerBlocks:bt}=(0,e.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),a=t(n);return{hasInnerBlocks:!(!a||!a.innerBlocks.length)}}),[]);o({id:(0,d.useBlockProps)().id}),o({sbStyle:`#${s} {\n    \t${Q("container-margin",L,M,x,E,u,h,y,b,v,T,S,f,B)}\n    \t${Q("container-padding",R,F,D,U,k,_,H,N,V,C,z,w,P)}\n\n    \t${pt?ee("container-width",gt,ut,ht,yt):""}\n\n\t\t--sb-container-border-normal:${X||"0"};\n        --sb-container-border-hover: ${ae?X:"var(--sb-container-border-normal)"};\n        --sb-container-border-normal-color: ${ie||"initial"};\n        --sb-container-border-hover-color: ${re||"var(--sb-container-border-normal-color)"};\n\n        ${J("container-border-normal-width",le,me,ce,se,pe)}\n        ${J("container-border-hover-width",ge,he,ye,ue,be)}\n        ${J("container-border-normal-radius",ve,Se,fe,Te,Le)}\n        ${J("container-border-hover-radius",Me,Ee,Be,xe,ke)}\n\n        ${te("container-border-normal-box-shadow",_e,He,Ne,Ve,Ce,ze,"px")}\n        ${te("container-border-hover-box-shadow",we,Re,Fe,De,Ue,Pe,"px")}\n\n        ${ne("container-bg",A,O,G,j,Z,q,W,K,$,Y)}\n\n        --sb-container-sticky-offset:${c?c+"px":"0"};\n\n        --sb-container-flexible-display:${Ie||"flex"};\n        ${ee("container-flex-direction",$e,We,Ae)}\n        ${ee("container-flex-justify-content",Oe,Ge,je)}\n\t\t${ee("container-flex-justify-items",Ze,qe,Ke)}\n        ${ee("container-flex-align-items",Ye,Xe,Je)}\n\t\t${oe("container-gap",at,it,ot,nt,rt,lt,st)}\n        ${ee("container-flex-wrap",Qe,et,tt)}\n        ${ee("container-grid-columns",mt,dt,ct)}\n\n    }`.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const vt=g,Tt=l()(r,m?"sb-sticky-container":"");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},I),(0,i.createElement)(de,{attributes:a,setAttributes:o}),(0,i.createElement)(vt,{id:s,className:Tt},(0,i.createElement)(d.InnerBlocks,{templateLock:!1,renderAppender:!bt&&d.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t,className:a}=e;const{id:o,columnsHTMLTag:n,enableSticky:r,hrefLinkURL:s}=t,m=l()(a,r?"sb-sticky-container":"",{"sb-is-frontend":!0}),c=n;return(0,i.createElement)(c,{className:m,id:o,href:"a"==c?s:""},(0,i.createElement)(d.InnerBlocks.Content,null))}});const ce=window.wp.date,pe=JSON.parse('[{"family":"inherit","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"ABeeZee","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Abel","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Abhaya Libre","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","sinhala":"Sinhala"}},{"family":"Abril Fatface","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Aclonica","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Acme","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Actor","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Adamina","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Advent Pro","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Aguafina Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Akronim","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Aladin","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Alata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alatsi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Aldrich","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Alef","variants":{"400":"Normal","700":"Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin"}},{"family":"Alegreya","variants":{"400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alegreya SC","variants":{"400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alegreya Sans","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alegreya Sans SC","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Aleo","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Alex Brush","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Alfa Slab One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alice","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin"}},{"family":"Alike","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Alike Angular","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Allan","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Allerta","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Allerta Stencil","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Allura","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Almarai","variants":{"300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"arabic":"Arabic"}},{"family":"Almendra","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Almendra Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Almendra SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Amarante","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Amaranth","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Amatic SC","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Amethysta","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Amiko","variants":{"400":"Normal","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Amiri","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Amita","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Anaheim","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Andada","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Andika","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Angkor","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Annie Use Your Telescope","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Anonymous Pro","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Antic","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Antic Didone","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Antic Slab","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Anton","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Arapey","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Arbutus","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Arbutus Slab","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Architects Daughter","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Archivo","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Archivo Black","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Archivo Narrow","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Aref Ruqaa","variants":{"400":"Normal","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Arima Madurai","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil","vietnamese":"Vietnamese"}},{"family":"Arimo","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Arizonia","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Armata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Arsenal","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Artifika","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Arvo","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Arya","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Asap","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Asap Condensed","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Asar","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Asset","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Assistant","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin"}},{"family":"Astloch","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Asul","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Athiti","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Atma","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Atomic Age","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Aubrey","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Audiowide","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Autour One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Average","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Average Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Averia Gruesa Libre","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Averia Libre","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Averia Sans Libre","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Averia Serif Libre","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"B612","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"B612 Mono","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Bad Script","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin"}},{"family":"Bahiana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bahianita","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bai Jamjuree","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Baloo 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Bhai 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Bhaina 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","oriya":"Oriya","vietnamese":"Vietnamese"}},{"family":"Baloo Chettan 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","malayalam":"Malayalam","vietnamese":"Vietnamese"}},{"family":"Baloo Da 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Paaji 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gurmukhi":"Gurmukhi","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Tamma 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"kannada":"Kannada","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Tammudu 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","telugu":"Telugu","vietnamese":"Vietnamese"}},{"family":"Baloo Thambi 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil","vietnamese":"Vietnamese"}},{"family":"Balsamiq Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Balthazar","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bangers","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barlow","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barlow Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barlow Semi Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barriecito","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barrio","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Basic","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Baskervville","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Battambang","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Baumans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bayon","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Be Vietnam","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bebas Neue","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Belgrano","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bellefair","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Belleza","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bellota","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bellota Text","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"BenchNine","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bentham","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Berkshire Swash","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Beth Ellen","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bevan","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Big Shoulders Display","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Big Shoulders Text","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bigelow Rules","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bigshot One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bilbo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bilbo Swash Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"BioRhyme","variants":{"200":"Extra Light","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"BioRhyme Expanded","variants":{"200":"Extra Light","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Biryani","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bitter","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Black And White Picture","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Black Han Sans","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Black Ops One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Blinker","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bokor","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Bonbon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Boogaloo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bowlby One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bowlby One SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Brawler","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bree Serif","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bubblegum Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bubbler One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Buda","variants":{"300":"Light"},"subsets":{"latin":"Latin"}},{"family":"Buenard","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bungee","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Hairline","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Inline","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Outline","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Shade","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Butcherman","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Butterfly Kids","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cabin","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cabin Condensed","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cabin Sketch","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Caesar Dressing","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cagliostro","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cairo","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Caladea","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Calistoga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Calligraffitti","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cambay","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cambo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Candal","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cantarell","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Cantata One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cantora One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Capriola","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cardo","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Carme","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Carrois Gothic","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Carrois Gothic SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Carter One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Catamaran","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Caudex","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Caveat","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Caveat Brush","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cedarville Cursive","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ceviche One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chakra Petch","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Changa","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Changa One","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Chango","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Charm","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Charmonman","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Chathura","variants":{"100":"Thin","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Chau Philomene One","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chela One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chelsea Market","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chenla","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Cherry Cream Soda","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cherry Swash","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chewy","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Chicle","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chilanka","variants":{"400":"Normal"},"subsets":{"latin":"Latin","malayalam":"Malayalam"}},{"family":"Chivo","variants":{"300":"Light","400":"Normal","700":"Bold","900":"Ultra Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chonburi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Cinzel","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cinzel Decorative","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Clicker Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Coda","variants":{"400":"Normal","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Coda Caption","variants":{"800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Codystar","variants":{"300":"Light","400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Coiny","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil","vietnamese":"Vietnamese"}},{"family":"Combo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Comfortaa","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Comic Neue","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Coming Soon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Concert One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Condiment","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Content","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Contrail One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Convergence","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cookie","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Copse","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Corben","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cormorant","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Garamond","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Infant","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant SC","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Unicase","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Upright","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Courgette","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Courier Prime","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cousine","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Coustard","variants":{"400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Covered By Your Grace","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Crafty Girls","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Creepster","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Crete Round","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Crimson Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Crimson Text","variants":{"400":"Normal","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Croissant One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Crushed","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cuprum","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cute Font","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Cutive","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cutive Mono","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Mono","variants":{"300":"Light","400":"Normal","500":"Medium","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Sans","variants":{"400":"Normal","500":"Medium","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Serif Display","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Serif Text","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Damion","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Dancing Script","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Dangrek","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Darker Grotesque","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"David Libre","variants":{"400":"Normal","500":"Medium","700":"Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Dawning of a New Day","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Days One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Dekko","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Delius","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Delius Swash Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Delius Unicase","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Della Respira","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Denk One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Devonshire","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Dhurjati","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Didact Gothic","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Diplomata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Diplomata SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Do Hyeon","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Dokdo","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Domine","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Donegal One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Doppio One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Dorsa","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Dosis","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Dr Sugiyama","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Duru Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Dynalight","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"EB Garamond","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Eagle Lake","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"East Sea Dokdo","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Eater","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Economica","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Eczar","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"El Messiri","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","cyrillic":"Cyrillic","latin":"Latin"}},{"family":"Electrolize","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Elsie","variants":{"400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Elsie Swash Caps","variants":{"400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Emblema One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Emilys Candy","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Encode Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Expanded","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Semi Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Semi Expanded","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Engagement","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Englebert","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Enriqueta","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Epilogue","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Erica One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Esteban","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Euphoria Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ewert","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Exo","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Exo 2","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Expletus Sans","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Fahkwang","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Fanwood Text","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Farro","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Farsan","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fascinate","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fascinate Inline","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Faster One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fasthand","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Fauna One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Faustina","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Federant","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Federo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Felipa","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fenix","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Finger Paint","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fira Code","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fira Mono","variants":{"400":"Normal","500":"Medium","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fira Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fira Sans Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fira Sans Extra Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fjalla One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fjord One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Flamenco","variants":{"300":"Light","400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Flavors","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fondamento","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fontdiner Swanky","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Forum","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Francois One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Frank Ruhl Libre","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Freckle Face","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fredericka the Great","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fredoka One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Freehand","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Fresca","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Frijole","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fruktur","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fugaz One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"GFS Didot","variants":{"400":"Normal"},"subsets":{"greek":"Greek"}},{"family":"GFS Neohellenic","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"greek":"Greek"}},{"family":"Gabriela","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin"}},{"family":"Gaegu","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gafata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Galada","variants":{"400":"Normal"},"subsets":{"bengali":"Bengali","latin":"Latin"}},{"family":"Galdeano","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Galindo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gamja Flower","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gayathri","variants":{"100":"Thin","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","malayalam":"Malayalam"}},{"family":"Gelasio","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Gentium Basic","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gentium Book Basic","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Geo","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Geostar","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Geostar Fill","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Germania One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Gidugu","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Gilda Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Girassol","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Give You Glory","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Glass Antiqua","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Glegoo","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gloria Hallelujah","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Goblin One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Gochi Hand","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Gorditas","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Gothic A1","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gotu","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Goudy Bookletter 1911","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Graduate","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Grand Hotel","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gravitas One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Great Vibes","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Grenze","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Grenze Gotisch","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Griffy","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gruppo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gudea","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gugi","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gupter","variants":{"400":"Normal","500":"Medium","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Gurajada","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Habibi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Halant","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hammersmith One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hanalei","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hanalei Fill","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Handlee","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Hanuman","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Happy Monkey","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Harmattan","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Headland One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Heebo","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin"}},{"family":"Henny Penny","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Hepta Slab","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Herr Von Muellerhoff","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hi Melody","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Hind","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hind Guntur","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","telugu":"Telugu"}},{"family":"Hind Madurai","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Hind Siliguri","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hind Vadodara","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Holtwood One SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Homemade Apple","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Homenaje","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IBM Plex Mono","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IBM Plex Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IBM Plex Sans Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IBM Plex Serif","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IM Fell DW Pica","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell DW Pica SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Double Pica","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Double Pica SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell English","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell English SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell French Canon","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell French Canon SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Great Primer","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Great Primer SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ibarra Real Nova","variants":{"400":"Normal","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Iceberg","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Iceland","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Imprima","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inconsolata","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Inder","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Indie Flower","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Inika","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inknut Antiqua","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inria Sans","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inria Serif","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inter","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Irish Grover","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Istok Web","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Italiana","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Italianno","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Itim","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Jacques Francois","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Jacques Francois Shadow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Jaldi","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jim Nightshade","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jockey One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jolly Lodger","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jomhuria","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jomolhari","variants":{"400":"Normal"},"subsets":{"latin":"Latin","tibetan":null}},{"family":"Josefin Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Josefin Slab","variants":{"100":"Thin","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Jost","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Joti One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jua","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Judson","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Julee","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Julius Sans One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Junge","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Jura","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Just Another Hand","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Just Me Again Down Here","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"K2D","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kadwa","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin"}},{"family":"Kalam","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kameron","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Kanit","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kantumruy","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Karla","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Karma","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Katibeh","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kaushan Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kavivanar","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Kavoon","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kdam Thmor","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Keania One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kelly Slab","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kenia","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Khand","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Khmer","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Khula","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kirang Haerang","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Kite One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Knewave","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"KoHo","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kodchasan","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kosugi","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","japanese":null,"latin":"Latin"}},{"family":"Kosugi Maru","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","japanese":null,"latin":"Latin"}},{"family":"Kotta One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Koulen","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Kranky","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Kreon","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kristi","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Krona One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Krub","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kulim Park","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kumar One","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kumar One Outline","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kurale","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"La Belle Aurore","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lacquer","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Laila","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lakki Reddy","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Lalezar","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lancelot","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lateef","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Lato","variants":{"100":"Thin","300":"Light","400":"Normal","700":"Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"League Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Leckerli One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ledger","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lekton","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lemon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lemonada","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Deca","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Exa","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Giga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Mega","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Peta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Tera","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Zetta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Libre Barcode 128","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 128 Text","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39 Extended","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39 Extended Text","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39 Text","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Baskerville","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Libre Caslon Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Libre Caslon Text","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Libre Franklin","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Life Savers","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lilita One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lily Script One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Limelight","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Linden Hill","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Literata","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Liu Jian Mao Cao","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Livvic","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lobster","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lobster Two","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Londrina Outline","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Londrina Shadow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Londrina Sketch","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Londrina Solid","variants":{"100":"Thin","300":"Light","400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Long Cang","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Lora","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Love Ya Like A Sister","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Loved by the King","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lovers Quarrel","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Luckiest Guy","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lusitana","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Lustria","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"M PLUS 1p","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","japanese":null,"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"M PLUS Rounded 1c","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","japanese":null,"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Ma Shan Zheng","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Macondo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Macondo Swash Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Mada","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Magra","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Maiden Orange","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Maitree","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Major Mono Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Mako","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Mali","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Mallanna","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Mandali","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Manjari","variants":{"100":"Thin","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","malayalam":"Malayalam"}},{"family":"Manrope","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"cyrillic":"Cyrillic","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mansalva","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Manuale","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Marcellus","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Marcellus SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Marck Script","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Margarine","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Markazi Text","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Marko One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Marmelad","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Martel","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Martel Sans","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Marvel","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Mate","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Mate SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Maven Pro","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"McLaren","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Meddon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"MedievalSharp","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Medula One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Meera Inimai","variants":{"400":"Normal"},"subsets":{"latin":"Latin","tamil":"Tamil"}},{"family":"Megrim","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Meie Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Merienda","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Merienda One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Merriweather","variants":{"300":"Light","400":"Normal","700":"Bold","900":"Ultra Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Merriweather Sans","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Metal","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Metal Mania","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Metamorphous","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Metrophobic","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Michroma","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Milonga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Miltonian","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Miltonian Tattoo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Mina","variants":{"400":"Normal","700":"Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Miniver","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Miriam Libre","variants":{"400":"Normal","700":"Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mirza","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Miss Fajardose","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mitr","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Modak","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Modern Antiqua","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mogra","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Molengo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Molle","variants":{"400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Monda","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Monofett","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Monoton","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Monsieur La Doulaise","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Montaga","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Montez","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Montserrat","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Montserrat Alternates","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Montserrat Subrayada","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Moul","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Moulpali","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Mountains of Christmas","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Mouse Memoirs","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mr Bedfort","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mr Dafoe","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mr De Haviland","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mrs Saint Delafield","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mrs Sheppards","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mukta","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mukta Mahee","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gurmukhi":"Gurmukhi","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mukta Malar","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Mukta Vaani","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mulish","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"MuseoModerno","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Mystery Quest","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"NTR","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Nanum Brush Script","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Gothic","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Gothic Coding","variants":{"400":"Normal","700":"Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Myeongjo","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Pen Script","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Neucha","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin"}},{"family":"Neuton","variants":{"200":"Extra Light","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"New Rocker","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"News Cycle","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Niconne","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Niramit","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Nixie One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nobile","variants":{"400":"Normal","500":"Medium","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Nokora","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Norican","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Nosifer","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Notable","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nothing You Could Do","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Noticia Text","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Noto Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","devanagari":"Devanagari","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Noto Sans HK","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-hongkong":null,"latin":"Latin"}},{"family":"Noto Sans JP","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"japanese":null,"latin":"Latin"}},{"family":"Noto Sans KR","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Noto Sans SC","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Noto Sans TC","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-traditional":null,"latin":"Latin"}},{"family":"Noto Serif","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Noto Serif JP","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"japanese":null,"latin":"Latin"}},{"family":"Noto Serif KR","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Noto Serif SC","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Noto Serif TC","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-traditional":null,"latin":"Latin"}},{"family":"Nova Cut","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Flat","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Mono","variants":{"400":"Normal"},"subsets":{"greek":"Greek","latin":"Latin"}},{"family":"Nova Oval","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Round","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Slim","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Square","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Numans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nunito","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Nunito Sans","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Odibee Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Odor Mean Chey","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Offside","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Old Standard TT","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Oldenburg","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oleo Script","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oleo Script Swash Caps","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Open Sans","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Open Sans Condensed","variants":{"300":"Light","700":"Bold","300italic":"Light Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Oranienbaum","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Orbitron","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Oregano","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Orienta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Original Surfer","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Oswald","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Over the Rainbow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Overlock","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Overlock SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Overpass","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Overpass Mono","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ovo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Oxanium","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oxygen","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oxygen Mono","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Mono","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Sans Caption","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Sans Narrow","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Serif","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Serif Caption","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pacifico","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Padauk","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","myanmar":"Myanmar"}},{"family":"Palanquin","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Palanquin Dark","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pangolin","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Paprika","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Parisienne","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Passero One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Passion One","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pathway Gothic One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Patrick Hand","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Patrick Hand SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Pattaya","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Patua One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pavanam","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Paytone One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Peddana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Peralta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Permanent Marker","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Petit Formal Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Petrona","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Philosopher","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","vietnamese":"Vietnamese"}},{"family":"Piedra","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pinyon Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pirata One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Plaster","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Play","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Playball","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Playfair Display","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Playfair Display SC","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Podkova","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Poiret One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Poller One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Poly","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Pompiere","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pontano Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Poor Story","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Poppins","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Port Lligat Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Port Lligat Slab","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pragati Narrow","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Prata","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","vietnamese":"Vietnamese"}},{"family":"Preahvihear","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Press Start 2P","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pridi","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Princess Sofia","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Prociono","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Prompt","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Prosto One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Proza Libre","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Public Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Puritan","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Purple Purse","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Quando","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Quantico","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Quattrocento","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Quattrocento Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Questrial","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Quicksand","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Quintessential","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Qwigley","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Racing Sans One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Radley","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rajdhani","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rakkas","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Raleway","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Raleway Dots","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ramabhadra","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Ramaraja","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Rambla","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rammetto One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ranchers","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rancho","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ranga","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rasa","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rationale","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ravi Prakash","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Recursive","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","vietnamese":"Vietnamese"}},{"family":"Red Hat Display","variants":{"400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Red Hat Text","variants":{"400":"Normal","500":"Medium","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Red Rose","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Redressed","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Reem Kufi","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Reenie Beanie","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Revalia","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rhodium Libre","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ribeye","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ribeye Marrow","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Righteous","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Risque","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Roboto","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Roboto Condensed","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Roboto Mono","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Roboto Slab","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rochester","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Rock Salt","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Rokkitt","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Romanesco","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ropa Sans","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rosario","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rosarivo","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rouge Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Rowdies","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rozha One","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rubik","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rubik Mono One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruda","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rufina","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruge Boogie","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruluko","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rum Raisin","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruslan Display","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Russo One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruthie","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rye","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sacramento","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sahitya","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin"}},{"family":"Sail","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Saira","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Extra Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Semi Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Stencil One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Salsa","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sanchez","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sancreek","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sansita","variants":{"400":"Normal","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sarabun","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Sarala","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sarina","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sarpanch","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Satisfy","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sawarabi Gothic","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","japanese":null,"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Sawarabi Mincho","variants":{"400":"Normal"},"subsets":{"japanese":null,"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Scada","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Scheherazade","variants":{"400":"Normal","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Schoolbell","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Scope One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Seaweed Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Secular One","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sedgwick Ave","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Sedgwick Ave Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Sen","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sevillana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Seymour One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Shadows Into Light","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Shadows Into Light Two","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Shanti","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Share","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Share Tech","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Share Tech Mono","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Shojumaru","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Short Stack","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Shrikhand","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Siemreap","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Sigmar One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Signika","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Signika Negative","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Simonetta","variants":{"400":"Normal","900":"Ultra Bold","400italic":"Normal Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Single Day","variants":{"400":"Normal"},"subsets":{"korean":null}},{"family":"Sintony","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sirin Stencil","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Six Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Skranji","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Slabo 13px","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Slabo 27px","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Slackey","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Smokum","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Smythe","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sniglet","variants":{"400":"Normal","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Snippet","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Snowburst One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sofadi One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sofia","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Solway","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin"}},{"family":"Song Myung","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Sonsie One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sora","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sorts Mill Goudy","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Source Code Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Source Sans Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Source Serif Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Space Mono","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Spartan","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Special Elite","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Spectral","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Spectral SC","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Spicy Rice","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Spinnaker","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Spirax","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Squada One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sree Krushnadevaraya","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Sriracha","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Srisakdi","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Staatliches","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stalemate","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stalinist One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stardos Stencil","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Stint Ultra Condensed","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stint Ultra Expanded","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stoke","variants":{"300":"Light","400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Strait","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Stylish","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Sue Ellen Francisco","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Suez One","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sulphur Point","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sumana","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sunflower","variants":{"300":"Light","500":"Medium","700":"Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Sunshiney","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Supermercado One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sura","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Suranna","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Suravaram","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Suwannaphum","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Swanky and Moo Moo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Syncopate","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Tajawal","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Tangerine","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Taprom","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Tauri","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Taviraj","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Teko","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Telex","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Tenali Ramakrishna","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Tenor Sans","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Text Me One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Thasadith","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"The Girl Next Door","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Tienne","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Tillana","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Timmana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Tinos","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Titan One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Titillium Web","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Tomorrow","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Trade Winds","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Trirong","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Trocchi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Trochut","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Trykker","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Tulpen One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Turret Road","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ubuntu","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ubuntu Condensed","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ubuntu Mono","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ultra","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Uncial Antiqua","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Underdog","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Unica One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"UnifrakturCook","variants":{"700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"UnifrakturMaguntia","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Unkempt","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Unlock","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Unna","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"VT323","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vampiro One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Varela","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Varela Round","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Varta","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vast Shadow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Vesper Libre","variants":{"400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Viaoda Libre","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vibes","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Vibur","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Vidaloka","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Viga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Voces","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Volkhov","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Vollkorn","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vollkorn SC","variants":{"400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Voltaire","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Waiting for the Sunrise","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Wallpoet","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Walter Turncoat","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Warnes","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Wellfleet","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Wendy One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Wire One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Work Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Yanone Kaffeesatz","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Yantramanav","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Yatra One","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Yellowtail","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Yeon Sung","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Yeseva One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Yesteryear","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Yrsa","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"ZCOOL KuaiLe","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"ZCOOL QingKe HuangYou","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"ZCOOL XiaoWei","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Zeyada","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Zhi Mang Xing","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Zilla Slab","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Zilla Slab Highlight","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}}]');function ge(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ue(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function he(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(a),!0).forEach((function(t){ge(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ue(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function be(e,t){if(e){if("string"==typeof e)return ye(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ye(e,t):void 0}}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,o,n=[],_n=!0,r=!1;try{for(a=a.call(e);!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==a.return||a.return()}finally{if(r)throw o}}return n}}(e,t)||be(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 Te(e,t){if(null==e)return{};var a,i,o=function(e,t){if(null==e)return{};var a,i,o={},n=Object.keys(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}var Se=a(196),fe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Le.apply(this,arguments)}function Me(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function xe(e,t){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xe(e,t)}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(e)}function Be(e){return Be="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},Be(e)}function ke(e,t){if(t&&("object"===Be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _e(e){return function(e){if(Array.isArray(e))return ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||be(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.")}()}var He=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(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.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(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.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=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]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ne=Math.abs,Ve=String.fromCharCode,Ce=Object.assign;function ze(e){return e.trim()}function we(e,t,a){return e.replace(t,a)}function Re(e,t){return e.indexOf(t)}function Fe(e,t){return 0|e.charCodeAt(t)}function De(e,t,a){return e.slice(t,a)}function Ue(e){return e.length}function Pe(e){return e.length}function Ie(e,t){return t.push(e),e}var $e=1,We=1,Ae=0,Oe=0,Ge=0,je="";function Ze(e,t,a,i,o,n,r){return{value:e,root:t,parent:a,type:i,props:o,children:n,line:$e,column:We,length:r,return:""}}function qe(e,t){return Ce(Ze("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ke(){return Ge=Oe>0?Fe(je,--Oe):0,We--,10===Ge&&(We=1,$e--),Ge}function Ye(){return Ge=Oe<Ae?Fe(je,Oe++):0,We++,10===Ge&&(We=1,$e++),Ge}function Xe(){return Fe(je,Oe)}function Je(){return Oe}function Qe(e,t){return De(je,e,t)}function et(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tt(e){return $e=We=1,Ae=Ue(je=e),Oe=0,[]}function at(e){return je="",e}function it(e){return ze(Qe(Oe-1,rt(91===e?e+2:40===e?e+1:e)))}function ot(e){for(;(Ge=Xe())&&Ge<33;)Ye();return et(e)>2||et(Ge)>3?"":" "}function nt(e,t){for(;--t&&Ye()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return Qe(e,Je()+(t<6&&32==Xe()&&32==Ye()))}function rt(e){for(;Ye();)switch(Ge){case e:return Oe;case 34:case 39:34!==e&&39!==e&&rt(Ge);break;case 40:41===e&&rt(e);break;case 92:Ye()}return Oe}function lt(e,t){for(;Ye()&&e+Ge!==57&&(e+Ge!==84||47!==Xe()););return"/*"+Qe(t,Oe-1)+"*"+Ve(47===e?e:Ye())}function st(e){for(;!et(Xe());)Ye();return Qe(e,Oe)}var mt="-ms-",dt="-webkit-",ct="comm",pt="rule",gt="decl",ut="@keyframes";function ht(e,t){for(var a="",i=Pe(e),o=0;o<i;o++)a+=t(e[o],o,e,t)||"";return a}function yt(e,t,a,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gt:return e.return=e.return||e.value;case ct:return"";case ut:return e.return=e.value+"{"+ht(e.children,i)+"}";case pt:e.value=e.props.join(",")}return Ue(a=ht(e.children,i))?e.return=e.value+"{"+a+"}":""}function bt(e){return at(vt("",null,null,null,[""],e=tt(e),0,[0],e))}function vt(e,t,a,i,o,n,r,l,s){for(var m=0,d=0,c=r,p=0,g=0,u=0,h=1,y=1,b=1,v=0,T="",S=o,f=n,L=i,M=T;y;)switch(u=v,v=Ye()){case 40:if(108!=u&&58==Fe(M,c-1)){-1!=Re(M+=we(it(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:M+=it(v);break;case 9:case 10:case 13:case 32:M+=ot(u);break;case 92:M+=nt(Je()-1,7);continue;case 47:switch(Xe()){case 42:case 47:Ie(St(lt(Ye(),Je()),t,a),s);break;default:M+="/"}break;case 123*h:l[m++]=Ue(M)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:-1==b&&(M=we(M,/\f/g,"")),g>0&&Ue(M)-c&&Ie(g>32?ft(M+";",i,a,c-1):ft(we(M," ","")+";",i,a,c-2),s);break;case 59:M+=";";default:if(Ie(L=Tt(M,t,a,m,d,o,l,T,S=[],f=[],c),n),123===v)if(0===d)vt(M,t,L,L,S,n,c,l,f);else switch(99===p&&110===Fe(M,3)?100:p){case 100:case 108:case 109:case 115:vt(e,L,L,i&&Ie(Tt(e,L,L,0,0,o,l,T,o,S=[],c),f),o,f,c,l,i?S:f);break;default:vt(M,L,L,L,[""],f,0,l,f)}}m=d=g=0,h=b=1,T=M="",c=r;break;case 58:c=1+Ue(M),g=u;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Ke())continue;switch(M+=Ve(v),v*h){case 38:b=d>0?1:(M+="\f",-1);break;case 44:l[m++]=(Ue(M)-1)*b,b=1;break;case 64:45===Xe()&&(M+=it(Ye())),p=Xe(),d=c=Ue(T=M+=st(Je())),v++;break;case 45:45===u&&2==Ue(M)&&(h=0)}}return n}function Tt(e,t,a,i,o,n,r,l,s,m,d){for(var c=o-1,p=0===o?n:[""],g=Pe(p),u=0,h=0,y=0;u<i;++u)for(var b=0,v=De(e,c+1,c=Ne(h=r[u])),T=e;b<g;++b)(T=ze(h>0?p[b]+" "+v:we(v,/&\f/g,p[b])))&&(s[y++]=T);return Ze(e,t,a,0===o?pt:l,s,m,d)}function St(e,t,a){return Ze(e,t,a,ct,Ve(Ge),De(e,2,-2),0)}function ft(e,t,a,i){return Ze(e,t,a,gt,De(e,0,i),De(e,i+1,-1),i)}var Lt=function(e,t,a){for(var i=0,o=0;i=o,o=Xe(),38===i&&12===o&&(t[a]=1),!et(o);)Ye();return Qe(e,Oe)},Mt=new WeakMap,xt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,i=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Mt.get(a))&&!i){Mt.set(e,!0);for(var o=[],n=function(e,t){return at(function(e,t){var a=-1,i=44;do{switch(et(i)){case 0:38===i&&12===Xe()&&(t[a]=1),e[a]+=Lt(Oe-1,t,a);break;case 2:e[a]+=it(i);break;case 4:if(44===i){e[++a]=58===Xe()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=Ve(i)}}while(i=Ye());return e}(tt(e),t))}(t,o),r=a.props,l=0,s=0;l<n.length;l++)for(var m=0;m<r.length;m++,s++)e.props[s]=o[l]?n[l].replace(/&\f/g,r[m]):r[m]+" "+n[l]}}},Et=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Bt(e,t){switch(function(e,t){return 45^Fe(e,0)?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+"-moz-"+e+mt+e+e;case 6828:case 4268:return dt+e+mt+e+e;case 6165:return dt+e+mt+"flex-"+e+e;case 5187:return dt+e+we(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return dt+e+mt+"flex-item-"+we(e,/flex-|-self/,"")+e;case 4675:return dt+e+mt+"flex-line-pack"+we(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+mt+we(e,"shrink","negative")+e;case 5292:return dt+e+mt+we(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+we(e,"-grow","")+dt+e+mt+we(e,"grow","positive")+e;case 4554:return dt+we(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return we(we(we(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return we(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return we(we(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return we(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ue(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(45!==Fe(e,t+4))break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Fe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?Bt(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Fe(e,t+1))break;case 6444:switch(Fe(e,Ue(e)-3-(~Re(e,"!important")&&10))){case 107:return we(e,":",":-webkit-")+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Fe(e,14)?"inline-":"")+"box$3$1-webkit-$2$3$1-ms-$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return dt+e+mt+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+mt+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+mt+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+mt+e+e}return e}var kt=[function(e,t,a,i){if(e.length>-1&&!e.return)switch(e.type){case gt:e.return=Bt(e.value,e.length);break;case ut:return ht([qe(e,{value:we(e.value,"@","@-webkit-")})],i);case pt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ht([qe(e,{props:[we(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return ht([qe(e,{props:[we(t,/:(plac\w+)/,":-webkit-input-$1")]}),qe(e,{props:[we(t,/:(plac\w+)/,":-moz-$1")]}),qe(e,{props:[we(t,/:(plac\w+)/,"-ms-input-$1")]})],i)}return""}))}}],_t=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,n=e.stylisPlugins||kt,r={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)r[t[a]]=!0;l.push(e)}));var s,m,d,c,p=[yt,(c=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],g=(m=[xt,Et].concat(n,p),d=Pe(m),function(e,t,a,i){for(var o="",n=0;n<d;n++)o+=m[n](e,t,a,i)||"";return o});o=function(e,t,a,i){s=a,ht(bt(e?e+"{"+t.styles+"}":t.styles),g),i&&(u.inserted[t.name]=!0)};var u={key:t,sheet:new He({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:o};return u.sheet.hydrate(l),u},Ht=function(e,t,a){var i=e.key+"-"+t.name;!1===a&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},Nt={animationIterationCount:1,aspectRatio: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};function Vt(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}var Ct=/[A-Z]|^ms/g,zt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wt=function(e){return 45===e.charCodeAt(1)},Rt=function(e){return null!=e&&"boolean"!=typeof e},Ft=Vt((function(e){return wt(e)?e:e.replace(Ct,"-$&").toLowerCase()})),Dt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(zt,(function(e,t,a){return Pt={name:t,styles:a,next:Pt},t}))}return 1===Nt[e]||wt(e)||"number"!=typeof t||0===t?t:t+"px"};function Ut(e,t,a){if(null==a)return"";var i=a;if(void 0!==i.__emotion_styles)return i;switch(typeof a){case"boolean":return"";case"object":var o=a;if(1===o.anim)return Pt={name:o.name,styles:o.styles,next:Pt},o.name;var n=a;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Pt={name:r.name,styles:r.styles,next:Pt},r=r.next;return n.styles+";"}return function(e,t,a){var i="";if(Array.isArray(a))for(var o=0;o<a.length;o++)i+=Ut(e,t,a[o])+";";else for(var n in a){var r=a[n];if("object"!=typeof r){var l=r;null!=t&&void 0!==t[l]?i+=n+"{"+t[l]+"}":Rt(l)&&(i+=Ft(n)+":"+Dt(n,l)+";")}else if(!Array.isArray(r)||"string"!=typeof r[0]||null!=t&&void 0!==t[r[0]]){var s=Ut(e,t,r);switch(n){case"animation":case"animationName":i+=Ft(n)+":"+s+";";break;default:i+=n+"{"+s+"}"}}else for(var m=0;m<r.length;m++)Rt(r[m])&&(i+=Ft(n)+":"+Dt(n,r[m])+";")}return i}(e,t,a);case"function":if(void 0!==e){var l=Pt,s=a(e);return Pt=l,Ut(e,t,s)}}var m=a;if(null==t)return m;var d=t[m];return void 0!==d?d:m}var Pt,It=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function $t(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";Pt=void 0;var n=e[0];null==n||void 0===n.raw?(i=!1,o+=Ut(a,t,n)):o+=n[0];for(var r=1;r<e.length;r++)o+=Ut(a,t,e[r]),i&&(o+=n[r]);It.lastIndex=0;for(var l,s="";null!==(l=It.exec(o));)s+="-"+l[1];var m=function(e){for(var t,a=0,i=0,o=e.length;o>=4;++i,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(o){case 3:a^=(255&e.charCodeAt(i+2))<<16;case 2:a^=(255&e.charCodeAt(i+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(i)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)}(o)+s;return{name:m,styles:o,next:Pt}}var Wt=!!Se.useInsertionEffect&&Se.useInsertionEffect,At=Wt||function(e){return e()},Ot=(Wt||Se.useLayoutEffect,Se.createContext("undefined"!=typeof HTMLElement?_t({key:"css"}):null)),Gt=(Ot.Provider,function(e){return(0,Se.forwardRef)((function(t,a){var i=(0,Se.useContext)(Ot);return e(t,i,a)}))}),jt=Se.createContext({}),Zt={}.hasOwnProperty,qt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kt=function(e,t){var a={};for(var i in t)Zt.call(t,i)&&(a[i]=t[i]);return a[qt]=e,a},Yt=function(e){var t=e.cache,a=e.serialized,i=e.isStringTag;return Ht(t,a,i),At((function(){return function(e,t,a){Ht(e,t,a);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+i:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,a,i)})),null},Xt=Gt((function(e,t,a){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[qt],n=[i],r="";"string"==typeof e.className?r=function(e,t,a){var i="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):i+=a+" "})),i}(t.registered,n,e.className):null!=e.className&&(r=e.className+" ");var l=$t(n,void 0,Se.useContext(jt));r+=t.key+"-"+l.name;var s={};for(var m in e)Zt.call(e,m)&&"css"!==m&&m!==qt&&(s[m]=e[m]);return s.className=r,a&&(s.ref=a),Se.createElement(Se.Fragment,null,Se.createElement(Yt,{cache:t,serialized:l,isStringTag:"string"==typeof o}),Se.createElement(o,s))})),Jt=Xt,Qt=(a(679),function(e,t){var a=arguments;if(null==t||!Zt.call(t,"css"))return Se.createElement.apply(void 0,a);var i=a.length,o=new Array(i);o[0]=Jt,o[1]=Kt(e,t);for(var n=2;n<i;n++)o[n]=a[n];return Se.createElement.apply(null,o)});function ea(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return $t(t)}const ta=window.ReactDOM,aa=Math.min,ia=Math.max,oa=Math.round,na=Math.floor,ra=e=>({x:e,y:e});function la(e){return da(e)?(e.nodeName||"").toLowerCase():"#document"}function sa(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ma(e){var t;return null==(t=(da(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function da(e){return e instanceof Node||e instanceof sa(e).Node}function ca(e){return e instanceof Element||e instanceof sa(e).Element}function pa(e){return e instanceof HTMLElement||e instanceof sa(e).HTMLElement}function ga(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof sa(e).ShadowRoot)}function ua(e){const{overflow:t,overflowX:a,overflowY:i,display:o}=ha(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(o)}function ha(e){return sa(e).getComputedStyle(e)}function ya(e){const t=function(e){if("html"===la(e))return e;const t=e.assignedSlot||e.parentNode||ga(e)&&e.host||ma(e);return ga(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(la(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:pa(t)&&ua(t)?t:ya(t)}function ba(e,t,a){var i;void 0===t&&(t=[]),void 0===a&&(a=!0);const o=ya(e),n=o===(null==(i=e.ownerDocument)?void 0:i.body),r=sa(o);return n?t.concat(r,r.visualViewport||[],ua(o)?o:[],r.frameElement&&a?ba(r.frameElement):[]):t.concat(o,ba(o,[],a))}function va(e){return ca(e)?e:e.contextElement}function Ta(e){const t=va(e);if(!pa(t))return ra(1);const a=t.getBoundingClientRect(),{width:i,height:o,$:n}=function(e){const t=ha(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=pa(e),n=o?e.offsetWidth:a,r=o?e.offsetHeight:i,l=oa(a)!==n||oa(i)!==r;return l&&(a=n,i=r),{width:a,height:i,$:l}}(t);let r=(n?oa(a.width):a.width)/i,l=(n?oa(a.height):a.height)/o;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}const Sa=ra(0);function fa(e){const t=sa(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Sa}function La(e,t,a,i){void 0===t&&(t=!1),void 0===a&&(a=!1);const o=e.getBoundingClientRect(),n=va(e);let r=ra(1);t&&(i?ca(i)&&(r=Ta(i)):r=Ta(e));const l=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==sa(e))&&t}(n,a,i)?fa(n):ra(0);let s=(o.left+l.x)/r.x,m=(o.top+l.y)/r.y,d=o.width/r.x,c=o.height/r.y;if(n){const e=sa(n),t=i&&ca(i)?sa(i):i;let a=e,o=a.frameElement;for(;o&&i&&t!==a;){const e=Ta(o),t=o.getBoundingClientRect(),i=ha(o),n=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;s*=e.x,m*=e.y,d*=e.x,c*=e.y,s+=n,m+=r,a=sa(o),o=a.frameElement}}return function(e){const{x:t,y:a,width:i,height:o}=e;return{width:i,height:o,top:a,left:t,right:t+i,bottom:a+o,x:t,y:a}}({width:d,height:c,x:s,y:m})}const Ma=Se.useLayoutEffect;var xa=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ea=function(){};function Ba(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ka(e,t){for(var a=arguments.length,i=new Array(a>2?a-2:0),o=2;o<a;o++)i[o-2]=arguments[o];var n=[].concat(i);if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&n.push("".concat(Ba(e,r)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var _a=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Be(e)&&null!==e?[e]:[];var t},Ha=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,he({},Te(e,xa))},Na=function(e,t,a){var i=e.cx,o=e.getStyles,n=e.getClassNames,r=e.className;return{css:o(t,e),className:i(null!=a?a:{},n(t,e),r)}};function Va(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ca(e){return Va(e)?window.pageYOffset:e.scrollTop}function za(e,t){Va(e)?window.scrollTo(0,t):e.scrollTop=t}function wa(e,t,a,i){return a*((e=e/i-1)*e*e+1)+t}function Ra(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ea,o=Ca(e),n=t-o,r=10,l=0;function s(){var t=wa(l+=r,o,n,a);za(e,t),l<a?window.requestAnimationFrame(s):i(e)}s()}function Fa(e,t){var a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=t.offsetHeight/3;i.bottom+o>a.bottom?za(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):i.top-o<a.top&&za(e,Math.max(t.offsetTop-o,0))}function Da(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ua=!1,Pa={get passive(){return Ua=!0}},Ia="undefined"!=typeof window?window:{};Ia.addEventListener&&Ia.removeEventListener&&(Ia.addEventListener("p",Ea,Pa),Ia.removeEventListener("p",Ea,!1));var $a=Ua;function Wa(e){return null!=e}function Aa(e,t,a){return e?t:a}var Oa=["children","innerProps"],Ga=["children","innerProps"];var ja,Za,qa,Ka=function(e){return"auto"===e?"bottom":e},Ya=(0,Se.createContext)(null),Xa=function(e){var t=e.children,a=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,n=e.menuPosition,r=e.menuShouldScrollIntoView,l=e.theme,s=((0,Se.useContext)(Ya)||{}).setPortalPlacement,m=(0,Se.useRef)(null),d=ve((0,Se.useState)(i),2),c=d[0],p=d[1],g=ve((0,Se.useState)(null),2),u=g[0],h=g[1],y=l.spacing.controlHeight;return Ma((function(){var e=m.current;if(e){var t="fixed"===n,l=function(e){var t=e.maxHeight,a=e.menuEl,i=e.minHeight,o=e.placement,n=e.shouldScroll,r=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,i=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!a||"static"!==t.position)&&i.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(a),m={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return m;var d,c=s.getBoundingClientRect().height,p=a.getBoundingClientRect(),g=p.bottom,u=p.height,h=p.top,y=a.offsetParent.getBoundingClientRect().top,b=r||Va(d=s)?window.innerHeight:d.clientHeight,v=Ca(s),T=parseInt(getComputedStyle(a).marginBottom,10),S=parseInt(getComputedStyle(a).marginTop,10),f=y-S,L=b-h,M=f+v,x=c-v-h,E=g-b+v+T,B=v+h-S,k=160;switch(o){case"auto":case"bottom":if(L>=u)return{placement:"bottom",maxHeight:t};if(x>=u&&!r)return n&&Ra(s,E,k),{placement:"bottom",maxHeight:t};if(!r&&x>=i||r&&L>=i)return n&&Ra(s,E,k),{placement:"bottom",maxHeight:r?L-T:x-T};if("auto"===o||r){var _=t,H=r?f:M;return H>=i&&(_=Math.min(H-T-l,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return n&&za(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(f>=u)return{placement:"top",maxHeight:t};if(M>=u&&!r)return n&&Ra(s,B,k),{placement:"top",maxHeight:t};if(!r&&M>=i||r&&f>=i){var N=t;return(!r&&M>=i||r&&f>=i)&&(N=r?f-S:M-S),n&&Ra(s,B,k),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return m}({maxHeight:i,menuEl:e,minHeight:a,placement:o,shouldScroll:r&&!t,isFixedPosition:t,controlHeight:y});p(l.maxHeight),h(l.placement),null==s||s(l.placement)}}),[i,o,n,r,a,s,y]),t({ref:m,placerProps:he(he({},e),{},{placement:u||Ka(o),maxHeight:c})})},Ja=function(e,t){var a=e.theme,i=a.spacing.baseUnit,o=a.colors;return he({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*i,"px ").concat(3*i,"px")})},Qa=Ja,ei=Ja,ti=["size"],ai=["innerProps","isRtl","size"],ii={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},oi=function(e){var t=e.size,a=Te(e,ti);return Qt("svg",Le({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ii},a))},ni=function(e){return Qt(oi,Le({size:20},e),Qt("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"}))},ri=function(e){return Qt(oi,Le({size:20},e),Qt("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"}))},li=function(e,t){var a=e.isFocused,i=e.theme,o=i.spacing.baseUnit,n=i.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*o,":hover":{color:a?n.neutral80:n.neutral40}})},si=li,mi=li,di=function(){var e=ea.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_"}}}(ja||(Za=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],qa||(qa=Za.slice(0)),ja=Object.freeze(Object.defineProperties(Za,{raw:{value:Object.freeze(qa)}})))),ci=function(e){var t=e.delay,a=e.offset;return Qt("span",{css:ea({animation:"".concat(di," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},pi=["data"],gi=["innerRef","isDisabled","isHidden","inputClassName"],ui={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},hi={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ui)},yi=function(e){return he({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ui)},bi=function(e){var t=e.children,a=e.innerProps;return Qt("div",a,t)},vi={ClearIndicator:function(e){var t=e.children,a=e.innerProps;return Qt("div",Le({},Na(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||Qt(ni,null))},Control:function(e){var t=e.children,a=e.isDisabled,i=e.isFocused,o=e.innerRef,n=e.innerProps,r=e.menuIsOpen;return Qt("div",Le({ref:o},Na(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":r}),n,{"aria-disabled":a||void 0}),t)},DropdownIndicator:function(e){var t=e.children,a=e.innerProps;return Qt("div",Le({},Na(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||Qt(ri,null))},DownChevron:ri,CrossIcon:ni,Group:function(e){var t=e.children,a=e.cx,i=e.getStyles,o=e.getClassNames,n=e.Heading,r=e.headingProps,l=e.innerProps,s=e.label,m=e.theme,d=e.selectProps;return Qt("div",Le({},Na(e,"group",{group:!0}),l),Qt(n,Le({},r,{selectProps:d,theme:m,getStyles:i,getClassNames:o,cx:a}),s),Qt("div",null,t))},GroupHeading:function(e){var t=Ha(e);t.data;var a=Te(t,pi);return Qt("div",Le({},Na(e,"groupHeading",{"group-heading":!0}),a))},IndicatorsContainer:function(e){var t=e.children,a=e.innerProps;return Qt("div",Le({},Na(e,"indicatorsContainer",{indicators:!0}),a),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Qt("span",Le({},t,Na(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,a=e.value,i=Ha(e),o=i.innerRef,n=i.isDisabled,r=i.isHidden,l=i.inputClassName,s=Te(i,gi);return Qt("div",Le({},Na(e,"input",{"input-container":!0}),{"data-value":a||""}),Qt("input",Le({className:t({input:!0},l),ref:o,style:yi(r),disabled:n},s)))},LoadingIndicator:function(e){var t=e.innerProps,a=e.isRtl,i=e.size,o=void 0===i?4:i,n=Te(e,ai);return Qt("div",Le({},Na(he(he({},n),{},{innerProps:t,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Qt(ci,{delay:0,offset:a}),Qt(ci,{delay:160,offset:!0}),Qt(ci,{delay:320,offset:!a}))},Menu:function(e){var t=e.children,a=e.innerRef,i=e.innerProps;return Qt("div",Le({},Na(e,"menu",{menu:!0}),{ref:a},i),t)},MenuList:function(e){var t=e.children,a=e.innerProps,i=e.innerRef,o=e.isMulti;return Qt("div",Le({},Na(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},a),t)},MenuPortal:function(e){var t=e.appendTo,a=e.children,i=e.controlElement,o=e.innerProps,n=e.menuPlacement,r=e.menuPosition,l=(0,Se.useRef)(null),s=(0,Se.useRef)(null),m=ve((0,Se.useState)(Ka(n)),2),d=m[0],c=m[1],p=(0,Se.useMemo)((function(){return{setPortalPlacement:c}}),[]),g=ve((0,Se.useState)(null),2),u=g[0],h=g[1],y=(0,Se.useCallback)((function(){if(i){var e=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}}(i),t="fixed"===r?0:window.pageYOffset,a=e[d]+t;a===(null==u?void 0:u.offset)&&e.left===(null==u?void 0:u.rect.left)&&e.width===(null==u?void 0:u.rect.width)||h({offset:a,rect:e})}}),[i,r,d,null==u?void 0:u.offset,null==u?void 0:u.rect.left,null==u?void 0:u.rect.width]);Ma((function(){y()}),[y]);var b=(0,Se.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),i&&l.current&&(s.current=function(e,t,a,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=i,m=va(e),d=o||n?[...m?ba(m):[],...ba(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",a,{passive:!0}),n&&e.addEventListener("resize",a)}));const c=m&&l?function(e,t){let a,i=null;const o=ma(e);function n(){var e;clearTimeout(a),null==(e=i)||e.disconnect(),i=null}return function r(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),n();const{left:m,top:d,width:c,height:p}=e.getBoundingClientRect();if(l||t(),!c||!p)return;const g={rootMargin:-na(d)+"px "+-na(o.clientWidth-(m+c))+"px "+-na(o.clientHeight-(d+p))+"px "+-na(m)+"px",threshold:ia(0,aa(1,s))||1};let u=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!u)return r();t?r(!1,t):a=setTimeout((()=>{r(!1,1e-7)}),1e3)}u=!1}try{i=new IntersectionObserver(h,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(h,g)}i.observe(e)}(!0),n}(m,a):null;let p,g=-1,u=null;r&&(u=new ResizeObserver((e=>{let[i]=e;i&&i.target===m&&u&&(u.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=u)||e.observe(t)}))),a()})),m&&!s&&u.observe(m),u.observe(t));let h=s?La(e):null;return s&&function t(){const i=La(e);!h||i.x===h.x&&i.y===h.y&&i.width===h.width&&i.height===h.height||a(),h=i,p=requestAnimationFrame(t)}(),a(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",a),n&&e.removeEventListener("resize",a)})),null==c||c(),null==(e=u)||e.disconnect(),u=null,s&&cancelAnimationFrame(p)}}(i,l.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);Ma((function(){b()}),[b]);var v=(0,Se.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==r||!u)return null;var T=Qt("div",Le({ref:v},Na(he(he({},e),{},{offset:u.offset,position:r,rect:u.rect}),"menuPortal",{"menu-portal":!0}),o),a);return Qt(Ya.Provider,{value:p},t?(0,ta.createPortal)(T,t):T)},LoadingMessage:function(e){var t=e.children,a=void 0===t?"Loading...":t,i=e.innerProps,o=Te(e,Ga);return Qt("div",Le({},Na(he(he({},o),{},{children:a,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),a)},NoOptionsMessage:function(e){var t=e.children,a=void 0===t?"No options":t,i=e.innerProps,o=Te(e,Oa);return Qt("div",Le({},Na(he(he({},o),{},{children:a,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),a)},MultiValue:function(e){var t=e.children,a=e.components,i=e.data,o=e.innerProps,n=e.isDisabled,r=e.removeProps,l=e.selectProps,s=a.Container,m=a.Label,d=a.Remove;return Qt(s,{data:i,innerProps:he(he({},Na(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":n})),o),selectProps:l},Qt(m,{data:i,innerProps:he({},Na(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Qt(d,{data:i,innerProps:he(he({},Na(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},r),selectProps:l}))},MultiValueContainer:bi,MultiValueLabel:bi,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return Qt("div",Le({role:"button"},a),t||Qt(ni,{size:14}))},Option:function(e){var t=e.children,a=e.isDisabled,i=e.isFocused,o=e.isSelected,n=e.innerRef,r=e.innerProps;return Qt("div",Le({},Na(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":o}),{ref:n,"aria-disabled":a},r),t)},Placeholder:function(e){var t=e.children,a=e.innerProps;return Qt("div",Le({},Na(e,"placeholder",{placeholder:!0}),a),t)},SelectContainer:function(e){var t=e.children,a=e.innerProps,i=e.isDisabled,o=e.isRtl;return Qt("div",Le({},Na(e,"container",{"--is-disabled":i,"--is-rtl":o}),a),t)},SingleValue:function(e){var t=e.children,a=e.isDisabled,i=e.innerProps;return Qt("div",Le({},Na(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),i),t)},ValueContainer:function(e){var t=e.children,a=e.innerProps,i=e.isMulti,o=e.hasValue;return Qt("div",Le({},Na(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),a),t)}},Ti=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Si(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((i=e[a])===(o=t[a])||Ti(i)&&Ti(o)))return!1;var i,o;return!0}for(var fi={name:"7pg0cj-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"},Li=function(e){return Qt("span",Le({css:fi},e))},Mi={guidance:function(e){var t=e.isSearchable,a=e.isMulti,i=e.tabSelectsValue,o=e.context,n=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return n?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",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";default:return""}},onChange:function(e){var t=e.action,a=e.label,i=void 0===a?"":a,o=e.labels,n=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(i,n?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,i=e.options,o=e.label,n=void 0===o?"":o,r=e.selectValue,l=e.isDisabled,s=e.isSelected,m=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&r)return"value ".concat(n," focused, ").concat(d(r,a),".");if("menu"===t&&m){var c=l?" disabled":"",p="".concat(s?" selected":"").concat(c);return"".concat(n).concat(p,", ").concat(d(i,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},xi=function(e){var t=e.ariaSelection,a=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,n=e.isFocused,r=e.selectValue,l=e.selectProps,s=e.id,m=e.isAppleDevice,d=l.ariaLiveMessages,c=l.getOptionLabel,p=l.inputValue,g=l.isMulti,u=l.isOptionDisabled,h=l.isSearchable,y=l.menuIsOpen,b=l.options,v=l.screenReaderStatus,T=l.tabSelectsValue,S=l.isLoading,f=l["aria-label"],L=l["aria-live"],M=(0,Se.useMemo)((function(){return he(he({},Mi),d||{})}),[d]),x=(0,Se.useMemo)((function(){var e,a="";if(t&&M.onChange){var i=t.option,o=t.options,n=t.removedValue,l=t.removedValues,s=t.value,m=n||i||(e=s,Array.isArray(e)?null:e),d=m?c(m):"",p=o||l||void 0,g=p?p.map(c):[],h=he({isDisabled:m&&u(m,r),label:d,labels:g},t);a=M.onChange(h)}return a}),[t,M,u,r,c]),E=(0,Se.useMemo)((function(){var e="",t=a||i,n=!!(a&&r&&r.includes(a));if(t&&M.onFocus){var l={focused:t,label:c(t),isDisabled:u(t,r),isSelected:n,options:o,context:t===a?"menu":"value",selectValue:r,isAppleDevice:m};e=M.onFocus(l)}return e}),[a,i,c,u,M,o,r,m]),B=(0,Se.useMemo)((function(){var e="";if(y&&b.length&&!S&&M.onFilter){var t=v({count:o.length});e=M.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,M,b,v,S]),k="initial-input-focus"===(null==t?void 0:t.action),_=(0,Se.useMemo)((function(){var e="";if(M.guidance){var t=i?"value":y?"menu":"input";e=M.guidance({"aria-label":f,context:t,isDisabled:a&&u(a,r),isMulti:g,isSearchable:h,tabSelectsValue:T,isInitialFocus:k})}return e}),[f,a,i,g,u,h,y,M,r,T,k]),H=Qt(Se.Fragment,null,Qt("span",{id:"aria-selection"},x),Qt("span",{id:"aria-focused"},E),Qt("span",{id:"aria-results"},B),Qt("span",{id:"aria-guidance"},_));return Qt(Se.Fragment,null,Qt(Li,{id:s},k&&H),Qt(Li,{"aria-live":L,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},n&&!k&&H))},Ei=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Bi=new RegExp("["+Ei.map((function(e){return e.letters})).join("")+"]","g"),ki={},_i=0;_i<Ei.length;_i++)for(var Hi=Ei[_i],Ni=0;Ni<Hi.letters.length;Ni++)ki[Hi.letters[Ni]]=Hi.base;var Vi=function(e){return e.replace(Bi,(function(e){return ki[e]}))},Ci=function(e,t){void 0===t&&(t=Si);var a=null;function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(a&&a.lastThis===this&&t(i,a.lastArgs))return a.lastResult;var n=e.apply(this,i);return a={lastResult:n,lastArgs:i,lastThis:this},n}return i.clear=function(){a=null},i}(Vi),zi=function(e){return e.replace(/^\s+|\s+$/g,"")},wi=function(e){return"".concat(e.label," ").concat(e.value)},Ri=["innerRef"];function Fi(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];var o=Object.entries(e).filter((function(e){var t=ve(e,1)[0];return!a.includes(t)}));return o.reduce((function(e,t){var a=ve(t,2),i=a[0],o=a[1];return e[i]=o,e}),{})}(Te(e,Ri),"onExited","in","enter","exit","appear");return Qt("input",Le({ref:t},a,{css:ea({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Di=["boxSizing","height","overflow","paddingRight","position"],Ui={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Pi(e){e.preventDefault()}function Ii(e){e.stopPropagation()}function $i(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Wi(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ai=!("undefined"==typeof window||!window.document||!window.document.createElement),Oi=0,Gi={capture:!1,passive:!1},ji=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Zi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function qi(e){var t=e.children,a=e.lockEnabled,i=e.captureEnabled,o=function(e){var t=e.isEnabled,a=e.onBottomArrive,i=e.onBottomLeave,o=e.onTopArrive,n=e.onTopLeave,r=(0,Se.useRef)(!1),l=(0,Se.useRef)(!1),s=(0,Se.useRef)(0),m=(0,Se.useRef)(null),d=(0,Se.useCallback)((function(e,t){if(null!==m.current){var s=m.current,d=s.scrollTop,c=s.scrollHeight,p=s.clientHeight,g=m.current,u=t>0,h=c-p-d,y=!1;h>t&&r.current&&(i&&i(e),r.current=!1),u&&l.current&&(n&&n(e),l.current=!1),u&&t>h?(a&&!r.current&&a(e),g.scrollTop=c,y=!0,r.current=!0):!u&&-t>d&&(o&&!l.current&&o(e),g.scrollTop=0,y=!0,l.current=!0),y&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[a,i,o,n]),c=(0,Se.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,Se.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),g=(0,Se.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;d(e,t)}),[d]),u=(0,Se.useCallback)((function(e){if(e){var t=!!$a&&{passive:!1};e.addEventListener("wheel",c,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",g,t)}}),[g,p,c]),h=(0,Se.useCallback)((function(e){e&&(e.removeEventListener("wheel",c,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",g,!1))}),[g,p,c]);return(0,Se.useEffect)((function(){if(t){var e=m.current;return u(e),function(){h(e)}}}),[t,u,h]),function(e){m.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),n=function(e){var t=e.isEnabled,a=e.accountForScrollbars,i=void 0===a||a,o=(0,Se.useRef)({}),n=(0,Se.useRef)(null),r=(0,Se.useCallback)((function(e){if(Ai){var t=document.body,a=t&&t.style;if(i&&Di.forEach((function(e){var t=a&&a[e];o.current[e]=t})),i&&Oi<1){var n=parseInt(o.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,l=window.innerWidth-r+n||0;Object.keys(Ui).forEach((function(e){var t=Ui[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(l,"px"))}t&&Wi()&&(t.addEventListener("touchmove",Pi,Gi),e&&(e.addEventListener("touchstart",$i,Gi),e.addEventListener("touchmove",Ii,Gi))),Oi+=1}}),[i]),l=(0,Se.useCallback)((function(e){if(Ai){var t=document.body,a=t&&t.style;Oi=Math.max(Oi-1,0),i&&Oi<1&&Di.forEach((function(e){var t=o.current[e];a&&(a[e]=t)})),t&&Wi()&&(t.removeEventListener("touchmove",Pi,Gi),e&&(e.removeEventListener("touchstart",$i,Gi),e.removeEventListener("touchmove",Ii,Gi)))}}),[i]);return(0,Se.useEffect)((function(){if(t){var e=n.current;return r(e),function(){l(e)}}}),[t,r,l]),function(e){n.current=e}}({isEnabled:a});return Qt(Se.Fragment,null,a&&Qt("div",{onClick:ji,css:Zi}),t((function(e){o(e),n(e)})))}var Ki={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Yi=function(e){var t=e.name,a=e.onFocus;return Qt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Ki,value:"",onChange:function(){}})};function Xi(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ji(){return Xi(/^Mac/i)}var Qi={clearIndicator:mi,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var a=e.isDisabled,i=e.isFocused,o=e.theme,n=o.colors,r=o.borderRadius;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?n.neutral5:n.neutral0,borderColor:a?n.neutral10:i?n.primary:n.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(n.primary):void 0,"&:hover":{borderColor:i?n.primary:n.neutral30}})},dropdownIndicator:si,group:function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:2*a.baseUnit,paddingTop:2*a.baseUnit}},groupHeading:function(e,t){var a=e.theme,i=a.colors,o=a.spacing;return he({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var a=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,n=i.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?n.neutral10:n.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var a=e.isDisabled,i=e.value,o=e.theme,n=o.spacing,r=o.colors;return he(he({visibility:a?"hidden":"visible",transform:i?"translateZ(0)":""},hi),t?{}:{margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,color:r.neutral80})},loadingIndicator:function(e,t){var a=e.isFocused,i=e.size,o=e.theme,n=o.colors,r=o.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*r})},loadingMessage:ei,menu:function(e,t){var a,i=e.placement,o=e.theme,n=o.borderRadius,r=o.spacing,l=o.colors;return he((ge(a={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(i),"100%"),ge(a,"position","absolute"),ge(a,"width","100%"),ge(a,"zIndex",1),a),t?{}:{backgroundColor:l.neutral0,borderRadius:n,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:r.menuGutter,marginTop:r.menuGutter})},menuList:function(e,t){var a=e.maxHeight,i=e.theme.spacing.baseUnit;return he({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},menuPortal:function(e){var t=e.rect,a=e.offset,i=e.position;return{left:t.left,position:i,top:a,width:t.width,zIndex:1}},multiValue:function(e,t){var a=e.theme,i=a.spacing,o=a.borderRadius,n=a.colors;return he({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:n.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},multiValueLabel:function(e,t){var a=e.theme,i=a.borderRadius,o=a.colors,n=e.cropWithEllipsis;return he({overflow:"hidden",textOverflow:n||void 0===n?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var a=e.theme,i=a.spacing,o=a.borderRadius,n=a.colors,r=e.isFocused;return he({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:r?n.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}})},noOptionsMessage:Qa,option:function(e,t){var a=e.isDisabled,i=e.isFocused,o=e.isSelected,n=e.theme,r=n.spacing,l=n.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:a?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),":active":{backgroundColor:a?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var a=e.theme,i=a.spacing,o=a.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},singleValue:function(e,t){var a=e.isDisabled,i=e.theme,o=i.spacing,n=i.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?n.neutral40:n.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var a=e.theme.spacing,i=e.isMulti,o=e.hasValue,n=e.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:i&&o&&n?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(2*a.baseUnit,"px")})}},eo={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}},to={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Da(),captureMenuScroll:!Da(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=he({ignoreCase:!0,ignoreAccents:!0,stringify:wi,trim:!0,matchFrom:"any"},undefined),i=a.ignoreCase,o=a.ignoreAccents,n=a.stringify,r=a.trim,l=a.matchFrom,s=r?zi(t):t,m=r?zi(n(e)):n(e);return i&&(s=s.toLowerCase(),m=m.toLowerCase()),o&&(s=Ci(s),m=Vi(m)),"start"===l?m.substr(0,s.length)===s:m.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:function(e){return!!e.isDisabled},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,unstyled:!1};function ao(e,t,a,i){return{type:"option",data:t,isDisabled:co(e,t,a),isSelected:po(e,t,a),label:so(e,t),value:mo(e,t),index:i}}function io(e,t){return e.options.map((function(a,i){if("options"in a){var o=a.options.map((function(a,i){return ao(e,a,t,i)})).filter((function(t){return ro(e,t)}));return o.length>0?{type:"group",data:a,options:o,index:i}:void 0}var n=ao(e,a,t,i);return ro(e,n)?n:void 0})).filter(Wa)}function oo(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,_e(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function no(e,t){return e.reduce((function(e,a){return"group"===a.type?e.push.apply(e,_e(a.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(a.index,"-").concat(e.index)}})))):e.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),e}),[])}function ro(e,t){var a=e.inputValue,i=void 0===a?"":a,o=t.data,n=t.isSelected,r=t.label,l=t.value;return(!uo(e)||!n)&&go(e,{label:r,value:l,data:o},i)}var lo=function(e,t){var a;return(null===(a=e.find((function(e){return e.data===t})))||void 0===a?void 0:a.id)||null},so=function(e,t){return e.getOptionLabel(t)},mo=function(e,t){return e.getOptionValue(t)};function co(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function po(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var i=mo(e,t);return a.some((function(t){return mo(e,t)===i}))}function go(e,t,a){return!e.filterOption||e.filterOption(t,a)}var uo=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},ho=1,yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(l,e);var t,a,i,o,n,r=(o=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ee(o);if(n){var a=Ee(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return ke(this,e)});function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=r.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Ji()||Xi(/^iPhone/i)||Xi(/^iPad/i)||Ji()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,a){var i=t.props,o=i.onChange,n=i.name;a.name=n,t.ariaOnChange(e,a),o(e,a)},t.setValue=function(e,a,i){var o=t.props,n=o.closeMenuOnSelect,r=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),n&&(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:a,option:i})},t.selectOption=function(e){var a=t.props,i=a.blurInputOnSelect,o=a.isMulti,n=a.name,r=t.state.selectValue,l=o&&t.isOptionSelected(e,r),s=t.isOptionDisabled(e,r);if(l){var m=t.getOptionValue(e);t.setValue(r.filter((function(e){return t.getOptionValue(e)!==m})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:n});o?t.setValue([].concat(_e(r),[e]),"select-option",e):t.setValue(e,"select-option")}i&&t.blurInput()},t.removeValue=function(e){var a=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),n=i.filter((function(e){return t.getOptionValue(e)!==o})),r=Aa(a,n,n[0]||null);t.onChange(r,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Aa(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,a=t.state.selectValue,i=a[a.length-1],o=a.slice(0,a.length-1),n=Aa(e,o,o[0]||null);t.onChange(n,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return lo(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return no(io(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return ka.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return so(t.props,e)},t.getOptionValue=function(e){return mo(t.props,e)},t.getStyles=function(e,a){var i=t.props.unstyled,o=Qi[e](a,i);o.boxSizing="border-box";var n=t.props.styles[e];return n?n(o,a):o},t.getClassNames=function(e,a){var i,o;return null===(i=(o=t.props.classNames)[e])||void 0===i?void 0:i.call(o,a)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,he(he({},vi),e.components);var e},t.buildCategorizedOptions=function(){return io(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return oo(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:he({value:e},a)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var a=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():a&&t.openMenu("first"):(a&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var a=t.props,i=a.isMulti,o=a.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Va(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var a=e.touches,i=a&&a.item(0);i&&(t.initialTouchX=i.clientX,t.initialTouchY=i.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var a=e.touches,i=a&&a.item(0);if(i){var o=Math.abs(i.clientX-t.initialTouchX),n=Math.abs(i.clientY-t.initialTouchY);t.userIsDragging=o>5||n>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var a=t.props.inputValue,i=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(i,{action:"input-change",prevInputValue:a}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var a=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:a}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var a=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:a>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return uo(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var a=t.props,i=a.isMulti,o=a.backspaceRemovesValue,n=a.escapeClearsValue,r=a.inputValue,l=a.isClearable,s=a.isDisabled,m=a.menuIsOpen,d=a.onKeyDown,c=a.tabSelectsValue,p=a.openMenuOnFocus,g=t.state,u=g.focusedOption,h=g.focusedValue,y=g.selectValue;if(!(s||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!i||r)return;t.focusValue("previous");break;case"ArrowRight":if(!i||r)return;t.focusValue("next");break;case"Delete":case"Backspace":if(r)return;if(h)t.removeValue(h);else{if(!o)return;i?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!m||!c||!u||p&&t.isOptionSelected(u,y))return;t.selectOption(u);break;case"Enter":if(229===e.keyCode)break;if(m){if(!u)return;if(t.isComposing)return;t.selectOption(u);break}return;case"Escape":m?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:r}),t.onMenuClose()):l&&n&&t.clearValue();break;case" ":if(r)return;if(!m){t.openMenu("first");break}if(!u)return;t.selectOption(u);break;case"ArrowUp":m?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":m?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!m)return;t.focusOption("pageup");break;case"PageDown":if(!m)return;t.focusOption("pagedown");break;case"Home":if(!m)return;t.focusOption("first");break;case"End":if(!m)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ho),t.state.selectValue=_a(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),o=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=a,t.state.focusedOption=i[o],t.state.focusedOptionId=lo(a,i[o])}return t}return t=l,a=[{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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Fa(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.isDisabled,i=t.menuIsOpen,o=this.state.isFocused;(o&&!a&&e.isDisabled||o&&i&&!e.menuIsOpen)&&this.focusInput(),o&&a&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||a||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Fa(this.menuListRef,this.focusedOptionRef),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(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),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,a=this.state,i=a.selectValue,o=a.isFocused,n=this.buildFocusableOptions(),r="first"===e?0:n.length-1;if(!this.props.isMulti){var l=n.indexOf(i[0]);l>-1&&(r=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:n[r],focusedOptionId:this.getFocusedOptionId(n[r])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,i=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=a.indexOf(i);i||(o=-1);var n=a.length-1,r=-1;if(a.length){switch(e){case"previous":r=0===o?0:-1===o?n:o-1;break;case"next":o>-1&&o<n&&(r=o+1)}this.setState({inputIsHidden:-1!==r,focusedValue:a[r]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var o=0,n=i.indexOf(a);a||(n=-1),"up"===e?o=n>0?n-1:i.length-1:"down"===e?o=(n+1)%i.length:"pageup"===e?(o=n-t)<0&&(o=0):"pagedown"===e?(o=n+t)>i.length-1&&(o=i.length-1):"last"===e&&(o=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(i[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(eo):he(he({},eo),this.props.theme):eo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,i=this.getClassNames,o=this.getValue,n=this.selectOption,r=this.setValue,l=this.props,s=l.isMulti,m=l.isRtl,d=l.options;return{clearValue:e,cx:t,getStyles:a,getClassNames:i,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:m,options:d,selectOption:n,selectProps:l,setValue:r,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return co(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return po(this.props,e,t)}},{key:"filterOption",value:function(e,t){return go(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:i})}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:"renderInput",value:function(){var e=this.props,t=e.isDisabled,a=e.isSearchable,i=e.inputId,o=e.inputValue,n=e.tabIndex,r=e.form,l=e.menuIsOpen,s=e.required,m=this.getComponents().Input,d=this.state,c=d.inputIsHidden,p=d.ariaSelection,g=this.commonProps,u=i||this.getElementId("input"),h=he(he(he({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Se.createElement(m,Le({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:r,type:"text",value:o},h)):Se.createElement(Fi,Le({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ea,onFocus:this.onInputFocus,disabled:t,tabIndex:n,inputMode:"none",form:r,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),a=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,n=t.MultiValueRemove,r=t.SingleValue,l=t.Placeholder,s=this.commonProps,m=this.props,d=m.controlShouldRenderValue,c=m.isDisabled,p=m.isMulti,g=m.inputValue,u=m.placeholder,h=this.state,y=h.selectValue,b=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!d)return g?null:Se.createElement(l,Le({},s,{key:"placeholder",isDisabled:c,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),u);if(p)return y.map((function(t,r){var l=t===b,m="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Se.createElement(a,Le({},s,{components:{Container:i,Label:o,Remove:n},isFocused:l,isDisabled:c,key:m,index:r,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(g)return null;var T=y[0];return Se.createElement(r,Le({},s,{data:T,isDisabled:c}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,a=this.props,i=a.isDisabled,o=a.isLoading,n=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var r={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Se.createElement(e,Le({},t,{innerProps:r,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,a=this.props,i=a.isDisabled,o=a.isLoading,n=this.state.isFocused;return e&&o?Se.createElement(e,Le({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,a=e.IndicatorSeparator;if(!t||!a)return null;var i=this.commonProps,o=this.props.isDisabled,n=this.state.isFocused;return Se.createElement(a,Le({},i,{isDisabled:o,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Se.createElement(e,Le({},t,{innerProps:o,isDisabled:a,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),a=t.Group,i=t.GroupHeading,o=t.Menu,n=t.MenuList,r=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,m=t.Option,d=this.commonProps,c=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,u=p.inputValue,h=p.isLoading,y=p.loadingMessage,b=p.minMenuHeight,v=p.maxMenuHeight,T=p.menuIsOpen,S=p.menuPlacement,f=p.menuPosition,L=p.menuPortalTarget,M=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,E=p.noOptionsMessage,B=p.onMenuScrollToTop,k=p.onMenuScrollToBottom;if(!T)return null;var _,H=function(t,a){var i=t.type,o=t.data,n=t.isDisabled,r=t.isSelected,l=t.label,s=t.value,p=c===o,g=n?void 0:function(){return e.onOptionHover(o)},u=n?void 0:function(){return e.selectOption(o)},h="".concat(e.getElementId("option"),"-").concat(a),y={id:h,onClick:u,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:r};return Se.createElement(m,Le({},d,{innerProps:y,data:o,isDisabled:n,isSelected:r,key:h,label:l,type:i,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,n=t.options,r=t.index,l="".concat(e.getElementId("group"),"-").concat(r),s="".concat(l,"-heading");return Se.createElement(a,Le({},d,{key:l,data:o,options:n,Heading:i,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return H(e,"".concat(r,"-").concat(e.index))})))}if("option"===t.type)return H(t,"".concat(t.index))}));else if(h){var N=y({inputValue:u});if(null===N)return null;_=Se.createElement(l,d,N)}else{var V=E({inputValue:u});if(null===V)return null;_=Se.createElement(s,d,V)}var C={minMenuHeight:b,maxMenuHeight:v,menuPlacement:S,menuPosition:f,menuShouldScrollIntoView:x},z=Se.createElement(Xa,Le({},d,C),(function(t){var a=t.ref,i=t.placerProps,r=i.placement,l=i.maxHeight;return Se.createElement(o,Le({},d,C,{innerRef:a,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:r}),Se.createElement(qi,{captureEnabled:g,onTopArrive:B,onBottomArrive:k,lockEnabled:M},(function(t){return Se.createElement(n,Le({},d,{innerRef:function(a){e.getMenuListRef(a),t(a)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:l,focusedOption:c}),_)})))}));return L||"fixed"===f?Se.createElement(r,Le({},d,{appendTo:L,controlElement:this.controlRef,menuPlacement:S,menuPosition:f}),z):z}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,i=t.isDisabled,o=t.isMulti,n=t.name,r=t.required,l=this.state.selectValue;if(r&&!this.hasValue()&&!i)return Se.createElement(Yi,{name:n,onFocus:this.onValueInputFocus});if(n&&!i){if(o){if(a){var s=l.map((function(t){return e.getOptionValue(t)})).join(a);return Se.createElement("input",{name:n,type:"hidden",value:s})}var m=l.length>0?l.map((function(t,a){return Se.createElement("input",{key:"i-".concat(a),name:n,type:"hidden",value:e.getOptionValue(t)})})):Se.createElement("input",{name:n,type:"hidden",value:""});return Se.createElement("div",null,m)}var d=l[0]?this.getOptionValue(l[0]):"";return Se.createElement("input",{name:n,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,a=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,n=t.isFocused,r=t.selectValue,l=this.getFocusableOptions();return Se.createElement(xi,Le({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:i,focusedValue:o,isFocused:n,selectValue:r,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,a=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,n=this.props,r=n.className,l=n.id,s=n.isDisabled,m=n.menuIsOpen,d=this.state.isFocused,c=this.commonProps=this.getCommonProps();return Se.createElement(i,Le({},c,{className:r,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),Se.createElement(t,Le({},c,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:m}),Se.createElement(o,Le({},c,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Se.createElement(a,Le({},c,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,n=t.ariaSelection,r=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,m=e.options,d=e.value,c=e.menuIsOpen,p=e.inputValue,g=e.isMulti,u=_a(d),h={};if(a&&(d!==a.value||m!==a.options||c!==a.menuIsOpen||p!==a.inputValue)){var y=c?function(e,t){return oo(io(e,t))}(e,u):[],b=c?no(io(e,u),"".concat(s,"-option")):[],v=i?function(e,t){var a=e.focusedValue,i=e.selectValue.indexOf(a);if(i>-1){if(t.indexOf(a)>-1)return a;if(i<t.length)return t[i]}return null}(t,u):null,T=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,y);h={selectValue:u,focusedOption:T,focusedOptionId:lo(b,T),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var S=null!=o&&e!==a?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},f=n,L=r&&l;return r&&!L&&(f={value:Aa(g,u,u[0]||null),options:u,action:"initial-input-focus"},L=!l),"initial-input-focus"===(null==n?void 0:n.action)&&(f=null),he(he(he({},h),S),{},{prevProps:e,ariaSelection:f,prevWasFocused:L})}}],a&&Me(t.prototype,a),i&&Me(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(Se.Component);yo.defaultProps=to;var bo=(0,Se.forwardRef)((function(e,t){var a=function(e){var t=e.defaultInputValue,a=void 0===t?"":t,i=e.defaultMenuIsOpen,o=void 0!==i&&i,n=e.defaultValue,r=void 0===n?null:n,l=e.inputValue,s=e.menuIsOpen,m=e.onChange,d=e.onInputChange,c=e.onMenuClose,p=e.onMenuOpen,g=e.value,u=Te(e,fe),h=ve((0,Se.useState)(void 0!==l?l:a),2),y=h[0],b=h[1],v=ve((0,Se.useState)(void 0!==s?s:o),2),T=v[0],S=v[1],f=ve((0,Se.useState)(void 0!==g?g:r),2),L=f[0],M=f[1],x=(0,Se.useCallback)((function(e,t){"function"==typeof m&&m(e,t),M(e)}),[m]),E=(0,Se.useCallback)((function(e,t){var a;"function"==typeof d&&(a=d(e,t)),b(void 0!==a?a:e)}),[d]),B=(0,Se.useCallback)((function(){"function"==typeof p&&p(),S(!0)}),[p]),k=(0,Se.useCallback)((function(){"function"==typeof c&&c(),S(!1)}),[c]),_=void 0!==l?l:y,H=void 0!==s?s:T,N=void 0!==g?g:L;return he(he({},u),{},{inputValue:_,menuIsOpen:H,onChange:x,onInputChange:E,onMenuClose:k,onMenuOpen:B,value:N})}(e);return Se.createElement(yo,Le({ref:t},a))})),vo=bo;const To=t=>{let{label:a,valueFamily:o,setValueFamily:n,valueWeight:r,setValueWeight:l,valueTextTransform:s,setValueTextTransform:m,valueTextDecoration:d,setValueTextDecoration:c,valueFontSize:u,setValueFontSize:h,valueFontSizeMd:y,setValueFontSizeMd:v,valueFontSizeSm:T,setValueFontSizeSm:S,valueFontSizeUnit:L,setValueFontSizeUnit:M,valueLetterSpacing:x,setValueLetterSpacing:E,valueLetterSpacingMd:B,setValueLetterSpacingMd:k,valueLetterSpacingSm:_,setValueLetterSpacingSm:H,valueLetterSpacingUnit:N,setValueLetterSpacingUnit:V,valueLineHeight:C,setValueLineHeight:z,valueLineHeightMd:w,setValueLineHeightMd:R,valueLineHeightSm:F,setValueLineHeightSm:D,valueLineHeightUnit:U,setValueLineHeightUnit:P}=t;const[I,$]=(0,i.useState)(pe.filter((e=>e.family===(o||"inherit")))[0].variants),W=()=>{let e;return e=0,0},A=()=>{let e;switch(L){case"em":case"rem":e=10;break;default:e=100}return e},O=()=>{let e;switch(N){case"em":case"rem":e=-5;break;default:e=-10}return e},G=()=>{let e;switch(N){case"em":case"rem":e=5;break;default:e=20}return e},j=()=>{let e;return e=0,0},Z=()=>{let e;switch(U){case"em":case"rem":e=5;break;default:e=100}return e},q=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]);var K=[];return pe&&pe.map(((e,t)=>{K.push({label:"inherit"!=e.family?e.family:"Default",value:e.family})})),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-typography sb-display-inline"},(0,i.createElement)("label",null,a||(0,p.__)("Typography","smart-blocks")),(0,i.createElement)("div",{className:"sb-components-dropdown"},(0,i.createElement)(g.Tooltip,{text:(0,p.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{n("inherit"),l("inherit"),m("inherit"),c("inherit"),h(""),v(""),S(""),M("px"),E(""),k(""),H(""),V("px"),z(""),R(""),D(""),P("px")}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(b,null)))),(0,i.createElement)(g.Dropdown,{position:"top right",contentClassName:"sb-popover-style",renderToggle:e=>{let{isOpen:t,onToggle:a}=e;return(0,i.createElement)("button",{className:"sb-typo-setttings sb-setting-button",isPrimary:!0,onClick:a,"aria-expanded":t},(0,i.createElement)(g.Dashicon,{size:"15",icon:"admin-tools"}))},renderContent:()=>(0,i.createElement)("div",{className:"sb-field-typography-options"},(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,p.__)("Font Family","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)(vo,{value:K.find((e=>e.value==o)),onChange:e=>{const t=e.value;n(t),$(pe.filter((e=>e.family===t))[0].variants),l("400")},options:K,isMulti:!1,className:"sb-select-container",classNamePrefix:"sb-select"})))),(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,p.__)("Weight/Style","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)("select",{value:r,onChange:e=>l(e.target.value)},!(o&&"inherit"!=o)&&(0,i.createElement)("option",{value:"inherit"},"Default"),Object.keys(I).sort().map((e=>(0,i.createElement)("option",{value:e},I[e]))))))),(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,p.__)("Text Transform","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)("select",{value:s,onChange:e=>m(e.target.value)},(0,i.createElement)("option",{value:"inherit"},"Default"),(0,i.createElement)("option",{value:"none"},"None"),(0,i.createElement)("option",{value:"uppercase"},"Uppercase"),(0,i.createElement)("option",{value:"lowercase"},"Lowercase"),(0,i.createElement)("option",{value:"capitalize"},"Capitalize"))))),(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,p.__)("Text Decoration","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)("select",{value:d,onChange:e=>c(e.target.value)},(0,i.createElement)("option",{value:"inherit"},"Default"),(0,i.createElement)("option",{value:"none"},"None"),(0,i.createElement)("option",{value:"underline"},"Underline"),(0,i.createElement)("option",{value:"line-through"},"Line Through"),(0,i.createElement)("option",{value:"overline"},"Overline"))))),(0,i.createElement)("div",{className:"sb-field sb-field-range sb-responsive"},(0,i.createElement)("div",{class:"sb-label"},(0,i.createElement)("label",{for:"input"},(0,p.__)("Font Size","smart-blocks")),(0,i.createElement)(f,null),(0,i.createElement)("div",{className:"sb-unit-btn-group"},(0,i.createElement)("button",{className:"px"===L?"active":"",onClick:()=>{h(""),v(""),S(""),M("px")}},"px"),(0,i.createElement)("button",{className:"em"===L?"active":"",onClick:()=>{h(""),v(""),S(""),M("em")}},"em"),(0,i.createElement)("button",{className:"rem"===L?"active":"",onClick:()=>{h(""),v(""),S(""),M("rem")}},"rem"),(0,i.createElement)("button",{className:"%"===L?"active":"",onClick:e=>{h(""),v(""),S(""),M("%")}},"%"))),(0,i.createElement)("div",{className:"sb-input-fields"},"Desktop"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:W(),max:A(),step:"1",value:u,onChange:e=>h(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"1",value:u,onChange:e=>h(e.target.value)})),"Tablet"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:W(),max:A(),step:"1",value:y,onChange:e=>v(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"1",value:y,onChange:e=>v(e.target.value)})),"Mobile"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:W(),max:A(),step:"1",value:T,onChange:e=>S(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"1",value:T,onChange:e=>S(e.target.value)})))),(0,i.createElement)("div",{className:"sb-field sb-field-range sb-responsive"},(0,i.createElement)("div",{class:"sb-label"},(0,i.createElement)("label",{for:"input"},(0,p.__)("Letter Spacing","smart-blocks")),(0,i.createElement)(f,null),(0,i.createElement)("div",{className:"sb-unit-btn-group"},(0,i.createElement)("button",{className:"px"===N?"active":"",onClick:()=>{E(""),k(""),H(""),V("px")}},"px"),(0,i.createElement)("button",{className:"em"===N?"active":"",onClick:()=>{E(""),k(""),H(""),V("em")}},"em"),(0,i.createElement)("button",{className:"rem"===N?"active":"",onClick:()=>{E(""),k(""),H(""),V("rem")}},"rem"))),(0,i.createElement)("div",{className:"sb-input-fields"},"Desktop"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:O(),max:G(),step:"px"==N?1:.1,value:x,onChange:e=>E(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==N?1:.1,value:x,onChange:e=>E(e.target.value)})),"Tablet"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:O(),max:G(),step:"px"==N?1:.1,value:B,onChange:e=>setValuesLetterSpacingMd(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==N?1:.1,value:B,onChange:e=>setValuesLetterSpacingMd(e.target.value)})),"Mobile"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:O(),max:G(),step:"px"==N?1:.1,value:_,onChange:e=>setValuesLetterSpacingSm(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==N?1:.1,value:_,onChange:e=>setValuesLetterSpacingSm(e.target.value)})))),(0,i.createElement)("div",{className:"sb-field sb-field-range sb-responsive"},(0,i.createElement)("div",{class:"sb-label"},(0,i.createElement)("label",{for:"input"},(0,p.__)("Line Height","smart-blocks")),(0,i.createElement)(f,null),(0,i.createElement)("div",{className:"sb-unit-btn-group"},(0,i.createElement)("button",{className:"px"===U?"active":"",onClick:()=>{z(""),R(""),D(""),P("px")}},"px"),(0,i.createElement)("button",{className:"em"===U?"active":"",onClick:()=>{z(""),R(""),D(""),P("em")}},"em"),(0,i.createElement)("button",{className:"rem"===U?"active":"",onClick:()=>{z(""),R(""),D(""),P("rem")}},"rem"))),(0,i.createElement)("div",{className:"sb-input-fields"},"Desktop"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:j(),max:Z(),step:"px"==U?1:.1,value:C,onChange:e=>z(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==U?1:.1,value:C,onChange:e=>z(e.target.value)})),"Tablet"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:j(),max:Z(),step:"px"==U?1:.1,value:w,onChange:e=>R(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==U?1:.1,value:w,onChange:e=>R(e.target.value)})),"Mobile"==q&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:j(),max:Z(),step:"px"==U?1:.1,value:F,onChange:e=>D(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==U?1:.1,value:F,onChange:e=>D(e.target.value)})))))}))))},So=e=>{let{family:t,weight:a}=e;const o=a&&a.length>0&&"inherit"!=a?":"+a:null;return t&&"inherit"!=t?(0,i.createElement)("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${t}${o||""}`}):""},fo=e=>{let{label:t,options:a,value:o,setValue:n}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-multiple-select"},t&&(0,i.createElement)("label",{className:"sb-label"},t),(0,i.createElement)("div",{class:"sb-input-fields"},(0,i.createElement)("div",{class:"sb-popup-select"},(0,i.createElement)(vo,{value:a.filter((e=>o&&o.includes(e.value))),onChange:e=>{let t=[];e.map(((e,a)=>{t.push(e.value)})),n(t)},options:a,isMulti:!0,className:"sb-select-container",classNamePrefix:"sb-select"})))))},Lo=t=>{const{attributes:a,setAttributes:o,usePostNumber:n,optChange:r=(()=>{})}=t,{postsPostType:l,excludePosts:s,orderBy:m,order:d,offset:c,categories:u}=a,{allTaxonomies:h,allPostsSelect:y,allPostTypes:b,allTaxTerms:v}=(0,e.useSelect)((e=>{let t=[],a=e("core").getTaxonomies();null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==l&&t.push({value:e.slug,label:e.name})}));let i=[],o=e("core").getPostTypes();null==o||o.forEach((e=>{!0===e.visibility.show_in_nav_menus&&i.push({value:e.slug,label:e.name})}));let n=[];t&&t.map((function(t,a){n[t.value]=e("core").getEntityRecords("taxonomy",t.value,{per_page:-1})}));let r=e("core").getEntityRecords("postType",l,{per_page:10,_embed:!0,order:d,orderby:m,offset:parseInt(c||0)}),s=[];return r&&r.map(((e,t)=>{s.push({value:e.id,label:e.title.rendered})})),{allTaxonomies:t,allPostsSelect:s,allPostTypes:i,allTaxTerms:n}}),[l,d,m,u,c,s]),T=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;var i,o=[],n=[];if(t&&t.length)if(void 0!==t[0].parent){for(i=0;i<t.length;i++)t[i].parent==e&&(n=[...n,t[i]]);n.length&&(a++,n&&n.map((e=>{let n="";for(i=0;i<a;)n+="- ",i++;n+=e.name.replace("-"," "),o.push({value:e.id,label:n+" ("+e.count+")"});let r=T(e.id,t,a);r.length&&(o=[...o,...r])})))}else t.map((e=>{o.push({value:e.id,label:e.name+" ("+e.count+")"})}));return o},S=e=>{let t=[];return v[e]&&(t=T(0,v[e])),t};return(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Content Filter","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Source","smart-blocks"),value:l,onChange:e=>{o({postsPostType:e}),r()},options:b}),h&&h.map(((e,t)=>{var a;const n=u&&null!==(a=u[e.value])&&void 0!==a?a:[];return(0,i.createElement)(fo,{label:e.label,options:S(e.value),value:n,setValue:t=>{o({categories:{...u,[e.value]:t}}),r()},key:t})})),(0,i.createElement)(fo,{label:(0,p.__)("Exclude Posts","smart-blocks"),options:y,value:s,setValue:e=>{o({excludePosts:e}),r()}}),(0,i.createElement)(k,{label:(0,p.__)("Order By","smart-blocks"),value:m,onChange:e=>{o({orderBy:e}),r()},options:[{value:"date",label:(0,p.__)("Date","smart-blocks")},{value:"modified",label:(0,p.__)("Last Modified Date","smart-blocks")},{value:"rand",label:(0,p.__)("Rand","smart-blocks")},{value:"comment_count",label:(0,p.__)("Comment Count","smart-blocks")},{value:"title",label:(0,p.__)("Title","smart-blocks")},{value:"author",label:(0,p.__)("Show Post Author","smart-blocks")}]}),(0,i.createElement)(k,{label:(0,p.__)("Order","smart-blocks"),value:d,onChange:e=>{o({order:e}),r()},options:[{value:"desc",label:(0,p.__)("Descending","smart-blocks")},{value:"asc",label:(0,p.__)("Ascending","smart-blocks")}]}),(0,i.createElement)(x,{label:(0,p.__)("Offset","smart-blocks"),value:c,setValue:e=>{o({offset:e}),r()},min:0,max:10}),n&&(0,i.createElement)(x,{label:(0,p.__)("No of Posts","smart-blocks"),value:a.noOfPosts,setValue:e=>{o({noOfPosts:e}),r()},min:0,max:20}),(0,R.applyFilters)("smartblocks.queryFilter","",t))};(0,o.registerBlockType)("smart-blocks/news-module-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 108.82"},(0,i.createElement)("path",{fill:"#687e8b",d:"M159.83 23.8h44v34.01h-44z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 64.61h37.41v3.4h-37.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 71.41h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M159.83 81.62h44v3.4h-44zm0 6.8h44.21v3.4h-44.21z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 20.4h44v34.01H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 61.21h37.41v3.4H3.4z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M13.6 68.01h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 78.21h44v3.4H0zm0 6.81h44.21v3.4H0zm64.61 10.2h74.81v6.8H64.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M88.42 105.42h27.2v3.4h-27.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M57.81 0h88.42v88.42H57.81z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 1","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideExcerptLength:fe,sideImageHeight:Le,sidePostAuthor:Me,sidePostDate:xe,sidePostComments:Ee,sidePostCategory:Be,sideTypographyFamily:ke,sideTypographyWeight:_e,sideTypographyTextTransform:He,sideTypographyTextDecoration:Ne,sideTypographyFontSizeSm:Ve,sideTypographyFontSizeMd:Ce,sideTypographyFontSize:ze,sideTypographyFontSizeUnit:we,sideTypographyLetterSpacingSm:Re,sideTypographyLetterSpacingMd:Fe,sideTypographyLetterSpacing:De,sideTypographyLetterSpacingUnit:Ue,sideTypographyLineHeightSm:Pe,sideTypographyLineHeightMd:Ie,sideTypographyLineHeight:$e,sideTypographyLineHeightUnit:We,featuredImageSize:Ae,featuredExcerptLength:Oe,featuredImageHeight:Ge,featuredPostAuthor:je,featuredPostDate:Ze,featuredPostComments:qe,featuredPostCategory:Ke,featuredTitleMarginSmTop:Ye,featuredTitleMarginSmLeft:Xe,featuredTitleMarginSmRight:Je,featuredTitleMarginSmBottom:Qe,featuredTitleMarginMdTop:et,featuredTitleMarginMdLeft:tt,featuredTitleMarginMdRight:at,featuredTitleMarginMdBottom:it,featuredTitleMarginTop:ot,featuredTitleMarginLeft:nt,featuredTitleMarginRight:rt,featuredTitleMarginBottom:lt,featuredTitleMarginUnit:st,featuredTypographyFamily:mt,featuredTypographyWeight:dt,featuredTypographyTextTransform:ct,featuredTypographyTextDecoration:pt,featuredTypographyFontSizeSm:gt,featuredTypographyFontSizeMd:ut,featuredTypographyFontSize:ht,featuredTypographyFontSizeUnit:yt,featuredTypographyLetterSpacingSm:bt,featuredTypographyLetterSpacingMd:vt,featuredTypographyLetterSpacing:Tt,featuredTypographyLetterSpacingUnit:St,featuredTypographyLineHeightSm:ft,featuredTypographyLineHeightMd:Lt,featuredTypographyLineHeight:Mt,featuredTypographyLineHeightUnit:xt,excerptTypographyFamily:Et,excerptTypographyWeight:Bt,excerptTypographyTextTransform:kt,excerptTypographyTextDecoration:_t,excerptTypographyFontSizeSm:Ht,excerptTypographyFontSizeMd:Nt,excerptTypographyFontSize:Vt,excerptTypographyFontSizeUnit:Ct,excerptTypographyLetterSpacingSm:zt,excerptTypographyLetterSpacingMd:wt,excerptTypographyLetterSpacing:Rt,excerptTypographyLetterSpacingUnit:Ft,excerptTypographyLineHeightSm:Dt,excerptTypographyLineHeightMd:Ut,excerptTypographyLineHeight:Pt,excerptTypographyLineHeightUnit:It,metasTypographyFamily:$t,metasTypographyWeight:Wt,metasTypographyTextTransform:At,metasTypographyTextDecoration:Ot,metasTypographyFontSizeSm:Gt,metasTypographyFontSizeMd:jt,metasTypographyFontSize:Zt,metasTypographyFontSizeUnit:qt,metasTypographyLetterSpacingSm:Kt,metasTypographyLetterSpacingMd:Yt,metasTypographyLetterSpacing:Xt,metasTypographyLetterSpacingUnit:Jt,metasTypographyLineHeightSm:Qt,metasTypographyLineHeightMd:ea,metasTypographyLineHeight:ta,metasTypographyLineHeightUnit:aa,dateFormat:ia,customDateFormat:oa,imageBorderRadius:na,sideTitleMarginSmTop:ra,sideTitleMarginSmLeft:la,sideTitleMarginSmRight:sa,sideTitleMarginSmBottom:ma,sideTitleMarginMdTop:da,sideTitleMarginMdLeft:ca,sideTitleMarginMdRight:pa,sideTitleMarginMdBottom:ga,sideTitleMarginTop:ua,sideTitleMarginLeft:ha,sideTitleMarginRight:ya,sideTitleMarginBottom:ba,sideTitleMarginUnit:va,categoryBackgroundColor:Ta,categoryTextColor:Sa,categoryBackgroundHoverColor:fa,categoryTextHoverColor:La,titleColor:Ma,titleHoverColor:xa,excerptColor:Ea,postMetasColor:Ba,blockMarginSmTop:ka,blockMarginSmLeft:_a,blockMarginSmRight:Ha,blockMarginSmBottom:Na,blockMarginMdTop:Va,blockMarginMdLeft:Ca,blockMarginMdRight:za,blockMarginMdBottom:wa,blockMarginTop:Ra,blockMarginLeft:Fa,blockMarginRight:Da,blockMarginBottom:Ua,blockMarginUnit:Pa,blockPaddingSmTop:Ia,blockPaddingSmLeft:$a,blockPaddingSmRight:Wa,blockPaddingSmBottom:Aa,blockPaddingMdTop:Oa,blockPaddingMdLeft:Ga,blockPaddingMdRight:ja,blockPaddingMdBottom:Za,blockPaddingTop:qa,blockPaddingLeft:Ka,blockPaddingRight:Ya,blockPaddingBottom:Xa,blockPaddingUnit:Ja,borderNormal:Qa,borderHover:ei,borderNormalColor:ti,borderHoverColor:ai,borderNormalWidthTop:ii,borderNormalWidthLeft:oi,borderNormalWidthRight:ni,borderNormalWidthBottom:ri,borderNormalWidthUnit:li,borderHoverWidthTop:si,borderHoverWidthLeft:mi,borderHoverWidthRight:di,borderHoverWidthBottom:ci,borderHoverWidthUnit:pi,borderNormalRadiusTop:gi,borderNormalRadiusLeft:ui,borderNormalRadiusRight:hi,borderNormalRadiusBottom:yi,borderNormalRadiusUnit:bi,borderHoverRadiusTop:vi,borderHoverRadiusLeft:Ti,borderHoverRadiusRight:Si,borderHoverRadiusBottom:fi,borderHoverRadiusUnit:Li,borderNormalBoxShadowHorizontal:Mi,borderNormalBoxShadowVertical:xi,borderNormalBoxShadowBlur:Ei,borderNormalBoxShadowSpread:Bi,borderNormalBoxShadowColor:ki,borderNormalBoxShadowInset:_i,borderHoverBoxShadowHorizontal:Hi,borderHoverBoxShadowVertical:Ni,borderHoverBoxShadowBlur:Vi,borderHoverBoxShadowSpread:Ci,borderHoverBoxShadowColor:zi,borderHoverBoxShadowInset:wi,blockBgColor:Ri}=a;o({id:(0,d.useBlockProps)().id});const Fi=`#${s} {\n        ${Qa?"--sb-border-normal: "+Qa+";":""}\n        ${ei?"--sb-border-hover: "+Qa+";":""}\n        ${ti?"--sb-border-normal-color: "+ti+";":""}\n        ${ai?"--sb-border-hover-color: "+ai+";":""}\n\n        ${J("border-normal-width",ii,ni,ri,oi,li)}\n        ${J("border-hover-width",si,di,ci,mi,pi)}\n        ${J("border-normal-radius",gi,hi,yi,ui,bi)}\n        ${J("border-hover-radius",vi,Si,fi,Ti,Li)}\n\n        ${te("border-normal-box-shadow",Mi,xi,Ei,Bi,ki,_i,"px")}\n        ${te("border-hover-box-shadow",Hi,Ni,Vi,Ci,zi,wi,"px")}\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Q("block-margin",Ra,Da,Ua,Fa,ka,Ha,Na,_a,Va,za,wa,Ca,Pa)}\n\n        ${Q("block-padding",qa,Ya,Xa,Ka,Ia,Wa,Aa,$a,Oa,ja,Za,Ga,Ja)}\n\n        ${Q("featured-title-margin",ot,rt,lt,nt,Ye,Je,Qe,Xe,et,at,it,tt,st)}\n\n        ${Q("side-post-title-margin",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Ge?"--sb-featured-thumb-height: "+Ge+"%;":""}\n        ${Le?"--sb-side-post-thumb-height: "+Le+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt,xt)}\n\n        ${ie("side-post-title-typo",ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut,Pt,It)}\n\n        ${ie("post-metas-typo",$t,Wt,At,Ot,Gt,jt,Zt,qt,Kt,Yt,Xt,Jt,Qt,ea,ta,aa)}\n\n        ${Ta?"--sb-category-background-color: "+Ta+";":""}\n        ${Sa?"--sb-category-text-color: "+Sa+";":""}\n        ${fa?"--sb-category-background-hover-color: "+fa+";":""}\n        ${La?"--sb-category-text-hover-color: "+La+";":""}\n        ${Ma?"--sb-title-color: "+Ma+";":""}\n        ${xa?"--sb-title-hover-color: "+xa+";":""}\n\n        ${Ea?"--sb-excerpt-color: "+Ea+";":""}\n        ${Ba?"--sb-post-metas-color: "+Ba+";":""}\n\n        ${na?"--sb-image-border-radius: "+na+"px;":""}\n    }`;o({sbStyle:Fi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Di=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ui={per_page:3,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Di&&Di.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ui[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ui)),[c,u,y,ve,Te,Ui,h]),Ii=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),$i=l()("sb-block-title",`${f}`,X(H,C,F,D)),Wi=(e,t,a)=>{if(a&&0!=t)return;const o=Ii&&Ii.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Ai=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Oi=()=>{const e=[];return null==Ai||Ai.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),mt&&"Default"!=mt&&(0,i.createElement)(So,{family:mt,weight:dt.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(So,{family:ke,weight:_e.replace("italic","i")}),Et&&"Default"!=Et&&(0,i.createElement)(So,{family:Et,weight:Bt.replace("italic","i")}),$t&&"Default"!=$t&&(0,i.createElement)(So,{family:$t,weight:Wt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:Oi(),value:Ae,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Ge,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:Oe,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:je,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:qe,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:Oi(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({sideExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Be,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:na,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ia,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ia&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:oa,onChange:e=>o({customDateFormat:e})})),(0,R.applyFilters)("smartblocks.newsModuleOptions","",t))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:mt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:dt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:ct,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:pt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:gt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ut,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ht,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:yt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:bt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:vt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:Tt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:St,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:ft,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Lt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Mt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:xt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ot,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:et,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ye,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:nt,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:tt,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Xe,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:rt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:at,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Je,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:lt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:it,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Qe,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:st,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Side Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:ze,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Fe,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ua,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:va,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Et,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Bt,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:kt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:_t,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ht,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Nt,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Vt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ct,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:zt,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:wt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Rt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ft,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Dt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Ut,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Pt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:It,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ba,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:$t,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Wt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:At,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ot,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Gt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:jt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Zt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:qt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Kt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Yt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Xt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Jt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Qt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:ea,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ta,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:aa,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ra,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Va,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ka,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Fa,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ca,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_a,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Da,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:za,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ha,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ua,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Na,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:qa,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Oa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ia,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Ka,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ga,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$a,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ja,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Za,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Aa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Ja,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Qa,setValue:e=>o({borderNormal:e})}),Qa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ii,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oi,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ni,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ri,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:li,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:gi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ui,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:hi,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:yi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:bi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Mi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ei,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Bi,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ki,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_i,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:ei,setValue:e=>o({borderHover:e})}),ei&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ai,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:si,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:mi,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:di,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ci,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pi,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:vi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ti,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Si,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fi,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Li,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Hi,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ni,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Vi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ci,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:zi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ri,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-one"}),(0,i.createElement)("h2",{className:$i},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-one-wrap"},Pi&&Pi.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=0==t?`sb-large-title ${X(mt,dt,ct,pt)}`:`sb-big-title ${X(ke,_e,He,Ne)}`,c=0==t?je:Me,g=0==t?Ze:xe,u=0==t?qe:Ee,h=0==t?Ae||"large":Se||"large",y=0==t?Oe:fe,b=0==t?Ke:Be;return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&0==t?e.categories.map(((e,t)=>Wi(e,t,!1))):e.categories.map(((e,t)=>Wi(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ia&&`${e.relative_dates.created}`,"default"==ia&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ia&&(0,ce.dateI18n)(oa,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-two",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 203.82 119.02"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h44v34.01H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 40.81h37.41v3.4H3.4z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M13.6 47.61h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 64.61h44v34.01H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 105.42h37.41v3.4H3.4zm64.61 3.4h68.01v3.4H68.01zm0 6.8h68.01v3.4H68.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M13.6 112.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M159.83 0h44v34.01h-44z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 40.81h37.41v3.4h-37.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 47.61h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M159.83 64.61h44v34.01h-44z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 105.42h37.41v3.4h-37.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 112.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M64.61 91.82h74.81v6.8H64.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M88.42 102.02h27.2v3.4h-27.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M57.81 0h88.42v85.02H57.81z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 2","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideExcerptLength:fe,sideImageHeight:Le,sidePostAuthor:Me,sidePostDate:xe,sidePostComments:Ee,sidePostCategory:Be,sideTypographyFamily:ke,sideTypographyWeight:_e,sideTypographyTextTransform:He,sideTypographyTextDecoration:Ne,sideTypographyFontSizeSm:Ve,sideTypographyFontSizeMd:Ce,sideTypographyFontSize:ze,sideTypographyFontSizeUnit:we,sideTypographyLetterSpacingSm:Re,sideTypographyLetterSpacingMd:Fe,sideTypographyLetterSpacing:De,sideTypographyLetterSpacingUnit:Ue,sideTypographyLineHeightSm:Pe,sideTypographyLineHeightMd:Ie,sideTypographyLineHeight:$e,sideTypographyLineHeightUnit:We,featuredImageSize:Ae,featuredExcerptLength:Oe,featuredImageHeight:Ge,featuredPostAuthor:je,featuredPostDate:Ze,featuredPostComments:qe,featuredPostCategory:Ke,featuredTitleMarginSmTop:Ye,featuredTitleMarginSmLeft:Xe,featuredTitleMarginSmRight:Je,featuredTitleMarginSmBottom:Qe,featuredTitleMarginMdTop:et,featuredTitleMarginMdLeft:tt,featuredTitleMarginMdRight:at,featuredTitleMarginMdBottom:it,featuredTitleMarginTop:ot,featuredTitleMarginLeft:nt,featuredTitleMarginRight:rt,featuredTitleMarginBottom:lt,featuredTitleMarginUnit:st,featuredTypographyFamily:mt,featuredTypographyWeight:dt,featuredTypographyTextTransform:ct,featuredTypographyTextDecoration:pt,featuredTypographyFontSizeSm:gt,featuredTypographyFontSizeMd:ut,featuredTypographyFontSize:ht,featuredTypographyFontSizeUnit:yt,featuredTypographyLetterSpacingSm:bt,featuredTypographyLetterSpacingMd:vt,featuredTypographyLetterSpacing:Tt,featuredTypographyLetterSpacingUnit:St,featuredTypographyLineHeightSm:ft,featuredTypographyLineHeightMd:Lt,featuredTypographyLineHeight:Mt,featuredTypographyLineHeightUnit:xt,excerptTypographyFamily:Et,excerptTypographyWeight:Bt,excerptTypographyTextTransform:kt,excerptTypographyTextDecoration:_t,excerptTypographyFontSizeSm:Ht,excerptTypographyFontSizeMd:Nt,excerptTypographyFontSize:Vt,excerptTypographyFontSizeUnit:Ct,excerptTypographyLetterSpacingSm:zt,excerptTypographyLetterSpacingMd:wt,excerptTypographyLetterSpacing:Rt,excerptTypographyLetterSpacingUnit:Ft,excerptTypographyLineHeightSm:Dt,excerptTypographyLineHeightMd:Ut,excerptTypographyLineHeight:Pt,excerptTypographyLineHeightUnit:It,metasTypographyFamily:$t,metasTypographyWeight:Wt,metasTypographyTextTransform:At,metasTypographyTextDecoration:Ot,metasTypographyFontSizeSm:Gt,metasTypographyFontSizeMd:jt,metasTypographyFontSize:Zt,metasTypographyFontSizeUnit:qt,metasTypographyLetterSpacingSm:Kt,metasTypographyLetterSpacingMd:Yt,metasTypographyLetterSpacing:Xt,metasTypographyLetterSpacingUnit:Jt,metasTypographyLineHeightSm:Qt,metasTypographyLineHeightMd:ea,metasTypographyLineHeight:ta,metasTypographyLineHeightUnit:aa,dateFormat:ia,customDateFormat:oa,imageBorderRadius:na,sideTitleMarginSmTop:ra,sideTitleMarginSmLeft:la,sideTitleMarginSmRight:sa,sideTitleMarginSmBottom:ma,sideTitleMarginMdTop:da,sideTitleMarginMdLeft:ca,sideTitleMarginMdRight:pa,sideTitleMarginMdBottom:ga,sideTitleMarginTop:ua,sideTitleMarginLeft:ha,sideTitleMarginRight:ya,sideTitleMarginBottom:ba,sideTitleMarginUnit:va,categoryBackgroundColor:Ta,categoryTextColor:Sa,categoryBackgroundHoverColor:fa,categoryTextHoverColor:La,titleColor:Ma,titleHoverColor:xa,excerptColor:Ea,postMetasColor:Ba,blockMarginSmTop:ka,blockMarginSmLeft:_a,blockMarginSmRight:Ha,blockMarginSmBottom:Na,blockMarginMdTop:Va,blockMarginMdLeft:Ca,blockMarginMdRight:za,blockMarginMdBottom:wa,blockMarginTop:Ra,blockMarginLeft:Fa,blockMarginRight:Da,blockMarginBottom:Ua,blockMarginUnit:Pa,blockPaddingSmTop:Ia,blockPaddingSmLeft:$a,blockPaddingSmRight:Wa,blockPaddingSmBottom:Aa,blockPaddingMdTop:Oa,blockPaddingMdLeft:Ga,blockPaddingMdRight:ja,blockPaddingMdBottom:Za,blockPaddingTop:qa,blockPaddingLeft:Ka,blockPaddingRight:Ya,blockPaddingBottom:Xa,blockPaddingUnit:Ja,borderNormal:Qa,borderHover:ei,borderNormalColor:ti,borderHoverColor:ai,borderNormalWidthTop:ii,borderNormalWidthLeft:oi,borderNormalWidthRight:ni,borderNormalWidthBottom:ri,borderNormalWidthUnit:li,borderHoverWidthTop:si,borderHoverWidthLeft:mi,borderHoverWidthRight:di,borderHoverWidthBottom:ci,borderHoverWidthUnit:pi,borderNormalRadiusTop:gi,borderNormalRadiusLeft:ui,borderNormalRadiusRight:hi,borderNormalRadiusBottom:yi,borderNormalRadiusUnit:bi,borderHoverRadiusTop:vi,borderHoverRadiusLeft:Ti,borderHoverRadiusRight:Si,borderHoverRadiusBottom:fi,borderHoverRadiusUnit:Li,borderNormalBoxShadowHorizontal:Mi,borderNormalBoxShadowVertical:xi,borderNormalBoxShadowBlur:Ei,borderNormalBoxShadowSpread:Bi,borderNormalBoxShadowColor:ki,borderNormalBoxShadowInset:_i,borderHoverBoxShadowHorizontal:Hi,borderHoverBoxShadowVertical:Ni,borderHoverBoxShadowBlur:Vi,borderHoverBoxShadowSpread:Ci,borderHoverBoxShadowColor:zi,borderHoverBoxShadowInset:wi,blockBgColor:Ri}=a;o({id:(0,d.useBlockProps)().id});const Fi=`#${s} {\n        ${Qa?"--sb-border-normal: "+Qa+";":""}\n        ${ei?"--sb-border-hover: "+Qa+";":""}\n        ${ti?"--sb-border-normal-color: "+ti+";":""}\n        ${ai?"--sb-border-hover-color: "+ai+";":""}\n\n        ${J("border-normal-width",ii,ni,ri,oi,li)}\n        ${J("border-hover-width",si,di,ci,mi,pi)}\n        ${J("border-normal-radius",gi,hi,yi,ui,bi)}\n        ${J("border-hover-radius",vi,Si,fi,Ti,Li)}\n\n        ${te("border-normal-box-shadow",Mi,xi,Ei,Bi,ki,_i,"px")}\n        ${te("border-hover-box-shadow",Hi,Ni,Vi,Ci,zi,wi,"px")}\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Q("block-margin",Ra,Da,Ua,Fa,ka,Ha,Na,_a,Va,za,wa,Ca,Pa)}\n\n        ${Q("block-padding",qa,Ya,Xa,Ka,Ia,Wa,Aa,$a,Oa,ja,Za,Ga,Ja)}\n\n        ${Q("featured-title-margin",ot,rt,lt,nt,Ye,Je,Qe,Xe,et,at,it,tt,st)}\n\n        ${Q("side-post-title-margin",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Ge?"--sb-featured-thumb-height: "+Ge+"%;":""}\n        ${Le?"--sb-side-post-thumb-height: "+Le+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt,xt)}\n\n        ${ie("side-post-title-typo",ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut,Pt,It)}\n\n        ${ie("post-metas-typo",$t,Wt,At,Ot,Gt,jt,Zt,qt,Kt,Yt,Xt,Jt,Qt,ea,ta,aa)}\n\n        ${Ta?"--sb-category-background-color: "+Ta+";":""}\n        ${Sa?"--sb-category-text-color: "+Sa+";":""}\n        ${fa?"--sb-category-background-hover-color: "+fa+";":""}\n        ${La?"--sb-category-text-hover-color: "+La+";":""}\n        ${Ma?"--sb-title-color: "+Ma+";":""}\n        ${xa?"--sb-title-hover-color: "+xa+";":""}\n\n        ${Ea?"--sb-excerpt-color: "+Ea+";":""}\n        ${Ba?"--sb-post-metas-color: "+Ba+";":""}\n\n        ${na?"--sb-image-border-radius: "+na+"px;":""}\n    }`;o({sbStyle:Fi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Di=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ui={per_page:5,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Di&&Di.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ui[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ui)),[c,u,y,ve,Te,Ui,h]),Ii=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var $i=[];Ii&&Ii.map(((e,t)=>{$i.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Wi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Ai=l()("sb-block-title",`${f}`,X(H,C,F,D)),Oi=(e,t,a)=>{if(a&&0!=t)return;const o=Wi&&Wi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Gi=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title "+X(mt,dt,ct,pt):X(ke,_e,He,Ne),c="featured"==t?je:Me,g="featured"==t?Ze:xe,u="featured"==t?qe:Ee,h="featured"==t?Ae||"large":Se||"large",y="featured"==t?Oe:fe,b="featured"==t?Ke:Be;return(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&"featured"==t?e.categories.map(((e,t)=>Oi(e,t,!1))):e.categories.map(((e,t)=>Oi(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ia&&`${e.relative_dates.created}`,"default"==ia&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ia&&(0,ce.dateI18n)(oa,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))},ji=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Zi=()=>{const e=[];return null==ji||ji.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),mt&&(0,i.createElement)(So,{family:mt,weight:dt.replace("italic","i")}),ke&&(0,i.createElement)(So,{family:ke,weight:_e.replace("italic","i")}),Et&&(0,i.createElement)(So,{family:Et,weight:Bt.replace("italic","i")}),$t&&(0,i.createElement)(So,{family:$t,weight:Wt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:Zi(),value:Ae,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Ge,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:Oe,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:je,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:qe,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:Zi(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({sideExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Be,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:na,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ia,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ia&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:oa,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:mt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:dt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:ct,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:pt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:gt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ut,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ht,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:yt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:bt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:vt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:Tt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:St,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:ft,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Lt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Mt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:xt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ot,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:et,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ye,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:nt,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:tt,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Xe,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:rt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:at,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Je,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:lt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:it,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Qe,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:st,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Side Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:ze,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Fe,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ua,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:va,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Et,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Bt,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:kt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:_t,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ht,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Nt,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Vt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ct,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:zt,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:wt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Rt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ft,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Dt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Ut,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Pt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:It,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ba,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:$t,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Wt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:At,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ot,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Gt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:jt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Zt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:qt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Kt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Yt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Xt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Jt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Qt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:ea,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ta,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:aa,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ra,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Va,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ka,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Fa,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ca,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_a,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Da,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:za,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ha,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ua,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Na,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:qa,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Oa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ia,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Ka,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ga,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$a,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ja,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Za,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Aa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Ja,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Qa,setValue:e=>o({borderNormal:e})}),Qa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ii,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oi,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ni,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ri,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:li,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:gi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ui,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:hi,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:yi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:bi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Mi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ei,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Bi,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ki,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_i,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:ei,setValue:e=>o({borderHover:e})}),ei&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ai,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:si,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:mi,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:di,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ci,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pi,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:vi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ti,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Si,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fi,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Li,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Hi,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ni,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Vi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ci,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:zi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ri,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-two"}),(0,i.createElement)("h2",{className:Ai},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-two-wrap"},Pi&&Pi.length>0&&(0,i.createElement)("div",{className:"col1"},Gi(Pi[Object.keys(Pi)[0]],"featured")),Pi&&Pi.length>1&&(0,i.createElement)("div",{className:"col2"},Gi(Pi[Object.keys(Pi)[1]],""),Pi.length>2&&Gi(Pi[Object.keys(Pi)[2]],"side")),Pi&&Pi.length>3&&(0,i.createElement)("div",{className:"col3"},Gi(Pi[Object.keys(Pi)[3]],""),Pi.length>4&&Gi(Pi[Object.keys(Pi)[4]],"side"))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-three",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 108.82"},(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 37.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M163.23 0h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 37.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M163.23 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 61.21h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 98.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 105.42h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M163.23 61.21h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 98.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M163.23 105.42h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h95.22v108.82H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 81.61h78.21v3.4H6.8zm0 6.81h68.01v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 98.62h27.21v3.4H6.8z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 3","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideImageHeight:fe,sidePostAuthor:Le,sidePostDate:Me,sidePostComments:xe,sidePostCategory:Ee,sideTypographyFamily:Be,sideTypographyWeight:ke,sideTypographyTextTransform:_e,sideTypographyTextDecoration:He,sideTypographyFontSizeSm:Ne,sideTypographyFontSizeMd:Ve,sideTypographyFontSize:Ce,sideTypographyFontSizeUnit:ze,sideTypographyLetterSpacingSm:we,sideTypographyLetterSpacingMd:Re,sideTypographyLetterSpacing:Fe,sideTypographyLetterSpacingUnit:De,sideTypographyLineHeightSm:Ue,sideTypographyLineHeightMd:Pe,sideTypographyLineHeight:Ie,sideTypographyLineHeightUnit:$e,featuredImageSize:We,featuredPostAuthor:Ae,featuredPostDate:Oe,featuredPostComments:Ge,featuredPostCategory:je,featuredTitleMarginSmTop:Ze,featuredTitleMarginSmLeft:qe,featuredTitleMarginSmRight:Ke,featuredTitleMarginSmBottom:Ye,featuredTitleMarginMdTop:Xe,featuredTitleMarginMdLeft:Je,featuredTitleMarginMdRight:Qe,featuredTitleMarginMdBottom:et,featuredTitleMarginTop:tt,featuredTitleMarginLeft:at,featuredTitleMarginRight:it,featuredTitleMarginBottom:ot,featuredTitleMarginUnit:nt,featuredTypographyFamily:rt,featuredTypographyWeight:lt,featuredTypographyTextTransform:st,featuredTypographyTextDecoration:mt,featuredTypographyFontSizeSm:dt,featuredTypographyFontSizeMd:ct,featuredTypographyFontSize:pt,featuredTypographyFontSizeUnit:gt,featuredTypographyLetterSpacingSm:ut,featuredTypographyLetterSpacingMd:ht,featuredTypographyLetterSpacing:yt,featuredTypographyLetterSpacingUnit:bt,featuredTypographyLineHeightSm:vt,featuredTypographyLineHeightMd:Tt,featuredTypographyLineHeight:St,featuredTypographyLineHeightUnit:ft,metasTypographyFamily:Lt,metasTypographyWeight:Mt,metasTypographyTextTransform:xt,metasTypographyTextDecoration:Et,metasTypographyFontSizeSm:Bt,metasTypographyFontSizeMd:kt,metasTypographyFontSize:_t,metasTypographyFontSizeUnit:Ht,metasTypographyLetterSpacingSm:Nt,metasTypographyLetterSpacingMd:Vt,metasTypographyLetterSpacing:Ct,metasTypographyLetterSpacingUnit:zt,metasTypographyLineHeightSm:wt,metasTypographyLineHeightMd:Rt,metasTypographyLineHeight:Ft,metasTypographyLineHeightUnit:Dt,dateFormat:Ut,customDateFormat:Pt,imageBorderRadius:It,sideTitleMarginSmTop:$t,sideTitleMarginSmLeft:Wt,sideTitleMarginSmRight:At,sideTitleMarginSmBottom:Ot,sideTitleMarginMdTop:Gt,sideTitleMarginMdLeft:jt,sideTitleMarginMdRight:Zt,sideTitleMarginMdBottom:qt,sideTitleMarginTop:Kt,sideTitleMarginLeft:Yt,sideTitleMarginRight:Xt,sideTitleMarginBottom:Jt,sideTitleMarginUnit:Qt,categoryBackgroundColor:ea,categoryTextColor:ta,categoryBackgroundHoverColor:aa,categoryTextHoverColor:ia,featuredTitleColor:oa,sideTitleColor:na,sideTitleHoverColor:ra,titleHoverColor:la,postMetasColor:sa,blockMarginSmTop:ma,blockMarginSmLeft:da,blockMarginSmRight:ca,blockMarginSmBottom:pa,blockMarginMdTop:ga,blockMarginMdLeft:ua,blockMarginMdRight:ha,blockMarginMdBottom:ya,blockMarginTop:ba,blockMarginLeft:va,blockMarginRight:Ta,blockMarginBottom:Sa,blockMarginUnit:fa,blockPaddingSmTop:La,blockPaddingSmLeft:Ma,blockPaddingSmRight:xa,blockPaddingSmBottom:Ea,blockPaddingMdTop:Ba,blockPaddingMdLeft:ka,blockPaddingMdRight:_a,blockPaddingMdBottom:Ha,blockPaddingTop:Na,blockPaddingLeft:Va,blockPaddingRight:Ca,blockPaddingBottom:za,blockPaddingUnit:wa,borderNormal:Ra,borderHover:Fa,borderNormalColor:Da,borderHoverColor:Ua,borderNormalWidthTop:Pa,borderNormalWidthLeft:Ia,borderNormalWidthRight:$a,borderNormalWidthBottom:Wa,borderNormalWidthUnit:Aa,borderHoverWidthTop:Oa,borderHoverWidthLeft:Ga,borderHoverWidthRight:ja,borderHoverWidthBottom:Za,borderHoverWidthUnit:qa,borderNormalRadiusTop:Ka,borderNormalRadiusLeft:Ya,borderNormalRadiusRight:Xa,borderNormalRadiusBottom:Ja,borderNormalRadiusUnit:Qa,borderHoverRadiusTop:ei,borderHoverRadiusLeft:ti,borderHoverRadiusRight:ai,borderHoverRadiusBottom:ii,borderHoverRadiusUnit:oi,borderNormalBoxShadowHorizontal:ni,borderNormalBoxShadowVertical:ri,borderNormalBoxShadowBlur:li,borderNormalBoxShadowSpread:si,borderNormalBoxShadowColor:mi,borderNormalBoxShadowInset:di,borderHoverBoxShadowHorizontal:ci,borderHoverBoxShadowVertical:pi,borderHoverBoxShadowBlur:gi,borderHoverBoxShadowSpread:ui,borderHoverBoxShadowColor:hi,borderHoverBoxShadowInset:yi,blockBgColor:bi}=a;o({id:(0,d.useBlockProps)().id});const vi=`#${s} {\n        ${Ra?"--sb-border-normal: "+Ra+";":""}\n        ${Fa?"--sb-border-hover: "+Ra+";":""}\n        ${Da?"--sb-border-normal-color: "+Da+";":""}\n        ${Ua?"--sb-border-hover-color: "+Ua+";":""}\n\n        ${J("border-normal-width",Pa,$a,Wa,Ia,Aa)}\n        ${J("border-hover-width",Oa,ja,Za,Ga,qa)}\n        ${J("border-normal-radius",Ka,Xa,Ja,Ya,Qa)}\n        ${J("border-hover-radius",ei,ai,ii,ti,oi)}\n\n        ${te("border-normal-box-shadow",ni,ri,li,si,mi,di,"px")}\n        ${te("border-hover-box-shadow",ci,pi,gi,ui,hi,yi,"px")}\n\n        ${bi?"--sb-block-bg-color: "+bi+";":""}\n\n        ${Q("block-margin",ba,Ta,Sa,va,ma,ca,pa,da,ga,ha,ya,ua,fa)}\n\n        ${Q("block-padding",Na,Ca,za,Va,La,xa,Ea,Ma,Ba,_a,Ha,ka,wa)}\n\n        ${Q("featured-title-margin",tt,it,ot,at,Ze,Ke,Ye,qe,Xe,Qe,et,Je,nt)}\n\n        ${Q("side-post-title-margin",Kt,Xt,Jt,Yt,$t,At,Ot,Wt,Gt,Zt,qt,jt,Qt)}\n\n        ${bi?"--sb-block-bg-color: "+bi+";":""}\n\n        ${fe?"--sb-side-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft)}\n\n        ${ie("side-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Lt,Mt,xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt)}\n\n        ${ea?"--sb-category-background-color: "+ea+";":""}\n        ${ta?"--sb-category-text-color: "+ta+";":""}\n        ${aa?"--sb-category-background-hover-color: "+aa+";":""}\n        ${ia?"--sb-category-text-hover-color: "+ia+";":""}\n        ${oa?"--sb-featured-title-color: "+oa+";":""}\n        ${na?"--sb-side-title-color: "+na+";":""}\n        ${ra?"--sb-side-title-hover-color: "+ra+";":""}\n\n        ${sa?"--sb-post-metas-color: "+sa+";":""}\n\n        ${It?"--sb-image-border-radius: "+It+"px;":""}\n    }`;o({sbStyle:vi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ti=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Si={per_page:5,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Ti&&Ti.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Si[t]=(a=e.value,y&&y[a]?y[a]:[])}));const fi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Si)),[c,u,y,ve,Te,Si,h]),Li=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Mi=[];Li&&Li.map(((e,t)=>{Mi.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const xi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Ei=l()("sb-block-title",`${f}`,X(H,C,F,D)),Bi=(e,t,a)=>{if(a&&0!=t)return;const o=xi&&xi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},ki=(e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],g=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h="featured"==t?Ae:Le,y="featured"==t?Oe:Me,b="featured"==t?Ge:xe,v="featured"==t?We||"large":Se||"large",T="featured"==t?je:Ee,S=(0,i.createElement)("div",{class:"sb-post-item"},(0,i.createElement)("div",{class:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{class:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[v]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[v].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title sb-large-title ${X(rt,lt,st,mt)}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Ut&&`${e.relative_dates.created}`,"default"==Ut&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Ut&&(0,ce.dateI18n)(Pt,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)))),T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Bi(e,t,!1)))))),f=(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[v]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[v].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text}))),T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Bi(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${X(Be,ke,_e,He)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Ut&&`${e.relative_dates.created}`,"default"==Ut&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Ut&&(0,ce.dateI18n)(Pt,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))));return"featured"==t?S:f},_i=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Hi=()=>{const e=[];return null==_i||_i.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),rt&&"Default"!=rt&&(0,i.createElement)(So,{family:rt,weight:lt.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),Lt&&"Default"!=Lt&&(0,i.createElement)(So,{family:Lt,weight:Mt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:Hi(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Ae,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Oe,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:je,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:Hi(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:It,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:Ut,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==Ut&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:Pt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Featured Post Title Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({featuredTitleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Side Post Title Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({sideTitleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Side Post Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({sideTitleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:rt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:lt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:st,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:mt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:dt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ct,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:pt,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:gt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:ut,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ht,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:yt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:bt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:vt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Tt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:St,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:ft,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:tt,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Xe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ze,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:at,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Je,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:qe,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:it,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:Qe,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Ke,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:ot,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:et,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Ye,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:nt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Side Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:Kt,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:Gt,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:$t,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:Yt,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:jt,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:Wt,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:Xt,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:Zt,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:At,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:Jt,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:qt,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:Ot,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:Qt,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:sa,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Lt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Mt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:xt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Et,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Bt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:kt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:_t,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ht,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Nt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Vt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Ct,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:zt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:wt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Rt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Ft,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Dt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ba,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:ga,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ma,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:va,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ua,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:da,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Ta,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ha,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:ca,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Sa,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ya,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:pa,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:fa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Na,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ba,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:La,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Va,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:ka,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ma,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ca,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:_a,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:xa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:za,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ha,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Ea,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:wa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Ra,setValue:e=>o({borderNormal:e})}),Ra&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Da,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Pa,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Ia,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:$a,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Wa,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Aa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Ka,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:Ya,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Xa,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ja,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Qa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ni,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ri,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:li,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:si,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:mi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:di,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Fa,setValue:e=>o({borderHover:e})}),Fa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Ua,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Oa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Ga,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ja,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Za,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:qa,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ei,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ti,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ai,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ii,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:oi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ci,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:pi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:gi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:ui,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:hi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:yi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:bi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-three"}),(0,i.createElement)("h2",{className:Ei},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-three-wrap"},fi&&fi.length>0&&(0,i.createElement)("div",{className:"col1"},ki(fi[Object.keys(fi)[0]],"featured")),fi&&fi.length>1&&(0,i.createElement)("div",{className:"col2"},(0,i.createElement)("div",{className:"col2-wrap"},function(e,t){let a=[];for(;++t<e.length;)a.push(ki(fi[Object.keys(fi)[t]]));return a}(fi,0)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-four",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 142.83"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 95.22h40.81v30.61H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 132.62h34.01v3.4H3.4zm3.4-71.41h81.61v3.4H6.8zm6.8 6.8h68.01v3.4H13.6zm108.82 0h68.01v3.4h-68.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M34.01 78.21h27.2v3.4h-27.2zM10.2 139.43h20.4v3.4H10.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M54.41 95.22h40.81v30.61H54.41z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M57.81 132.62h34.01v3.4H57.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M64.61 139.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 95.22h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M112.22 132.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M119.02 139.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M163.23 95.22h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M166.63 132.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 139.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h95.22v54.41H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M115.62 61.21h81.61v3.4h-81.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M142.83 78.21h27.21v3.4h-27.21z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h95.22v54.41h-95.22z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 4","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,bottomImageSize:Se,bottomImageHeight:fe,bottomPostAuthor:Le,bottomPostDate:Me,bottomPostComments:xe,bottomPostCategory:Ee,bottomTypographyFamily:Be,bottomTypographyWeight:ke,bottomTypographyTextTransform:_e,bottomTypographyTextDecoration:He,bottomTypographyFontSizeSm:Ne,bottomTypographyFontSizeMd:Ve,bottomTypographyFontSize:Ce,bottomTypographyFontSizeUnit:ze,bottomTypographyLetterSpacingSm:we,bottomTypographyLetterSpacingMd:Re,bottomTypographyLetterSpacing:Fe,bottomTypographyLetterSpacingUnit:De,bottomTypographyLineHeightSm:Ue,bottomTypographyLineHeightMd:Pe,bottomTypographyLineHeight:Ie,bottomTypographyLineHeightUnit:$e,topImageSize:We,topImageHeight:Ae,topPostAuthor:Oe,topPostDate:Ge,topPostComments:je,topPostCategory:Ze,topTitleMarginTop:qe,topTitleMarginLeft:Ke,topTitleMarginRight:Ye,topTitleMarginBottom:Xe,topTitleMarginSmTop:Je,topTitleMarginSmLeft:Qe,topTitleMarginSmRight:et,topTitleMarginSmBottom:tt,topTitleMarginMdTop:at,topTitleMarginMdLeft:it,topTitleMarginMdRight:ot,topTitleMarginMdBottom:nt,topTitleMarginUnit:rt,topTypographyFamily:lt,topTypographyWeight:st,topTypographyTextTransform:mt,topTypographyTextDecoration:dt,topTypographyFontSizeSm:ct,topTypographyFontSizeMd:pt,topTypographyFontSize:gt,topTypographyFontSizeUnit:ut,topTypographyLetterSpacingSm:ht,topTypographyLetterSpacingMd:yt,topTypographyLetterSpacing:bt,topTypographyLetterSpacingUnit:vt,topTypographyLineHeightSm:Tt,topTypographyLineHeightMd:St,topTypographyLineHeight:ft,topTypographyLineHeightUnit:Lt,metasTypographyFamily:Mt,metasTypographyWeight:xt,metasTypographyTextTransform:Et,metasTypographyTextDecoration:Bt,metasTypographyFontSizeSm:kt,metasTypographyFontSizeMd:_t,metasTypographyFontSize:Ht,metasTypographyFontSizeUnit:Nt,metasTypographyLetterSpacingSm:Vt,metasTypographyLetterSpacingMd:Ct,metasTypographyLetterSpacing:zt,metasTypographyLetterSpacingUnit:wt,metasTypographyLineHeightSm:Rt,metasTypographyLineHeightMd:Ft,metasTypographyLineHeight:Dt,metasTypographyLineHeightUnit:Ut,dateFormat:Pt,customDateFormat:It,imageBorderRadius:$t,bottomTitleMarginTop:Wt,bottomTitleMarginLeft:At,bottomTitleMarginRight:Ot,bottomTitleMarginBottom:Gt,bottomTitleMarginSmTop:jt,bottomTitleMarginSmLeft:Zt,bottomTitleMarginSmRight:qt,bottomTitleMarginSmBottom:Kt,bottomTitleMarginMdTop:Yt,bottomTitleMarginMdLeft:Xt,bottomTitleMarginMdRight:Jt,bottomTitleMarginMdBottom:Qt,bottomTitleMarginUnit:ea,categoryBackgroundColor:ta,categoryTextColor:aa,categoryBackgroundHoverColor:ia,categoryTextHoverColor:oa,titleColor:na,titleHoverColor:ra,postMetasColor:la,blockMarginSmTop:sa,blockMarginSmLeft:ma,blockMarginSmRight:da,blockMarginSmBottom:ca,blockMarginMdTop:pa,blockMarginMdLeft:ga,blockMarginMdRight:ua,blockMarginMdBottom:ha,blockMarginTop:ya,blockMarginLeft:ba,blockMarginRight:va,blockMarginBottom:Ta,blockMarginUnit:Sa,blockPaddingSmTop:fa,blockPaddingSmLeft:La,blockPaddingSmRight:Ma,blockPaddingSmBottom:xa,blockPaddingMdTop:Ea,blockPaddingMdLeft:Ba,blockPaddingMdRight:ka,blockPaddingMdBottom:_a,blockPaddingTop:Ha,blockPaddingLeft:Na,blockPaddingRight:Va,blockPaddingBottom:Ca,blockPaddingUnit:za,borderNormal:wa,borderHover:Ra,borderNormalColor:Fa,borderHoverColor:Da,borderNormalWidthTop:Ua,borderNormalWidthLeft:Pa,borderNormalWidthRight:Ia,borderNormalWidthBottom:$a,borderNormalWidthUnit:Wa,borderHoverWidthTop:Aa,borderHoverWidthLeft:Oa,borderHoverWidthRight:Ga,borderHoverWidthBottom:ja,borderHoverWidthUnit:Za,borderNormalRadiusTop:qa,borderNormalRadiusLeft:Ka,borderNormalRadiusRight:Ya,borderNormalRadiusBottom:Xa,borderNormalRadiusUnit:Ja,borderHoverRadiusTop:Qa,borderHoverRadiusLeft:ei,borderHoverRadiusRight:ti,borderHoverRadiusBottom:ai,borderHoverRadiusUnit:ii,borderNormalBoxShadowHorizontal:oi,borderNormalBoxShadowVertical:ni,borderNormalBoxShadowBlur:ri,borderNormalBoxShadowSpread:li,borderNormalBoxShadowColor:si,borderNormalBoxShadowInset:mi,borderHoverBoxShadowHorizontal:di,borderHoverBoxShadowVertical:ci,borderHoverBoxShadowBlur:pi,borderHoverBoxShadowSpread:gi,borderHoverBoxShadowColor:ui,borderHoverBoxShadowInset:hi,blockBgColor:yi}=a;o({id:(0,d.useBlockProps)().id});const bi=`#${s} {\n        ${wa?"--sb-border-normal: "+wa+";":""}\n        ${Ra?"--sb-border-hover: "+Ra+";":""}\n        ${Fa?"--sb-border-normal-color: "+Fa+";":""}\n        ${Da?"--sb-border-hover-color: "+Da+";":""}\n\n        ${J("border-normal-width",Ua,Ia,$a,Pa,Wa)}\n        ${J("border-hover-width",Aa,Ga,ja,Oa,Za)}\n        ${J("border-normal-radius",qa,Ya,Xa,Ka,Ja)}\n        ${J("border-hover-radius",Qa,ti,ai,ei,ii)}\n\n        ${te("border-normal-box-shadow",oi,ni,ri,li,si,mi,"px")}\n        ${te("border-hover-box-shadow",di,ci,pi,gi,ui,hi,"px")}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Q("block-margin",ya,va,Ta,ba,sa,da,ca,ma,pa,ua,ha,ga,Sa)}\n\n        ${Q("block-padding",Ha,Va,Ca,Na,fa,Ma,xa,La,Ea,ka,_a,Ba,za)}\n\n        ${Q("top-post-title-margin",qe,Ye,Xe,Ke,Je,et,tt,Qe,at,ot,nt,it,rt)}\n\n        ${Q("bottom-post-title-margin",Wt,Ot,Gt,At,jt,qt,Kt,Zt,Yt,Jt,Qt,Xt,ea)}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Ae?"--sb-top-thumb-height: "+Ae+"%;":""}\n        ${fe?"--sb-bottom-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("top-post-title-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("bottom-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Mt,xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut)}\n\n        ${ta?"--sb-category-background-color: "+ta+";":""}\n        ${aa?"--sb-category-text-color: "+aa+";":""}\n        ${ia?"--sb-category-background-hover-color: "+ia+";":""}\n        ${oa?"--sb-category-text-hover-color: "+oa+";":""}\n        ${na?"--sb-title-color: "+na+";":""}\n        ${ra?"--sb-title-hover-color: "+ra+";":""}\n\n        ${la?"--sb-post-metas-color: "+la+";":""}\n\n        ${$t?"--sb-image-border-radius: "+$t+"px;":""}\n    }`;o({sbStyle:bi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const vi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ti={per_page:6,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};vi&&vi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ti[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Si=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ti)),[c,u,y,ve,Te,Ti,h]),fi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Li=[];fi&&fi.map(((e,t)=>{Li.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Mi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),xi=l()("sb-block-title",`${f}`,X(H,C,F,D)),Ei=(e,t,a)=>{if(a&&0!=t)return;const o=Mi&&Mi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Bi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ki=()=>{const e=[];return null==Bi||Bi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(So,{family:lt,weight:st.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),Mt&&"Default"!=Mt&&(0,i.createElement)(So,{family:Mt,weight:xt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Top Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ki(),value:We,onChange:e=>o({topImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Ae,setValue:e=>o({topImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Oe,onChange:e=>o({topPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ge,onChange:e=>o({topPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:je,onChange:e=>o({topPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ze,onChange:e=>o({topPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Bottom Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ki(),value:Se,onChange:e=>o({bottomImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({bottomImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({bottomPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({bottomPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({bottomPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({bottomPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:$t,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:Pt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==Pt&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:It,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Top Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({topTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({topTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({topTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({topTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({topTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({topTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({topTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({topTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({topTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({topTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({topTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({topTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({topTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({topTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({topTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({topTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:qe,setDimensionTop:e=>o({topTitleMarginTop:e}),dimensionMdTop:at,setDimensionMdTop:e=>o({topTitleMarginMdTop:e}),dimensionSmTop:Je,setDimensionSmTop:e=>o({topTitleMarginSmTop:e}),dimensionLeft:Ke,setDimensionLeft:e=>o({topTitleMarginLeft:e}),dimensionMdLeft:it,setDimensionMdLeft:e=>o({topTitleMarginMdLeft:e}),dimensionSmLeft:Qe,setDimensionSmLeft:e=>o({topTitleMarginSmLeft:e}),dimensionRight:Ye,setDimensionRight:e=>o({topTitleMarginRight:e}),dimensionMdRight:ot,setDimensionMdRight:e=>o({topTitleMarginMdRight:e}),dimensionSmRight:et,setDimensionSmRight:e=>o({topTitleMarginSmRight:e}),dimensionBottom:Xe,setDimensionBottom:e=>o({topTitleMarginBottom:e}),dimensionMdBottom:nt,setDimensionMdBottom:e=>o({topTitleMarginMdBottom:e}),dimensionSmBottom:tt,setDimensionSmBottom:e=>o({topTitleMarginSmBottom:e}),unit:rt,setUnit:e=>o({topTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Bottom Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({bottomTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({bottomTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({bottomTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({bottomTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({bottomTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({bottomTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({bottomTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({bottomTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({bottomTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({bottomTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({bottomTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({bottomTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({bottomTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({bottomTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({bottomTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({bottomTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:Wt,setDimensionTop:e=>o({bottomTitleMarginTop:e}),dimensionMdTop:Yt,setDimensionMdTop:e=>o({bottomTitleMarginMdTop:e}),dimensionSmTop:jt,setDimensionSmTop:e=>o({bottomTitleMarginSmTop:e}),dimensionLeft:At,setDimensionLeft:e=>o({bottomTitleMarginLeft:e}),dimensionMdLeft:Xt,setDimensionMdLeft:e=>o({bottomTitleMarginMdLeft:e}),dimensionSmLeft:Zt,setDimensionSmLeft:e=>o({bottomTitleMarginSmLeft:e}),dimensionRight:Ot,setDimensionRight:e=>o({bottomTitleMarginRight:e}),dimensionMdRight:Jt,setDimensionMdRight:e=>o({bottomTitleMarginMdRight:e}),dimensionSmRight:qt,setDimensionSmRight:e=>o({bottomTitleMarginSmRight:e}),dimensionBottom:Gt,setDimensionBottom:e=>o({bottomTitleMarginBottom:e}),dimensionMdBottom:Qt,setDimensionMdBottom:e=>o({bottomTitleMarginMdBottom:e}),dimensionSmBottom:Kt,setDimensionSmBottom:e=>o({bottomTitleMarginSmBottom:e}),unit:ea,setUnit:e=>o({bottomTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:la,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Mt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:xt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Et,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Bt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:kt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:_t,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ht,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Nt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Vt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ct,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:zt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:wt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Rt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Ft,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Dt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Ut,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ya,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:pa,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:sa,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ga,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ma,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:va,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ua,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:da,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ha,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ca,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Sa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ha,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ea,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:fa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Na,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ba,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:La,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Va,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ka,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Ma,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ca,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:_a,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:xa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:za,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:wa,setValue:e=>o({borderNormal:e})}),wa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Fa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Ua,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Pa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ia,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:$a,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Wa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:qa,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:Ka,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ja,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:oi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ni,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ri,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:li,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:si,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:mi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Ra,setValue:e=>o({borderHover:e})}),Ra&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Da,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Aa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Oa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ja,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Za,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Qa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ei,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ai,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ii,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:di,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:ci,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:pi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:gi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:ui,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:hi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:yi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-four"}),(0,i.createElement)("h2",{className:xi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-four-wrap"},Si&&Si.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=0==t||1==t?"sb-big-title "+X(lt,st,mt,dt):X(Be,ke,_e,He),c=0==t||1==t?Oe:Le,g=0==t||1==t?Ge:Me,u=0==t||1==t?je:xe,h=0==t||1==t?We||"large":Se||"large",y=0==t||1==t?Ze:Ee;return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},!e.categories||0!=t&&1!=t?e.categories.map(((e,t)=>Ei(e,t,!0))):e.categories.map(((e,t)=>Ei(e,t,!1))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Pt&&`${e.relative_dates.created}`,"default"==Pt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Pt&&(0,ce.dateI18n)(It,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-five",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 149.63"},(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 98.62h88.42v3.4H0zm0 6.8h74.81v3.4H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h34.01v27.2h-34.01zM0 0h95.22v91.82H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 0h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 40.81h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 40.81h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 57.81h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 81.61h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 81.61h54.41v3.4h-54.41zm0 6.81h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 98.62h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 122.42h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 122.42h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81zM0 125.82h95.22v3.4H0zm0 6.8h81.61v3.4H0zm0 6.81h74.81v3.4H0zm0 6.8h68.01v3.4H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 139.43h20.4v3.4h-20.4zM0 115.62h27.2v3.4H0z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 5","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingImageHeight:fe,listingPostAuthor:Le,listingPostDate:Me,listingPostComments:xe,listingPostCategory:Ee,listingTypographyFamily:Be,listingTypographyWeight:ke,listingTypographyTextTransform:_e,listingTypographyTextDecoration:He,listingTypographyFontSizeSm:Ne,listingTypographyFontSizeMd:Ve,listingTypographyFontSize:Ce,listingTypographyFontSizeUnit:ze,listingTypographyLetterSpacingSm:we,listingTypographyLetterSpacingMd:Re,listingTypographyLetterSpacing:Fe,listingTypographyLetterSpacingUnit:De,listingTypographyLineHeightSm:Ue,listingTypographyLineHeightMd:Pe,listingTypographyLineHeight:Ie,listingTypographyLineHeightUnit:$e,featuredImageSize:We,featuredExcerptLength:Ae,featuredImageHeight:Oe,featuredPostAuthor:Ge,featuredPostDate:je,featuredPostComments:Ze,featuredPostCategory:qe,featuredTitleMarginSmTop:Ke,featuredTitleMarginSmLeft:Ye,featuredTitleMarginSmRight:Xe,featuredTitleMarginSmBottom:Je,featuredTitleMarginMdTop:Qe,featuredTitleMarginMdLeft:et,featuredTitleMarginMdRight:tt,featuredTitleMarginMdBottom:at,featuredTitleMarginTop:it,featuredTitleMarginLeft:ot,featuredTitleMarginRight:nt,featuredTitleMarginBottom:rt,featuredTitleMarginUnit:lt,featuredTypographyFamily:st,featuredTypographyWeight:mt,featuredTypographyTextTransform:dt,featuredTypographyTextDecoration:ct,featuredTypographyFontSizeSm:pt,featuredTypographyFontSizeMd:gt,featuredTypographyFontSize:ut,featuredTypographyFontSizeUnit:ht,featuredTypographyLetterSpacingSm:yt,featuredTypographyLetterSpacingMd:bt,featuredTypographyLetterSpacing:vt,featuredTypographyLetterSpacingUnit:Tt,featuredTypographyLineHeightSm:St,featuredTypographyLineHeightMd:ft,featuredTypographyLineHeight:Lt,featuredTypographyLineHeightUnit:Mt,excerptTypographyFamily:xt,excerptTypographyWeight:Et,excerptTypographyTextTransform:Bt,excerptTypographyTextDecoration:kt,excerptTypographyFontSizeSm:_t,excerptTypographyFontSizeMd:Ht,excerptTypographyFontSize:Nt,excerptTypographyFontSizeUnit:Vt,excerptTypographyLetterSpacingSm:Ct,excerptTypographyLetterSpacingMd:zt,excerptTypographyLetterSpacing:wt,excerptTypographyLetterSpacingUnit:Rt,excerptTypographyLineHeightSm:Ft,excerptTypographyLineHeightMd:Dt,excerptTypographyLineHeight:Ut,excerptTypographyLineHeightUnit:Pt,metasTypographyFamily:It,metasTypographyWeight:$t,metasTypographyTextTransform:Wt,metasTypographyTextDecoration:At,metasTypographyFontSizeSm:Ot,metasTypographyFontSizeMd:Gt,metasTypographyFontSize:jt,metasTypographyFontSizeUnit:Zt,metasTypographyLetterSpacingSm:qt,metasTypographyLetterSpacingMd:Kt,metasTypographyLetterSpacing:Yt,metasTypographyLetterSpacingUnit:Xt,metasTypographyLineHeightSm:Jt,metasTypographyLineHeightMd:Qt,metasTypographyLineHeight:ea,metasTypographyLineHeightUnit:ta,dateFormat:aa,customDateFormat:ia,imageBorderRadius:oa,listingTitleMarginSmTop:na,listingTitleMarginSmLeft:ra,listingTitleMarginSmRight:la,listingTitleMarginSmBottom:sa,listingTitleMarginMdTop:ma,listingTitleMarginMdLeft:da,listingTitleMarginMdRight:ca,listingTitleMarginMdBottom:pa,listingTitleMarginTop:ga,listingTitleMarginLeft:ua,listingTitleMarginRight:ha,listingTitleMarginBottom:ya,listingTitleMarginUnit:ba,categoryBackgroundColor:va,categoryTextColor:Ta,categoryBackgroundHoverColor:Sa,categoryTextHoverColor:fa,titleColor:La,titleHoverColor:Ma,excerptColor:xa,postMetasColor:Ea,blockMarginSmTop:Ba,blockMarginSmLeft:ka,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:za,blockMarginTop:wa,blockMarginLeft:Ra,blockMarginRight:Fa,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Aa,blockPaddingMdLeft:Oa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Za,blockPaddingLeft:qa,blockPaddingRight:Ka,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:Bi,borderNormalBoxShadowInset:ki,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:zi,blockBgColor:wi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,Bi,ki,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,zi,"px")}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n\n        ${Q("block-margin",wa,Fa,Da,Ra,Ba,_a,Ha,ka,Na,Ca,za,Va,Ua)}\n\n        ${Q("block-padding",Za,Ka,Ya,qa,Pa,$a,Wa,Ia,Aa,Ga,ja,Oa,Xa)}\n\n        ${Q("featured-title-margin",it,nt,rt,ot,Ke,Xe,Je,Ye,Qe,tt,at,et,lt)}\n\n        ${Q("listing-post-title-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n\n\t\t${Oe?"--sb-featured-thumb-height: "+Oe+"%;":""}\n\t\t${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n\t\t${L?"--sb-header-color: "+L+";":""}\n\t\t${E?"--sb-header-short-border-color: "+E+";":""}\n\t\t${_?"--sb-header-long-border-color: "+_+";":""}\n\n\t\t${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n\t\t${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt)}\n\n        ${ie("listing-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut,Pt)}\n\n        ${ie("post-metas-typo",It,$t,Wt,At,Ot,Gt,jt,Zt,qt,Kt,Yt,Xt,Jt,Qt,ea,ta)}\n\n\n\t\t${va?"--sb-category-background-color: "+va+";":""}\n\t\t${Ta?"--sb-category-text-color: "+Ta+";":""}\n\t\t${Sa?"--sb-category-background-hover-color: "+Sa+";":""}\n\t\t${fa?"--sb-category-text-hover-color: "+fa+";":""}\n\t\t${La?"--sb-title-color: "+La+";":""}\n\t\t${Ma?"--sb-title-hover-color: "+Ma+";":""}\n\n\t\t${xa?"--sb-excerpt-color: "+xa+";":""}\n\t\t${Ea?"--sb-post-metas-color: "+Ea+";":""}\n\n\t\t${oa?"--sb-image-border-radius: "+oa+"px;":""}\n\t}`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Fi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:5,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Fi&&Fi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[c,u,y,ve,Te,Di,h]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${f}`,X(H,C,F,D)),Ai=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Oi=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title "+X(st,mt,dt,ct):X(Be,ke,_e,He),c="featured"==t?Ge:Le,g="featured"==t?je:Me,u="featured"==t?Ze:xe,h="featured"==t?We||"large":Se||"large",y="featured"==t?Ae:0,b="featured"==t?qe:Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),b&&"featured"==t&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ai(e,t,!1))))),(0,i.createElement)("div",{class:"sb-post-content"},b&&"featured"!=t&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ai(e,t,!0)))),(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),st&&"Default"!=st&&(0,i.createElement)(So,{family:st,weight:mt.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),xt&&"Default"!=xt&&(0,i.createElement)(So,{family:xt,weight:Et.replace("italic","i")}),It&&"Default"!=It&&(0,i.createElement)(So,{family:It,weight:$t.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:"Style 1"},{value:"sb-title-style2",label:"Style 2"},{value:"sb-title-style3",label:"Style 3"},{value:"sb-title-style4",label:"Style 4"}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Oe,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:Ae,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:je,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:qe,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:oa,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:aa,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==aa&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:ia,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:st,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:mt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:dt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:ct,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:pt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:gt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ut,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ht,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:yt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:bt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:vt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:Tt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:St,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:ft,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Lt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Mt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:it,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Qe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ke,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:ot,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:et,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ye,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:nt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:tt,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Xe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:rt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:at,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Je,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:lt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Listing Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ba,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:xt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Et,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Bt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:kt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:_t,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ht,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Nt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Vt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ct,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:zt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:wt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Rt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ft,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Dt,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Ut,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Pt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:It,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:$t,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Wt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:At,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Ot,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Gt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:jt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Zt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:qt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Kt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Yt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Xt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Jt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Qt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ea,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ta,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:wa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Ba,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ka,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Fa,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:za,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Za,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Aa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Oa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ka,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Bi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ki,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:zi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:wi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-five"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-five-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Oi(Ui[Object.keys(Ui)[0]],"featured")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},function(e,t){let a=[];for(;++t<e.length;)a.push(Oi(Ui[Object.keys(Ui)[t]]));return a}(Ui,0))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-six",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200.64 156.43"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 98.62h57.81v40.81H0zM0 0h200.64v85.02H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 146.23h47.61v3.4H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M0 153.03h20.4v3.4H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 57.81h142.83v3.4H6.8zm0 6.8h125.82v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 74.81h34.01v3.4H6.8z",opacity:".71"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 98.62h57.81v40.81H71.41z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M71.41 146.23h47.61v3.4H71.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M71.41 153.03h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 98.62h57.81v40.81h-57.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M142.83 146.23h47.61v3.4h-47.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M142.83 153.03h20.4v3.4h-20.4z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 6","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,bottomImageSize:Se,bottomImageHeight:fe,bottomPostAuthor:Le,bottomPostDate:Me,bottomPostComments:xe,bottomPostCategory:Ee,bottomTypographyFamily:Be,bottomTypographyWeight:ke,bottomTypographyTextTransform:_e,bottomTypographyTextDecoration:He,bottomTypographyFontSizeSm:Ne,bottomTypographyFontSizeMd:Ve,bottomTypographyFontSize:Ce,bottomTypographyFontSizeUnit:ze,bottomTypographyLetterSpacingSm:we,bottomTypographyLetterSpacingMd:Re,bottomTypographyLetterSpacing:Fe,bottomTypographyLetterSpacingUnit:De,bottomTypographyLineHeightSm:Ue,bottomTypographyLineHeightMd:Pe,bottomTypographyLineHeight:Ie,bottomTypographyLineHeightUnit:$e,topImageSize:We,topImageHeight:Ae,topPostAuthor:Oe,topPostDate:Ge,topPostComments:je,topPostCategory:Ze,topTitleMarginTop:qe,topTitleMarginLeft:Ke,topTitleMarginRight:Ye,topTitleMarginBottom:Xe,topTitleMarginSmTop:Je,topTitleMarginSmLeft:Qe,topTitleMarginSmRight:et,topTitleMarginSmBottom:tt,topTitleMarginMdTop:at,topTitleMarginMdLeft:it,topTitleMarginMdRight:ot,topTitleMarginMdBottom:nt,topTitleMarginUnit:rt,topTypographyFamily:lt,topTypographyWeight:st,topTypographyTextTransform:mt,topTypographyTextDecoration:dt,topTypographyFontSizeSm:ct,topTypographyFontSizeMd:pt,topTypographyFontSize:gt,topTypographyFontSizeUnit:ut,topTypographyLetterSpacingSm:ht,topTypographyLetterSpacingMd:yt,topTypographyLetterSpacing:bt,topTypographyLetterSpacingUnit:vt,topTypographyLineHeightSm:Tt,topTypographyLineHeightMd:St,topTypographyLineHeight:ft,topTypographyLineHeightUnit:Lt,excerptTypographyFamily:Mt,excerptTypographyWeight:xt,excerptTypographyTextTransform:Et,excerptTypographyTextDecoration:Bt,excerptTypographyFontSizeSm:kt,excerptTypographyFontSizeMd:_t,excerptTypographyFontSize:Ht,excerptTypographyFontSizeUnit:Nt,excerptTypographyLetterSpacingSm:Vt,excerptTypographyLetterSpacingMd:Ct,excerptTypographyLetterSpacing:zt,excerptTypographyLetterSpacingUnit:wt,excerptTypographyLineHeightSm:Rt,excerptTypographyLineHeightMd:Ft,excerptTypographyLineHeight:Dt,excerptTypographyLineHeightUnit:Ut,metasTypographyFamily:Pt,metasTypographyWeight:It,metasTypographyTextTransform:$t,metasTypographyTextDecoration:Wt,metasTypographyFontSizeSm:At,metasTypographyFontSizeMd:Ot,metasTypographyFontSize:Gt,metasTypographyFontSizeUnit:jt,metasTypographyLetterSpacingSm:Zt,metasTypographyLetterSpacingMd:qt,metasTypographyLetterSpacing:Kt,metasTypographyLetterSpacingUnit:Yt,metasTypographyLineHeightSm:Xt,metasTypographyLineHeightMd:Jt,metasTypographyLineHeight:Qt,metasTypographyLineHeightUnit:ea,dateFormat:ta,customDateFormat:aa,imageBorderRadius:ia,bottomTitleMarginTop:oa,bottomTitleMarginLeft:na,bottomTitleMarginRight:ra,bottomTitleMarginBottom:la,bottomTitleMarginSmTop:sa,bottomTitleMarginSmLeft:ma,bottomTitleMarginSmRight:da,bottomTitleMarginSmBottom:ca,bottomTitleMarginMdTop:pa,bottomTitleMarginMdLeft:ga,bottomTitleMarginMdRight:ua,bottomTitleMarginMdBottom:ha,bottomTitleMarginUnit:ya,categoryBackgroundColor:ba,categoryTextColor:va,categoryBackgroundHoverColor:Ta,categoryTextHoverColor:Sa,titleColor:fa,titleHoverColor:La,excerptColor:Ma,postMetasColor:xa,bottomExcerptLength:Ea,blockMarginSmTop:Ba,blockMarginSmLeft:ka,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:za,blockMarginTop:wa,blockMarginLeft:Ra,blockMarginRight:Fa,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Aa,blockPaddingMdLeft:Oa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Za,blockPaddingLeft:qa,blockPaddingRight:Ka,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:Bi,borderNormalBoxShadowInset:ki,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:zi,blockBgColor:wi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,Bi,ki,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,zi,"px")}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n\n        ${Q("block-margin",wa,Fa,Da,Ra,Ba,_a,Ha,ka,Na,Ca,za,Va,Ua)}\n\n        ${Q("block-padding",Za,Ka,Ya,qa,Pa,$a,Wa,Ia,Aa,Ga,ja,Oa,Xa)}\n\n        ${Q("top-post-title-margin",qe,Ye,Xe,Ke,Je,et,tt,Qe,at,ot,nt,it,rt)}\n\n        ${Q("bottom-post-title-margin",oa,ra,la,na,sa,da,ca,ma,pa,ua,ha,ga,ya)}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n\n        ${Ae?"--sb-top-thumb-height: "+Ae+"%;":""}\n        ${fe?"--sb-bottom-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("top-post-title-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("bottom-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",Mt,xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut)}\n\n        ${ie("post-metas-typo",Pt,It,$t,Wt,At,Ot,Gt,jt,Zt,qt,Kt,Yt,Xt,Jt,Qt,ea)}\n\n        ${ba?"--sb-category-background-color: "+ba+";":""}\n        ${va?"--sb-category-text-color: "+va+";":""}\n        ${Ta?"--sb-category-background-hover-color: "+Ta+";":""}\n        ${Sa?"--sb-category-text-hover-color: "+Sa+";":""}\n        ${fa?"--sb-title-color: "+fa+";":""}\n        ${La?"--sb-title-hover-color: "+La+";":""}\n\n        ${Ma?"--sb-excerpt-color: "+Ma+";":""}\n        ${xa?"--sb-post-metas-color: "+xa+";":""}\n\n        ${ia?"--sb-image-border-radius: "+ia+"px;":""}\n    }`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Fi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:4,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Fi&&Fi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[c,u,y,ve,Te,Di,h]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${f}`,X(H,C,F,D)),Ai=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Oi=(e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],g=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h="top"==t?"sb-big-title "+X(lt,st,mt,dt):X(Be,ke,_e,He),y="top"==t?Oe:Le,b="top"==t?Ge:Me,v="top"==t?je:xe,T="top"==t?We||"large":Se||"large",S="top"==t?Ze:Ee,f=Ea,L=(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[T]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[T].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ta&&`${e.relative_dates.created}`,"default"==ta&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ta&&(0,ce.dateI18n)(aa,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))),S&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ai(e,t,!1)))))),M=(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[T]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[T].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text})),S&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ai(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ta&&`${e.relative_dates.created}`,"default"==ta&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ta&&(0,ce.dateI18n)(aa,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)),0!=f&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,f),f<e.content.rendered.length?"...":""))));return"top"==t?L:M},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(So,{family:lt,weight:st.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),Mt&&"Default"!=Mt&&(0,i.createElement)(So,{family:Mt,weight:xt.replace("italic","i")}),Pt&&"Default"!=Pt&&(0,i.createElement)(So,{family:Pt,weight:It.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Top Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({topImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Ae,setValue:e=>o({topImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Oe,onChange:e=>o({topPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ge,onChange:e=>o({topPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:je,onChange:e=>o({topPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ze,onChange:e=>o({topPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Bottom Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({bottomImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({bottomImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:Ea,setValue:e=>o({bottomExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({bottomPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({bottomPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({bottomPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({bottomPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:ia,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ta,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ta&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:aa,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ba,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Top Block","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({topTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({topTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({topTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({topTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({topTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({topTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({topTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({topTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({topTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({topTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({topTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({topTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({topTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({topTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({topTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({topTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:qe,setDimensionTop:e=>o({topTitleMarginTop:e}),dimensionMdTop:at,setDimensionMdTop:e=>o({topTitleMarginMdTop:e}),dimensionSmTop:Je,setDimensionSmTop:e=>o({topTitleMarginSmTop:e}),dimensionLeft:Ke,setDimensionLeft:e=>o({topTitleMarginLeft:e}),dimensionMdLeft:it,setDimensionMdLeft:e=>o({topTitleMarginMdLeft:e}),dimensionSmLeft:Qe,setDimensionSmLeft:e=>o({topTitleMarginSmLeft:e}),dimensionRight:Ye,setDimensionRight:e=>o({topTitleMarginRight:e}),dimensionMdRight:ot,setDimensionMdRight:e=>o({topTitleMarginMdRight:e}),dimensionSmRight:et,setDimensionSmRight:e=>o({topTitleMarginSmRight:e}),dimensionBottom:Xe,setDimensionBottom:e=>o({topTitleMarginBottom:e}),dimensionMdBottom:nt,setDimensionMdBottom:e=>o({topTitleMarginMdBottom:e}),dimensionSmBottom:tt,setDimensionSmBottom:e=>o({topTitleMarginSmBottom:e}),unit:rt,setUnit:e=>o({topTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Bottom Block","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({bottomTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({bottomTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({bottomTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({bottomTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({bottomTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({bottomTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({bottomTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({bottomTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({bottomTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({bottomTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({bottomTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({bottomTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({bottomTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({bottomTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({bottomTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({bottomTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:oa,setDimensionTop:e=>o({bottomTitleMarginTop:e}),dimensionMdTop:pa,setDimensionMdTop:e=>o({bottomTitleMarginMdTop:e}),dimensionSmTop:sa,setDimensionSmTop:e=>o({bottomTitleMarginSmTop:e}),dimensionLeft:na,setDimensionLeft:e=>o({bottomTitleMarginLeft:e}),dimensionMdLeft:ga,setDimensionMdLeft:e=>o({bottomTitleMarginMdLeft:e}),dimensionSmLeft:ma,setDimensionSmLeft:e=>o({bottomTitleMarginSmLeft:e}),dimensionRight:ra,setDimensionRight:e=>o({bottomTitleMarginRight:e}),dimensionMdRight:ua,setDimensionMdRight:e=>o({bottomTitleMarginMdRight:e}),dimensionSmRight:da,setDimensionSmRight:e=>o({bottomTitleMarginSmRight:e}),dimensionBottom:la,setDimensionBottom:e=>o({bottomTitleMarginBottom:e}),dimensionMdBottom:ha,setDimensionMdBottom:e=>o({bottomTitleMarginMdBottom:e}),dimensionSmBottom:ca,setDimensionSmBottom:e=>o({bottomTitleMarginSmBottom:e}),unit:ya,setUnit:e=>o({bottomTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Mt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:xt,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Et,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:Bt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:kt,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:_t,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Ht,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Nt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Vt,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ct,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:zt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:wt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Rt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Ft,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Dt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Ut,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Pt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:It,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:$t,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Wt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:At,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ot,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Gt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:jt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Zt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:qt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Kt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Yt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Xt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Jt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Qt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ea,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:wa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Ba,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ka,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Fa,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:za,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Za,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Aa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Oa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ka,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Bi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ki,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:zi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:wi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-six"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-six-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Oi(Ui[Object.keys(Ui)[0]],"top")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},function(e,t){let a=[];for(;++t<e.length;)a.push(Oi(Ui[Object.keys(Ui)[t]]));return a}(Ui,0))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-seven",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 163.23"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 136.02h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 136.02h54.41v3.4H40.81zm0 6.81h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 153.03h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 136.02h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 136.02h54.41v3.4h-54.41zM108.82 34.01h95.22v3.4h-95.22zm0 6.8h95.22v3.4h-95.22zm0 6.8h88.42v3.4h-88.42zm0 6.8h81.61v3.4h-81.61zm0 6.8h74.81v3.4h-74.81zm40.81 81.62h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 153.03h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 95.22h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 95.22h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 112.22h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 95.22h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 95.22h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 112.22h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 6.8h95.22v3.4h-95.22zm0 6.8h74.81V17h-74.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 23.8h27.2v3.4h-27.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h95.22v81.61H0z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 7","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingImageHeight:fe,listingPostAuthor:Le,listingPostDate:Me,listingPostComments:xe,listingPostCategory:Ee,listingTypographyFamily:Be,listingTypographyWeight:ke,listingTypographyTextTransform:_e,listingTypographyTextDecoration:He,listingTypographyFontSizeSm:Ne,listingTypographyFontSizeMd:Ve,listingTypographyFontSize:Ce,listingTypographyFontSizeUnit:ze,listingTypographyLetterSpacingSm:we,listingTypographyLetterSpacingMd:Re,listingTypographyLetterSpacing:Fe,listingTypographyLetterSpacingUnit:De,listingTypographyLineHeightSm:Ue,listingTypographyLineHeightMd:Pe,listingTypographyLineHeight:Ie,listingTypographyLineHeightUnit:$e,featuredImageSize:We,featuredExcerptLength:Ae,featuredImageHeight:Oe,featuredPostAuthor:Ge,featuredPostDate:je,featuredPostComments:Ze,featuredPostCategory:qe,featuredTitleMarginSmTop:Ke,featuredTitleMarginSmLeft:Ye,featuredTitleMarginSmRight:Xe,featuredTitleMarginSmBottom:Je,featuredTitleMarginMdTop:Qe,featuredTitleMarginMdLeft:et,featuredTitleMarginMdRight:tt,featuredTitleMarginMdBottom:at,featuredTitleMarginTop:it,featuredTitleMarginLeft:ot,featuredTitleMarginRight:nt,featuredTitleMarginBottom:rt,featuredTitleMarginUnit:lt,featuredTypographyFamily:st,featuredTypographyWeight:mt,featuredTypographyTextTransform:dt,featuredTypographyTextDecoration:ct,featuredTypographyFontSizeSm:pt,featuredTypographyFontSizeMd:gt,featuredTypographyFontSize:ut,featuredTypographyFontSizeUnit:ht,featuredTypographyLetterSpacingSm:yt,featuredTypographyLetterSpacingMd:bt,featuredTypographyLetterSpacing:vt,featuredTypographyLetterSpacingUnit:Tt,featuredTypographyLineHeightSm:St,featuredTypographyLineHeightMd:ft,featuredTypographyLineHeight:Lt,featuredTypographyLineHeightUnit:Mt,excerptTypographyFamily:xt,excerptTypographyWeight:Et,excerptTypographyTextTransform:Bt,excerptTypographyTextDecoration:kt,excerptTypographyFontSizeSm:_t,excerptTypographyFontSizeMd:Ht,excerptTypographyFontSize:Nt,excerptTypographyFontSizeUnit:Vt,excerptTypographyLetterSpacingSm:Ct,excerptTypographyLetterSpacingMd:zt,excerptTypographyLetterSpacing:wt,excerptTypographyLetterSpacingUnit:Rt,excerptTypographyLineHeightSm:Ft,excerptTypographyLineHeightMd:Dt,excerptTypographyLineHeight:Ut,excerptTypographyLineHeightUnit:Pt,metasTypographyFamily:It,metasTypographyWeight:$t,metasTypographyTextTransform:Wt,metasTypographyTextDecoration:At,metasTypographyFontSizeSm:Ot,metasTypographyFontSizeMd:Gt,metasTypographyFontSize:jt,metasTypographyFontSizeUnit:Zt,metasTypographyLetterSpacingSm:qt,metasTypographyLetterSpacingMd:Kt,metasTypographyLetterSpacing:Yt,metasTypographyLetterSpacingUnit:Xt,metasTypographyLineHeightSm:Jt,metasTypographyLineHeightMd:Qt,metasTypographyLineHeight:ea,metasTypographyLineHeightUnit:ta,dateFormat:aa,customDateFormat:ia,imageBorderRadius:oa,listingTitleMarginSmTop:na,listingTitleMarginSmLeft:ra,listingTitleMarginSmRight:la,listingTitleMarginSmBottom:sa,listingTitleMarginMdTop:ma,listingTitleMarginMdLeft:da,listingTitleMarginMdRight:ca,listingTitleMarginMdBottom:pa,listingTitleMarginTop:ga,listingTitleMarginLeft:ua,listingTitleMarginRight:ha,listingTitleMarginBottom:ya,listingTitleMarginUnit:ba,categoryBackgroundColor:va,categoryTextColor:Ta,categoryBackgroundHoverColor:Sa,categoryTextHoverColor:fa,titleColor:La,titleHoverColor:Ma,excerptColor:xa,postMetasColor:Ea,blockMarginSmTop:Ba,blockMarginSmLeft:ka,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:za,blockMarginTop:wa,blockMarginLeft:Ra,blockMarginRight:Fa,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Aa,blockPaddingMdLeft:Oa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Za,blockPaddingLeft:qa,blockPaddingRight:Ka,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:Bi,borderNormalBoxShadowInset:ki,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:zi,blockBgColor:wi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,Bi,ki,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,zi,"px")}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n\n        ${Q("block-margin",wa,Fa,Da,Ra,Ba,_a,Ha,ka,Na,Ca,za,Va,Ua)}\n\n        ${Q("block-padding",Za,Ka,Ya,qa,Pa,$a,Wa,Ia,Aa,Ga,ja,Oa,Xa)}\n\n        ${Q("featured-title-margin",it,nt,rt,ot,Ke,Xe,Je,Ye,Qe,tt,at,et,lt)}\n\n        ${Q("listing-post-title-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n\n        ${Oe?"--sb-featured-thumb-height: "+Oe+"%;":""}\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt)}\n\n        ${ie("listing-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut,Pt)}\n\n        ${ie("post-metas-typo",It,$t,Wt,At,Ot,Gt,jt,Zt,qt,Kt,Yt,Xt,Jt,Qt,ea,ta)}\n\n        ${va?"--sb-category-background-color: "+va+";":""}\n        ${Ta?"--sb-category-text-color: "+Ta+";":""}\n        ${Sa?"--sb-category-background-hover-color: "+Sa+";":""}\n        ${fa?"--sb-category-text-hover-color: "+fa+";":""}\n        ${La?"--sb-title-color: "+La+";":""}\n        ${Ma?"--sb-title-hover-color: "+Ma+";":""}\n\n        ${xa?"--sb-excerpt-color: "+xa+";":""}\n        ${Ea?"--sb-post-metas-color: "+Ea+";":""}\n\n        ${oa?"--sb-image-border-radius: "+oa+"px;":""}\n    }`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Fi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:7,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Fi&&Fi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[c,u,y,ve,Te,Di,h]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${f}`,X(H,C,F,D)),Ai=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Oi=(e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],g=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h="featured"==t?"sb-post-title "+X(st,mt,dt,ct):X(Be,ke,_e,He),y="featured"==t?Ge:Le,b="featured"==t?je:Me,v="featured"==t?Ze:xe,T="featured"==t?We||"large":Se||"large",S="featured"==t?Ae:0,f="featured"==t?qe:Ee,L=(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[T]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[T].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("ul",{class:"post-categories"},f&&e.categories&&e.categories.map(((e,t)=>Ai(e,t,!1))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)),0!=S&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,S),S<e.content.rendered.length?"...":"")))),M=(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[T]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[T].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text}))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("ul",{class:"post-categories"},f&&e.categories&&e.categories.map(((e,t)=>Ai(e,t,!0)))),(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))));return"featured"==t?L:M},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),st&&"Default"!=st&&(0,i.createElement)(So,{family:st,weight:mt.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),xt&&"Default"!=xt&&(0,i.createElement)(So,{family:xt,weight:Et.replace("italic","i")}),It&&"Default"!=It&&(0,i.createElement)(So,{family:It,weight:$t.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Oe,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:Ae,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:je,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:qe,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:oa,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:aa,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==aa&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:ia,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:st,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:mt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:dt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:ct,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:pt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:gt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ut,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ht,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:yt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:bt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:vt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:Tt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:St,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:ft,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Lt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Mt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:it,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Qe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ke,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:ot,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:et,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ye,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:nt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:tt,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Xe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:rt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:at,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Je,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:lt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Listing Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ba,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:xt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Et,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Bt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:kt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:_t,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ht,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Nt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Vt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ct,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:zt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:wt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Rt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ft,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Dt,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Ut,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Pt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:It,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:$t,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Wt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:At,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Ot,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Gt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:jt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Zt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:qt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Kt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Yt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Xt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Jt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Qt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ea,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ta,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:wa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Ba,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ka,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Fa,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:za,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Za,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Aa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Oa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ka,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Bi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ki,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:zi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:wi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-seven"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-seven-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Oi(Ui[Object.keys(Ui)[0]],"featured")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},function(e,t){let a=[];for(;++t<e.length;)a.push(Oi(Ui[Object.keys(Ui)[t]],""));return a}(Ui,0))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-eight",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 25.5"},(0,i.createElement)("path",{fill:"#687e8b",d:"M24 0h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M24 9h7.5v.75H24z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M24 10.5h3.75v.75H24zM0 21h6v.75H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M36 0h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M36 9h7.5v.75H36z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M36 10.5h3.75v.75H36z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M24 14.25h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M24 23.25h7.5V24H24zm-24 0h19.5V24H0zm0 1.5h17.25v.75H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M24 24.75h3.75v.75H24z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M36 14.25h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M36 23.25h7.5V24H36z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M36 24.75h3.75v.75H36z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h21v15.75H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 17.25h17.25V18H0zm0 1.5h14.25v.75H0z"}),(0,i.createElement)("path",{fill:"#8ca7b9",d:"M0 21h6v.75H0z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 8","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideImageHeight:fe,sidePostAuthor:Le,sidePostDate:Me,sidePostComments:xe,sidePostCategory:Ee,sideTypographyFamily:Be,sideTypographyWeight:ke,sideTypographyTextTransform:_e,sideTypographyTextDecoration:He,sideTypographyFontSizeSm:Ne,sideTypographyFontSizeMd:Ve,sideTypographyFontSize:Ce,sideTypographyFontSizeUnit:ze,sideTypographyLetterSpacingSm:we,sideTypographyLetterSpacingMd:Re,sideTypographyLetterSpacing:Fe,sideTypographyLetterSpacingUnit:De,sideTypographyLineHeightSm:Ue,sideTypographyLineHeightMd:Pe,sideTypographyLineHeight:Ie,sideTypographyLineHeightUnit:$e,featuredImageSize:We,featuredExcerptLength:Ae,featuredImageHeight:Oe,featuredPostAuthor:Ge,featuredPostDate:je,featuredPostComments:Ze,featuredPostCategory:qe,featuredTitleMarginSmTop:Ke,featuredTitleMarginSmLeft:Ye,featuredTitleMarginSmRight:Xe,featuredTitleMarginSmBottom:Je,featuredTitleMarginMdTop:Qe,featuredTitleMarginMdLeft:et,featuredTitleMarginMdRight:tt,featuredTitleMarginMdBottom:at,featuredTitleMarginTop:it,featuredTitleMarginLeft:ot,featuredTitleMarginRight:nt,featuredTitleMarginBottom:rt,featuredTitleMarginUnit:lt,featuredTypographyFamily:st,featuredTypographyWeight:mt,featuredTypographyTextTransform:dt,featuredTypographyTextDecoration:ct,featuredTypographyFontSizeSm:pt,featuredTypographyFontSizeMd:gt,featuredTypographyFontSize:ut,featuredTypographyFontSizeUnit:ht,featuredTypographyLetterSpacingSm:yt,featuredTypographyLetterSpacingMd:bt,featuredTypographyLetterSpacing:vt,featuredTypographyLetterSpacingUnit:Tt,featuredTypographyLineHeightSm:St,featuredTypographyLineHeightMd:ft,featuredTypographyLineHeight:Lt,featuredTypographyLineHeightUnit:Mt,excerptTypographyFamily:xt,excerptTypographyWeight:Et,excerptTypographyTextTransform:Bt,excerptTypographyTextDecoration:kt,excerptTypographyFontSizeSm:_t,excerptTypographyFontSizeMd:Ht,excerptTypographyFontSize:Nt,excerptTypographyFontSizeUnit:Vt,excerptTypographyLetterSpacingSm:Ct,excerptTypographyLetterSpacingMd:zt,excerptTypographyLetterSpacing:wt,excerptTypographyLetterSpacingUnit:Rt,excerptTypographyLineHeightSm:Ft,excerptTypographyLineHeightMd:Dt,excerptTypographyLineHeight:Ut,excerptTypographyLineHeightUnit:Pt,metasTypographyFamily:It,metasTypographyWeight:$t,metasTypographyTextTransform:Wt,metasTypographyTextDecoration:At,metasTypographyFontSizeSm:Ot,metasTypographyFontSizeMd:Gt,metasTypographyFontSize:jt,metasTypographyFontSizeUnit:Zt,metasTypographyLetterSpacingSm:qt,metasTypographyLetterSpacingMd:Kt,metasTypographyLetterSpacing:Yt,metasTypographyLetterSpacingUnit:Xt,metasTypographyLineHeightSm:Jt,metasTypographyLineHeightMd:Qt,metasTypographyLineHeight:ea,metasTypographyLineHeightUnit:ta,dateFormat:aa,customDateFormat:ia,imageBorderRadius:oa,sideTitleMarginSmTop:na,sideTitleMarginSmLeft:ra,sideTitleMarginSmRight:la,sideTitleMarginSmBottom:sa,sideTitleMarginMdTop:ma,sideTitleMarginMdLeft:da,sideTitleMarginMdRight:ca,sideTitleMarginMdBottom:pa,sideTitleMarginTop:ga,sideTitleMarginLeft:ua,sideTitleMarginRight:ha,sideTitleMarginBottom:ya,sideTitleMarginUnit:ba,categoryBackgroundColor:va,categoryTextColor:Ta,categoryBackgroundHoverColor:Sa,categoryTextHoverColor:fa,titleColor:La,titleHoverColor:Ma,excerptColor:xa,postMetasColor:Ea,blockMarginSmTop:Ba,blockMarginSmLeft:ka,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:za,blockMarginTop:wa,blockMarginLeft:Ra,blockMarginRight:Fa,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Aa,blockPaddingMdLeft:Oa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Za,blockPaddingLeft:qa,blockPaddingRight:Ka,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:Bi,borderNormalBoxShadowInset:ki,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:zi,blockBgColor:wi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,Bi,ki,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,zi,"px")}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n\n        ${Q("block-margin",wa,Fa,Da,Ra,Ba,_a,Ha,ka,Na,Ca,za,Va,Ua)}\n\n        ${Q("block-padding",Za,Ka,Ya,qa,Pa,$a,Wa,Ia,Aa,Ga,ja,Oa,Xa)}\n\n        ${wi?"--sb-block-bg-color: "+wi+";":""}\n        \n        ${Oe?"--sb-featured-thumb-height: "+Oe+"%;":""}\n        ${fe?"--sb-side-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt)}\n\n        ${ie("side-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut,Pt)}\n\n        ${ie("post-metas-typo",It,$t,Wt,At,Ot,Gt,jt,Zt,qt,Kt,Yt,Xt,Jt,Qt,ea,ta)}\n\n        ${va?"--sb-category-background-color: "+va+";":""}\n        ${Ta?"--sb-category-text-color: "+Ta+";":""}\n        ${Sa?"--sb-category-background-hover-color: "+Sa+";":""}\n        ${fa?"--sb-category-text-hover-color: "+fa+";":""}\n        ${La?"--sb-title-color: "+La+";":""}\n        ${Ma?"--sb-title-hover-color: "+Ma+";":""}\n\n        ${Q("featured-title-margin",it,nt,rt,ot,Ke,Xe,Je,Ye,Qe,tt,at,et,lt)}\n\n        ${Q("side-post-title-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${xa?"--sb-excerpt-color: "+xa+";":""}\n        ${Ea?"--sb-post-metas-color: "+Ea+";":""}\n        ${oa?"--sb-image-border-radius: "+oa+"px;":""}\n    }`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Fi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:5,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Fi&&Fi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[c,u,y,ve,Te,Di,h]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${f}`,X(H,C,F,D)),Ai=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Oi=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-post-title "+X(st,mt,dt,ct):X(Be,ke,_e,He),c="featured"==t?Ge:Le,g="featured"==t?je:Me,u="featured"==t?Ze:xe,h="featured"==t?We||"large":Se||"large",y="featured"==t?Ae:0,b="featured"==t?qe:Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&"featured"==t?e.categories.map(((e,t)=>Ai(e,t,!1))):e.categories.map(((e,t)=>Ai(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),st&&"Default"!=st&&(0,i.createElement)(So,{family:st,weight:mt.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),xt&&"Default"!=xt&&(0,i.createElement)(So,{family:xt,weight:Et.replace("italic","i")}),It&&"Default"!=It&&(0,i.createElement)(So,{family:It,weight:$t.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Oe,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:Ae,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:je,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:qe,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:oa,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:aa,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==aa&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:ia,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:st,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:mt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:dt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:ct,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:pt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:gt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ut,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ht,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:yt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:bt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:vt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:Tt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:St,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:ft,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Lt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Mt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:it,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Qe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ke,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:ot,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:et,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ye,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:nt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:tt,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Xe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:rt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:at,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Je,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:lt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Side Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:ba,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:xt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Et,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Bt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:kt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:_t,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ht,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Nt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Vt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ct,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:zt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:wt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Rt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ft,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Dt,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Ut,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Pt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:It,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:$t,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Wt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:At,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Ot,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Gt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:jt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Zt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:qt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Kt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Yt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Xt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Jt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Qt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ea,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ta,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:wa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Ba,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ka,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Fa,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:za,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Za,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Aa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Oa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ka,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Bi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ki,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:zi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:wi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-eight"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-eight-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Oi(Ui[Object.keys(Ui)[0]],"featured")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},(0,i.createElement)("div",{class:"sb-small-block-wrap"},function(e,t){let a=[];for(;++t<e.length;)a.push(Oi(Ui[Object.keys(Ui)[t]],""));return a}(Ui,0)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-nine",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.22 163.23"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 71.41h34.01v23.8H0zM0 0h95.22v61.21H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 78.21h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 88.42h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 71.41h54.41v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 105.42h34.01v23.8H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 112.22h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 122.42h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 105.42h54.41v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 139.43h34.01v23.8H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 146.23h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 156.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 139.43h54.41v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 44.21h68.01v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 51.01H34v3.4H6.8z",opacity:".61"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 9","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingImageHeight:fe,listingPostAuthor:Le,listingPostDate:Me,listingPostComments:xe,listingPostCategory:Ee,listingTypographyFamily:Be,listingTypographyWeight:ke,listingTypographyTextTransform:_e,listingTypographyTextDecoration:He,listingTypographyFontSizeSm:Ne,listingTypographyFontSizeMd:Ve,listingTypographyFontSize:Ce,listingTypographyFontSizeUnit:ze,listingTypographyLetterSpacingSm:we,listingTypographyLetterSpacingMd:Re,listingTypographyLetterSpacing:Fe,listingTypographyLetterSpacingUnit:De,listingTypographyLineHeightSm:Ue,listingTypographyLineHeightMd:Pe,listingTypographyLineHeight:Ie,listingTypographyLineHeightUnit:$e,featuredImageSize:We,featuredImageHeight:Ae,featuredPostAuthor:Oe,featuredPostDate:Ge,featuredPostComments:je,featuredPostCategory:Ze,featuredTitleMarginSmTop:qe,featuredTitleMarginSmLeft:Ke,featuredTitleMarginSmRight:Ye,featuredTitleMarginSmBottom:Xe,featuredTitleMarginMdTop:Je,featuredTitleMarginMdLeft:Qe,featuredTitleMarginMdRight:et,featuredTitleMarginMdBottom:tt,featuredTitleMarginTop:at,featuredTitleMarginLeft:it,featuredTitleMarginRight:ot,featuredTitleMarginBottom:nt,featuredTitleMarginUnit:rt,featuredTypographyFamily:lt,featuredTypographyWeight:st,featuredTypographyTextTransform:mt,featuredTypographyTextDecoration:dt,featuredTypographyFontSizeSm:ct,featuredTypographyFontSizeMd:pt,featuredTypographyFontSize:gt,featuredTypographyFontSizeUnit:ut,featuredTypographyLetterSpacingSm:ht,featuredTypographyLetterSpacingMd:yt,featuredTypographyLetterSpacing:bt,featuredTypographyLetterSpacingUnit:vt,featuredTypographyLineHeightSm:Tt,featuredTypographyLineHeightMd:St,featuredTypographyLineHeight:ft,featuredTypographyLineHeightUnit:Lt,metasTypographyFamily:Mt,metasTypographyWeight:xt,metasTypographyTextTransform:Et,metasTypographyTextDecoration:Bt,metasTypographyFontSizeSm:kt,metasTypographyFontSizeMd:_t,metasTypographyFontSize:Ht,metasTypographyFontSizeUnit:Nt,metasTypographyLetterSpacingSm:Vt,metasTypographyLetterSpacingMd:Ct,metasTypographyLetterSpacing:zt,metasTypographyLetterSpacingUnit:wt,metasTypographyLineHeightSm:Rt,metasTypographyLineHeightMd:Ft,metasTypographyLineHeight:Dt,metasTypographyLineHeightUnit:Ut,dateFormat:Pt,customDateFormat:It,imageBorderRadius:$t,listingTitleMarginSmTop:Wt,listingTitleMarginSmLeft:At,listingTitleMarginSmRight:Ot,listingTitleMarginSmBottom:Gt,listingTitleMarginMdTop:jt,listingTitleMarginMdLeft:Zt,listingTitleMarginMdRight:qt,listingTitleMarginMdBottom:Kt,listingTitleMarginTop:Yt,listingTitleMarginLeft:Xt,listingTitleMarginRight:Jt,listingTitleMarginBottom:Qt,listingTitleMarginUnit:ea,categoryBackgroundColor:ta,categoryTextColor:aa,categoryBackgroundHoverColor:ia,categoryTextHoverColor:oa,titleColor:na,titleHoverColor:ra,postMetasColor:la,blockMarginSmTop:sa,blockMarginSmLeft:ma,blockMarginSmRight:da,blockMarginSmBottom:ca,blockMarginMdTop:pa,blockMarginMdLeft:ga,blockMarginMdRight:ua,blockMarginMdBottom:ha,blockMarginTop:ya,blockMarginLeft:ba,blockMarginRight:va,blockMarginBottom:Ta,blockMarginUnit:Sa,blockPaddingSmTop:fa,blockPaddingSmLeft:La,blockPaddingSmRight:Ma,blockPaddingSmBottom:xa,blockPaddingMdTop:Ea,blockPaddingMdLeft:Ba,blockPaddingMdRight:ka,blockPaddingMdBottom:_a,blockPaddingTop:Ha,blockPaddingLeft:Na,blockPaddingRight:Va,blockPaddingBottom:Ca,blockPaddingUnit:za,borderNormal:wa,borderHover:Ra,borderNormalColor:Fa,borderHoverColor:Da,borderNormalWidthTop:Ua,borderNormalWidthLeft:Pa,borderNormalWidthRight:Ia,borderNormalWidthBottom:$a,borderNormalWidthUnit:Wa,borderHoverWidthTop:Aa,borderHoverWidthLeft:Oa,borderHoverWidthRight:Ga,borderHoverWidthBottom:ja,borderHoverWidthUnit:Za,borderNormalRadiusTop:qa,borderNormalRadiusLeft:Ka,borderNormalRadiusRight:Ya,borderNormalRadiusBottom:Xa,borderNormalRadiusUnit:Ja,borderHoverRadiusTop:Qa,borderHoverRadiusLeft:ei,borderHoverRadiusRight:ti,borderHoverRadiusBottom:ai,borderHoverRadiusUnit:ii,borderNormalBoxShadowHorizontal:oi,borderNormalBoxShadowVertical:ni,borderNormalBoxShadowBlur:ri,borderNormalBoxShadowSpread:li,borderNormalBoxShadowColor:si,borderNormalBoxShadowInset:mi,borderHoverBoxShadowHorizontal:di,borderHoverBoxShadowVertical:ci,borderHoverBoxShadowBlur:pi,borderHoverBoxShadowSpread:gi,borderHoverBoxShadowColor:ui,borderHoverBoxShadowInset:hi,blockBgColor:yi}=a;o({id:(0,d.useBlockProps)().id});const bi=`#${s} {\n        ${wa?"--sb-border-normal: "+wa+";":""}\n        ${Ra?"--sb-border-hover: "+wa+";":""}\n        ${Fa?"--sb-border-normal-color: "+Fa+";":""}\n        ${Da?"--sb-border-hover-color: "+Da+";":""}\n\n        ${J("border-normal-width",Ua,Ia,$a,Pa,Wa)}\n        ${J("border-hover-width",Aa,Ga,ja,Oa,Za)}\n        ${J("border-normal-radius",qa,Ya,Xa,Ka,Ja)}\n        ${J("border-hover-radius",Qa,ti,ai,ei,ii)}\n\n        ${te("border-normal-box-shadow",oi,ni,ri,li,si,mi,"px")}\n        ${te("border-hover-box-shadow",di,ci,pi,gi,ui,hi,"px")}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Q("block-margin",ya,va,Ta,ba,sa,da,ca,ma,pa,ua,ha,ga,Sa)}\n\n        ${Q("block-padding",Ha,Va,Ca,Na,fa,Ma,xa,La,Ea,ka,_a,Ba,za)}\n\n        ${Q("featured-title-margin",at,ot,nt,it,qe,Ye,Xe,Ke,Je,et,tt,Qe,rt)}\n\n        ${Q("listing-post-title-margin",Yt,Jt,Qt,Xt,Wt,Ot,Gt,At,jt,qt,Kt,Zt,ea)}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Ae?"--sb-featured-thumb-height: "+Ae+"%;":""}\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("listing-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Mt,xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt,Ut)}\n\n        ${ta?"--sb-category-background-color: "+ta+";":""}\n\n        ${aa?"--sb-category-text-color: "+aa+";":""}\n        ${ia?"--sb-category-background-hover-color: "+ia+";":""}\n        ${oa?"--sb-category-text-hover-color: "+oa+";":""}\n        ${na?"--sb-title-color: "+na+";":""}\n        ${ra?"--sb-title-hover-color: "+ra+";":""}\n        ${la?"--sb-post-metas-color: "+la+";":""}\n\n        ${$t?"--sb-image-border-radius: "+$t+"px;":""}\n    }`;o({sbStyle:bi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const vi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ti={per_page:5,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};vi&&vi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ti[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Si=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ti)),[c,u,y,ve,Te,Ti,h]),fi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Li=[];fi&&fi.map(((e,t)=>{Li.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Mi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),xi=l()("sb-block-title",`${f}`,X(H,C,F,D)),Ei=(e,t,a)=>{if(a&&0!=t)return;const o=Mi&&Mi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Bi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ki=()=>{const e=[];return null==Bi||Bi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(So,{family:lt,weight:st.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),Mt&&"Default"!=Mt&&(0,i.createElement)(So,{family:Mt,weight:xt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ki(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Ae,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Oe,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:je,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:ki(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:$t,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:Pt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==Pt&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:It,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:at,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Je,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:qe,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:it,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Qe,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ke,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:ot,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:et,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Ye,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:nt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:tt,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Xe,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:rt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Listing Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:Yt,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:jt,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:Wt,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:Xt,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:Zt,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:At,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:Jt,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:qt,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:Ot,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:Qt,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:Kt,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:Gt,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ea,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:la,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Mt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:xt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Et,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Bt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:kt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:_t,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ht,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Nt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Vt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ct,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:zt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:wt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Rt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Ft,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Dt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Ut,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ya,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:pa,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:sa,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ga,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ma,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:va,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ua,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:da,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ha,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ca,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Sa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ha,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ea,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:fa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Na,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ba,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:La,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Va,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ka,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Ma,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ca,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:_a,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:xa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:za,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:wa,setValue:e=>o({borderNormal:e})}),wa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Fa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Ua,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Pa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ia,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:$a,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Wa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:qa,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:Ka,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ja,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:oi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ni,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ri,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:li,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:si,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:mi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Ra,setValue:e=>o({borderHover:e})}),Ra&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Da,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Aa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Oa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ja,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Za,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Qa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ei,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ai,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ii,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:di,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:ci,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:pi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:gi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:ui,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:hi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:yi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-nine"}),(0,i.createElement)("h2",{className:xi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-nine-wrap"},Si&&Si.map(((e,t)=>((e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],g=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h=0==t?Oe:Le,y=0==t?Ge:Me,b=0==t?je:xe,v=0==t?We||"large":Se||"large",T=0==t?Ze:Ee,S=(0,i.createElement)("div",{className:"sb-big-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[v]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[v].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title ${X(lt,st,mt,dt)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Pt&&`${e.relative_dates.created}`,"default"==Pt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Pt&&(0,ce.dateI18n)(It,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)))),T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ei(e,t,!1)))))),f=(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[v]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[v].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text})))),(0,i.createElement)("div",{class:"sb-post-content"},T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ei(e,t,!0)))),(0,i.createElement)("h3",{className:`sb-post-title ${X(Be,ke,_e,He)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},g&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),g.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Pt&&`${e.relative_dates.created}`,"default"==Pt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Pt&&(0,ce.dateI18n)(It,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))));return 0==t?S:f})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-ten",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.22 149.63"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 40.81h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 40.81h54.41v3.4H40.81zm0-40.81h54.41v3.4H40.81zm0 47.61h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 57.81h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 81.61h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 81.61h54.41v3.4H40.81zm0 6.81h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 98.62h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 122.42h34.01v27.21H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 122.42h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 139.43h20.4v3.4h-20.4z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 10","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingExcerptLength:fe,listingImageWidth:Le,listingImageHeight:Me,listingPostAuthor:xe,listingPostDate:Ee,listingPostComments:Be,listingPostCategory:ke,listingTypographyFamily:_e,listingTypographyWeight:He,listingTypographyTextTransform:Ne,listingTypographyTextDecoration:Ve,listingTypographyFontSizeSm:Ce,listingTypographyFontSizeMd:ze,listingTypographyFontSize:we,listingTypographyFontSizeUnit:Re,listingTypographyLetterSpacingSm:Fe,listingTypographyLetterSpacingMd:De,listingTypographyLetterSpacing:Ue,listingTypographyLetterSpacingUnit:Pe,listingTypographyLineHeightSm:Ie,listingTypographyLineHeightMd:$e,listingTypographyLineHeight:We,listingTypographyLineHeightUnit:Ae,metasTypographyFamily:Oe,metasTypographyWeight:Ge,metasTypographyTextTransform:je,metasTypographyTextDecoration:Ze,metasTypographyFontSizeSm:qe,metasTypographyFontSizeMd:Ke,metasTypographyFontSize:Ye,metasTypographyFontSizeUnit:Xe,metasTypographyLetterSpacingSm:Je,metasTypographyLetterSpacingMd:Qe,metasTypographyLetterSpacing:et,metasTypographyLetterSpacingUnit:tt,metasTypographyLineHeightSm:at,metasTypographyLineHeightMd:it,metasTypographyLineHeight:ot,metasTypographyLineHeightUnit:nt,dateFormat:rt,customDateFormat:lt,imageBorderRadius:st,listingTitleMarginSmTop:mt,listingTitleMarginSmLeft:dt,listingTitleMarginSmRight:ct,listingTitleMarginSmBottom:pt,listingTitleMarginMdTop:gt,listingTitleMarginMdLeft:ut,listingTitleMarginMdRight:ht,listingTitleMarginMdBottom:yt,listingTitleMarginTop:bt,listingTitleMarginLeft:vt,listingTitleMarginRight:Tt,listingTitleMarginBottom:St,listingTitleMarginUnit:ft,categoryBackgroundColor:Lt,categoryTextColor:Mt,categoryBackgroundHoverColor:xt,categoryTextHoverColor:Et,titleColor:Bt,titleHoverColor:kt,postMetasColor:_t,noOfPosts:Ht,blockMarginSmTop:Nt,blockMarginSmLeft:Vt,blockMarginSmRight:Ct,blockMarginSmBottom:zt,blockMarginMdTop:wt,blockMarginMdLeft:Rt,blockMarginMdRight:Ft,blockMarginMdBottom:Dt,blockMarginTop:Ut,blockMarginLeft:Pt,blockMarginRight:It,blockMarginBottom:$t,blockMarginUnit:Wt,blockPaddingSmTop:At,blockPaddingSmLeft:Ot,blockPaddingSmRight:Gt,blockPaddingSmBottom:jt,blockPaddingMdTop:Zt,blockPaddingMdLeft:qt,blockPaddingMdRight:Kt,blockPaddingMdBottom:Yt,blockPaddingTop:Xt,blockPaddingLeft:Jt,blockPaddingRight:Qt,blockPaddingBottom:ea,blockPaddingUnit:ta,borderNormal:aa,borderHover:ia,borderNormalColor:oa,borderHoverColor:na,borderNormalWidthTop:ra,borderNormalWidthLeft:la,borderNormalWidthRight:sa,borderNormalWidthBottom:ma,borderNormalWidthUnit:da,borderHoverWidthTop:ca,borderHoverWidthLeft:pa,borderHoverWidthRight:ga,borderHoverWidthBottom:ua,borderHoverWidthUnit:ha,borderNormalRadiusTop:ya,borderNormalRadiusLeft:ba,borderNormalRadiusRight:va,borderNormalRadiusBottom:Ta,borderNormalRadiusUnit:Sa,borderHoverRadiusTop:fa,borderHoverRadiusLeft:La,borderHoverRadiusRight:Ma,borderHoverRadiusBottom:xa,borderHoverRadiusUnit:Ea,borderNormalBoxShadowHorizontal:Ba,borderNormalBoxShadowVertical:ka,borderNormalBoxShadowBlur:_a,borderNormalBoxShadowSpread:Ha,borderNormalBoxShadowColor:Na,borderNormalBoxShadowInset:Va,borderHoverBoxShadowHorizontal:Ca,borderHoverBoxShadowVertical:za,borderHoverBoxShadowBlur:wa,borderHoverBoxShadowSpread:Ra,borderHoverBoxShadowColor:Fa,borderHoverBoxShadowInset:Da,blockBgColor:Ua}=a;o({id:(0,d.useBlockProps)().id});const Pa=`#${s} {\n        ${aa?"--sb-border-normal: "+aa+";":""}\n        ${ia?"--sb-border-hover: "+aa+";":""}\n        ${oa?"--sb-border-normal-color: "+oa+";":""}\n        ${na?"--sb-border-hover-color: "+na+";":""}\n\n        ${J("border-normal-width",ra,sa,ma,la,da)}\n        ${J("border-hover-width",ca,ga,ua,pa,ha)}\n        ${J("border-normal-radius",ya,va,Ta,ba,Sa)}\n        ${J("border-hover-radius",fa,Ma,xa,La,Ea)}\n\n        ${te("border-normal-box-shadow",Ba,ka,_a,Ha,Na,Va,"px")}\n        ${te("border-hover-box-shadow",Ca,za,wa,Ra,Fa,Da,"px")}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${Q("block-margin",Ut,It,$t,Pt,Nt,Ct,zt,Vt,wt,Ft,Dt,Rt,Wt)}\n\n        ${Q("block-padding",Xt,Qt,ea,Jt,At,Gt,jt,Ot,Zt,Kt,Yt,qt,ta)}\n\n        ${Q("listing-post-title-margin",bt,Tt,St,vt,mt,ct,pt,dt,gt,ht,yt,ut,ft)}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${Me?"--sb-listing-post-thumb-height: "+Me+"%;":""}\n        ${Le?"--sb-listing-post-thumb-width: "+Le+"px;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e,We,Ae)}\n\n        ${ie("post-metas-typo",Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at,it,ot,nt)}\n\n        ${Lt?"--sb-category-background-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-color: "+Mt+";":""}\n        ${xt?"--sb-category-background-hover-color: "+xt+";":""}\n        ${Et?"--sb-category-text-hover-color: "+Et+";":""}\n        ${Bt?"--sb-title-color: "+Bt+";":""}\n        ${kt?"--sb-title-hover-color: "+kt+";":""}\n\n        ${_t?"--sb-post-metas-color: "+_t+";":""}\n\n        ${st?"--sb-image-border-radius: "+st+"px;":""}\n    }`;o({sbStyle:Pa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ia=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),$a={per_page:Ht,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Ia&&Ia.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),$a[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,$a)),[c,u,y,ve,Te,Ht,$a]),Aa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Oa=[];Aa&&Aa.map(((e,t)=>{Oa.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Ga=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),ja=l()("sb-block-title",`${f}`,X(H,C,F,D)),Za=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),_e&&"Default"!=_e&&(0,i.createElement)(So,{family:_e,weight:He.replace("italic","i")}),Oe&&"Default"!=Oe&&(0,i.createElement)(So,{family:Oe,weight:Ge.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o,usePostNumber:!0}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Za||Za.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Width (px)","smart-blocks"),value:Le,setValue:e=>o({listingImageWidth:e}),min:50,max:300}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Me,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:xe,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ee,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Be,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:ke,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:st,setValue:e=>o({imageBorderRadius:e}),min:0,max:150}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:rt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==rt&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:lt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:xt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Et,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Bt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:kt,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:_e,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:He,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:Ne,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:Ve,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ce,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:ze,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:we,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:Re,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:De,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:Ue,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:Pe,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ie,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:$e,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:We,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:Ae,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:bt,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:gt,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:mt,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:vt,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:ut,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:dt,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:Tt,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:ht,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:ct,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:St,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:yt,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:pt,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ft,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:_t,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Oe,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Ge,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:je,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ze,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:qe,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ke,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ye,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Xe,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Je,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Qe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:et,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:tt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:at,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:it,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ot,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:nt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ut,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:wt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Nt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Pt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Rt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Vt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:It,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ft,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ct,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:$t,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Dt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:zt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Wt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Xt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Zt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:At,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Jt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:qt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ot,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Qt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Kt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Gt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ea,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Yt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:jt,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:ta,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:aa,setValue:e=>o({borderNormal:e})}),aa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ra,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:la,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:sa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ma,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:da,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ya,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:va,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Sa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ba,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ka,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:_a,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ha,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Na,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Va,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:ia,setValue:e=>o({borderHover:e})}),ia&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ca,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:pa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ua,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ha,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:fa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:La,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ma,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:xa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ea,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ca,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:za,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:wa,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ra,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Fa,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Da,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ua,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-ten"}),(0,i.createElement)("h2",{className:ja},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-ten-wrap"},Wa&&Wa.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=xe,c=Ee,g=Be,u=Se||"large",h=ke;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),(0,i.createElement)("div",{class:"sb-post-content"},h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t)=>{if(0!=t)return;const a=Ga&&Ga.find((t=>t.id===e));return a&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${a.link}`},a.name))})(e,t)))),(0,i.createElement)("h3",{className:`sb-post-title ${X(_e,He,Ne,Ve)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(d||c||g)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==rt&&`${e.relative_dates.created}`,"default"==rt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==rt&&(0,ce.dateI18n)(lt,e.date_gmt)),g&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-eleven",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200.64 129.22"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h57.81v57.81H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 40.81h40.81v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 47.61h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 0h57.81v57.81H71.41z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 40.81h40.81v3.4H78.21z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 47.61h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 0h57.81v57.81h-57.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 40.81h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 47.61h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 71.41h57.81v57.81H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 112.22h40.81v3.4H6.8"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 119.02h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 71.41h57.81v57.81H71.41z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 112.22h40.81v3.4H78.21z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 119.02h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 71.41h57.81v57.81h-57.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 112.22h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 119.02h17v3.4h-17z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 11","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postImageHeight:fe,postPostAuthor:Le,postPostDate:Me,postPostComments:xe,postPostCategory:Ee,postTypographyFamily:Be,postTypographyWeight:ke,postTypographyTextTransform:_e,postTypographyTextDecoration:He,postTypographyFontSizeSm:Ne,postTypographyFontSizeMd:Ve,postTypographyFontSize:Ce,postTypographyFontSizeUnit:ze,postTypographyLetterSpacingSm:we,postTypographyLetterSpacingMd:Re,postTypographyLetterSpacing:Fe,postTypographyLetterSpacingUnit:De,postTypographyLineHeightSm:Ue,postTypographyLineHeightMd:Pe,postTypographyLineHeight:Ie,postTypographyLineHeightUnit:$e,metasTypographyFamily:We,metasTypographyWeight:Ae,metasTypographyTextTransform:Oe,metasTypographyTextDecoration:Ge,metasTypographyFontSizeSm:je,metasTypographyFontSizeMd:Ze,metasTypographyFontSize:qe,metasTypographyFontSizeUnit:Ke,metasTypographyLetterSpacingSm:Ye,metasTypographyLetterSpacingMd:Xe,metasTypographyLetterSpacing:Je,metasTypographyLetterSpacingUnit:Qe,metasTypographyLineHeightSm:et,metasTypographyLineHeightMd:tt,metasTypographyLineHeight:at,metasTypographyLineHeightUnit:it,dateFormat:ot,customDateFormat:nt,imageBorderRadius:rt,postTitleMarginSmTop:lt,postTitleMarginSmLeft:st,postTitleMarginSmRight:mt,postTitleMarginSmBottom:dt,postTitleMarginMdTop:ct,postTitleMarginMdLeft:pt,postTitleMarginMdRight:gt,postTitleMarginMdBottom:ut,postTitleMarginTop:ht,postTitleMarginLeft:yt,postTitleMarginRight:bt,postTitleMarginBottom:vt,postTitleMarginUnit:Tt,categoryBackgroundColor:St,categoryTextColor:ft,categoryBackgroundHoverColor:Lt,categoryTextHoverColor:Mt,blockMarginSmTop:xt,blockMarginSmLeft:Et,blockMarginSmRight:Bt,blockMarginSmBottom:kt,blockMarginMdTop:_t,blockMarginMdLeft:Ht,blockMarginMdRight:Nt,blockMarginMdBottom:Vt,blockMarginTop:Ct,blockMarginLeft:zt,blockMarginRight:wt,blockMarginBottom:Rt,blockMarginUnit:Ft,blockPaddingSmTop:Dt,blockPaddingSmLeft:Ut,blockPaddingSmRight:Pt,blockPaddingSmBottom:It,blockPaddingMdTop:$t,blockPaddingMdLeft:Wt,blockPaddingMdRight:At,blockPaddingMdBottom:Ot,blockPaddingTop:Gt,blockPaddingLeft:jt,blockPaddingRight:Zt,blockPaddingBottom:qt,blockPaddingUnit:Kt,borderNormal:Yt,borderHover:Xt,borderNormalColor:Jt,borderHoverColor:Qt,borderNormalWidthTop:ea,borderNormalWidthLeft:ta,borderNormalWidthRight:aa,borderNormalWidthBottom:ia,borderNormalWidthUnit:oa,borderHoverWidthTop:na,borderHoverWidthLeft:ra,borderHoverWidthRight:la,borderHoverWidthBottom:sa,borderHoverWidthUnit:ma,borderNormalRadiusTop:da,borderNormalRadiusLeft:ca,borderNormalRadiusRight:pa,borderNormalRadiusBottom:ga,borderNormalRadiusUnit:ua,borderHoverRadiusTop:ha,borderHoverRadiusLeft:ya,borderHoverRadiusRight:ba,borderHoverRadiusBottom:va,borderHoverRadiusUnit:Ta,borderNormalBoxShadowHorizontal:Sa,borderNormalBoxShadowVertical:fa,borderNormalBoxShadowBlur:La,borderNormalBoxShadowSpread:Ma,borderNormalBoxShadowColor:xa,borderNormalBoxShadowInset:Ea,borderHoverBoxShadowHorizontal:Ba,borderHoverBoxShadowVertical:ka,borderHoverBoxShadowBlur:_a,borderHoverBoxShadowSpread:Ha,borderHoverBoxShadowColor:Na,borderHoverBoxShadowInset:Va,blockBgColor:Ca}=a;o({id:(0,d.useBlockProps)().id});const za=`#${s} {\n        ${Yt?"--sb-border-normal: "+Yt+";":""}\n        ${Xt?"--sb-border-hover: "+Yt+";":""}\n        ${Jt?"--sb-border-normal-color: "+Jt+";":""}\n        ${Qt?"--sb-border-hover-color: "+Qt+";":""}\n\n        ${J("border-normal-width",ea,aa,ia,ta,oa)}\n        ${J("border-hover-width",na,la,sa,ra,ma)}\n        ${J("border-normal-radius",da,pa,ga,ca,ua)}\n        ${J("border-hover-radius",ha,ba,va,ya,Ta)}\n\n        ${te("border-normal-box-shadow",Sa,fa,La,Ma,xa,Ea,"px")}\n        ${te("border-hover-box-shadow",Ba,ka,_a,Ha,Na,Va,"px")}\n\n        ${Ca?"--sb-block-bg-color: "+Ca+";":""}\n\n        ${Q("block-margin",Ct,wt,Rt,zt,xt,Bt,kt,Et,_t,Nt,Vt,Ht,Ft)}\n\n        ${Q("block-padding",Gt,Zt,qt,jt,Dt,Pt,It,Ut,$t,At,Ot,Wt,Kt)}\n\n        ${Q("listing-post-title-margin",ht,bt,vt,yt,lt,mt,dt,st,ct,gt,ut,pt,Tt)}\n\n        ${Ca?"--sb-block-bg-color: "+Ca+";":""}\n\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",We,Ae,Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at,it)}\n\n        ${St?"--sb-category-background-color: "+St+";":""}\n        ${ft?"--sb-category-text-color: "+ft+";":""}\n        ${Lt?"--sb-category-background-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-hover-color: "+Mt+";":""}\n\n        ${rt?"--sb-image-border-radius: "+rt+"px;":""}\n    }`;o({sbStyle:za.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const wa=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ra={per_page:6,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};wa&&wa.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ra[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Fa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ra)),[c,u,y,ve,Te,Ra,h]),Da=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Ua=[];Da&&Da.map(((e,t)=>{Ua.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Pa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Ia=l()("sb-block-title",`${f}`,X(H,C,F,D)),$a=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),We&&"Default"!=We&&(0,i.createElement)(So,{family:We,weight:Ae.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==$a||$a.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:rt,setValue:e=>o({imageBorderRadius:e}),min:0,max:60}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ot,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ot&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:nt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ht,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:ct,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:lt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:yt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:pt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:st,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:bt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:gt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:mt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:vt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:ut,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:dt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Tt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:We,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Ae,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Oe,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ge,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:je,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ze,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:qe,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ke,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ye,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Xe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Je,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Qe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:et,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:tt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:at,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:it,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ct,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:_t,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:xt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:zt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ht,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Et,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:wt,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Nt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Bt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Rt,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Vt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:kt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ft,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Gt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:$t,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Dt,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:jt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Wt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ut,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Zt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:At,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Pt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:qt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ot,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:It,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Kt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Yt,setValue:e=>o({borderNormal:e})}),Yt&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Jt,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ea,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ta,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:aa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ia,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:oa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:da,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ca,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:pa,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ga,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ua,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Sa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:fa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:La,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ma,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:xa,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ea,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Xt,setValue:e=>o({borderHover:e})}),Xt&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Qt,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:na,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ra,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:la,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:sa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ma,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ha,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ya,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ba,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:va,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ta,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ba,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:ka,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:_a,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ha,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Na,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Va,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ca,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-eleven"}),(0,i.createElement)("h2",{className:Ia},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-grid-blocks"},Fa&&Fa.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le,c=Me,g=xe,u=Se||"large",h=Ee;return(0,i.createElement)("div",{className:"sb-grid-block sb-post-item",key:t},(0,i.createElement)("div",{class:"sb-grid-block-inner"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title ${X(Be,ke,_e,He)}`},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks")),(d||c||g)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ot&&`${e.relative_dates.created}`,"default"==ot&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ot&&(0,ce.dateI18n)(nt,e.date_gmt)),g&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)))),h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Pa&&Pa.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-twelve",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 129.22"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h34.01v34.01H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 0h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h34.01v34.01h-34.01z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 0h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 47.61h34.01v34.01H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 47.61h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 64.61h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 47.61h34.01v34.01h-34.01z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 47.61h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 64.61h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 95.22h34.01v34.01H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 95.22h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 112.22h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 95.22h34.01v34.01h-34.01z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 95.22h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 112.22h20.4v3.4h-20.4z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 12","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postImageHeight:fe,postPostAuthor:Le,postPostDate:Me,postPostComments:xe,postPostCategory:Ee,postTypographyFamily:Be,postTypographyWeight:ke,postTypographyTextTransform:_e,postTypographyTextDecoration:He,postTypographyFontSizeSm:Ne,postTypographyFontSizeMd:Ve,postTypographyFontSize:Ce,postTypographyFontSizeUnit:ze,postTypographyLetterSpacingSm:we,postTypographyLetterSpacingMd:Re,postTypographyLetterSpacing:Fe,postTypographyLetterSpacingUnit:De,postTypographyLineHeightSm:Ue,postTypographyLineHeightMd:Pe,postTypographyLineHeight:Ie,postTypographyLineHeightUnit:$e,metasTypographyFamily:We,metasTypographyWeight:Ae,metasTypographyTextTransform:Oe,metasTypographyTextDecoration:Ge,metasTypographyFontSizeSm:je,metasTypographyFontSizeMd:Ze,metasTypographyFontSize:qe,metasTypographyFontSizeUnit:Ke,metasTypographyLetterSpacingSm:Ye,metasTypographyLetterSpacingMd:Xe,metasTypographyLetterSpacing:Je,metasTypographyLetterSpacingUnit:Qe,metasTypographyLineHeightSm:et,metasTypographyLineHeightMd:tt,metasTypographyLineHeight:at,metasTypographyLineHeightUnit:it,dateFormat:ot,customDateFormat:nt,imageBorderRadius:rt,postTitleMarginSmTop:lt,postTitleMarginSmLeft:st,postTitleMarginSmRight:mt,postTitleMarginSmBottom:dt,postTitleMarginMdTop:ct,postTitleMarginMdLeft:pt,postTitleMarginMdRight:gt,postTitleMarginMdBottom:ut,postTitleMarginTop:ht,postTitleMarginLeft:yt,postTitleMarginRight:bt,postTitleMarginBottom:vt,postTitleMarginUnit:Tt,categoryBackgroundColor:St,categoryTextColor:ft,categoryBackgroundHoverColor:Lt,categoryTextHoverColor:Mt,titleColor:xt,titleHoverColor:Et,postMetasColor:Bt,blockMarginSmTop:kt,blockMarginSmLeft:_t,blockMarginSmRight:Ht,blockMarginSmBottom:Nt,blockMarginMdTop:Vt,blockMarginMdLeft:Ct,blockMarginMdRight:zt,blockMarginMdBottom:wt,blockMarginTop:Rt,blockMarginLeft:Ft,blockMarginRight:Dt,blockMarginBottom:Ut,blockMarginUnit:Pt,blockPaddingSmTop:It,blockPaddingSmLeft:$t,blockPaddingSmRight:Wt,blockPaddingSmBottom:At,blockPaddingMdTop:Ot,blockPaddingMdLeft:Gt,blockPaddingMdRight:jt,blockPaddingMdBottom:Zt,blockPaddingTop:qt,blockPaddingLeft:Kt,blockPaddingRight:Yt,blockPaddingBottom:Xt,blockPaddingUnit:Jt,borderNormal:Qt,borderHover:ea,borderNormalColor:ta,borderHoverColor:aa,borderNormalWidthTop:ia,borderNormalWidthLeft:oa,borderNormalWidthRight:na,borderNormalWidthBottom:ra,borderNormalWidthUnit:la,borderHoverWidthTop:sa,borderHoverWidthLeft:ma,borderHoverWidthRight:da,borderHoverWidthBottom:ca,borderHoverWidthUnit:pa,borderNormalRadiusTop:ga,borderNormalRadiusLeft:ua,borderNormalRadiusRight:ha,borderNormalRadiusBottom:ya,borderNormalRadiusUnit:ba,borderHoverRadiusTop:va,borderHoverRadiusLeft:Ta,borderHoverRadiusRight:Sa,borderHoverRadiusBottom:fa,borderHoverRadiusUnit:La,borderNormalBoxShadowHorizontal:Ma,borderNormalBoxShadowVertical:xa,borderNormalBoxShadowBlur:Ea,borderNormalBoxShadowSpread:Ba,borderNormalBoxShadowColor:ka,borderNormalBoxShadowInset:_a,borderHoverBoxShadowHorizontal:Ha,borderHoverBoxShadowVertical:Na,borderHoverBoxShadowBlur:Va,borderHoverBoxShadowSpread:Ca,borderHoverBoxShadowColor:za,borderHoverBoxShadowInset:wa,blockBgColor:Ra}=a;o({id:(0,d.useBlockProps)().id});const Fa=`#${s} {\n        ${Qt?"--sb-border-normal: "+Qt+";":""}\n        ${ea?"--sb-border-hover: "+Qt+";":""}\n        ${ta?"--sb-border-normal-color: "+ta+";":""}\n        ${aa?"--sb-border-hover-color: "+aa+";":""}\n\n        ${J("border-normal-width",ia,na,ra,oa,la)}\n        ${J("border-hover-width",sa,da,ca,ma,pa)}\n        ${J("border-normal-radius",ga,ha,ya,ua,ba)}\n        ${J("border-hover-radius",va,Sa,fa,Ta,La)}\n\n        ${te("border-normal-box-shadow",Ma,xa,Ea,Ba,ka,_a,"px")}\n        ${te("border-hover-box-shadow",Ha,Na,Va,Ca,za,wa,"px")}\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${Q("block-margin",Rt,Dt,Ut,Ft,kt,Ht,Nt,_t,Vt,zt,wt,Ct,Pt)}\n\n        ${Q("block-padding",qt,Yt,Xt,Kt,It,Wt,At,$t,Ot,jt,Zt,Gt,Jt)}\n\n        ${Q("listing-post-title-margin",ht,bt,vt,yt,lt,mt,dt,st,ct,gt,ut,pt,Tt)}\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",We,Ae,Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at,it)}\n\n        ${St?"--sb-category-background-color: "+St+";":""}\n        ${ft?"--sb-category-text-color: "+ft+";":""}\n        ${Lt?"--sb-category-background-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-hover-color: "+Mt+";":""}\n        ${xt?"--sb-title-color: "+xt+";":""}\n        ${Et?"--sb-title-hover-color: "+Et+";":""}\n\n        ${Bt?"--sb-post-metas-color: "+Bt+";":""}\n\n        ${rt?"--sb-image-border-radius: "+rt+"px;":""}\n    }`;o({sbStyle:Fa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Da=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ua={per_page:8,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Da&&Da.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ua[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Pa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ua)),[c,u,y,ve,Te,Ua,h]),Ia=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var $a=[];Ia&&Ia.map(((e,t)=>{$a.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Aa=l()("sb-block-title",`${f}`,X(H,C,F,D)),Oa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),We&&"Default"!=We&&(0,i.createElement)(So,{family:We,weight:Ae.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Oa||Oa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:rt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ot,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ot&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:nt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:xt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Et,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ht,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:ct,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:lt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:yt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:pt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:st,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:bt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:gt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:mt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:vt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:ut,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:dt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Tt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Bt,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:We,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Ae,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Oe,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ge,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:je,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ze,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:qe,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ke,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ye,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Xe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Je,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Qe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:et,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:tt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:at,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:it,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Rt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Vt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:kt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ft,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ct,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_t,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Dt,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:zt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ht,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ut,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Nt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:qt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ot,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:It,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Kt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Gt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$t,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Yt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:jt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Zt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:At,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Jt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Qt,setValue:e=>o({borderNormal:e})}),Qt&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ia,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:na,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ra,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:la,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ba,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ma,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ea,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ba,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ka,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_a,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:ea,setValue:e=>o({borderHover:e})}),ea&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:sa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ma,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:da,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ca,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pa,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:va,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ta,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Sa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:La,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ha,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Na,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Va,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ca,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:za,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wa,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ra,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-twelve"}),(0,i.createElement)("h2",{className:Aa},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-double-small-block"},Pa&&Pa.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le,c=Me,g=xe,u=Se||"large",h=Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})))),(0,i.createElement)("div",{class:"sb-post-content"},h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Wa&&Wa.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))),(0,i.createElement)("h3",{className:`sb-post-title ${X(Be,ke,_e,He)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(d||c||g)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ot&&`${e.relative_dates.created}`,"default"==ot&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ot&&(0,ce.dateI18n)(nt,e.date_gmt)),g&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-thirteen",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 136.02"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 68.01h68.01v68.01H0z",opacity:".08"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M6.8 81.62h54.41v3.4H6.8zm0 6.8h44.21v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h68.01v68.01H0zm68.01 68.01h68.01v68.01H68.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M6.8 105.42h54.41v3.4H6.8zm0 6.8h47.61v3.4H6.8zm0 6.8h40.81v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M6.8 95.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M136.02 68.01h68.01v68.01h-68.01z",opacity:".08"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M68.01 6.8h68.01v68.01H68.01z",opacity:".15"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M142.83 81.62h54.41v3.4h-54.41zm0 6.8h44.21v3.4h-44.21z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M136.02 0h68.01v68.01h-68.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M142.83 105.42h54.41v3.4h-54.41zm0 6.8h47.61v3.4h-47.61zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M142.83 95.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M68.01 0h68.01v68.01H68.01z",opacity:".08"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M74.81 13.6h54.41V17H74.81zm0 6.8h44.21v3.4H74.81zm0 17.01h54.41v3.4H74.81zm0 6.8h47.61v3.4H74.81zm0 6.8h40.81v3.4H74.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M74.81 27.2h17v3.4h-17z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 13","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postExcerptLength:fe,postImageHeight:Le,postPostAuthor:Me,postPostDate:xe,postPostComments:Ee,postPostCategory:Be,postTypographyFamily:ke,postTypographyWeight:_e,postTypographyTextTransform:He,postTypographyTextDecoration:Ne,postTypographyFontSizeSm:Ve,postTypographyFontSizeMd:Ce,postTypographyFontSize:ze,postTypographyFontSizeUnit:we,postTypographyLetterSpacingSm:Re,postTypographyLetterSpacingMd:Fe,postTypographyLetterSpacing:De,postTypographyLetterSpacingUnit:Ue,postTypographyLineHeightSm:Pe,postTypographyLineHeightMd:Ie,postTypographyLineHeight:$e,postTypographyLineHeightUnit:We,excerptTypographyFamily:Ae,excerptTypographyWeight:Oe,excerptTypographyTextTransform:Ge,excerptTypographyTextDecoration:je,excerptTypographyFontSizeSm:Ze,excerptTypographyFontSizeMd:qe,excerptTypographyFontSize:Ke,excerptTypographyFontSizeUnit:Ye,excerptTypographyLetterSpacingSm:Xe,excerptTypographyLetterSpacingMd:Je,excerptTypographyLetterSpacing:Qe,excerptTypographyLetterSpacingUnit:et,excerptTypographyLineHeightSm:tt,excerptTypographyLineHeightMd:at,excerptTypographyLineHeight:it,excerptTypographyLineHeightUnit:ot,metasTypographyFamily:nt,metasTypographyWeight:rt,metasTypographyTextTransform:lt,metasTypographyTextDecoration:st,metasTypographyFontSizeSm:mt,metasTypographyFontSizeMd:dt,metasTypographyFontSize:ct,metasTypographyFontSizeUnit:pt,metasTypographyLetterSpacingSm:gt,metasTypographyLetterSpacingMd:ut,metasTypographyLetterSpacing:ht,metasTypographyLetterSpacingUnit:yt,metasTypographyLineHeightSm:bt,metasTypographyLineHeightMd:vt,metasTypographyLineHeight:Tt,metasTypographyLineHeightUnit:St,dateFormat:ft,customDateFormat:Lt,imageBorderRadius:Mt,postTitleMarginSmTop:xt,postTitleMarginSmLeft:Et,postTitleMarginSmRight:Bt,postTitleMarginSmBottom:kt,postTitleMarginMdTop:_t,postTitleMarginMdLeft:Ht,postTitleMarginMdRight:Nt,postTitleMarginMdBottom:Vt,postTitleMarginTop:Ct,postTitleMarginLeft:zt,postTitleMarginRight:wt,postTitleMarginBottom:Rt,postTitleMarginUnit:Ft,categoryBackgroundColor:Dt,categoryTextColor:Ut,categoryBackgroundHoverColor:Pt,categoryTextHoverColor:It,titleColor:$t,titleHoverColor:Wt,excerptColor:At,postMetasColor:Ot,contentBgColor:Gt,blockMarginSmTop:jt,blockMarginSmLeft:Zt,blockMarginSmRight:qt,blockMarginSmBottom:Kt,blockMarginMdTop:Yt,blockMarginMdLeft:Xt,blockMarginMdRight:Jt,blockMarginMdBottom:Qt,blockMarginTop:ea,blockMarginLeft:ta,blockMarginRight:aa,blockMarginBottom:ia,blockMarginUnit:oa,blockPaddingSmTop:na,blockPaddingSmLeft:ra,blockPaddingSmRight:la,blockPaddingSmBottom:sa,blockPaddingMdTop:ma,blockPaddingMdLeft:da,blockPaddingMdRight:ca,blockPaddingMdBottom:pa,blockPaddingTop:ga,blockPaddingLeft:ua,blockPaddingRight:ha,blockPaddingBottom:ya,blockPaddingUnit:ba,borderNormal:va,borderHover:Ta,borderNormalColor:Sa,borderHoverColor:fa,borderNormalWidthTop:La,borderNormalWidthLeft:Ma,borderNormalWidthRight:xa,borderNormalWidthBottom:Ea,borderNormalWidthUnit:Ba,borderHoverWidthTop:ka,borderHoverWidthLeft:_a,borderHoverWidthRight:Ha,borderHoverWidthBottom:Na,borderHoverWidthUnit:Va,borderNormalRadiusTop:Ca,borderNormalRadiusLeft:za,borderNormalRadiusRight:wa,borderNormalRadiusBottom:Ra,borderNormalRadiusUnit:Fa,borderHoverRadiusTop:Da,borderHoverRadiusLeft:Ua,borderHoverRadiusRight:Pa,borderHoverRadiusBottom:Ia,borderHoverRadiusUnit:$a,borderNormalBoxShadowHorizontal:Wa,borderNormalBoxShadowVertical:Aa,borderNormalBoxShadowBlur:Oa,borderNormalBoxShadowSpread:Ga,borderNormalBoxShadowColor:ja,borderNormalBoxShadowInset:Za,borderHoverBoxShadowHorizontal:qa,borderHoverBoxShadowVertical:Ka,borderHoverBoxShadowBlur:Ya,borderHoverBoxShadowSpread:Xa,borderHoverBoxShadowColor:Ja,borderHoverBoxShadowInset:Qa,blockBgColor:ei}=a;o({id:(0,d.useBlockProps)().id});const ti=`#${s} {\n        ${va?"--sb-border-normal: "+va+";":""}\n        ${Ta?"--sb-border-hover: "+va+";":""}\n        ${Sa?"--sb-border-normal-color: "+Sa+";":""}\n        ${fa?"--sb-border-hover-color: "+fa+";":""}\n\n        ${J("border-normal-width",La,xa,Ea,Ma,Ba)}\n        ${J("border-hover-width",ka,Ha,Na,_a,Va)}\n        ${J("border-normal-radius",Ca,wa,Ra,za,Fa)}\n        ${J("border-hover-radius",Da,Pa,Ia,Ua,$a)}\n\n        ${te("border-normal-box-shadow",Wa,Aa,Oa,Ga,ja,Za,"px")}\n        ${te("border-hover-box-shadow",qa,Ka,Ya,Xa,Ja,Qa,"px")}\n\n        ${ei?"--sb-block-bg-color: "+ei+";":""}\n\n        ${Q("block-margin",ea,aa,ia,ta,jt,qt,Kt,Zt,Yt,Jt,Qt,Xt,oa)}\n\n        ${Q("block-padding",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${Q("listing-post-title-margin",Ct,wt,Rt,zt,xt,Bt,kt,Et,_t,Nt,Vt,Ht,Ft)}\n\n        ${ei?"--sb-block-bg-color: "+ei+";":""}\n\n        ${Le?"--sb-listing-post-thumb-height: "+Le+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n\n        ${ie("listing-post-title-typo",ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Ae,Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at,it,ot)}\n\n        ${ie("post-metas-typo",nt,rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St)}\n\n        ${Dt?"--sb-category-background-color: "+Dt+";":""}\n        ${Ut?"--sb-category-text-color: "+Ut+";":""}\n        ${Pt?"--sb-category-background-hover-color: "+Pt+";":""}\n        ${It?"--sb-category-text-hover-color: "+It+";":""}\n        ${$t?"--sb-title-color: "+$t+";":""}\n        ${Wt?"--sb-title-hover-color: "+Wt+";":""}\n\n        ${Gt?"--sb-content-bg-color: "+Gt+";":""}\n        ${At?"--sb-excerpt-color: "+At+";":""}\n\n        ${Ot?"--sb-post-metas-color: "+Ot+";":""}\n\n        ${Mt?"--sb-image-border-radius: "+Mt+"px;":""}\n    }`;o({sbStyle:ti.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const ai=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),ii={per_page:3,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};ai&&ai.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),ii[t]=(a=e.value,y&&y[a]?y[a]:[])}));const oi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,ii)),[c,u,y,ve,Te,ii,h]),ni=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var ri=[];ni&&ni.map(((e,t)=>{ri.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const li=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),si=l()("sb-block-title",`${f}`,X(H,C,F,D)),mi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(So,{family:ke,weight:_e.replace("italic","i")}),Ae&&"Default"!=Ae&&(0,i.createElement)(So,{family:Ae,weight:Oe.replace("italic","i")}),nt&&"Default"!=nt&&(0,i.createElement)(So,{family:nt,weight:rt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==mi||mi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({postExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Be,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:Mt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ft,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ft&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:Lt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Dt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ut,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:It,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:$t,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Wt,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:ze,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Fe,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:Ct,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:_t,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:xt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:zt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Ht,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:Et,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:wt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Nt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:Bt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Rt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:Vt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:kt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ft,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Gt,setValue:e=>o({contentBgColor:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:At,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Ae,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Oe,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Ge,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:je,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ze,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:qe,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Ke,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ye,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Xe,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Je,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Qe,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:et,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:tt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:at,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:it,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:ot,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ot,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:nt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:rt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:lt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:st,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:mt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:dt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:ct,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:pt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:gt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ut,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:ht,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:yt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:bt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:vt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Tt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:St,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ea,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Yt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:jt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ta,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Xt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Zt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:aa,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Jt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:qt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:ia,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Qt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Kt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:oa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:ga,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:ba,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:va,setValue:e=>o({borderNormal:e})}),va&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:La,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Ma,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:xa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Ea,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Ba,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Ca,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:za,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:wa,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ra,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Fa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Wa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Aa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Oa,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ga,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ja,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Za,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Ta,setValue:e=>o({borderHover:e})}),Ta&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ka,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:_a,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ha,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Na,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Va,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Da,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ua,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Pa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ia,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:$a,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:qa,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ka,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ya,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Xa,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ja,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Qa,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-thirteen"}),(0,i.createElement)("h2",{className:si},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-alternate-block"},oi&&oi.map(((e,t)=>((e,t,a)=>{var o,n,r,l;const s=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],m=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],d=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],c=Me,g=xe,u=Ee,h=fe,y=Se||"large",b=Be;return(0,i.createElement)("div",{className:"sb-alt-post-item sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},s&&s.media_details&&(0,i.createElement)("img",{src:null!==(o=s.media_details.sizes)&&void 0!==o&&o[y]?null===(n=s.media_details.sizes)||void 0===n?void 0:n[y].source_url:null!==(r=s.media_details.sizes)&&void 0!==r&&r.full?null===(l=s.media_details.sizes)||void 0===l?void 0:l.full.source_url:s.source_url,alt:s.alt_text}))),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=li&&li.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("div",{class:"sb-post-content-inner"},(0,i.createElement)("div",{class:"sb-post-content-wrap"},(0,i.createElement)("div",null,(0,i.createElement)("h3",{className:`sb-post-title ${X(ke,_e,He,Ne)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},m&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),m.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ft&&`${e.relative_dates.created}`,"default"==ft&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ft&&(0,ce.dateI18n)(Lt,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),d?d.length:0)),0!=h&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,h),h<e.content.rendered.length?"...":"")))))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-fourteen",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 207.44 64.61"},(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 54.41h44.21v3.4H0zm0 6.8h37.41v3.4H0z"}),(0,i.createElement)("g",{fill:"#687e8b"},(0,i.createElement)("path",{d:"M0 0h44.21v30.61H0zm54.41 0h44.21v30.61H54.41z"}),(0,i.createElement)("path",{d:"M54.41 0h44.21v30.61H54.41zm54.41 0h44.21v30.61h-44.21zm54.41 0h44.21v30.61h-44.21z"}),(0,i.createElement)("path",{d:"M163.23 0h44.21v30.61h-44.21z"})),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 37.41h40.81v3.4H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M0 44.21h17v3.4H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M54.41 54.41h44.21v3.4H54.41zm0 6.8h37.41v3.4H54.41zm0-23.8h40.81v3.4H54.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M54.41 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 54.41h44.21v3.4h-44.21zm0 6.8h37.41v3.4h-37.41zm0-23.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 54.41h44.21v3.4h-44.21zm0 6.8h37.41v3.4h-37.41zm0-23.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M163.23 44.21h17v3.4h-17z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 14","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postExcerptLength:fe,postImageHeight:Le,postPostAuthor:Me,postPostDate:xe,postPostComments:Ee,postPostCategory:Be,postTypographyFamily:ke,postTypographyWeight:_e,postTypographyTextTransform:He,postTypographyTextDecoration:Ne,postTypographyFontSizeSm:Ve,postTypographyFontSizeMd:Ce,postTypographyFontSize:ze,postTypographyFontSizeUnit:we,postTypographyLetterSpacingSm:Re,postTypographyLetterSpacingMd:Fe,postTypographyLetterSpacing:De,postTypographyLetterSpacingUnit:Ue,postTypographyLineHeightSm:Pe,postTypographyLineHeightMd:Ie,postTypographyLineHeight:$e,postTypographyLineHeightUnit:We,excerptTypographyFamily:Ae,excerptTypographyWeight:Oe,excerptTypographyTextTransform:Ge,excerptTypographyTextDecoration:je,excerptTypographyFontSizeSm:Ze,excerptTypographyFontSizeMd:qe,excerptTypographyFontSize:Ke,excerptTypographyFontSizeUnit:Ye,excerptTypographyLetterSpacingSm:Xe,excerptTypographyLetterSpacingMd:Je,excerptTypographyLetterSpacing:Qe,excerptTypographyLetterSpacingUnit:et,excerptTypographyLineHeightSm:tt,excerptTypographyLineHeightMd:at,excerptTypographyLineHeight:it,excerptTypographyLineHeightUnit:ot,metasTypographyFamily:nt,metasTypographyWeight:rt,metasTypographyTextTransform:lt,metasTypographyTextDecoration:st,metasTypographyFontSizeSm:mt,metasTypographyFontSizeMd:dt,metasTypographyFontSize:ct,metasTypographyFontSizeUnit:pt,metasTypographyLetterSpacingSm:gt,metasTypographyLetterSpacingMd:ut,metasTypographyLetterSpacing:ht,metasTypographyLetterSpacingUnit:yt,metasTypographyLineHeightSm:bt,metasTypographyLineHeightMd:vt,metasTypographyLineHeight:Tt,metasTypographyLineHeightUnit:St,dateFormat:ft,customDateFormat:Lt,imageBorderRadius:Mt,postTitleMarginSmTop:xt,postTitleMarginSmLeft:Et,postTitleMarginSmRight:Bt,postTitleMarginSmBottom:kt,postTitleMarginMdTop:_t,postTitleMarginMdLeft:Ht,postTitleMarginMdRight:Nt,postTitleMarginMdBottom:Vt,postTitleMarginTop:Ct,postTitleMarginLeft:zt,postTitleMarginRight:wt,postTitleMarginBottom:Rt,postTitleMarginUnit:Ft,categoryBackgroundColor:Dt,categoryTextColor:Ut,categoryBackgroundHoverColor:Pt,categoryTextHoverColor:It,titleColor:$t,titleHoverColor:Wt,excerptColor:At,postMetasColor:Ot,noOfPosts:Gt,noOfCol:jt,blockMarginSmTop:Zt,blockMarginSmLeft:qt,blockMarginSmRight:Kt,blockMarginSmBottom:Yt,blockMarginMdTop:Xt,blockMarginMdLeft:Jt,blockMarginMdRight:Qt,blockMarginMdBottom:ea,blockMarginTop:ta,blockMarginLeft:aa,blockMarginRight:ia,blockMarginBottom:oa,blockMarginUnit:na,blockPaddingSmTop:ra,blockPaddingSmLeft:la,blockPaddingSmRight:sa,blockPaddingSmBottom:ma,blockPaddingMdTop:da,blockPaddingMdLeft:ca,blockPaddingMdRight:pa,blockPaddingMdBottom:ga,blockPaddingTop:ua,blockPaddingLeft:ha,blockPaddingRight:ya,blockPaddingBottom:ba,blockPaddingUnit:va,borderNormal:Ta,borderHover:Sa,borderNormalColor:fa,borderHoverColor:La,borderNormalWidthTop:Ma,borderNormalWidthLeft:xa,borderNormalWidthRight:Ea,borderNormalWidthBottom:Ba,borderNormalWidthUnit:ka,borderHoverWidthTop:_a,borderHoverWidthLeft:Ha,borderHoverWidthRight:Na,borderHoverWidthBottom:Va,borderHoverWidthUnit:Ca,borderNormalRadiusTop:za,borderNormalRadiusLeft:wa,borderNormalRadiusRight:Ra,borderNormalRadiusBottom:Fa,borderNormalRadiusUnit:Da,borderHoverRadiusTop:Ua,borderHoverRadiusLeft:Pa,borderHoverRadiusRight:Ia,borderHoverRadiusBottom:$a,borderHoverRadiusUnit:Wa,borderNormalBoxShadowHorizontal:Aa,borderNormalBoxShadowVertical:Oa,borderNormalBoxShadowBlur:Ga,borderNormalBoxShadowSpread:ja,borderNormalBoxShadowColor:Za,borderNormalBoxShadowInset:qa,borderHoverBoxShadowHorizontal:Ka,borderHoverBoxShadowVertical:Ya,borderHoverBoxShadowBlur:Xa,borderHoverBoxShadowSpread:Ja,borderHoverBoxShadowColor:Qa,borderHoverBoxShadowInset:ei,blockBgColor:ti}=a;o({id:(0,d.useBlockProps)().id});const ai=`#${s} {\n        ${Ta?"--sb-border-normal: "+Ta+";":""}\n        ${Sa?"--sb-border-hover: "+Ta+";":""}\n        ${fa?"--sb-border-normal-color: "+fa+";":""}\n        ${La?"--sb-border-hover-color: "+La+";":""}\n\n        ${J("border-normal-width",Ma,Ea,Ba,xa,ka)}\n        ${J("border-hover-width",_a,Na,Va,Ha,Ca)}\n        ${J("border-normal-radius",za,Ra,Fa,wa,Da)}\n        ${J("border-hover-radius",Ua,Ia,$a,Pa,Wa)}\n\n        ${te("border-normal-box-shadow",Aa,Oa,Ga,ja,Za,qa,"px")}\n        ${te("border-hover-box-shadow",Ka,Ya,Xa,Ja,Qa,ei,"px")}\n\n        ${ti?"--sb-block-bg-color: "+ti+";":""}\n\n        ${Q("block-margin",ta,ia,oa,aa,Zt,Kt,Yt,qt,Xt,Qt,ea,Jt,na)}\n\n        ${Q("block-padding",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n        ${Q("listing-post-title-margin",Ct,wt,Rt,zt,xt,Bt,kt,Et,_t,Nt,Vt,Ht,Ft)}\n\n        ${ti?"--sb-block-bg-color: "+ti+";":""}\n\n        ${Le?"--sb-listing-post-thumb-height: "+Le+"%;":""}\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Ae,Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at,it,ot)}\n\n        ${ie("post-metas-typo",nt,rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St)}\n\n        ${Dt?"--sb-category-background-color: "+Dt+";":""}\n        ${Ut?"--sb-category-text-color: "+Ut+";":""}\n        ${Pt?"--sb-category-background-hover-color: "+Pt+";":""}\n        ${It?"--sb-category-text-hover-color: "+It+";":""}\n        ${$t?"--sb-title-color: "+$t+";":""}\n        ${Wt?"--sb-title-hover-color: "+Wt+";":""}\n\n        ${At?"--sb-excerpt-color: "+At+";":""}\n        ${Ot?"--sb-post-metas-color: "+Ot+";":""}\n\n        ${Mt?"--sb-image-border-radius: "+Mt+"px;":""}\n    }`;o({sbStyle:ai.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const ii=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),oi={per_page:Gt,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};ii&&ii.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),oi[t]=(a=e.value,y&&y[a]?y[a]:[])}));const ni=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,oi)),[c,u,y,ve,Te,Gt,oi]),ri=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var li=[];ri&&ri.map(((e,t)=>{li.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const si=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),mi=l()("sb-block-title",`${f}`,X(H,C,F,D)),di=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(So,{family:ke,weight:_e.replace("italic","i")}),Ae&&"Default"!=Ae&&(0,i.createElement)(So,{family:Ae,weight:Oe.replace("italic","i")}),nt&&"Default"!=nt&&(0,i.createElement)(So,{family:nt,weight:rt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("No of Columns","smart-blocks"),value:jt,setValue:e=>o({noOfCol:e}),min:1,max:4}),(0,i.createElement)(x,{label:(0,p.__)("No of Posts","smart-blocks"),value:Gt,setValue:e=>o({noOfPosts:e}),min:1,max:20}),(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==di||di.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({postExcerptLength:e}),min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Be,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:Mt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ft,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ft&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:Lt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Dt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ut,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:It,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:$t,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Wt,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:ze,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Fe,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:Ct,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:_t,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:xt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:zt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Ht,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:Et,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:wt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Nt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:Bt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Rt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:Vt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:kt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ft,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:At,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Ae,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Oe,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Ge,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:je,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ze,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:qe,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Ke,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ye,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Xe,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Je,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Qe,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:et,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:tt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:at,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:it,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:ot,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ot,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:nt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:rt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:lt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:st,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:mt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:dt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:ct,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:pt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:gt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ut,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:ht,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:yt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:bt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:vt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Tt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:St,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ta,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Xt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Zt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:aa,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Jt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:qt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:ia,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Qt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Kt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:oa,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ea,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Yt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:na,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:ua,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:va,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Ta,setValue:e=>o({borderNormal:e})}),Ta&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Ma,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:xa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ea,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Ba,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ka,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:za,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:wa,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ra,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Fa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Da,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Aa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Oa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ga,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ja,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Za,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:qa,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Sa,setValue:e=>o({borderHover:e})}),Sa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:_a,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Ha,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Na,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Va,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ca,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Ua,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Pa,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ia,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:$a,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Wa,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ka,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ya,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Xa,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ja,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Qa,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:ei,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-fourteen"}),(0,i.createElement)("h2",{className:mi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:`sb-four-column-block sb-col-${jt}`},ni&&ni.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Me,c=xe,g=Ee,u=fe,h=Se||"large",y=Be;return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=si&&si.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${X(ke,_e,He,Ne)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(d||c||g)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ft&&`${e.relative_dates.created}`,"default"==ft&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ft&&(0,ce.dateI18n)(Lt,e.date_gmt)),g&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=u&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,u),u<e.content.rendered.length?"...":""))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-fifteen",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 23.8"},(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 0h27.2v23.8h-27.2z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M176.83 0h27.21v3.4h-27.21zm0 6.8h23.8v3.4h-23.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M176.83 17h10.2v3.4h-10.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 0h27.2v23.8h-27.2z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M105.42 0h27.2v3.4h-27.2zm0 6.8h23.8v3.4h-23.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M105.42 17h10.2v3.4h-10.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h27.2v23.8H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M34.01 0h27.2v3.4h-27.2zm0 6.8h23.8v3.4h-23.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M34.01 17h10.2v3.4h-10.2z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("News Module 15","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postImageHeight:fe,postPostAuthor:Le,postPostDate:Me,postPostComments:xe,postPostCategory:Ee,postTypographyFamily:Be,postTypographyWeight:ke,postTypographyTextTransform:_e,postTypographyTextDecoration:He,postTypographyFontSizeSm:Ne,postTypographyFontSizeMd:Ve,postTypographyFontSize:Ce,postTypographyFontSizeUnit:ze,postTypographyLetterSpacingSm:we,postTypographyLetterSpacingMd:Re,postTypographyLetterSpacing:Fe,postTypographyLetterSpacingUnit:De,postTypographyLineHeightSm:Ue,postTypographyLineHeightMd:Pe,postTypographyLineHeight:Ie,postTypographyLineHeightUnit:$e,metasTypographyFamily:We,metasTypographyWeight:Ae,metasTypographyTextTransform:Oe,metasTypographyTextDecoration:Ge,metasTypographyFontSizeSm:je,metasTypographyFontSizeMd:Ze,metasTypographyFontSize:qe,metasTypographyFontSizeUnit:Ke,metasTypographyLetterSpacingSm:Ye,metasTypographyLetterSpacingMd:Xe,metasTypographyLetterSpacing:Je,metasTypographyLetterSpacingUnit:Qe,metasTypographyLineHeightSm:et,metasTypographyLineHeightMd:tt,metasTypographyLineHeight:at,metasTypographyLineHeightUnit:it,dateFormat:ot,customDateFormat:nt,imageBorderRadius:rt,postTitleMarginSmTop:lt,postTitleMarginSmLeft:st,postTitleMarginSmRight:mt,postTitleMarginSmBottom:dt,postTitleMarginMdTop:ct,postTitleMarginMdLeft:pt,postTitleMarginMdRight:gt,postTitleMarginMdBottom:ut,postTitleMarginTop:ht,postTitleMarginLeft:yt,postTitleMarginRight:bt,postTitleMarginBottom:vt,postTitleMarginUnit:Tt,categoryBackgroundColor:St,categoryTextColor:ft,categoryBackgroundHoverColor:Lt,categoryTextHoverColor:Mt,titleColor:xt,titleHoverColor:Et,postMetasColor:Bt,blockMarginSmTop:kt,blockMarginSmLeft:_t,blockMarginSmRight:Ht,blockMarginSmBottom:Nt,blockMarginMdTop:Vt,blockMarginMdLeft:Ct,blockMarginMdRight:zt,blockMarginMdBottom:wt,blockMarginTop:Rt,blockMarginLeft:Ft,blockMarginRight:Dt,blockMarginBottom:Ut,blockMarginUnit:Pt,blockPaddingSmTop:It,blockPaddingSmLeft:$t,blockPaddingSmRight:Wt,blockPaddingSmBottom:At,blockPaddingMdTop:Ot,blockPaddingMdLeft:Gt,blockPaddingMdRight:jt,blockPaddingMdBottom:Zt,blockPaddingTop:qt,blockPaddingLeft:Kt,blockPaddingRight:Yt,blockPaddingBottom:Xt,blockPaddingUnit:Jt,borderNormal:Qt,borderHover:ea,borderNormalColor:ta,borderHoverColor:aa,borderNormalWidthTop:ia,borderNormalWidthLeft:oa,borderNormalWidthRight:na,borderNormalWidthBottom:ra,borderNormalWidthUnit:la,borderHoverWidthTop:sa,borderHoverWidthLeft:ma,borderHoverWidthRight:da,borderHoverWidthBottom:ca,borderHoverWidthUnit:pa,borderNormalRadiusTop:ga,borderNormalRadiusLeft:ua,borderNormalRadiusRight:ha,borderNormalRadiusBottom:ya,borderNormalRadiusUnit:ba,borderHoverRadiusTop:va,borderHoverRadiusLeft:Ta,borderHoverRadiusRight:Sa,borderHoverRadiusBottom:fa,borderHoverRadiusUnit:La,borderNormalBoxShadowHorizontal:Ma,borderNormalBoxShadowVertical:xa,borderNormalBoxShadowBlur:Ea,borderNormalBoxShadowSpread:Ba,borderNormalBoxShadowColor:ka,borderNormalBoxShadowInset:_a,borderHoverBoxShadowHorizontal:Ha,borderHoverBoxShadowVertical:Na,borderHoverBoxShadowBlur:Va,borderHoverBoxShadowSpread:Ca,borderHoverBoxShadowColor:za,borderHoverBoxShadowInset:wa,blockBgColor:Ra}=a;o({id:(0,d.useBlockProps)().id});const Fa=`#${s} {\n        ${Qt?"--sb-border-normal: "+Qt+";":""}\n        ${ea?"--sb-border-hover: "+Qt+";":""}\n        ${ta?"--sb-border-normal-color: "+ta+";":""}\n        ${aa?"--sb-border-hover-color: "+aa+";":""}\n\n        ${J("border-normal-width",ia,na,ra,oa,la)}\n        ${J("border-hover-width",sa,da,ca,ma,pa)}\n        ${J("border-normal-radius",ga,ha,ya,ua,ba)}\n        ${J("border-hover-radius",va,Sa,fa,Ta,La)}\n\n        ${te("border-normal-box-shadow",Ma,xa,Ea,Ba,ka,_a,"px")}\n        ${te("border-hover-box-shadow",Ha,Na,Va,Ca,za,wa,"px")}\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${Q("block-margin",Rt,Dt,Ut,Ft,kt,Ht,Nt,_t,Vt,zt,wt,Ct,Pt)}\n\n        ${Q("block-padding",qt,Yt,Xt,Kt,It,Wt,At,$t,Ot,jt,Zt,Gt,Jt)}\n\n        ${Q("listing-post-title-margin",ht,bt,vt,yt,lt,mt,dt,st,ct,gt,ut,pt,Tt)}\n\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",We,Ae,Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at,it)}\n\n        ${St?"--sb-category-background-color: "+St+";":""}\n        ${ft?"--sb-category-text-color: "+ft+";":""}\n        ${Lt?"--sb-category-background-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-hover-color: "+Mt+";":""}\n        ${xt?"--sb-title-color: "+xt+";":""}\n        ${Et?"--sb-title-hover-color: "+Et+";":""}\n\n        ${Bt?"--sb-post-metas-color: "+Bt+";":""}\n\n        ${rt?"--sb-image-border-radius: "+rt+"px;":""}\n\n        ${fe?"--sb-post-thumb-height: "+fe+"%;":""}\n    }`;o({sbStyle:Fa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Da=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ua={per_page:3,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Da&&Da.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ua[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Pa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ua)),[c,u,y,ve,Te,Ua,h]),Ia=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var $a=[];Ia&&Ia.map(((e,t)=>{$a.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Wa=l()("sb-block-title",`${f}`,X(H,C,F,D)),Aa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Oa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),We&&"Default"!=We&&(0,i.createElement)(So,{family:We,weight:Ae.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Oa||Oa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:rt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:ot,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==ot&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:nt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:xt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Et,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ht,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:ct,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:lt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:yt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:pt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:st,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:bt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:gt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:mt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:vt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:ut,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:dt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Tt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Bt,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:We,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Ae,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Oe,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ge,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:je,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ze,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:qe,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ke,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ye,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Xe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Je,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Qe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:et,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:tt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:at,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:it,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Rt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Vt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:kt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ft,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ct,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_t,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Dt,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:zt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ht,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ut,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Nt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:qt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ot,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:It,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Kt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Gt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$t,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Yt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:jt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Zt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:At,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Jt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Qt,setValue:e=>o({borderNormal:e})}),Qt&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ia,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:na,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ra,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:la,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ba,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ma,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ea,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ba,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ka,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_a,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:ea,setValue:e=>o({borderHover:e})}),ea&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:sa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ma,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:da,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ca,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pa,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:va,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ta,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Sa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:La,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ha,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Na,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Va,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ca,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:za,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wa,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ra,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-fifteen"}),(0,i.createElement)("h2",{className:Wa},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-mini-news"},Pa&&Pa.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le,c=Me,g=xe,u=Se||"large",h=Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),(0,i.createElement)("div",{class:"sb-post-content"},h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Aa&&Aa.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))),(0,i.createElement)("h3",{className:"sb-post-title"},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(d||c||g)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ot&&`${e.relative_dates.created}`,"default"==ot&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ot&&(0,ce.dateI18n)(nt,e.date_gmt)),g&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/tile-module-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 98.62"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h102.02v98.62H0zm105.42 0h98.62v47.61h-98.62zm0 51.01h47.61v47.61h-47.61zm51.01 0h47.61v47.61h-47.61z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 81.61h78.21v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 88.42h27.21v3.4H6.8z",opacity:".68"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 30.61h74.81v3.4h-74.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 37.41h27.21v3.4h-27.21z",opacity:".68"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 81.61h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 88.42h13.6v3.4h-13.6z",opacity:".68"}),(0,i.createElement)("path",{fill:"#fff",d:"M163.23 81.61h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M163.23 88.42h13.6v3.4h-13.6z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("Tile Module 1","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,largeSideImageSize:Se,sideImageSize:fe,sidePostAuthor:Le,sidePostDate:Me,sidePostComments:xe,sidePostCategory:Ee,sideTypographyFamily:Be,sideTypographyWeight:ke,sideTypographyTextTransform:_e,sideTypographyTextDecoration:He,sideTypographyFontSizeSm:Ne,sideTypographyFontSizeMd:Ve,sideTypographyFontSize:Ce,sideTypographyFontSizeUnit:ze,sideTypographyLetterSpacingSm:we,sideTypographyLetterSpacingMd:Re,sideTypographyLetterSpacing:Fe,sideTypographyLetterSpacingUnit:De,sideTypographyLineHeightSm:Ue,sideTypographyLineHeightMd:Pe,sideTypographyLineHeight:Ie,sideTypographyLineHeightUnit:$e,featuredImageSize:We,featuredPostAuthor:Ae,featuredPostDate:Oe,featuredPostComments:Ge,featuredPostCategory:je,featuredTitleMarginSmTop:Ze,featuredTitleMarginSmLeft:qe,featuredTitleMarginSmRight:Ke,featuredTitleMarginSmBottom:Ye,featuredTitleMarginMdTop:Xe,featuredTitleMarginMdLeft:Je,featuredTitleMarginMdRight:Qe,featuredTitleMarginMdBottom:et,featuredTitleMarginTop:tt,featuredTitleMarginLeft:at,featuredTitleMarginRight:it,featuredTitleMarginBottom:ot,featuredTitleMarginUnit:nt,featuredTypographyFamily:rt,featuredTypographyWeight:lt,featuredTypographyTextTransform:st,featuredTypographyTextDecoration:mt,featuredTypographyFontSizeSm:dt,featuredTypographyFontSizeMd:ct,featuredTypographyFontSize:pt,featuredTypographyFontSizeUnit:gt,featuredTypographyLetterSpacingSm:ut,featuredTypographyLetterSpacingMd:ht,featuredTypographyLetterSpacing:yt,featuredTypographyLetterSpacingUnit:bt,featuredTypographyLineHeightSm:vt,featuredTypographyLineHeightMd:Tt,featuredTypographyLineHeight:St,featuredTypographyLineHeightUnit:ft,metasTypographyFamily:Lt,metasTypographyWeight:Mt,metasTypographyTextTransform:xt,metasTypographyTextDecoration:Et,metasTypographyFontSizeSm:Bt,metasTypographyFontSizeMd:kt,metasTypographyFontSize:_t,metasTypographyFontSizeUnit:Ht,metasTypographyLetterSpacingSm:Nt,metasTypographyLetterSpacingMd:Vt,metasTypographyLetterSpacing:Ct,metasTypographyLetterSpacingUnit:zt,metasTypographyLineHeightSm:wt,metasTypographyLineHeightMd:Rt,metasTypographyLineHeight:Ft,metasTypographyLineHeightUnit:Dt,dateFormat:Ut,customDateFormat:Pt,imageBorderRadius:It,sideTitleMarginSmTop:$t,sideTitleMarginSmLeft:Wt,sideTitleMarginSmRight:At,sideTitleMarginSmBottom:Ot,sideTitleMarginMdTop:Gt,sideTitleMarginMdLeft:jt,sideTitleMarginMdRight:Zt,sideTitleMarginMdBottom:qt,sideTitleMarginTop:Kt,sideTitleMarginLeft:Yt,sideTitleMarginRight:Xt,sideTitleMarginBottom:Jt,sideTitleMarginUnit:Qt,categoryBackgroundColor:ea,categoryTextColor:ta,categoryBackgroundHoverColor:aa,categoryTextHoverColor:ia,titleColor:oa,moduleHeight:na,blockMarginSmTop:ra,blockMarginSmLeft:la,blockMarginSmRight:sa,blockMarginSmBottom:ma,blockMarginMdTop:da,blockMarginMdLeft:ca,blockMarginMdRight:pa,blockMarginMdBottom:ga,blockMarginTop:ua,blockMarginLeft:ha,blockMarginRight:ya,blockMarginBottom:ba,blockMarginUnit:va,blockPaddingSmTop:Ta,blockPaddingSmLeft:Sa,blockPaddingSmRight:fa,blockPaddingSmBottom:La,blockPaddingMdTop:Ma,blockPaddingMdLeft:xa,blockPaddingMdRight:Ea,blockPaddingMdBottom:Ba,blockPaddingTop:ka,blockPaddingLeft:_a,blockPaddingRight:Ha,blockPaddingBottom:Na,blockPaddingUnit:Va,borderNormal:Ca,borderHover:za,borderNormalColor:wa,borderHoverColor:Ra,borderNormalWidthTop:Fa,borderNormalWidthLeft:Da,borderNormalWidthRight:Ua,borderNormalWidthBottom:Pa,borderNormalWidthUnit:Ia,borderHoverWidthTop:$a,borderHoverWidthLeft:Wa,borderHoverWidthRight:Aa,borderHoverWidthBottom:Oa,borderHoverWidthUnit:Ga,borderNormalRadiusTop:ja,borderNormalRadiusLeft:Za,borderNormalRadiusRight:qa,borderNormalRadiusBottom:Ka,borderNormalRadiusUnit:Ya,borderHoverRadiusTop:Xa,borderHoverRadiusLeft:Ja,borderHoverRadiusRight:Qa,borderHoverRadiusBottom:ei,borderHoverRadiusUnit:ti,borderNormalBoxShadowHorizontal:ai,borderNormalBoxShadowVertical:ii,borderNormalBoxShadowBlur:oi,borderNormalBoxShadowSpread:ni,borderNormalBoxShadowColor:ri,borderNormalBoxShadowInset:li,borderHoverBoxShadowHorizontal:si,borderHoverBoxShadowVertical:mi,borderHoverBoxShadowBlur:di,borderHoverBoxShadowSpread:ci,borderHoverBoxShadowColor:pi,borderHoverBoxShadowInset:gi,blockBgColor:ui}=a;o({id:(0,d.useBlockProps)().id});const hi=`#${s} {\n        ${Ca?"--sb-border-normal: "+Ca+";":""}\n        ${za?"--sb-border-hover: "+Ca+";":""}\n        ${wa?"--sb-border-normal-color: "+wa+";":""}\n        ${Ra?"--sb-border-hover-color: "+Ra+";":""}\n\n        ${J("border-normal-width",Fa,Ua,Pa,Da,Ia)}\n        ${J("border-hover-width",$a,Aa,Oa,Wa,Ga)}\n        ${J("border-normal-radius",ja,qa,Ka,Za,Ya)}\n        ${J("border-hover-radius",Xa,Qa,ei,Ja,ti)}\n\n        ${te("border-normal-box-shadow",ai,ii,oi,ni,ri,li,"px")}\n        ${te("border-hover-box-shadow",si,mi,di,ci,pi,gi,"px")}\n\n        ${ui?"--sb-block-bg-color: "+ui+";":""}\n\n        ${Q("block-margin",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n        ${Q("block-padding",ka,Ha,Na,_a,Ta,fa,La,Sa,Ma,Ea,Ba,xa,Va)}\n\n        ${Q("featured-title-margin",tt,it,ot,at,Ze,Ke,Ye,qe,Xe,Qe,et,Je,nt)}\n\n        ${Q("side-post-title-margin",Kt,Xt,Jt,Yt,$t,At,Ot,Wt,Gt,Zt,qt,jt,Qt)}\n\n        ${ui?"--sb-block-bg-color: "+ui+";":""}\n\n\t\t${L?"--sb-header-color: "+L+";":""}\n\t\t${E?"--sb-header-short-border-color: "+E+";":""}\n\t\t${_?"--sb-header-long-border-color: "+_+";":""}\n\n\t\t${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n\t\t${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft)}\n\n        ${ie("side-post-title-typo",Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Lt,Mt,xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft,Dt)}\n\n\t\t${ea?"--sb-category-background-color: "+ea+";":""}\n\t\t${ta?"--sb-category-text-color: "+ta+";":""}\n\t\t${aa?"--sb-category-background-hover-color: "+aa+";":""}\n\t\t${ia?"--sb-category-text-hover-color: "+ia+";":""}\n\t\t${oa?"--sb-title-color: "+oa+";":""}\n\n\t\t${na?"--sb-module-height: "+na+"px;":""}\n\t\t${It?"--sb-image-border-radius: "+It+"px;":""}\n\t}`;o({sbStyle:hi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const yi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),bi={per_page:4,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};yi&&yi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),bi[t]=(a=e.value,y&&y[a]?y[a]:[])}));const vi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,bi)),[c,u,y,ve,Te,bi,h]),Ti=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Si=[];Ti&&Ti.map(((e,t)=>{Si.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const fi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Li=l()("sb-block-title",`${f}`,X(H,C,F,D)),Mi=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title ":"mid"==t?"sb-mid-title":"",c="featured"==t?Ae:Le,g="featured"==t?Oe:Me,u="featured"==t?Ge:xe,h="featured"==t?We||"large":"mid"==t?Se||"large":fe||"large",y="featured"==t?je:Ee;return(0,i.createElement)("div",{className:"sb-thumb-inner sb-post-thumb",key:e.id},(0,i.createElement)("a",{href:e.link},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,a)=>((e,t,a)=>{if(a&&0!=t)return;const o=fi&&fi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,a,"featured"!=t)))),(0,i.createElement)("div",{className:"sb-title-container"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Ut&&`${e.relative_dates.created}`,"default"==Ut&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Ut&&(0,ce.dateI18n)(Pt,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)))))},xi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Ei=()=>{const e=[];return null==xi||xi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),rt&&"Default"!=rt&&(0,i.createElement)(So,{family:rt,weight:lt.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(So,{family:Be,weight:ke.replace("italic","i")}),Lt&&"Default"!=Lt&&(0,i.createElement)(So,{family:Lt,weight:Mt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:"Style 1"},{value:"sb-title-style2",label:"Style 2"},{value:"sb-title-style3",label:"Style 3"},{value:"sb-title-style4",label:"Style 4"}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:Ei(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Ae,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Oe,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:je,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Large Image Size","smart-blocks"),options:Ei(),value:Se,onChange:e=>o({largeSideImageSize:e})}),(0,i.createElement)(k,{label:(0,p.__)("Small Image Size","smart-blocks"),options:Ei(),value:fe,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:It,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:Ut,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==Ut&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:Pt,onChange:e=>o({customDateFormat:e})}),(0,i.createElement)(x,{label:(0,p.__)("Module Height(px)","smart-blocks"),value:na,setValue:e=>o({moduleHeight:e}),min:300,max:1e3})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({titleColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:rt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:lt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:st,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:mt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:dt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ct,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:pt,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:gt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:ut,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ht,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:yt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:bt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:vt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Tt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:St,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:ft,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:tt,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Xe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ze,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:at,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Je,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:qe,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:it,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:Qe,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Ke,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:ot,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:et,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Ye,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:nt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Side Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:Fe,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:Kt,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:Gt,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:$t,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:Yt,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:jt,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:Wt,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:Xt,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:Zt,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:At,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:Jt,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:qt,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:Ot,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:Qt,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Lt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Mt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:xt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Et,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Bt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:kt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:_t,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ht,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Nt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Vt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Ct,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:zt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:wt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Rt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Ft,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Dt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ua,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:va,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:ka,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ma,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ta,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:_a,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:xa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Sa,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ha,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ea,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:fa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Na,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ba,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:La,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Va,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Ca,setValue:e=>o({borderNormal:e})}),Ca&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:wa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Fa,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Da,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ua,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Pa,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Ia,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ja,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:Za,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:qa,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ka,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ya,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ai,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ii,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:oi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ni,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ri,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:li,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:za,setValue:e=>o({borderHover:e})}),za&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Ra,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:$a,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Wa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Aa,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Oa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ga,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Xa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ja,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Qa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ei,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ti,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:si,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:mi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:di,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:ci,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:pi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:gi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ui,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-tile-block-wrap"}),(0,i.createElement)("h2",{className:Li},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-tile-block sb-clearfix style1 space-10"},vi&&vi.length>0&&(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-thumb sb-left-col"},Mi(vi[Object.keys(vi)[0]],"featured")),(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-parent sb-right-col"},vi&&vi.length>1&&(0,i.createElement)("div",{className:"sb-width-100 sb-height-50 sb-thumb"},Mi(vi[Object.keys(vi)[1]],"mid")),vi&&vi.length>2&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-width-50 sb-height-50 sb-thumb"},Mi(vi[Object.keys(vi)[2]],"")),(0,i.createElement)("div",{className:"sb-width-50 sb-height-50 sb-thumb"},vi.length>3&&Mi(vi[Object.keys(vi)[3]],""))))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/tile-module-two",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 98.62"},(0,i.createElement)("path",{d:"M0 0h102.02v98.62H0zm105.42 51.01h47.61v47.61h-47.61zm51.01 0h47.61v47.61h-47.61z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M6.8 81.61h78.21v3.4H6.8z",fill:"#fff"}),(0,i.createElement)("path",{d:"M6.8 88.42h27.21v3.4H6.8z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M112.22 81.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M112.22 88.42h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M163.23 81.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M163.23 88.42h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M105.42 0h47.61v47.61h-47.61zm51.01 0h47.61v47.61h-47.61z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M112.22 30.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M112.22 37.41h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M163.23 30.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M163.23 37.41h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("Tile Module 2","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sidePostAuthor:fe,sidePostDate:Le,sidePostComments:Me,sidePostCategory:xe,sideTypographyFamily:Ee,sideTypographyWeight:Be,sideTypographyTextTransform:ke,sideTypographyTextDecoration:_e,sideTypographyFontSizeSm:He,sideTypographyFontSizeMd:Ne,sideTypographyFontSize:Ve,sideTypographyFontSizeUnit:Ce,sideTypographyLetterSpacingSm:ze,sideTypographyLetterSpacingMd:we,sideTypographyLetterSpacing:Re,sideTypographyLetterSpacingUnit:Fe,sideTypographyLineHeightSm:De,sideTypographyLineHeightMd:Ue,sideTypographyLineHeight:Pe,sideTypographyLineHeightUnit:Ie,featuredImageSize:$e,featuredPostAuthor:We,featuredPostDate:Ae,featuredPostComments:Oe,featuredPostCategory:Ge,featuredTitleMarginSmTop:je,featuredTitleMarginSmLeft:Ze,featuredTitleMarginSmRight:qe,featuredTitleMarginSmBottom:Ke,featuredTitleMarginMdTop:Ye,featuredTitleMarginMdLeft:Xe,featuredTitleMarginMdRight:Je,featuredTitleMarginMdBottom:Qe,featuredTitleMarginTop:et,featuredTitleMarginLeft:tt,featuredTitleMarginRight:at,featuredTitleMarginBottom:it,featuredTitleMarginUnit:ot,featuredTypographyFamily:nt,featuredTypographyWeight:rt,featuredTypographyTextTransform:lt,featuredTypographyTextDecoration:st,featuredTypographyFontSizeSm:mt,featuredTypographyFontSizeMd:dt,featuredTypographyFontSize:ct,featuredTypographyFontSizeUnit:pt,featuredTypographyLetterSpacingSm:gt,featuredTypographyLetterSpacingMd:ut,featuredTypographyLetterSpacing:ht,featuredTypographyLetterSpacingUnit:yt,featuredTypographyLineHeightSm:bt,featuredTypographyLineHeightMd:vt,featuredTypographyLineHeight:Tt,featuredTypographyLineHeightUnit:St,metasTypographyFamily:ft,metasTypographyWeight:Lt,metasTypographyTextTransform:Mt,metasTypographyTextDecoration:xt,metasTypographyFontSizeSm:Et,metasTypographyFontSizeMd:Bt,metasTypographyFontSize:kt,metasTypographyFontSizeUnit:_t,metasTypographyLetterSpacingSm:Ht,metasTypographyLetterSpacingMd:Nt,metasTypographyLetterSpacing:Vt,metasTypographyLetterSpacingUnit:Ct,metasTypographyLineHeightSm:zt,metasTypographyLineHeightMd:wt,metasTypographyLineHeight:Rt,metasTypographyLineHeightUnit:Ft,dateFormat:Dt,customDateFormat:Ut,imageBorderRadius:Pt,sideTitleMarginSmTop:It,sideTitleMarginSmLeft:$t,sideTitleMarginSmRight:Wt,sideTitleMarginSmBottom:At,sideTitleMarginMdTop:Ot,sideTitleMarginMdLeft:Gt,sideTitleMarginMdRight:jt,sideTitleMarginMdBottom:Zt,sideTitleMarginTop:qt,sideTitleMarginLeft:Kt,sideTitleMarginRight:Yt,sideTitleMarginBottom:Xt,sideTitleMarginUnit:Jt,categoryBackgroundColor:Qt,categoryTextColor:ea,categoryBackgroundHoverColor:ta,categoryTextHoverColor:aa,titleColor:ia,moduleHeight:oa,blockMarginSmTop:na,blockMarginSmLeft:ra,blockMarginSmRight:la,blockMarginSmBottom:sa,blockMarginMdTop:ma,blockMarginMdLeft:da,blockMarginMdRight:ca,blockMarginMdBottom:pa,blockMarginTop:ga,blockMarginLeft:ua,blockMarginRight:ha,blockMarginBottom:ya,blockMarginUnit:ba,blockPaddingSmTop:va,blockPaddingSmLeft:Ta,blockPaddingSmRight:Sa,blockPaddingSmBottom:fa,blockPaddingMdTop:La,blockPaddingMdLeft:Ma,blockPaddingMdRight:xa,blockPaddingMdBottom:Ea,blockPaddingTop:Ba,blockPaddingLeft:ka,blockPaddingRight:_a,blockPaddingBottom:Ha,blockPaddingUnit:Na,borderNormal:Va,borderHover:Ca,borderNormalColor:za,borderHoverColor:wa,borderNormalWidthTop:Ra,borderNormalWidthLeft:Fa,borderNormalWidthRight:Da,borderNormalWidthBottom:Ua,borderNormalWidthUnit:Pa,borderHoverWidthTop:Ia,borderHoverWidthLeft:$a,borderHoverWidthRight:Wa,borderHoverWidthBottom:Aa,borderHoverWidthUnit:Oa,borderNormalRadiusTop:Ga,borderNormalRadiusLeft:ja,borderNormalRadiusRight:Za,borderNormalRadiusBottom:qa,borderNormalRadiusUnit:Ka,borderHoverRadiusTop:Ya,borderHoverRadiusLeft:Xa,borderHoverRadiusRight:Ja,borderHoverRadiusBottom:Qa,borderHoverRadiusUnit:ei,borderNormalBoxShadowHorizontal:ti,borderNormalBoxShadowVertical:ai,borderNormalBoxShadowBlur:ii,borderNormalBoxShadowSpread:oi,borderNormalBoxShadowColor:ni,borderNormalBoxShadowInset:ri,borderHoverBoxShadowHorizontal:li,borderHoverBoxShadowVertical:si,borderHoverBoxShadowBlur:mi,borderHoverBoxShadowSpread:di,borderHoverBoxShadowColor:ci,borderHoverBoxShadowInset:pi,blockBgColor:gi}=a;o({id:(0,d.useBlockProps)().id});const ui=`#${s} {\n        ${Va?"--sb-border-normal: "+Va+";":""}\n        ${Ca?"--sb-border-hover: "+Va+";":""}\n        ${za?"--sb-border-normal-color: "+za+";":""}\n        ${wa?"--sb-border-hover-color: "+wa+";":""}\n\n        ${J("border-normal-width",Ra,Da,Ua,Fa,Pa)}\n        ${J("border-hover-width",Ia,Wa,Aa,$a,Oa)}\n        ${J("border-normal-radius",Ga,Za,qa,ja,Ka)}\n        ${J("border-hover-radius",Ya,Ja,Qa,Xa,ei)}\n\n        ${te("border-normal-box-shadow",ti,ai,ii,oi,ni,ri,"px")}\n        ${te("border-hover-box-shadow",li,si,mi,di,ci,pi,"px")}\n\n        ${gi?"--sb-block-bg-color: "+gi+";":""}\n\n        ${Q("block-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${Q("block-padding",Ba,_a,Ha,ka,va,Sa,fa,Ta,La,xa,Ea,Ma,Na)}\n\n        ${Q("featured-title-margin",et,at,it,tt,je,qe,Ke,Ze,Ye,Je,Qe,Xe,ot)}\n\n        ${Q("side-post-title-margin",qt,Yt,Xt,Kt,It,Wt,At,$t,Ot,jt,Zt,Gt,Jt)}\n\n        ${gi?"--sb-block-bg-color: "+gi+";":""}\n\n        ${L?"--sb-header-color: "+L+";":""}\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",nt,rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St)}\n\n        ${ie("side-post-title-typo",Ee,Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie)}\n\n        ${ie("post-metas-typo",ft,Lt,Mt,xt,Et,Bt,kt,_t,Ht,Nt,Vt,Ct,zt,wt,Rt,Ft)}\n\n        ${Qt?"--sb-category-background-color: "+Qt+";":""}\n        ${ea?"--sb-category-text-color: "+ea+";":""}\n        ${ta?"--sb-category-background-hover-color: "+ta+";":""}\n        ${aa?"--sb-category-text-hover-color: "+aa+";":""}\n        ${ia?"--sb-title-color: "+ia+";":""}\n\n        ${oa?"--sb-module-height: "+oa+"px;":""}\n        ${Pt?"--sb-image-border-radius: "+Pt+"px;":""}\n    }`;o({sbStyle:ui.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const hi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),yi={per_page:5,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};hi&&hi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),yi[t]=(a=e.value,y&&y[a]?y[a]:[])}));const bi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,yi)),[c,u,y,ve,Te,yi,h]),vi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Ti=[];vi&&vi.map(((e,t)=>{Ti.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Si=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),fi=l()("sb-block-title",`${f}`,X(H,C,F,D)),Li=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title "+X(nt,rt,lt,st):X(Ee,Be,ke,_e),c="featured"==t?We:fe,g="featured"==t?Ae:Le,u="featured"==t?Oe:Me,h="featured"==t?$e||"large":Se||"large",y="featured"==t?Ge:xe;return(0,i.createElement)("div",{className:"sb-thumb-inner sb-post-thumb",key:e.id},(0,i.createElement)("a",{href:e.link},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,a)=>((e,t,a)=>{if(a&&0!=t)return;const o=Si&&Si.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,a,"featured"!=t)))),(0,i.createElement)("div",{className:"sb-title-container"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(c||g||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&g&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Dt&&`${e.relative_dates.created}`,"default"==Dt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Dt&&(0,ce.dateI18n)(Ut,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)))))},Mi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),xi=()=>{const e=[];return null==Mi||Mi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),nt&&"Default"!=nt&&(0,i.createElement)(So,{family:nt,weight:rt.replace("italic","i")}),Ee&&"Default"!=Ee&&(0,i.createElement)(So,{family:Ee,weight:Be.replace("italic","i")}),ft&&"Default"!=ft&&(0,i.createElement)(So,{family:ft,weight:Lt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:xi(),value:$e,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:We,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ae,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Oe,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:xi(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:fe,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Le,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Me,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:xe,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:Pt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:Dt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==Dt&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:Ut,onChange:e=>o({customDateFormat:e})}),(0,i.createElement)(x,{label:(0,p.__)("Module Height(px)","smart-blocks"),value:oa,setValue:e=>o({moduleHeight:e}),min:300,max:1e3})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Qt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({titleColor:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Featured Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:nt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:rt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:lt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:st,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:mt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:dt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ct,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:pt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:gt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ut,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:ht,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:yt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:bt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:vt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Tt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:St,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:et,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Ye,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:je,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:tt,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Xe,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ze,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:at,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:Je,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:qe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:it,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:Qe,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Ke,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:ot,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Side Post","smart-blocks")},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Ee,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:ke,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:_e,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:He,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ne,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ve,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:Ce,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:ze,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:we,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:Re,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:Fe,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:De,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Ue,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Pe,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:Ie,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:qt,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:Ot,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:It,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:Kt,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:Gt,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:$t,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:Yt,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:jt,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:Wt,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:Xt,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:Zt,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:At,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:Jt,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:ft,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Lt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Mt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:xt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Et,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Bt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:kt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:_t,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ht,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Nt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Vt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ct,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:zt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:wt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Rt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Ft,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ga,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:ba,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ba,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:La,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:va,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:ka,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ma,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ta,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:_a,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:xa,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Sa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ha,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ea,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:fa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Na,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Va,setValue:e=>o({borderNormal:e})}),Va&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:za,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Ra,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Fa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Da,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Ua,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Pa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Ga,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ja,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Za,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:qa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ka,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ti,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ai,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ii,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:oi,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ni,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ri,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Ca,setValue:e=>o({borderHover:e})}),Ca&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:wa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Ia,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:$a,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Wa,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Aa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Oa,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Ya,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Xa,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ja,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Qa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ei,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:li,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:si,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:mi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:di,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:pi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:gi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-tile-block-wrap"}),(0,i.createElement)("h2",{className:fi},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-tile-block sb-clearfix style2 space-10"},bi&&bi.length>0&&(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-thumb sb-left-col"},Li(bi[Object.keys(bi)[0]],"featured")),(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-parent sb-right-col"},bi&&bi.length>1&&(0,i.createElement)(i.Fragment,null,function(e,t){let a=[];for(;++t<e.length;)a.push((0,i.createElement)("div",{className:"sb-width-50 sb-height-50 sb-thumb"},Li(bi[Object.keys(bi)[t]],"side")));return a}(bi,0)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/tile-module-three",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200.64 71.41"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h47.61v71.41H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 54.41h34.01v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 61.21h13.6v3.4H6.8z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M51.01 0h47.61v71.41H51.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M57.81 54.41h34.01v3.4H57.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M57.81 61.21h13.6v3.4h-13.6z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M102.02 0h47.61v71.41h-47.61z"}),(0,i.createElement)("path",{fill:"#fff",d:"M108.82 54.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M108.82 61.21h13.6v3.4h-13.6z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M153.03 0h47.61v71.41h-47.61z"}),(0,i.createElement)("path",{fill:"#fff",d:"M159.83 54.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M159.83 61.21h13.6v3.4h-13.6z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("Tile Module 3","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,headerTitle:b,headerStyle:f,headerColor:L,headerShortBorderColor:E,headerLongBorderColor:_,headerTitleTypographyFamily:H,headerTitleTypographyWeight:C,headerTitleTypographyTextTransform:F,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:A,headerTitleTypographyLetterSpacing:O,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:Z,headerTitleTypographyLineHeight:q,headerTitleTypographyLineHeightUnit:K,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postPostAuthor:fe,postPostDate:Le,postPostComments:Me,postPostCategory:xe,postTypographyFamily:Ee,postTypographyWeight:Be,postTypographyTextTransform:ke,postTypographyTextDecoration:_e,postTypographyFontSizeSm:He,postTypographyFontSizeMd:Ne,postTypographyFontSize:Ve,postTypographyFontSizeUnit:Ce,postTypographyLetterSpacingSm:ze,postTypographyLetterSpacingMd:we,postTypographyLetterSpacing:Re,postTypographyLetterSpacingUnit:Fe,postTypographyLineHeightSm:De,postTypographyLineHeightMd:Ue,postTypographyLineHeight:Pe,postTypographyLineHeightUnit:Ie,metasTypographyFamily:$e,metasTypographyWeight:We,metasTypographyTextTransform:Ae,metasTypographyTextDecoration:Oe,metasTypographyFontSizeSm:Ge,metasTypographyFontSizeMd:je,metasTypographyFontSize:Ze,metasTypographyFontSizeUnit:qe,metasTypographyLetterSpacingSm:Ke,metasTypographyLetterSpacingMd:Ye,metasTypographyLetterSpacing:Xe,metasTypographyLetterSpacingUnit:Je,metasTypographyLineHeightSm:Qe,metasTypographyLineHeightMd:et,metasTypographyLineHeight:tt,metasTypographyLineHeightUnit:at,dateFormat:it,customDateFormat:ot,imageBorderRadius:nt,postTitleMarginSmTop:rt,postTitleMarginSmLeft:lt,postTitleMarginSmRight:st,postTitleMarginSmBottom:mt,postTitleMarginMdTop:dt,postTitleMarginMdLeft:ct,postTitleMarginMdRight:pt,postTitleMarginMdBottom:gt,postTitleMarginTop:ut,postTitleMarginLeft:ht,postTitleMarginRight:yt,postTitleMarginBottom:bt,postTitleMarginUnit:vt,categoryBackgroundColor:Tt,categoryTextColor:St,categoryBackgroundHoverColor:ft,categoryTextHoverColor:Lt,titleColor:Mt,moduleHeight:xt,blockMarginSmTop:Et,blockMarginSmLeft:Bt,blockMarginSmRight:kt,blockMarginSmBottom:_t,blockMarginMdTop:Ht,blockMarginMdLeft:Nt,blockMarginMdRight:Vt,blockMarginMdBottom:Ct,blockMarginTop:zt,blockMarginLeft:wt,blockMarginRight:Rt,blockMarginBottom:Ft,blockMarginUnit:Dt,blockPaddingSmTop:Ut,blockPaddingSmLeft:Pt,blockPaddingSmRight:It,blockPaddingSmBottom:$t,blockPaddingMdTop:Wt,blockPaddingMdLeft:At,blockPaddingMdRight:Ot,blockPaddingMdBottom:Gt,blockPaddingTop:jt,blockPaddingLeft:Zt,blockPaddingRight:qt,blockPaddingBottom:Kt,blockPaddingUnit:Yt,borderNormal:Xt,borderHover:Jt,borderNormalColor:Qt,borderHoverColor:ea,borderNormalWidthTop:ta,borderNormalWidthLeft:aa,borderNormalWidthRight:ia,borderNormalWidthBottom:oa,borderNormalWidthUnit:na,borderHoverWidthTop:ra,borderHoverWidthLeft:la,borderHoverWidthRight:sa,borderHoverWidthBottom:ma,borderHoverWidthUnit:da,borderNormalRadiusTop:ca,borderNormalRadiusLeft:pa,borderNormalRadiusRight:ga,borderNormalRadiusBottom:ua,borderNormalRadiusUnit:ha,borderHoverRadiusTop:ya,borderHoverRadiusLeft:ba,borderHoverRadiusRight:va,borderHoverRadiusBottom:Ta,borderHoverRadiusUnit:Sa,borderNormalBoxShadowHorizontal:fa,borderNormalBoxShadowVertical:La,borderNormalBoxShadowBlur:Ma,borderNormalBoxShadowSpread:xa,borderNormalBoxShadowColor:Ea,borderNormalBoxShadowInset:Ba,borderHoverBoxShadowHorizontal:ka,borderHoverBoxShadowVertical:_a,borderHoverBoxShadowBlur:Ha,borderHoverBoxShadowSpread:Na,borderHoverBoxShadowColor:Va,borderHoverBoxShadowInset:Ca,blockBgColor:za}=a;o({id:(0,d.useBlockProps)().id});const wa=`#${s} {\n        ${Xt?"--sb-border-normal: "+Xt+";":""}\n        ${Jt?"--sb-border-hover: "+Xt+";":""}\n        ${Qt?"--sb-border-normal-color: "+Qt+";":""}\n        ${ea?"--sb-border-hover-color: "+ea+";":""}\n\n        ${J("border-normal-width",ta,ia,oa,aa,na)}\n        ${J("border-hover-width",ra,sa,ma,la,da)}\n        ${J("border-normal-radius",ca,ga,ua,pa,ha)}\n        ${J("border-hover-radius",ya,va,Ta,ba,Sa)}\n\n        ${te("border-normal-box-shadow",fa,La,Ma,xa,Ea,Ba,"px")}\n        ${te("border-hover-box-shadow",ka,_a,Ha,Na,Va,Ca,"px")}\n\n        ${za?"--sb-block-bg-color: "+za+";":""}\n\n        ${Q("block-margin",zt,Rt,Ft,wt,Et,kt,_t,Bt,Ht,Vt,Ct,Nt,Dt)}\n\n        ${Q("block-padding",jt,qt,Kt,Zt,Ut,It,$t,Pt,Wt,Ot,Gt,At,Yt)}\n\n        ${Q("listing-post-title-margin",ut,yt,bt,ht,rt,st,mt,lt,dt,pt,gt,ct,vt)}\n\n        ${za?"--sb-block-bg-color: "+za+";":""}\n\n        ${L?"--sb-header-color: "+L+";":""}\n\n        ${E?"--sb-header-short-border-color: "+E+";":""}\n        ${_?"--sb-header-long-border-color: "+_+";":""}\n\n        ${ie("header-typo",H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q,K)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",Ee,Be,ke,_e,He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie)}\n\n        ${ie("post-metas-typo",$e,We,Ae,Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at)}\n\n        ${Tt?"--sb-category-background-color: "+Tt+";":""}\n        ${St?"--sb-category-text-color: "+St+";":""}\n        ${ft?"--sb-category-background-hover-color: "+ft+";":""}\n        ${Lt?"--sb-category-text-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-title-color: "+Mt+";":""}\n\n        ${xt?"--sb-module-height: "+xt+"px;":""}\n        ${nt?"--sb-image-border-radius: "+nt+"px;":""}\n    }`;o({sbStyle:wa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ra=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Fa={per_page:4,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0),exclude:h};Ra&&Ra.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Fa[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Da=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Fa)),[c,u,y,ve,Te,Fa,h]),Ua=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(Te||0)})),[c,u,y,ve,Te,h]);var Pa=[];Ua&&Ua.map(((e,t)=>{Pa.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Ia=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),$a=l()("sb-block-title",`${f}`,X(H,C,F,D)),Wa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),H&&"Default"!=H&&(0,i.createElement)(So,{family:H,weight:C.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(So,{family:Y,weight:ee.replace("italic","i")}),Ee&&"Default"!=Ee&&(0,i.createElement)(So,{family:Ee,weight:Be.replace("italic","i")}),$e&&"Default"!=$e&&(0,i.createElement)(So,{family:$e,weight:We.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:f,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Wa||Wa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:fe,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Le,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Me,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:xe,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:nt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:it,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==it&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:ot,onChange:e=>o({customDateFormat:e})}),(0,i.createElement)(x,{label:(0,p.__)("Module Height(px)","smart-blocks"),value:xt,setValue:e=>o({moduleHeight:e}),min:300,max:1e3})))||"style"===n&&(0,i.createElement)(i.Fragment,null,b&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:L,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:E,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:C,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:F,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:A,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:Z,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:q,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:K,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Tt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Ee,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:ke,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:_e,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:He,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ne,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ve,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:Ce,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:ze,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:we,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:Re,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:Fe,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:De,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Ue,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Pe,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:Ie,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:ut,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:dt,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:rt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:ht,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:ct,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:lt,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:yt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:pt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:st,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:bt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:gt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:mt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:vt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:$e,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:We,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Ae,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Oe,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Ge,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:je,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ze,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:qe,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ke,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ye,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Xe,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Je,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Qe,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:et,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:tt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:at,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:zt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Ht,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Et,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:wt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Nt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Bt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Rt,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Vt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:kt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ft,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Ct,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:_t,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Dt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:jt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Wt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ut,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Zt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:At,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Pt,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:qt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ot,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:It,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Kt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Gt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:$t,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Yt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Xt,setValue:e=>o({borderNormal:e})}),Xt&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Qt,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ta,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:aa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ia,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:oa,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:na,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ca,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:pa,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ga,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ua,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ha,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:fa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:La,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ma,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:xa,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Ea,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ba,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Jt,setValue:e=>o({borderHover:e})}),Jt&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ra,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:la,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:sa,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ma,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:da,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ya,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:va,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Sa,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ka,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:_a,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ha,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Na,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Va,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Ca,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:za,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-tile-block-wrap"}),(0,i.createElement)("h2",{className:$a},(0,i.createElement)(d.RichText,{tagName:"span",value:b,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-tile-block sb-clearfix style3 space-10"},Da&&Da.map(((e,t)=>(e=>{var t,a,o,n;const r=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],l=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],s=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],m=fe,d=Le,c=Me,g=Se||"large",u=xe;return(0,i.createElement)("div",{className:"sb-width-25 sb-height-100 sb-thumb",key:e.id},(0,i.createElement)("div",{className:"sb-thumb-inner sb-post-thumb"},(0,i.createElement)("a",{href:e.link},r&&r.media_details&&(0,i.createElement)("img",{src:null!==(t=r.media_details.sizes)&&void 0!==t&&t[g]?null===(a=r.media_details.sizes)||void 0===a?void 0:a[g].source_url:null!==(o=r.media_details.sizes)&&void 0!==o&&o.full?null===(n=r.media_details.sizes)||void 0===n?void 0:n.full.source_url:r.source_url,alt:r.alt_text})),u&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Ia&&Ia.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))),(0,i.createElement)("div",{className:"sb-title-container"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("h3",{className:`sb-post-title ${X(Ee,Be,ke,_e)}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(m||d||c)&&(0,i.createElement)("div",{className:"sb-post-meta"},l&&m&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),l.name),e.date_gmt&&d&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==it&&`${e.relative_dates.created}`,"default"==it&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==it&&(0,ce.dateI18n)(ot,e.date_gmt)),c&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),s?s.length:0))))))})(e)))))))},save:function(){return null}});var Mo=a(568),xo=a.n(Mo);(0,o.registerBlockType)("smart-blocks/carousel-module-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 112.22"},(0,i.createElement)("path",{d:"M0 0h61.21v47.61H0z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M85.02 105.42h6.8v6.8h-6.8zm13.6 0h6.8v6.8h-6.8zm13.6 0h6.8v6.8h-6.8z",fill:"#8ca7b9"}),(0,i.createElement)("path",{d:"M3.4 64.61h54.41v3.4H3.4zm17-13.6h20.4v6.8H20.4zM6.8 71.41h47.61v3.4H6.8z",fill:"#7e97a7"}),(0,i.createElement)("path",{d:"M20.4 81.61h20.4v3.4H20.4z",fill:"#8ca8b9"}),(0,i.createElement)("path",{d:"M71.41 0h61.21v47.61H71.41z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M74.81 64.61h54.41v3.4H74.81zm17.01-13.6h20.4v6.8h-20.4zm-13.61 20.4h47.61v3.4H78.21z",fill:"#7e97a7"}),(0,i.createElement)("path",{d:"M91.82 81.61h20.4v3.4h-20.4z",fill:"#8ca8b9"}),(0,i.createElement)("path",{d:"M142.83 0h61.21v47.61h-61.21z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M146.23 64.61h54.41v3.4h-54.41zm17-13.6h20.4v6.8h-20.4zm-13.6 20.4h47.61v3.4h-47.61z",fill:"#7e97a7"}),(0,i.createElement)("path",{d:"M163.23 81.61h20.4v3.4h-20.4z",fill:"#8ca8b9"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("Carousel Module","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)(!0),[s,m]=(0,i.useState)("layout"),{id:c,sbStyle:u,order:h,orderBy:y,excludePosts:b,categories:f,headerTitle:L,headerStyle:E,headerColor:_,headerShortBorderColor:H,headerLongBorderColor:C,headerTitleTypographyFamily:F,headerTitleTypographyWeight:D,headerTitleTypographyTextTransform:U,headerTitleTypographyTextDecoration:P,headerTitleTypographyFontSizeSm:I,headerTitleTypographyFontSizeMd:$,headerTitleTypographyFontSize:W,headerTitleTypographyFontSizeUnit:A,headerTitleTypographyLetterSpacingSm:O,headerTitleTypographyLetterSpacingMd:G,headerTitleTypographyLetterSpacing:j,headerTitleTypographyLetterSpacingUnit:Z,headerTitleTypographyLineHeightSm:q,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Y,headerTitleTypographyLineHeightUnit:ee,categoryTypographyFamily:ae,categoryTypographyWeight:oe,categoryTypographyTextTransform:ne,categoryTypographyTextDecoration:re,categoryTypographyFontSizeSm:le,categoryTypographyFontSizeMd:se,categoryTypographyFontSize:me,categoryTypographyFontSizeUnit:de,categoryTypographyLetterSpacingSm:pe,categoryTypographyLetterSpacingMd:ge,categoryTypographyLetterSpacing:ue,categoryTypographyLetterSpacingUnit:he,categoryTypographyLineHeightSm:ye,categoryTypographyLineHeightMd:be,categoryTypographyLineHeight:ve,categoryTypographyLineHeightUnit:Te,postsPostType:Se,offset:fe,postImageSize:Le,postImageHeight:Me,postPostAuthor:xe,postPostDate:Ee,postPostComments:Be,postPostCategory:ke,postExcerptLength:_e,postTypographyFamily:He,postTypographyWeight:Ne,postTypographyTextTransform:Ve,postTypographyTextDecoration:Ce,postTypographyFontSizeSm:ze,postTypographyFontSizeMd:we,postTypographyFontSize:Re,postTypographyFontSizeUnit:Fe,postTypographyLetterSpacingSm:De,postTypographyLetterSpacingMd:Ue,postTypographyLetterSpacing:Pe,postTypographyLetterSpacingUnit:Ie,postTypographyLineHeightSm:$e,postTypographyLineHeightMd:We,postTypographyLineHeight:Ae,postTypographyLineHeightUnit:Oe,excerptTypographyFamily:Ge,excerptTypographyWeight:je,excerptTypographyTextTransform:Ze,excerptTypographyTextDecoration:qe,excerptTypographyFontSizeSm:Ke,excerptTypographyFontSizeMd:Ye,excerptTypographyFontSize:Xe,excerptTypographyFontSizeUnit:Je,excerptTypographyLetterSpacingSm:Qe,excerptTypographyLetterSpacingMd:et,excerptTypographyLetterSpacing:tt,excerptTypographyLetterSpacingUnit:at,excerptTypographyLineHeightSm:it,excerptTypographyLineHeightMd:ot,excerptTypographyLineHeight:nt,excerptTypographyLineHeightUnit:rt,metasTypographyFamily:lt,metasTypographyWeight:st,metasTypographyTextTransform:mt,metasTypographyTextDecoration:dt,metasTypographyFontSizeSm:ct,metasTypographyFontSizeMd:pt,metasTypographyFontSize:gt,metasTypographyFontSizeUnit:ut,metasTypographyLetterSpacingSm:ht,metasTypographyLetterSpacingMd:yt,metasTypographyLetterSpacing:bt,metasTypographyLetterSpacingUnit:vt,metasTypographyLineHeightSm:Tt,metasTypographyLineHeightMd:St,metasTypographyLineHeight:ft,metasTypographyLineHeightUnit:Lt,dateFormat:Mt,customDateFormat:xt,imageBorderRadius:Et,postTitleMarginSmTop:Bt,postTitleMarginSmLeft:kt,postTitleMarginSmRight:_t,postTitleMarginSmBottom:Ht,postTitleMarginMdTop:Nt,postTitleMarginMdLeft:Vt,postTitleMarginMdRight:Ct,postTitleMarginMdBottom:zt,postTitleMarginTop:wt,postTitleMarginLeft:Rt,postTitleMarginRight:Ft,postTitleMarginBottom:Dt,postTitleMarginUnit:Ut,categoryBackgroundColor:Pt,categoryTextColor:It,categoryBackgroundHoverColor:$t,categoryTextHoverColor:Wt,titleColor:At,titleHoverColor:Ot,postMetasColor:Gt,autoplay:jt,pauseDuration:Zt,noOfSlides:qt,noOfSlidesSm:Kt,noOfSlidesMd:Yt,slidesMargin:Xt,slidesMarginSm:Jt,slidesMarginMd:Qt,slidesStagepadding:ea,slidesStagepaddingSm:ta,slidesStagepaddingMd:aa,nav:ia,dots:oa,noOfPosts:na,excerptColor:ra,navNormalBgColor:la,navIconNormalColor:sa,dotsBgColor:ma,navHoverBgColor:da,navIconHoverColor:ca,dotsBgColorHover:pa,blockMarginSmTop:ga,blockMarginSmLeft:ua,blockMarginSmRight:ha,blockMarginSmBottom:ya,blockMarginMdTop:ba,blockMarginMdLeft:va,blockMarginMdRight:Ta,blockMarginMdBottom:Sa,blockMarginTop:fa,blockMarginLeft:La,blockMarginRight:Ma,blockMarginBottom:xa,blockMarginUnit:Ea,blockPaddingSmTop:Ba,blockPaddingSmLeft:ka,blockPaddingSmRight:_a,blockPaddingSmBottom:Ha,blockPaddingMdTop:Na,blockPaddingMdLeft:Va,blockPaddingMdRight:Ca,blockPaddingMdBottom:za,blockPaddingTop:wa,blockPaddingLeft:Ra,blockPaddingRight:Fa,blockPaddingBottom:Da,blockPaddingUnit:Ua,borderNormal:Pa,borderHover:Ia,borderNormalColor:$a,borderHoverColor:Wa,borderNormalWidthTop:Aa,borderNormalWidthLeft:Oa,borderNormalWidthRight:Ga,borderNormalWidthBottom:ja,borderNormalWidthUnit:Za,borderHoverWidthTop:qa,borderHoverWidthLeft:Ka,borderHoverWidthRight:Ya,borderHoverWidthBottom:Xa,borderHoverWidthUnit:Ja,borderNormalRadiusTop:Qa,borderNormalRadiusLeft:ei,borderNormalRadiusRight:ti,borderNormalRadiusBottom:ai,borderNormalRadiusUnit:ii,borderHoverRadiusTop:oi,borderHoverRadiusLeft:ni,borderHoverRadiusRight:ri,borderHoverRadiusBottom:li,borderHoverRadiusUnit:si,borderNormalBoxShadowHorizontal:mi,borderNormalBoxShadowVertical:di,borderNormalBoxShadowBlur:ci,borderNormalBoxShadowSpread:pi,borderNormalBoxShadowColor:gi,borderNormalBoxShadowInset:ui,borderHoverBoxShadowHorizontal:hi,borderHoverBoxShadowVertical:yi,borderHoverBoxShadowBlur:bi,borderHoverBoxShadowSpread:vi,borderHoverBoxShadowColor:Ti,borderHoverBoxShadowInset:Si,blockBgColor:fi}=a;o({id:(0,d.useBlockProps)().id});const Li=`#${c} {\n        ${Pa?"--sb-border-normal: "+Pa+";":""}\n        ${Ia?"--sb-border-hover: "+Pa+";":""}\n        ${$a?"--sb-border-normal-color: "+$a+";":""}\n        ${Wa?"--sb-border-hover-color: "+Wa+";":""}\n\n        ${J("border-normal-width",Aa,Ga,ja,Oa,Za)}\n        ${J("border-hover-width",qa,Ya,Xa,Ka,Ja)}\n        ${J("border-normal-radius",Qa,ti,ai,ei,ii)}\n        ${J("border-hover-radius",oi,ri,li,ni,si)}\n\n        ${te("border-normal-box-shadow",mi,di,ci,pi,gi,ui,"px")}\n        ${te("border-hover-box-shadow",hi,yi,bi,vi,Ti,Si,"px")}\n\n        ${fi?"--sb-block-bg-color: "+fi+";":""}\n\n        ${Q("block-margin",fa,Ma,xa,La,ga,ha,ya,ua,ba,Ta,Sa,va,Ea)}\n\n        ${Q("block-padding",wa,Fa,Da,Ra,Ba,_a,Ha,ka,Na,Ca,za,Va,Ua)}\n\n        ${Q("listing-post-title-margin",wt,Ft,Dt,Rt,Bt,_t,Ht,kt,Nt,Ct,zt,Vt,Ut)}\n\n        ${Me?"--sb-listing-post-thumb-height: "+Me+"%;":""}\n        ${_?"--sb-header-color: "+_+";":""}\n        ${H?"--sb-header-short-border-color: "+H+";":""}\n        ${C?"--sb-header-long-border-color: "+C+";":""}\n\n        ${ie("header-typo",F,D,U,P,I,$,W,A,O,G,j,Z,q,K,Y,ee)}\n\n        ${ie("category-typo",ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be,ve,Te)}\n\n        ${ie("listing-post-title-typo",He,Ne,Ve,Ce,ze,we,Re,Fe,De,Ue,Pe,Ie,$e,We,Ae,Oe)}\n\n        ${ie("post-metas-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("excerpt-typo",Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et,tt,at,it,ot,nt,rt)}\n\n        ${Et?"--sb-image-border-radius: "+Et+"px;":""}\n        ${Pt?"--sb-category-background-color: "+Pt+";":""}\n        ${It?"--sb-category-text-color: "+It+";":""}\n        ${$t?"--sb-category-background-hover-color: "+$t+";":""}\n        ${Wt?"--sb-category-text-hover-color: "+Wt+";":""}\n        ${At?"--sb-title-color: "+At+";":""}\n        ${Ot?"--sb-title-hover-color: "+Ot+";":""}\n\n        ${Gt?"--sb-post-metas-color: "+Gt+";":""}\n\n        ${ra?"--sb-excerpt-color: "+ra+";":""}\n        ${la?"--sb-nav-normal-bg-color: "+la+";":""}\n        ${sa?"--sb-nav-icon-normal-color: "+sa+";":""}\n        ${ma?"--sb-dots-bg-color: "+ma+";":""}\n        ${da?"--sb-nav-hover-bg-color: "+da+";":""}\n        ${ca?"--sb-nav-icon-hover-color: "+ca+";":""}\n        ${pa?"--sb-dots-bg-color-hover: "+pa+";":""}\n    }`;o({sbStyle:Li.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}")});const Mi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==Se&&t.push({value:e.slug,label:e.name})})),t}),[Se]),xi=()=>{r(!1),setTimeout((function(){r(!0)}),100)},Ei={per_page:na,_embed:!0,order:h,orderby:y,offset:parseInt(fe||0),exclude:b};Mi&&Mi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ei[t]=(a=e.value,f&&f[a]?f[a]:[])}));const Bi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",Se,Ei)),[h,y,f,Se,fe,Ei,b]),ki=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",Se,{per_page:10,_embed:!0,order:h,orderby:y,offset:parseInt(fe||0)})),[h,y,f,Se,fe,b]);var _i=[];ki&&ki.map(((e,t)=>{_i.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Hi=l()("sb-block-title",`${E}`,X(F,D,U,P)),Ni=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Vi={0:{items:parseInt(`${Kt||1}`),margin:parseInt(`${Jt||1}`),stagePadding:parseInt(`${ta||1}`)},580:{items:parseInt(`${Yt||2}`),margin:parseInt(`${Qt||1}`),stagePadding:parseInt(`${aa||1}`)},860:{items:parseInt(`${qt}`),margin:parseInt(`${Xt}`),stagePadding:parseInt(`${ea}`)}},Ci=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},u),F&&"Default"!=F&&(0,i.createElement)(So,{family:F,weight:D.replace("italic","i")}),ae&&"Default"!=ae&&(0,i.createElement)(So,{family:ae,weight:oe.replace("italic","i")}),He&&"Default"!=He&&(0,i.createElement)(So,{family:He,weight:Ne.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(So,{family:lt,weight:st.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===s}),onClick:()=>m("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===s}),onClick:()=>m("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===s}),onClick:()=>m("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===s&&(0,i.createElement)(i.Fragment,null,L&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Style","smart-blocks"),value:E,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,p.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,p.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,p.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,p.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o,optChange:xi}),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Ci||Ci.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Le,onChange:e=>{o({postImageSize:e}),xi()}}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Me,setValue:e=>{o({postImageHeight:e}),xi()},min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("No of Posts to Show","smart-blocks"),value:na,setValue:e=>{o({noOfPosts:e}),xi()},min:0,max:20}),(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:_e,setValue:e=>{o({postExcerptLength:e}),xi()},min:0,max:600}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:xe,onChange:e=>{o({postPostAuthor:e}),xi()}}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:Ee,onChange:e=>{o({postPostDate:e}),xi()}}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Be,onChange:e=>{o({postPostComments:e}),xi()}}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Category","smart-blocks"),checked:ke,onChange:e=>{o({postPostCategory:e}),xi()}})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Carousel Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(z,{label:(0,p.__)("Autoplay","smart-blocks"),checked:jt,onChange:e=>o({autoplay:e})}),jt&&(0,i.createElement)(x,{label:(0,p.__)("Pause Duration","smart-blocks"),value:Zt,setValue:e=>o({pauseDuration:e}),min:1,max:20}),(0,i.createElement)(x,{label:(0,p.__)("No of Slides","smart-blocks"),value:qt,setValue:e=>o({noOfSlides:e}),valueMd:Yt,setValueMd:e=>o({noOfSlidesMd:e}),valueSm:Kt,setValueSm:e=>o({noOfSlidesSm:e}),min:1,max:10,responsive:!0}),(0,i.createElement)(x,{label:(0,p.__)("Spacing Between Slides","smart-blocks"),value:Xt,setValue:e=>o({slidesMargin:e}),valueMd:Qt,setValueMd:e=>o({slidesMarginMd:e}),valueSm:Jt,setValueSm:e=>o({slidesMarginSm:e}),min:1,max:100,responsive:!0}),(0,i.createElement)(x,{label:(0,p.__)("Stage Padding","smart-blocks"),value:ea,setValue:e=>o({slidesStagepadding:e}),valueMd:aa,setValueMd:e=>o({slidesStagepaddingMd:e}),valueSm:ta,setValueSm:e=>o({slidesStagepaddingSm:e}),min:0,max:300,responsive:!0}),(0,i.createElement)(z,{label:(0,p.__)("Nav Arrow","smart-blocks"),checked:ia,onChange:e=>o({nav:e})}),(0,i.createElement)(z,{label:(0,p.__)("Nav Dots","smart-blocks"),checked:oa,onChange:e=>o({dots:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:Et,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:Mt,onChange:e=>{o({dateFormat:e}),xi()},options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==Mt&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:xt,onChange:e=>o({customDateFormat:e})})))||"style"===s&&(0,i.createElement)(i.Fragment,null,L&&(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:_,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:C,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:F,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:D,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:U,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:P,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:I,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:$,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:W,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:A,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:O,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:G,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:j,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:Z,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:q,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Y,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:ee,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:ae,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:oe,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ne,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:re,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:le,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:se,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:me,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:de,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:pe,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ge,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:ue,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:he,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ye,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:be,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ve,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:Te,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:It,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:$t,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Wt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Title Color","smart-blocks"),enableAlpha:!0,value:At,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ot,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:He,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:Ne,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:Ve,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:Ce,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:ze,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:we,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Re,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:Fe,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:De,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ue,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:Pe,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ie,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:$e,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:We,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Ae,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:Oe,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:wt,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:Nt,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:Bt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:Rt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Vt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:kt,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:Ft,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Ct,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:_t,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Dt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:zt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:Ht,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ut,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Gt,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Ge,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:je,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Ze,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:qe,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ke,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ye,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Xe,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Je,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Qe,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:et,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:tt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:at,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:it,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:ot,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:nt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:rt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Navigation","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:la,setValue:e=>o({navNormalBgColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Icon Color","smart-blocks"),enableAlpha:!0,value:sa,setValue:e=>o({navIconNormalColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Dots Color","smart-blocks"),enableAlpha:!0,value:ma,setValue:e=>o({dotsBgColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color (Hover)","smart-blocks"),enableAlpha:!0,value:da,setValue:e=>o({navHoverBgColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Icon Color (Hover)","smart-blocks"),enableAlpha:!0,value:ca,setValue:e=>o({navIconHoverColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Dots Color (Active)","smart-blocks"),enableAlpha:!0,value:pa,setValue:e=>o({dotsBgColorHover:e})})))))||"advanced"===s&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:fa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:ba,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ga,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:La,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ua,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Ma,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ta,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:ha,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:xa,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Sa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ya,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ea,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:wa,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ba,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:ka,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Fa,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:za,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Ua,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Pa,setValue:e=>o({borderNormal:e})}),Pa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:$a,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:Aa,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Oa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ga,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ja,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Za,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:Qa,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ei,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ti,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ai,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ii,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:mi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:di,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ci,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:pi,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:gi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ui,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Ia,setValue:e=>o({borderHover:e})}),Ia&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Wa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:qa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Ka,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ja,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:oi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ni,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ri,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:li,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:si,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:hi,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:yi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:bi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ti,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Si,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:fi,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:c},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-carousel-block"}),(0,i.createElement)("h2",{className:Hi},(0,i.createElement)(d.RichText,{tagName:"span",value:L,onChange:e=>o({headerTitle:e}),placeholder:(0,p.__)("Heading...","smart-blocks")})),(0,i.createElement)(xo(),{loop:n,autoplay:jt,autoplayTimeout:1e3*Zt,nav:ia,dots:oa,navText:['<i class="mdi-chevron-left"></i>','<i class="mdi-chevron-right"></i>'],responsive:Vi,className:"sb-carousel-block-wrap"},Bi&&Bi.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le||"large";return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[d]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[d].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),ke&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Ni&&Ni.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${X(He,Ne,Ve,Ce)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(xe||Ee||Be)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&xe&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&Ee&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Mt&&`${e.relative_dates.created}`,"default"==Mt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Mt&&(0,ce.dateI18n)(xt,e.date_gmt)),Be&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=_e&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,_e),_e<e.content.rendered.length?"...":""))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/single-news-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 176.83 173.43"},(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 163.23h149.63v3.4H0zm0 6.8h136.02v3.4H0zm0-27.2h163.23v6.8H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M0 153.03h27.2v3.4H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h176.83v136.02H0z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("Single News 1","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,postId:c,categories:u,offset:h,postImageSize:y,postImageHeight:b,postPostAuthor:f,postPostDate:L,postPostComments:E,postTypographyFamily:_,postTypographyWeight:H,postTypographyTextTransform:C,postTypographyTextDecoration:F,postTypographyFontSizeSm:D,postTypographyFontSizeMd:U,postTypographyFontSize:P,postTypographyFontSizeUnit:I,postTypographyLetterSpacingSm:$,postTypographyLetterSpacingMd:W,postTypographyLetterSpacing:A,postTypographyLetterSpacingUnit:O,postTypographyLineHeightSm:G,postTypographyLineHeightMd:j,postTypographyLineHeight:Z,postTypographyLineHeightUnit:q,metasTypographyFamily:K,metasTypographyWeight:Y,metasTypographyTextTransform:ee,metasTypographyTextDecoration:ae,metasTypographyFontSizeSm:oe,metasTypographyFontSizeMd:ne,metasTypographyFontSize:re,metasTypographyFontSizeUnit:le,metasTypographyLetterSpacingSm:se,metasTypographyLetterSpacingMd:me,metasTypographyLetterSpacing:de,metasTypographyLetterSpacingUnit:pe,metasTypographyLineHeightSm:ge,metasTypographyLineHeightMd:ue,metasTypographyLineHeight:he,metasTypographyLineHeightUnit:ye,dateFormat:be,customDateFormat:ve,imageBorderRadius:Te,postTitleMarginSmTop:Se,postTitleMarginSmLeft:fe,postTitleMarginSmRight:Le,postTitleMarginSmBottom:Me,postTitleMarginMdTop:xe,postTitleMarginMdLeft:Ee,postTitleMarginMdRight:Be,postTitleMarginMdBottom:ke,postTitleMarginTop:_e,postTitleMarginLeft:He,postTitleMarginRight:Ne,postTitleMarginBottom:Ve,postTitleMarginUnit:Ce,titleColor:ze,titleHoverColor:we,postMetasColor:Re,contentAlignment:Fe,postExcerptLength:De,excerptColor:Ue,excerptTypographyFamily:Pe,excerptTypographyWeight:Ie,excerptTypographyTextTransform:$e,excerptTypographyTextDecoration:We,excerptTypographyFontSizeSm:Ae,excerptTypographyFontSizeMd:Oe,excerptTypographyFontSize:Ge,excerptTypographyFontSizeUnit:je,excerptTypographyLetterSpacingSm:Ze,excerptTypographyLetterSpacingMd:qe,excerptTypographyLetterSpacing:Ke,excerptTypographyLetterSpacingUnit:Ye,excerptTypographyLineHeightSm:Xe,excerptTypographyLineHeightMd:Je,excerptTypographyLineHeight:Qe,excerptTypographyLineHeightUnit:et,contentBgColor:tt,contentPaddingSmTop:at,contentPaddingSmLeft:it,contentPaddingSmRight:ot,contentPaddingSmBottom:nt,contentPaddingMdTop:rt,contentPaddingMdLeft:lt,contentPaddingMdRight:st,contentPaddingMdBottom:mt,contentPaddingTop:dt,contentPaddingLeft:ct,contentPaddingRight:pt,contentPaddingBottom:gt,contentPaddingUnit:ut,contentMarginSmTop:ht,contentMarginSmLeft:yt,contentMarginSmRight:bt,contentMarginSmBottom:vt,contentMarginMdTop:Tt,contentMarginMdLeft:St,contentMarginMdRight:ft,contentMarginMdBottom:Lt,contentMarginTop:Mt,contentMarginLeft:xt,contentMarginRight:Et,contentMarginBottom:Bt,contentMarginUnit:kt,filterOption:_t,tags:Ht,blockMarginSmTop:Nt,blockMarginSmLeft:Vt,blockMarginSmRight:Ct,blockMarginSmBottom:zt,blockMarginMdTop:wt,blockMarginMdLeft:Rt,blockMarginMdRight:Ft,blockMarginMdBottom:Dt,blockMarginTop:Ut,blockMarginLeft:Pt,blockMarginRight:It,blockMarginBottom:$t,blockMarginUnit:Wt,blockPaddingSmTop:At,blockPaddingSmLeft:Ot,blockPaddingSmRight:Gt,blockPaddingSmBottom:jt,blockPaddingMdTop:Zt,blockPaddingMdLeft:qt,blockPaddingMdRight:Kt,blockPaddingMdBottom:Yt,blockPaddingTop:Xt,blockPaddingLeft:Jt,blockPaddingRight:Qt,blockPaddingBottom:ea,blockPaddingUnit:ta,borderNormal:aa,borderHover:ia,borderNormalColor:oa,borderHoverColor:na,borderNormalWidthTop:ra,borderNormalWidthLeft:la,borderNormalWidthRight:sa,borderNormalWidthBottom:ma,borderNormalWidthUnit:da,borderHoverWidthTop:ca,borderHoverWidthLeft:pa,borderHoverWidthRight:ga,borderHoverWidthBottom:ua,borderHoverWidthUnit:ha,borderNormalRadiusTop:ya,borderNormalRadiusLeft:ba,borderNormalRadiusRight:va,borderNormalRadiusBottom:Ta,borderNormalRadiusUnit:Sa,borderHoverRadiusTop:fa,borderHoverRadiusLeft:La,borderHoverRadiusRight:Ma,borderHoverRadiusBottom:xa,borderHoverRadiusUnit:Ea,borderNormalBoxShadowHorizontal:Ba,borderNormalBoxShadowVertical:ka,borderNormalBoxShadowBlur:_a,borderNormalBoxShadowSpread:Ha,borderNormalBoxShadowColor:Na,borderNormalBoxShadowInset:Va,borderHoverBoxShadowHorizontal:Ca,borderHoverBoxShadowVertical:za,borderHoverBoxShadowBlur:wa,borderHoverBoxShadowSpread:Ra,borderHoverBoxShadowColor:Fa,borderHoverBoxShadowInset:Da,blockBgColor:Ua}=a;o({id:(0,d.useBlockProps)().id});const Pa=`#${s} {\n        ${aa?"--sb-border-normal: "+aa+";":""}\n        ${ia?"--sb-border-hover: "+aa+";":""}\n        ${oa?"--sb-border-normal-color: "+oa+";":""}\n        ${na?"--sb-border-hover-color: "+na+";":""}\n\n        ${J("border-normal-width",ra,sa,ma,la,da)}\n        ${J("border-hover-width",ca,ga,ua,pa,ha)}\n        ${J("border-normal-radius",ya,va,Ta,ba,Sa)}\n        ${J("border-hover-radius",fa,Ma,xa,La,Ea)}\n\n        ${te("border-normal-box-shadow",Ba,ka,_a,Ha,Na,Va,"px")}\n        ${te("border-hover-box-shadow",Ca,za,wa,Ra,Fa,Da,"px")}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${Q("block-margin",Ut,It,$t,Pt,Nt,Ct,zt,Vt,wt,Ft,Dt,Rt,Wt)}\n\n        ${Q("block-padding",Xt,Qt,ea,Jt,At,Gt,jt,Ot,Zt,Kt,Yt,qt,ta)}\n\n        ${Q("listing-post-title-margin",_e,Ne,Ve,He,Se,Le,Me,fe,xe,Be,ke,Ee,Ce)}\n\n        ${Q("content-padding",dt,pt,gt,ct,at,ot,nt,it,rt,st,mt,lt,ut)}\n\n        ${Q("content-margin",Mt,Et,Bt,xt,ht,bt,vt,yt,Tt,ft,Lt,St,kt)}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${b?"--sb-listing-post-thumb-height: "+b+"%;":""}\n        ${ze?"--sb-title-color: "+ze+";":""}\n        ${we?"--sb-title-hover-color: "+we+";":""}\n\n        ${ie("listing-post-title-typo",_,H,C,F,D,U,P,I,$,W,A,O,G,j,Z,q)}\n\n        ${ie("post-metas-typo",K,Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye)}\n\n        ${ie("excerpt-typo",Pe,Ie,$e,We,Ae,Oe,Ge,je,Ze,qe,Ke,Ye,Xe,Je,Qe,et)}\n\n        ${Re?"--sb-post-metas-color: "+Re+";":""}\n        ${Ue?"--sb-excerpt-color: "+Ue+";":""}\n        ${tt?"--sb-content-bg-color: "+tt+";":""}\n\n        ${Te?"--sb-image-border-radius: "+Te+"px;":""}\n    }`;o({sbStyle:Pa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ia={per_page:1,_embed:!0,offset:parseInt(h||0)};"categories"==_t?Ia.categories=u:"tags"==_t&&(Ia.tags=Ht);const $a=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",Ia)),[u,Ht,Ia,c,h]),Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",{per_page:-1,_embed:!0})),[u,c,h]);var Aa=[];Wa&&Wa.map(((e,t)=>{Aa.push({value:e.id,label:e.title.rendered})}));const Oa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Ga=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;var i,o=[],n=[];if(t&&t.length)if(void 0!==t[0].parent){for(i=0;i<t.length;i++)t[i].parent==e&&(n=[...n,t[i]]);n.length&&(a++,n&&n.map((e=>{let n="";for(i=0;i<a;)n+="- ",i++;n+=e.name.replace("-"," "),o.push({value:e.id,label:n+" ("+e.count+")"});let r=Ga(e.id,t,a);r.length&&(o=[...o,...r])})))}else t.map((e=>{o.push({value:e.id,label:e.name+" ("+e.count+")"})}));return o},ja=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","post_tag",{per_page:-1})),[]),Za=e=>{var t,a,o,n;const r=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],l=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],s=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],m=f,d=L,c=E,g=y||"large",u=De;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},r&&r.media_details&&(0,i.createElement)("img",{src:null!==(t=r.media_details.sizes)&&void 0!==t&&t[g]?null===(a=r.media_details.sizes)||void 0===a?void 0:a[g].source_url:null!==(o=r.media_details.sizes)&&void 0!==o&&o.full?null===(n=r.media_details.sizes)||void 0===n?void 0:n.full.source_url:r.source_url,alt:r.alt_text})))),(0,i.createElement)("div",{class:`sb-post-content sb-align-${Fe}`},(0,i.createElement)("h3",{className:`sb-post-title ${X(_,H,C,F)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(m||d||c)&&(0,i.createElement)("div",{className:"sb-post-meta"},l&&m&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),l.name),e.date_gmt&&d&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==be&&`${e.relative_dates.created}`,"default"==be&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==be&&(0,ce.dateI18n)(ve,e.date_gmt)),c&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),s?s.length:0)),0!=u&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,u),u<e.content.rendered.length?"...":""))))},qa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),_&&"Default"!=_&&(0,i.createElement)(So,{family:_,weight:H.replace("italic","i")}),Pe&&"Default"!=Pe&&(0,i.createElement)(So,{family:Pe,weight:Ie.replace("italic","i")}),K&&"Default"!=K&&(0,i.createElement)(So,{family:K,weight:Y.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Content Filter","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Select Filter","smart-blocks"),value:_t,onChange:e=>o({filterOption:e}),options:[{value:"single-post",label:(0,p.__)("By Post Title","smart-blocks")},{value:"categories",label:(0,p.__)("By Categories","smart-blocks")},{value:"tags",label:(0,p.__)("By Tags","smart-blocks")}]}),(!_t||"single-post"==_t)&&(0,i.createElement)(k,{label:(0,p.__)("Select Post","smart-blocks"),options:Aa,value:c,onChange:e=>o({postId:e})}),"categories"==_t&&(0,i.createElement)(fo,{label:(0,p.__)("Categories","smart-blocks"),options:(()=>{let e=[];return Oa&&(e=Ga(0,Oa)),e})(),value:u,setValue:e=>o({categories:e})}),"tags"==_t&&(0,i.createElement)(fo,{label:(0,p.__)("Tags","smart-blocks"),options:(()=>{let e=[];return ja&&(e=Ga(0,ja)),e})(),value:Ht,setValue:e=>o({tags:e})}),"single-post"!=_t&&(0,i.createElement)(x,{label:(0,p.__)("Offset","smart-blocks"),value:h,setValue:e=>o({offset:e}),min:0,max:10})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Meta","smart-blocks"),initialOpen:!1},(0,i.createElement)(z,{label:(0,p.__)("Post Author","smart-blocks"),checked:f,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Post Date","smart-blocks"),checked:L,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Post Comments","smart-blocks"),checked:E,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:be,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==be&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:ve,onChange:e=>o({customDateFormat:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length (in Letters)","smart-blocks"),value:De,setValue:e=>o({postExcerptLength:e}),min:0,max:600})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Image Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==qa||qa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:y,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:b,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:Te,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Content Alignment","smart-blocks"),value:Fe,onChange:e=>o({contentAlignment:e}),options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]})))||"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background","smart-blocks"),enableAlpha:!0,value:tt,setValue:e=>o({contentBgColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Content Padding","smart-blocks"),dimensionTop:dt,setDimensionTop:e=>o({contentPaddingTop:e}),dimensionMdTop:rt,setDimensionMdTop:e=>o({contentPaddingMdTop:e}),dimensionSmTop:at,setDimensionSmTop:e=>o({contentPaddingSmTop:e}),dimensionLeft:ct,setDimensionLeft:e=>o({contentPaddingLeft:e}),dimensionMdLeft:lt,setDimensionMdLeft:e=>o({contentPaddingMdLeft:e}),dimensionSmLeft:it,setDimensionSmLeft:e=>o({contentPaddingSmLeft:e}),dimensionRight:pt,setDimensionRight:e=>o({contentPaddingRight:e}),dimensionMdRight:st,setDimensionMdRight:e=>o({contentPaddingMdRight:e}),dimensionSmRight:ot,setDimensionSmRight:e=>o({contentPaddingSmRight:e}),dimensionBottom:gt,setDimensionBottom:e=>o({contentPaddingBottom:e}),dimensionMdBottom:mt,setDimensionMdBottom:e=>o({contentPaddingMdBottom:e}),dimensionSmBottom:nt,setDimensionSmBottom:e=>o({contentPaddingSmBottom:e}),unit:ut,setUnit:e=>o({contentPaddingUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Content Margin","smart-blocks"),dimensionTop:Mt,setDimensionTop:e=>o({contentMarginTop:e}),dimensionMdTop:Tt,setDimensionMdTop:e=>o({contentMarginMdTop:e}),dimensionSmTop:ht,setDimensionSmTop:e=>o({contentMarginSmTop:e}),dimensionLeft:xt,setDimensionLeft:e=>o({contentMarginLeft:e}),dimensionMdLeft:St,setDimensionMdLeft:e=>o({contentMarginMdLeft:e}),dimensionSmLeft:yt,setDimensionSmLeft:e=>o({contentMarginSmLeft:e}),dimensionRight:Et,setDimensionRight:e=>o({contentMarginRight:e}),dimensionMdRight:ft,setDimensionMdRight:e=>o({contentMarginMdRight:e}),dimensionSmRight:bt,setDimensionSmRight:e=>o({contentMarginSmRight:e}),dimensionBottom:Bt,setDimensionBottom:e=>o({contentMarginBottom:e}),dimensionMdBottom:Lt,setDimensionMdBottom:e=>o({contentMarginMdBottom:e}),dimensionSmBottom:vt,setDimensionSmBottom:e=>o({contentMarginSmBottom:e}),unit:kt,setUnit:e=>o({contentMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:"Post Title",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:ze,setValue:e=>o({titleColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:_,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:H,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:C,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:F,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:D,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:U,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:P,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:I,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:$,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:W,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:O,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:G,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:j,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:_e,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:xe,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:Se,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:He,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Ee,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:fe,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:Ne,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Be,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:Le,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Ve,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:ke,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:Me,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ce,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:"Post Meta",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Re,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:K,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Y,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:ee,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:ae,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:oe,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:ne,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:re,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:le,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:se,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:me,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:de,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:pe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:ge,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:ue,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:he,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ye,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:"Post Excerpt",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Ue,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Pe,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Ie,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:$e,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:We,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ae,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Oe,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Ge,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:je,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ze,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:qe,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Ke,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ye,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Xe,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Je,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Qe,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:et,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ut,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:wt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Nt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Pt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Rt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Vt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:It,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ft,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ct,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:$t,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Dt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:zt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Wt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Xt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Zt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:At,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Jt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:qt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ot,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Qt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Kt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Gt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ea,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Yt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:jt,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:ta,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:aa,setValue:e=>o({borderNormal:e})}),aa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ra,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:la,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:sa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ma,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:da,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ya,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:va,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Sa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ba,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ka,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:_a,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ha,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Na,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Va,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:ia,setValue:e=>o({borderHover:e})}),ia&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:ca,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:pa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ua,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ha,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:fa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:La,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ma,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:xa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ea,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Ca,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:za,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:wa,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ra,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Fa,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Da,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ua,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-single-post"}),(0,i.createElement)("div",{className:"sb-single-post-one"},"single-post"==_t&&Wa&&c?Za(Wa.filter((e=>e.id==c))[0]):$a&&$a.map((e=>Za(e)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/single-news-two",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 176.83 173.43"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h176.83v173.43H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M10.2 153.03h142.83v3.4H10.2zm0 6.8h136.02v3.4H10.2zm0-27.21h136.02v6.8H10.2z"}),(0,i.createElement)("path",{fill:"#fff",d:"M10.2 142.83h27.2v3.4H10.2z",opacity:".8"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("Single News 2","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,postId:c,categories:u,tags:h,excerptTypographyFamily:y,excerptTypographyWeight:b,excerptTypographyTextTransform:f,excerptTypographyTextDecoration:L,excerptTypographyFontSizeSm:E,excerptTypographyFontSizeMd:_,excerptTypographyFontSize:H,excerptTypographyFontSizeUnit:C,excerptTypographyLetterSpacingSm:F,excerptTypographyLetterSpacingMd:D,excerptTypographyLetterSpacing:U,excerptTypographyLetterSpacingUnit:P,excerptTypographyLineHeightSm:I,excerptTypographyLineHeightMd:$,excerptTypographyLineHeight:W,excerptTypographyLineHeightUnit:A,postsPostType:O,offset:G,postImageSize:j,postImageHeight:Z,postPostAuthor:q,postPostDate:K,postPostComments:Y,postTypographyFamily:ee,postTypographyWeight:ae,postTypographyTextTransform:oe,postTypographyTextDecoration:ne,postTypographyFontSizeSm:re,postTypographyFontSizeMd:le,postTypographyFontSize:se,postTypographyFontSizeUnit:me,postTypographyLetterSpacingSm:de,postTypographyLetterSpacingMd:pe,postTypographyLetterSpacing:ge,postTypographyLetterSpacingUnit:ue,postTypographyLineHeightSm:he,postTypographyLineHeightMd:ye,postTypographyLineHeight:be,postTypographyLineHeightUnit:ve,metasTypographyFamily:Te,metasTypographyWeight:Se,metasTypographyTextTransform:fe,metasTypographyTextDecoration:Le,metasTypographyFontSizeSm:Me,metasTypographyFontSizeMd:xe,metasTypographyFontSize:Ee,metasTypographyFontSizeUnit:Be,metasTypographyLetterSpacingSm:ke,metasTypographyLetterSpacingMd:_e,metasTypographyLetterSpacing:He,metasTypographyLetterSpacingUnit:Ne,metasTypographyLineHeightSm:Ve,metasTypographyLineHeightMd:Ce,metasTypographyLineHeight:ze,metasTypographyLineHeightUnit:we,dateFormat:Re,customDateFormat:Fe,imageBorderRadius:De,postTitleMarginSmTop:Ue,postTitleMarginSmLeft:Pe,postTitleMarginSmRight:Ie,postTitleMarginSmBottom:$e,postTitleMarginMdTop:We,postTitleMarginMdLeft:Ae,postTitleMarginMdRight:Oe,postTitleMarginMdBottom:Ge,postTitleMarginTop:je,postTitleMarginLeft:Ze,postTitleMarginRight:qe,postTitleMarginBottom:Ke,postTitleMarginUnit:Ye,titleColor:Xe,titleHoverColor:Je,postMetasColor:Qe,postExcerptLength:et,contentAlignment:tt,contentPaddingSmTop:at,contentPaddingSmLeft:it,contentPaddingSmRight:ot,contentPaddingSmBottom:nt,contentPaddingMdTop:rt,contentPaddingMdLeft:lt,contentPaddingMdRight:st,contentPaddingMdBottom:mt,contentPaddingTop:dt,contentPaddingLeft:ct,contentPaddingRight:pt,contentPaddingBottom:gt,contentPaddingUnit:ut,contentMarginSmTop:ht,contentMarginSmLeft:yt,contentMarginSmRight:bt,contentMarginSmBottom:vt,contentMarginMdTop:Tt,contentMarginMdLeft:St,contentMarginMdRight:ft,contentMarginMdBottom:Lt,contentMarginTop:Mt,contentMarginLeft:xt,contentMarginRight:Et,contentMarginBottom:Bt,contentMarginUnit:kt,excerptColor:_t,contentOverlayBackground:Ht,filterOption:Nt,blockMarginSmTop:Vt,blockMarginSmLeft:Ct,blockMarginSmRight:zt,blockMarginSmBottom:wt,blockMarginMdTop:Rt,blockMarginMdLeft:Ft,blockMarginMdRight:Dt,blockMarginMdBottom:Ut,blockMarginTop:Pt,blockMarginLeft:It,blockMarginRight:$t,blockMarginBottom:Wt,blockMarginUnit:At,blockPaddingSmTop:Ot,blockPaddingSmLeft:Gt,blockPaddingSmRight:jt,blockPaddingSmBottom:Zt,blockPaddingMdTop:qt,blockPaddingMdLeft:Kt,blockPaddingMdRight:Yt,blockPaddingMdBottom:Xt,blockPaddingTop:Jt,blockPaddingLeft:Qt,blockPaddingRight:ea,blockPaddingBottom:ta,blockPaddingUnit:aa,borderNormal:ia,borderHover:oa,borderNormalColor:na,borderHoverColor:ra,borderNormalWidthTop:la,borderNormalWidthLeft:sa,borderNormalWidthRight:ma,borderNormalWidthBottom:da,borderNormalWidthUnit:ca,borderHoverWidthTop:pa,borderHoverWidthLeft:ga,borderHoverWidthRight:ua,borderHoverWidthBottom:ha,borderHoverWidthUnit:ya,borderNormalRadiusTop:ba,borderNormalRadiusLeft:va,borderNormalRadiusRight:Ta,borderNormalRadiusBottom:Sa,borderNormalRadiusUnit:fa,borderHoverRadiusTop:La,borderHoverRadiusLeft:Ma,borderHoverRadiusRight:xa,borderHoverRadiusBottom:Ea,borderHoverRadiusUnit:Ba,borderNormalBoxShadowHorizontal:ka,borderNormalBoxShadowVertical:_a,borderNormalBoxShadowBlur:Ha,borderNormalBoxShadowSpread:Na,borderNormalBoxShadowColor:Va,borderNormalBoxShadowInset:Ca,borderHoverBoxShadowHorizontal:za,borderHoverBoxShadowVertical:wa,borderHoverBoxShadowBlur:Ra,borderHoverBoxShadowSpread:Fa,borderHoverBoxShadowColor:Da,borderHoverBoxShadowInset:Ua,blockBgColor:Pa}=a;o({id:(0,d.useBlockProps)().id});const Ia=`#${s} {\n        ${ia?"--sb-border-normal: "+ia+";":""}\n        ${oa?"--sb-border-hover: "+ia+";":""}\n        ${na?"--sb-border-normal-color: "+na+";":""}\n        ${ra?"--sb-border-hover-color: "+ra+";":""}\n\n        ${J("border-normal-width",la,ma,da,sa,ca)}\n        ${J("border-hover-width",pa,ua,ha,ga,ya)}\n        ${J("border-normal-radius",ba,Ta,Sa,va,fa)}\n        ${J("border-hover-radius",La,xa,Ea,Ma,Ba)}\n\n        ${te("border-normal-box-shadow",ka,_a,Ha,Na,Va,Ca,"px")}\n        ${te("border-hover-box-shadow",za,wa,Ra,Fa,Da,Ua,"px")}\n\n        ${Pa?"--sb-block-bg-color: "+Pa+";":""}\n\n        ${Q("block-margin",Pt,$t,Wt,It,Vt,zt,wt,Ct,Rt,Dt,Ut,Ft,At)}\n\n        ${Q("block-padding",Jt,ea,ta,Qt,Ot,jt,Zt,Gt,qt,Yt,Xt,Kt,aa)}\n\n        ${Q("listing-post-title-margin",je,qe,Ke,Ze,Ue,Ie,$e,Pe,We,Oe,Ge,Ae,Ye)}\n\n        ${Q("content-padding",dt,pt,gt,ct,at,ot,nt,it,rt,st,mt,lt,ut)}\n\n        ${Q("content-margin",Mt,Et,Bt,xt,ht,bt,vt,yt,Tt,ft,Lt,St,kt)}\n\n        ${Pa?"--sb-block-bg-color: "+Pa+";":""}\n\n        ${Z?"--sb-listing-post-thumb-height: "+Z+"%;":""}\n        ${_t?"--sb-excerpt-color: "+_t+";":""}\n\n        ${ie("excerpt-typo",y,b,f,L,E,_,H,C,F,D,U,P,I,$,W,A)}\n\n        ${Xe?"--sb-title-color: "+Xe+";":""}\n        ${Je?"--sb-title-hover-color: "+Je+";":""}\n\n        ${ie("listing-post-title-typo",ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be,ve)}\n\n        ${ie("post-metas-typo",Te,Se,fe,Le,Me,xe,Ee,Be,ke,_e,He,Ne,Ve,Ce,ze,we)}\n\n        ${Qe?"--sb-post-metas-color: "+Qe+";":""}\n\n        ${Ht?"--sb-content-overlay-gradient: "+Ht+";":""}\n        ${De?"--sb-image-border-radius: "+De+"px;":""}\n    }`;o({sbStyle:Ia.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const $a={per_page:1,_embed:!0,offset:parseInt(G||0)};"categories"==Nt?$a.categories=u:"tags"==Nt&&($a.tags=h);const Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",$a)),[u,h,$a,c,G]),Aa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",{per_page:-1,_embed:!0})),[u,c,G]);var Oa=[];Aa&&Aa.map(((e,t)=>{Oa.push({value:e.id,label:e.title.rendered})}));const Ga=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),ja=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;var i,o=[],n=[];if(t&&t.length)if(void 0!==t[0].parent){for(i=0;i<t.length;i++)t[i].parent==e&&(n=[...n,t[i]]);n.length&&(a++,n&&n.map((e=>{let n="";for(i=0;i<a;)n+="- ",i++;n+=e.name.replace("-"," "),o.push({value:e.id,label:n+" ("+e.count+")"});let r=ja(e.id,t,a);r.length&&(o=[...o,...r])})))}else t.map((e=>{o.push({value:e.id,label:e.name+" ("+e.count+")"})}));return o},Za=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","post_tag",{per_page:-1})),[]),qa=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=q,c=K,g=Y,u=j||"large",h=et;return(0,i.createElement)("div",{className:"sb-post-image sb-post-graident-title",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})))),(0,i.createElement)("div",{class:`sb-post-content sb-align-${tt}`},(0,i.createElement)("h3",{className:`sb-post-title ${X(ee,ae,oe,ne)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks"))),(d||c||g)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Re&&`${e.relative_dates.created}`,"default"==Re&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Re&&(0,ce.dateI18n)(Fe,e.date_gmt)),g&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=h&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,h),h<e.content.rendered.length?"...":""))))},Ka=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),ee&&"Default"!=ee&&(0,i.createElement)(So,{family:ee,weight:ae.replace("italic","i")}),y&&"Default"!=y&&(0,i.createElement)(So,{family:y,weight:b.replace("italic","i")}),Te&&"Default"!=Te&&(0,i.createElement)(So,{family:Te,weight:Se.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Content Filter","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Select Filter","smart-blocks"),value:Nt,onChange:e=>o({filterOption:e}),options:[{value:"single-post",label:(0,p.__)("By Post Title","smart-blocks")},{value:"categories",label:(0,p.__)("By Categories","smart-blocks")},{value:"tags",label:(0,p.__)("By Tags","smart-blocks")}]}),(!Nt||"single-post"==Nt)&&(0,i.createElement)(k,{label:(0,p.__)("Select Post","smart-blocks"),options:Oa,value:c,onChange:e=>o({postId:e})}),"categories"==Nt&&(0,i.createElement)(fo,{label:(0,p.__)("Categories","smart-blocks"),options:(()=>{let e=[];return Ga&&(e=ja(0,Ga)),e})(),value:u,setValue:e=>o({categories:e})}),"tags"==Nt&&(0,i.createElement)(fo,{label:(0,p.__)("Tags","smart-blocks"),options:(()=>{let e=[];return Za&&(e=ja(0,Za)),e})(),value:h,setValue:e=>o({tags:e})}),"single-post"!=Nt&&(0,i.createElement)(x,{label:(0,p.__)("Offset","smart-blocks"),value:G,setValue:e=>o({offset:e}),min:0,max:10})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Meta","smart-blocks"),initialOpen:!1},(0,i.createElement)(z,{label:(0,p.__)("Show Post Author","smart-blocks"),checked:q,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Date","smart-blocks"),checked:K,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(z,{label:(0,p.__)("Show Post Comments","smart-blocks"),checked:Y,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(k,{label:(0,p.__)("Date Format","smart-blocks"),value:Re,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,p.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,p.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,p.__)("Custom Format","smart-blocks")}]}),"custom"==Re&&(0,i.createElement)(g.TextControl,{label:(0,p.__)("Custom Date Format","smart-blocks"),value:Fe,onChange:e=>o({customDateFormat:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Post Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,p.__)("Excerpt Length","smart-blocks"),value:et,setValue:e=>o({postExcerptLength:e}),min:0,max:600})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Image Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,p.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Ka||Ka.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:j,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(x,{label:(0,p.__)("Image Height (%)","smart-blocks"),value:Z,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(x,{label:(0,p.__)("Image Border Radius(px)","smart-blocks"),value:De,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(k,{label:(0,p.__)("Content Alignment","smart-blocks"),value:tt,onChange:e=>o({contentAlignment:e}),options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]})))||"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(g.GradientPicker,{value:Ht,onChange:e=>o({contentOverlayBackground:e}),gradients:[{name:"JShine",gradient:"linear-gradient(0deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)",slug:"jshine"},{name:"Moonlit Asteroid",gradient:"linear-gradient(0deg,#0F2027 0%, #203A43 0%, #2c5364 100%)",slug:"moonlit-asteroid"},{name:"Rastafarie",gradient:"linear-gradient(0deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)",slug:"rastafari"}]}),(0,i.createElement)(M,{label:(0,p.__)("Content Padding","smart-blocks"),dimensionTop:dt,setDimensionTop:e=>o({contentPaddingTop:e}),dimensionMdTop:rt,setDimensionMdTop:e=>o({contentPaddingMdTop:e}),dimensionSmTop:at,setDimensionSmTop:e=>o({contentPaddingSmTop:e}),dimensionLeft:ct,setDimensionLeft:e=>o({contentPaddingLeft:e}),dimensionMdLeft:lt,setDimensionMdLeft:e=>o({contentPaddingMdLeft:e}),dimensionSmLeft:it,setDimensionSmLeft:e=>o({contentPaddingSmLeft:e}),dimensionRight:pt,setDimensionRight:e=>o({contentPaddingRight:e}),dimensionMdRight:st,setDimensionMdRight:e=>o({contentPaddingMdRight:e}),dimensionSmRight:ot,setDimensionSmRight:e=>o({contentPaddingSmRight:e}),dimensionBottom:gt,setDimensionBottom:e=>o({contentPaddingBottom:e}),dimensionMdBottom:mt,setDimensionMdBottom:e=>o({contentPaddingMdBottom:e}),dimensionSmBottom:nt,setDimensionSmBottom:e=>o({contentPaddingSmBottom:e}),unit:ut,setUnit:e=>o({contentPaddingUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Content Margin","smart-blocks"),dimensionTop:Mt,setDimensionTop:e=>o({contentMarginTop:e}),dimensionMdTop:Tt,setDimensionMdTop:e=>o({contentMarginMdTop:e}),dimensionSmTop:ht,setDimensionSmTop:e=>o({contentMarginSmTop:e}),dimensionLeft:xt,setDimensionLeft:e=>o({contentMarginLeft:e}),dimensionMdLeft:St,setDimensionMdLeft:e=>o({contentMarginMdLeft:e}),dimensionSmLeft:yt,setDimensionSmLeft:e=>o({contentMarginSmLeft:e}),dimensionRight:Et,setDimensionRight:e=>o({contentMarginRight:e}),dimensionMdRight:ft,setDimensionMdRight:e=>o({contentMarginMdRight:e}),dimensionSmRight:bt,setDimensionSmRight:e=>o({contentMarginSmRight:e}),dimensionBottom:Bt,setDimensionBottom:e=>o({contentMarginBottom:e}),dimensionMdBottom:Lt,setDimensionMdBottom:e=>o({contentMarginMdBottom:e}),dimensionSmBottom:vt,setDimensionSmBottom:e=>o({contentMarginSmBottom:e}),unit:kt,setUnit:e=>o({contentMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:"Post Title",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Xe,setValue:e=>o({titleColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:ee,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:ae,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:oe,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:ne,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:re,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:le,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:se,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:me,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:de,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:pe,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:ge,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:ue,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:he,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:ye,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:be,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:ve,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),dimensionTop:je,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:We,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:Ue,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:Ze,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Ae,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:Pe,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:qe,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Oe,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:Ie,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Ke,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:Ge,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:$e,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ye,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:"Post Metas",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:Qe,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:Te,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Se,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:fe,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Le,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Me,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:xe,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ee,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Be,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:ke,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:_e,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:He,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ne,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ve,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Ce,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ze,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:we,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})),(0,i.createElement)(g.PanelBody,{title:"Post Excerpt",initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Color","smart-blocks"),enableAlpha:!0,value:_t,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:y,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:b,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:f,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:L,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:E,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:_,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:H,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:C,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:F,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:D,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:U,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:P,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:I,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:$,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:W,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:A,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Pt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Rt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Vt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:It,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ft,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Ct,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:$t,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Dt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:zt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Wt,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Ut,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:wt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:At,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Jt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:qt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ot,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Qt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Kt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Gt,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:ea,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Yt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:jt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ta,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Xt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Zt,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:aa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:ia,setValue:e=>o({borderNormal:e})}),ia&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:la,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:sa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ma,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:da,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ca,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:ba,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:va,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ta,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Sa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:fa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:ka,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:_a,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ha,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Na,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Va,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ca,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:oa,setValue:e=>o({borderHover:e})}),oa&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:pa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ga,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ua,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ha,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ya,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:La,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ma,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:xa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ea,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ba,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:za,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:wa,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ra,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Fa,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Da,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Ua,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pa,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-single-post"}),(0,i.createElement)("div",{className:"sb-single-post-two"},"single-post"==Nt&&Aa&&c?qa(Aa.filter((e=>e.id==c))[0]):Wa&&Wa.map((e=>qa(e)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/ticker-module",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 600"},(0,i.createElement)("path",{fill:"#687e8b",stroke:"#fff",d:"M107 154.5h342.95v80H107z"}),(0,i.createElement)("path",{fill:"#8ca7b9",d:"M119.274 165.671v56.736h96.848l26.019-26.742-30.355-30.355-92.512.361z",opacity:"NaN"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,p.__)("Ticker Module","smart-blocks"),description:(0,p.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:c,orderBy:u,excludePosts:h,categories:y,tickerTitleTypographyFamily:b,tickerTitleTypographyWeight:f,tickerTitleTypographyTextTransform:L,tickerTitleTypographyTextDecoration:E,tickerTitleTypographyFontSizeSm:k,tickerTitleTypographyFontSizeMd:_,tickerTitleTypographyFontSize:H,tickerTitleTypographyFontSizeUnit:C,tickerTitleTypographyLetterSpacingSm:F,tickerTitleTypographyLetterSpacingMd:D,tickerTitleTypographyLetterSpacing:U,tickerTitleTypographyLetterSpacingUnit:P,tickerTitleTypographyLineHeightSm:I,tickerTitleTypographyLineHeightMd:$,tickerTitleTypographyLineHeight:W,tickerTitleTypographyLineHeightUnit:A,postsPostType:O,offset:G,autoplay:j,pause:Z,noOfPosts:q,tickerTitle:K,tickerTitleBgColor:Y,tickerTitleColor:X,tickerContent:ee,tickerContentBgColor:ae,tickerContentColor:oe,tickerContentHoverColor:ne,tickerContentTypographyFamily:re,tickerContentTypographyWeight:le,tickerContentTypographyTextTransform:se,tickerContentTypographyTextDecoration:me,tickerContentTypographyFontSizeSm:de,tickerContentTypographyFontSizeMd:ce,tickerContentTypographyFontSize:pe,tickerContentTypographyFontSizeUnit:ge,tickerContentTypographyLetterSpacingSm:ue,tickerContentTypographyLetterSpacingMd:he,tickerContentTypographyLetterSpacing:ye,tickerContentTypographyLetterSpacingUnit:be,tickerContentTypographyLineHeightSm:ve,tickerContentTypographyLineHeightMd:Te,tickerContentTypographyLineHeight:Se,tickerContentTypographyLineHeightUnit:fe,navNormalBgColor:Le,navIconNormalColor:Me,navHoverBgColor:xe,navIconHoverColor:Ee,blockMarginSmTop:Be,blockMarginSmLeft:ke,blockMarginSmRight:_e,blockMarginSmBottom:He,blockMarginMdTop:Ne,blockMarginMdLeft:Ve,blockMarginMdRight:Ce,blockMarginMdBottom:ze,blockMarginTop:we,blockMarginLeft:Re,blockMarginRight:Fe,blockMarginBottom:De,blockMarginUnit:Ue,blockPaddingSmTop:Pe,blockPaddingSmLeft:Ie,blockPaddingSmRight:$e,blockPaddingSmBottom:We,blockPaddingMdTop:Ae,blockPaddingMdLeft:Oe,blockPaddingMdRight:Ge,blockPaddingMdBottom:je,blockPaddingTop:Ze,blockPaddingLeft:qe,blockPaddingRight:Ke,blockPaddingBottom:Ye,blockPaddingUnit:Xe,borderNormal:Je,borderHover:Qe,borderNormalColor:et,borderHoverColor:tt,borderNormalWidthTop:at,borderNormalWidthLeft:it,borderNormalWidthRight:ot,borderNormalWidthBottom:nt,borderNormalWidthUnit:rt,borderHoverWidthTop:lt,borderHoverWidthLeft:st,borderHoverWidthRight:mt,borderHoverWidthBottom:dt,borderHoverWidthUnit:ct,borderNormalRadiusTop:pt,borderNormalRadiusLeft:gt,borderNormalRadiusRight:ut,borderNormalRadiusBottom:ht,borderNormalRadiusUnit:yt,borderHoverRadiusTop:bt,borderHoverRadiusLeft:vt,borderHoverRadiusRight:Tt,borderHoverRadiusBottom:St,borderHoverRadiusUnit:ft,borderNormalBoxShadowHorizontal:Lt,borderNormalBoxShadowVertical:Mt,borderNormalBoxShadowBlur:xt,borderNormalBoxShadowSpread:Et,borderNormalBoxShadowColor:Bt,borderNormalBoxShadowInset:kt,borderHoverBoxShadowHorizontal:_t,borderHoverBoxShadowVertical:Ht,borderHoverBoxShadowBlur:Nt,borderHoverBoxShadowSpread:Vt,borderHoverBoxShadowColor:Ct,borderHoverBoxShadowInset:zt,blockBgColor:wt}=a;o({id:(0,d.useBlockProps)().id});const Rt=`#${s} {\n        ${Je?"--sb-border-normal: "+Je+";":""}\n        ${Qe?"--sb-border-hover: "+Je+";":""}\n        ${et?"--sb-border-normal-color: "+et+";":""}\n        ${tt?"--sb-border-hover-color: "+tt+";":""}\n\n        ${J("border-normal-width",at,ot,nt,it,rt)}\n        ${J("border-hover-width",lt,mt,dt,st,ct)}\n        ${J("border-normal-radius",pt,ut,ht,gt,yt)}\n        ${J("border-hover-radius",bt,Tt,St,vt,ft)}\n\n        ${te("border-normal-box-shadow",Lt,Mt,xt,Et,Bt,kt,"px")}\n        ${te("border-hover-box-shadow",_t,Ht,Nt,Vt,Ct,zt,"px")}\n\n        ${wt?"--sb-block-bg-color: "+wt+";":""}\n\n        ${Q("block-margin",we,Fe,De,Re,Be,_e,He,ke,Ne,Ce,ze,Ve,Ue)}\n\n        ${Q("block-padding",Ze,Ke,Ye,qe,Pe,$e,We,Ie,Ae,Ge,je,Oe,Xe)}\n\n        ${wt?"--sb-block-bg-color: "+wt+";":""}\n\n        ${ie("ticker-title-typo",b,f,L,E,k,_,H,C,F,D,U,P,I,$,W,A)}\n\n        ${ie("ticker-content-typo",re,le,se,me,de,ce,pe,ge,ue,he,ye,be,ve,Te,Se,fe)}\n\n        ${Y?"--sb-ticker-title-bg-color: "+Y+";":""}\n        ${X?"--sb-ticker-title-color: "+X+";":""}\n        ${ae?"--sb-ticker-content-bg-color: "+ae+";":""}\n        ${oe?"--sb-ticker-content-color: "+oe+";":""}\n        ${ne?"--sb-ticker-content-hover-color: "+ne+";":""}\n        ${Le?"--sb-nav-normal-bg-color: "+Le+";":""}\n        ${Me?"--sb-nav-icon-normal-color: "+Me+";":""}\n        ${xe?"--sb-nav-hover-bg-color: "+xe+";":""}\n        ${Ee?"--sb-nav-icon-hover-color: "+Ee+";":""}\n    }`;o({sbStyle:Rt.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ft=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==O&&t.push({value:e.slug,label:e.name})})),t}),[O]),Dt={per_page:q,_embed:!0,order:c,orderby:u,offset:parseInt(G||0),exclude:h};Ft&&Ft.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Dt[t]=(a=e.value,y&&y[a]?y[a]:[])}));const Ut=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",O,Dt)),[c,u,y,O,G,Dt,h]),Pt=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",O,{per_page:10,_embed:!0,order:c,orderby:u,offset:parseInt(G||0)})),[c,u,y,O,G,h]);var It=[];return Pt&&Pt.map(((e,t)=>{It.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]),(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},m),b&&"Default"!=b&&(0,i.createElement)(So,{family:b,weight:f.replace("italic","i")}),re&&"Default"!=re&&(0,i.createElement)(So,{family:re,weight:le.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(v,null)),(0,p.__)("Layout","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,p.__)("Style","smart-blocks")),(0,i.createElement)(g.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,p.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Ticker Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(g.TextControl,{label:(0,p.__)("Title","smart-blocks"),value:K,onChange:e=>o({tickerTitle:e})}),(0,i.createElement)(z,{label:(0,p.__)("Autoplay","smart-blocks"),checked:j,onChange:e=>o({autoplay:e})}),j&&(0,i.createElement)(x,{label:(0,p.__)("Ticker Pause Duration","smart-blocks"),value:Z,setValue:e=>o({pause:e}),min:1,max:20})),(0,i.createElement)(Lo,{attributes:a,setAttributes:o,usePostNumber:!0}))||"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:b,setValueFamily:e=>o({tickerTitleTypographyFamily:e}),valueWeight:f,setValueWeight:e=>o({tickerTitleTypographyWeight:e}),valueTextTransform:L,setValueTextTransform:e=>o({tickerTitleTypographyTextTransform:e}),valueTextDecoration:E,setValueTextDecoration:e=>o({tickerTitleTypographyTextDecoration:e}),valueFontSizeSm:k,setValueFontSizeSm:e=>o({tickerTitleTypographyFontSizeSm:e}),valueFontSizeMd:_,setValueFontSizeMd:e=>o({tickerTitleTypographyFontSizeMd:e}),valueFontSize:H,setValueFontSize:e=>o({tickerTitleTypographyFontSize:e}),valueFontSizeUnit:C,setValueFontSizeUnit:e=>o({tickerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:F,setValueLetterSpacingSm:e=>o({tickerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:D,setValueLetterSpacingMd:e=>o({tickerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:U,setValueLetterSpacing:e=>o({tickerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:P,setValueLetterSpacingUnit:e=>o({tickerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:I,setValueLineHeightSm:e=>o({tickerTitleTypographyLineHeightSm:e}),valueLineHeightMd:$,setValueLineHeightMd:e=>o({tickerTitleTypographyLineHeightMd:e}),valueLineHeight:W,setValueLineHeight:e=>o({tickerTitleTypographyLineHeight:e}),valueLineHeightUnit:A,setValueLineHeightUnit:e=>o({tickerTitleTypographyLineHeightUnit:e})}),(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Y,setValue:e=>o({tickerTitleBgColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:X,setValue:e=>o({tickerTitleColor:e})})),(0,i.createElement)(g.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(To,{label:(0,p.__)("Typography","smart-blocks"),valueFamily:re,setValueFamily:e=>o({tickerContentTypographyFamily:e}),valueWeight:le,setValueWeight:e=>o({tickerContentTypographyWeight:e}),valueTextTransform:se,setValueTextTransform:e=>o({tickerContentTypographyTextTransform:e}),valueTextDecoration:me,setValueTextDecoration:e=>o({tickerContentTypographyTextDecoration:e}),valueFontSizeSm:de,setValueFontSizeSm:e=>o({tickerContentTypographyFontSizeSm:e}),valueFontSizeMd:ce,setValueFontSizeMd:e=>o({tickerContentTypographyFontSizeMd:e}),valueFontSize:pe,setValueFontSize:e=>o({tickerContentTypographyFontSize:e}),valueFontSizeUnit:ge,setValueFontSizeUnit:e=>o({tickerContentTypographyFontSizeUnit:e}),valueLetterSpacingSm:ue,setValueLetterSpacingSm:e=>o({tickerContentTypographyLetterSpacingSm:e}),valueLetterSpacingMd:he,setValueLetterSpacingMd:e=>o({tickerContentTypographyLetterSpacingMd:e}),valueLetterSpacing:ye,setValueLetterSpacing:e=>o({tickerContentTypographyLetterSpacing:e}),valueLetterSpacingUnit:be,setValueLetterSpacingUnit:e=>o({tickerContentTypographyLetterSpacingUnit:e}),valueLineHeightSm:ve,setValueLineHeightSm:e=>o({tickerContentTypographyLineHeightSm:e}),valueLineHeightMd:Te,setValueLineHeightMd:e=>o({tickerContentTypographyLineHeightMd:e}),valueLineHeight:Se,setValueLineHeight:e=>o({tickerContentTypographyLineHeight:e}),valueLineHeightUnit:fe,setValueLineHeightUnit:e=>o({tickerContentTypographyLineHeightUnit:e})}),(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ae,setValue:e=>o({tickerContentBgColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color","smart-blocks"),enableAlpha:!0,value:oe,setValue:e=>o({tickerContentColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color (Hover)","smart-blocks"),enableAlpha:!0,value:ne,setValue:e=>o({tickerContentHoverColor:e})})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Navigation","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Le,setValue:e=>o({navNormalBgColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Icon Color","smart-blocks"),enableAlpha:!0,value:Me,setValue:e=>o({navIconNormalColor:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,p.__)("Background Color(Hover)","smart-blocks"),enableAlpha:!0,value:xe,setValue:e=>o({navHoverBgColor:e})}),(0,i.createElement)(B,{label:(0,p.__)("Text Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ee,setValue:e=>o({navIconHoverColor:e})})))))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(M,{label:(0,p.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:we,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Ne,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Be,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Re,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ve,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ke,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Fe,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ce,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_e,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:De,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ze,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:He,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ue,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(M,{label:(0,p.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ze,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ae,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pe,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qe,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Oe,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ie,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ke,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ge,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$e,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ye,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:je,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:We,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xe,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(w,null,(0,i.createElement)("div",{tabTitle:(0,p.__)("Normal","smart-blocks")},(0,i.createElement)(V,{value:Je,setValue:e=>o({borderNormal:e})}),Je&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:et,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:at,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:it,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ot,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:nt,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:rt,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:pt,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gt,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ut,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ht,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yt,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:Lt,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mt,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xt,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Et,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Bt,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:kt,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,p.__)("Hover","smart-blocks")},(0,i.createElement)(V,{value:Qe,setValue:e=>o({borderHover:e})}),Qe&&(0,i.createElement)(B,{label:(0,p.__)("Border Color","smart-blocks"),enableAlpha:!0,value:tt,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(M,{label:(0,p.__)("Border Width","smart-blocks"),dimensionTop:lt,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:st,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mt,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:dt,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ct,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(M,{label:(0,p.__)("Border Radius","smart-blocks"),dimensionTop:bt,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vt,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Tt,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:St,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ft,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(N,{valueHorizontal:_t,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ht,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Nt,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vt,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ct,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:zt,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(g.PanelBody,{title:(0,p.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,p.__)("Background Color","smart-blocks"),enableAlpha:!0,value:wt,setValue:e=>o({blockBgColor:e})})),(0,R.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-ticker"}),K&&(0,i.createElement)("span",{className:"sb-ticker-title"},K),(0,i.createElement)("div",{className:"sb-ticker-posts"},Ut&&(0,i.createElement)(xo(),{items:1,margin:10,loop:!0,mouseDrag:!1,autoplay:!!j,autoplayTimeout:1e3*parseInt(Z),nav:!0,dots:!1,navText:['<i class="mdi-chevron-left"></i>','<i class="mdi-chevron-right"></i>'],className:""},Ut.map(((e,t)=>(0,i.createElement)("a",{href:e.link,key:e.id},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,p.__)("(No title)","smart-blocks")))))))))},save:function(){return null}})})()})();
     1(()=>{var e={184:(e,t)=>{var a;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var r=o.apply(null,a);r&&e.push(r)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var l in a)i.call(a,l)&&a[l]&&e.push(l);else e.push(a.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(a=function(){return o}.apply(t,[]))||(e.exports=a)}()},679:(e,t,a)=>{"use strict";var i=a(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return i.isMemo(e)?r:l[e.$$typeof]||o}l[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[i.Memo]=r;var m=Object.defineProperty,d=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,u=Object.prototype;e.exports=function e(t,a,i){if("string"!=typeof a){if(u){var o=g(a);o&&o!==u&&e(t,o,i)}var r=d(a);c&&(r=r.concat(c(a)));for(var l=s(t),h=s(a),y=0;y<r.length;++y){var b=r[y];if(!(n[b]||i&&i[b]||h&&h[b]||l&&l[b])){var v=p(a,b);try{m(t,b,v)}catch(e){}}}}return t}},103:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,m=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.async_mode"):60111,c=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,g=a?Symbol.for("react.suspense"):60113,u=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,v=a?Symbol.for("react.fundamental"):60117,T=a?Symbol.for("react.responder"):60118,S=a?Symbol.for("react.scope"):60119;function f(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case c:case n:case l:case r:case g:return e;default:switch(e=e&&e.$$typeof){case m:case p:case y:case h:case s:return e;default:return t}}case o:return t}}}function L(e){return f(e)===c}t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=m,t.ContextProvider=s,t.Element=i,t.ForwardRef=p,t.Fragment=n,t.Lazy=y,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=r,t.Suspense=g,t.isAsyncMode=function(e){return L(e)||f(e)===d},t.isConcurrentMode=L,t.isContextConsumer=function(e){return f(e)===m},t.isContextProvider=function(e){return f(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return f(e)===p},t.isFragment=function(e){return f(e)===n},t.isLazy=function(e){return f(e)===y},t.isMemo=function(e){return f(e)===h},t.isPortal=function(e){return f(e)===o},t.isProfiler=function(e){return f(e)===l},t.isStrictMode=function(e){return f(e)===r},t.isSuspense=function(e){return f(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===l||e===r||e===g||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===s||e.$$typeof===m||e.$$typeof===p||e.$$typeof===v||e.$$typeof===T||e.$$typeof===S||e.$$typeof===b)},t.typeOf=f},296:(e,t,a)=>{"use strict";e.exports=a(103)},143:e=>{"use strict";e.exports=function(e,t,a,i,o,n,r,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 m=[a,i,o,n,r,l],d=0;(s=new Error(t.replace(/%s/g,(function(){return m[d++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},703:(e,t,a)=>{"use strict";var i=a(414);function o(){}function n(){}n.resetWarningCache=o,e.exports=function(){function e(e,t,a,o,n,r){if(r!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:o};return a.PropTypes=a,a}},697:(e,t,a)=>{e.exports=a(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},568:function(e,t,a){e.exports=function(e){"use strict";var t="default"in e?e.default:e,a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};var i=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};(function(e,t,a,i){function o(t,a){this.settings=null,this.options=e.extend({},o.Defaults,a),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy((function(t,a){this._handlers[a]=e.proxy(this[a],this)}),this)),e.each(o.Plugins,e.proxy((function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)}),this)),e.each(o.Workers,e.proxy((function(t,a){this._pipe.push({filter:a.filter,run:e.proxy(a.run,this)})}),this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Type={Event:"event",State:"state"},o.Plugins={},o.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",a=!this.settings.autoWidth,i=this.settings.rtl,o={width:"auto","margin-left":i?t:"","margin-right":i?"":t};!a&&this.$stage.children().css(o),e.css=o}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,a=null,i=this._items.length,o=!this.settings.autoWidth,n=[];for(e.items={merge:!1,width:t};i--;)a=this._mergers[i],a=this.settings.mergeFit&&Math.min(a,this.settings.items)||a,e.items.merge=a>1||e.items.merge,n[i]=o?t*a:this._items[i].width();this._widths=n}},{filter:["items","settings"],run:function(){var t=[],a=this._items,i=this.settings,o=Math.max(2*i.items,4),n=2*Math.ceil(a.length/2),r=i.loop&&a.length?i.rewind?o:Math.max(o,n):0,l="",s="";for(r/=2;r>0;)t.push(this.normalize(t.length/2,!0)),l+=a[t[t.length-1]][0].outerHTML,t.push(this.normalize(a.length-1-(t.length-1)/2,!0)),s=a[t[t.length-1]][0].outerHTML+s,r-=1;this._clones=t,e(l).addClass("cloned").appendTo(this.$stage),e(s).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,a=-1,i=0,o=0,n=[];++a<t;)i=n[a-1]||0,o=this._widths[this.relative(a)]+this.settings.margin,n.push(i+o*e);this._coordinates=n}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,a={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(a)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,a=!this.settings.autoWidth,i=this.$stage.children();if(a&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],i.eq(t).css(e.css);else a&&(e.css.width=e.items.width,i.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,a,i,o=this.settings.rtl?1:-1,n=2*this.settings.stagePadding,r=this.coordinates(this.current())+n,l=r+this.width()*o,s=[];for(a=0,i=this._coordinates.length;a<i;a++)e=this._coordinates[a-1]||0,t=Math.abs(this._coordinates[a])+n*o,(this.op(e,"<=",r)&&this.op(e,">",l)||this.op(t,"<",r)&&this.op(t,">",l))&&s.push(a);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+s.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],o.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},o.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map((function(t){return e(t)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},o.prototype.initialize=function(){var e,t,a;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:i,a=this.$element.children(t).width(),e.length&&a<=0&&this.preloadAutoWidthImages(e)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},o.prototype.setup=function(){var t=this.viewport(),a=this.options.responsive,i=-1,o=null;a?(e.each(a,(function(e){e<=t&&e>i&&(i=Number(e))})),"function"==typeof(o=e.extend({},this.options,a[i])).stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):o=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=i,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(t){var a=this.trigger("prepare",{content:t});return a.data||(a.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:a.data}),a.data},o.prototype.update=function(){for(var t=0,a=this._pipe.length,i=e.proxy((function(e){return this[e]}),this._invalidated),o={};t<a;)(this._invalidated.all||e.grep(this._pipe[t].filter,i).length>0)&&this._pipe[t].run(o),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},o.prototype.width=function(e){switch(e=e||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},o.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},o.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(t){var i=null;3!==t.which&&(e.support.transform?i={x:(i=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===i.length?12:4],y:i[16===i.length?13:5]}:(i=this.$stage.position(),i={x:this.settings.rtl?i.left+this.$stage.width()-this.width()+this.settings.margin:i.left,y:i.top}),this.is("animating")&&(e.support.transform?this.animate(i.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=i,this._drag.stage.current=i,this._drag.pointer=this.pointer(t),e(a).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(a).one("mousemove.owl.core touchmove.owl.core",e.proxy((function(t){var i=this.difference(this._drag.pointer,this.pointer(t));e(a).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(i.x)<Math.abs(i.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},o.prototype.onDragMove=function(e){var t=null,a=null,i=null,o=this.difference(this._drag.pointer,this.pointer(e)),n=this.difference(this._drag.stage.start,o);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),a=this.coordinates(this.maximum()+1)-t,n.x=((n.x-t)%a+a)%a+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),a=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),i=this.settings.pullDrag?-1*o.x/5:0,n.x=Math.max(Math.min(n.x,t+i),a+i)),this._drag.stage.current=n,this.animate(n.x))},o.prototype.onDragEnd=function(t){var i=this.difference(this._drag.pointer,this.pointer(t)),o=this._drag.stage.current,n=i.x>0^this.settings.rtl?"left":"right";e(a).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==i.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(o.x,0!==i.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,(Math.abs(i.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},o.prototype.closest=function(t,a){var o=-1,n=this.width(),r=this.coordinates();return this.settings.freeDrag||e.each(r,e.proxy((function(e,l){return"left"===a&&t>l-30&&t<l+30?o=e:"right"===a&&t>l-n-30&&t<l-n+30?o=e+1:this.op(t,"<",l)&&this.op(t,">",r[e+1]!==i?r[e+1]:l-n)&&(o="left"===a?e+1:e),-1===o}),this)),this.settings.loop||(this.op(t,">",r[this.minimum()])?o=t=this.minimum():this.op(t,"<",r[this.maximum()])&&(o=t=this.maximum())),o},o.prototype.animate=function(t){var a=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),a&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):a?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},o.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},o.prototype.current=function(e){if(e===i)return this._current;if(0===this._items.length)return i;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==i&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},o.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,(function(e,t){return t}))},o.prototype.reset=function(e){(e=this.normalize(e))!==i&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},o.prototype.normalize=function(e,t){var a=this._items.length,o=t?0:this._clones.length;return!this.isNumeric(e)||a<1?e=i:(e<0||e>=a+o)&&(e=((e-o/2)%a+a)%a+o/2),e},o.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},o.prototype.maximum=function(e){var t,a,i,o=this.settings,n=this._coordinates.length;if(o.loop)n=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){if(t=this._items.length)for(a=this._items[--t].width(),i=this.$element.width();t--&&!((a+=this._items[t].width()+this.settings.margin)>i););n=t+1}else n=o.center?this._items.length-1:this._items.length-o.items;return e&&(n-=this._clones.length/2),Math.max(n,0)},o.prototype.minimum=function(e){return e?0:this._clones.length/2},o.prototype.items=function(e){return e===i?this._items.slice():(e=this.normalize(e,!0),this._items[e])},o.prototype.mergers=function(e){return e===i?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},o.prototype.clones=function(t){var a=this._clones.length/2,o=a+this._items.length,n=function(e){return e%2==0?o+e/2:a-(e+1)/2};return t===i?e.map(this._clones,(function(e,t){return n(t)})):e.map(this._clones,(function(e,a){return e===t?n(a):null}))},o.prototype.speed=function(e){return e!==i&&(this._speed=e),this._speed},o.prototype.coordinates=function(t){var a,o=1,n=t-1;return t===i?e.map(this._coordinates,e.proxy((function(e,t){return this.coordinates(t)}),this)):(this.settings.center?(this.settings.rtl&&(o=-1,n=t+1),a=this._coordinates[t],a+=(this.width()-a+(this._coordinates[n]||0))/2*o):a=this._coordinates[n]||0,a=Math.ceil(a))},o.prototype.duration=function(e,t,a){return 0===a?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(a||this.settings.smartSpeed)},o.prototype.to=function(e,t){var a=this.current(),i=null,o=e-this.relative(a),n=(o>0)-(o<0),r=this._items.length,l=this.minimum(),s=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>r/2&&(o+=-1*n*r),(i=(((e=a+o)-l)%r+r)%r+l)!==e&&i-o<=s&&i-o>0&&(a=i-o,e=i,this.reset(a))):e=this.settings.rewind?(e%(s+=1)+s)%s:Math.max(l,Math.min(s,e)),this.speed(this.duration(a,e,t)),this.current(e),this.isVisible()&&this.update()},o.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},o.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},o.prototype.onTransitionEnd=function(e){if(e!==i&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},o.prototype.viewport=function(){var i;return this.options.responsiveBaseElement!==t?i=e(this.options.responsiveBaseElement).width():t.innerWidth?i=t.innerWidth:a.documentElement&&a.documentElement.clientWidth?i=a.documentElement.clientWidth:console.warn("Can not detect viewport width."),i},o.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter((function(){return 1===this.nodeType})).each(e.proxy((function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(t,a){var o=this.relative(this._current);a=a===i?this._items.length:this.normalize(a,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:a}),t=this.prepare(t),0===this._items.length||a===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[a-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[a].before(t),this._items.splice(a,0,t),this._mergers.splice(a,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[o]&&this.reset(this._items[o].index()),this.invalidate("items"),this.trigger("added",{content:t,position:a})},o.prototype.remove=function(e){(e=this.normalize(e,!0))!==i&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},o.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy((function(t,a){this.enter("pre-loading"),a=e(a),e(new Image).one("load",e.proxy((function(e){a.attr("src",e.target.src),a.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",a.attr("src")||a.attr("data-src")||a.attr("data-src-retina"))}),this))},o.prototype.destroy=function(){for(var i in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(a).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},o.prototype.op=function(e,t,a){var i=this.settings.rtl;switch(t){case"<":return i?e>a:e<a;case">":return i?e<a:e>a;case">=":return i?e<=a:e>=a;case"<=":return i?e>=a:e<=a}},o.prototype.on=function(e,t,a,i){e.addEventListener?e.addEventListener(t,a,i):e.attachEvent&&e.attachEvent("on"+t,a)},o.prototype.off=function(e,t,a,i){e.removeEventListener?e.removeEventListener(t,a,i):e.detachEvent&&e.detachEvent("on"+t,a)},o.prototype.trigger=function(t,a,i,n,r){var l={item:{count:this._items.length,index:this.current()}},s=e.camelCase(e.grep(["on",t,i],(function(e){return e})).join("-").toLowerCase()),m=e.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},l,a));return this._supress[t]||(e.each(this._plugins,(function(e,t){t.onTrigger&&t.onTrigger(m)})),this.register({type:o.Type.Event,name:t}),this.$element.trigger(m),this.settings&&"function"==typeof this.settings[s]&&this.settings[s].call(this,m)),m},o.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]===i&&(this._states.current[t]=0),this._states.current[t]++}),this))},o.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]--}),this))},o.prototype.register=function(t){if(t.type===o.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var a=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!a||!a.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:a.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===o.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy((function(a,i){return e.inArray(a,this._states.tags[t.name])===i}),this)))},o.prototype.suppress=function(t){e.each(t,e.proxy((function(e,t){this._supress[t]=!0}),this))},o.prototype.release=function(t){e.each(t,e.proxy((function(e,t){delete this._supress[t]}),this))},o.prototype.pointer=function(e){var a={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(a.x=e.pageX,a.y=e.pageY):(a.x=e.clientX,a.y=e.clientY),a},o.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},o.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var a=Array.prototype.slice.call(arguments,1);return this.each((function(){var i=e(this),n=i.data("owl.carousel");n||(n=new o(this,"object"==typeof t&&t),i.data("owl.carousel",n),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(t,a){n.register({type:o.Type.Event,name:a}),n.$element.on(a+".owl.carousel.core",e.proxy((function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([a]),n[a].apply(this,[].slice.call(arguments,1)),this.release([a]))}),n))}))),"string"==typeof t&&"_"!==t.charAt(0)&&n[t].apply(n,a)}))},e.fn.owlCarousel.Constructor=o})(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var e,a;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(a in Object.getOwnPropertyNames(this))"function"!=typeof this[a]&&(this[a]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy((function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var a=this._core.settings,i=a.center&&Math.ceil(a.items/2)||a.items,o=a.center&&-1*i||0,n=(t.property&&undefined!==t.property.value?t.property.value:this._core.current())+o,r=this._core.clones().length,l=e.proxy((function(e,t){this.load(t)}),this);for(a.lazyLoadEager>0&&(i+=a.lazyLoadEager,a.loop&&(n-=a.lazyLoadEager,i++));o++<i;)this.load(r/2+this._core.relative(n)),r&&e.each(this._core.clones(this._core.relative(n)),l),n++}}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1,lazyLoadEager:0},o.prototype.load=function(a){var i=this._core.$stage.children().eq(a),o=i&&i.find(".owl-lazy");!o||e.inArray(i.get(0),this._loaded)>-1||(o.each(e.proxy((function(a,i){var o,n=e(i),r=t.devicePixelRatio>1&&n.attr("data-src-retina")||n.attr("data-src")||n.attr("data-srcset");this._core.trigger("load",{element:n,url:r},"lazy"),n.is("img")?n.one("load.owl.lazy",e.proxy((function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:r},"lazy")}),this)).attr("src",r):n.is("source")?n.one("load.owl.lazy",e.proxy((function(){this._core.trigger("loaded",{element:n,url:r},"lazy")}),this)).attr("srcset",r):((o=new Image).onload=e.proxy((function(){n.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:n,url:r},"lazy")}),this),o.src=r)}),this)),this._loaded.push(i.get(0)))},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(a){this._core=a,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()}),this),"loaded.owl.lazy":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var i=this;e(t).on("load",(function(){i._core.settings.autoHeight&&i.update()})),e(t).resize((function(){i._core.settings.autoHeight&&(null!=i._intervalId&&clearTimeout(i._intervalId),i._intervalId=setTimeout((function(){i.update()}),250))}))};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,a=t+this._core.settings.items,i=this._core.settings.lazyLoad,o=this._core.$stage.children().toArray().slice(t,a),n=[],r=0;e.each(o,(function(t,a){n.push(e(a).height())})),(r=Math.max.apply(null,n))<=1&&i&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var a=e(t.content).find(".owl-video");a.length&&(a.css("display","none"),this.fetch(a,e(t.content)))}}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy((function(e){this.play(e)}),this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(e,t){var a=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",i=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),o=e.attr("data-width")||this._core.settings.videoWidth,n=e.attr("data-height")||this._core.settings.videoHeight,r=e.attr("href");if(!r)throw new Error("Missing video URL.");if((i=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)a="youtube";else if(i[3].indexOf("vimeo")>-1)a="vimeo";else{if(!(i[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");a="vzaar"}i=i[6],this._videos[r]={type:a,id:i,width:o,height:n},t.attr("data-video",r),this.thumbnail(e,this._videos[r])},o.prototype.thumbnail=function(t,a){var i,o,n=a.width&&a.height?"width:"+a.width+"px;height:"+a.height+"px;":"",r=t.find("img"),l="src",s="",m=this._core.settings,d=function(a){'<div class="owl-video-play-icon"></div>',i=m.lazyLoad?e("<div/>",{class:"owl-video-tn "+s,srcType:a}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+a+")"}),t.after(i),t.after('<div class="owl-video-play-icon"></div>')};if(t.wrap(e("<div/>",{class:"owl-video-wrapper",style:n})),this._core.settings.lazyLoad&&(l="data-src",s="owl-lazy"),r.length)return d(r.attr(l)),r.remove(),!1;"youtube"===a.type?(o="//img.youtube.com/vi/"+a.id+"/hqdefault.jpg",d(o)):"vimeo"===a.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+a.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e[0].thumbnail_large,d(o)}}):"vzaar"===a.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+a.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e.framegrab_url,d(o)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(t){var a,i=e(t.target).closest("."+this._core.settings.itemClass),o=this._videos[i.attr("data-video")],n=o.width||"100%",r=o.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(a=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),a.attr("width",n),"youtube"===o.type?a.attr("src","//www.youtube.com/embed/"+o.id+"?autoplay=1&rel=0&v="+o.id):"vimeo"===o.type?a.attr("src","//player.vimeo.com/video/"+o.id+"?autoplay=1"):"vzaar"===o.type&&a.attr("src","//view.vzaar.com/"+o.id+"/player?autoplay=true"),e(a).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=a.fullscreenElement||a.mozFullScreenElement||a.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=i,this.next=i,this.handlers={"change.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy((function(e){e.namespace&&(this.swapping="translated"==e.type)}),this),"translate.owl.carousel":e.proxy((function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,a=e.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(e.support.animation.end,a).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(r)),n&&o.one(e.support.animation.end,a).addClass("animated owl-animated-in").addClass(n))}},o.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy((function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":e.proxy((function(e,t,a){e.namespace&&this.play(t,a)}),this),"stop.owl.autoplay":e.proxy((function(e){e.namespace&&this.stop()}),this),"mouseover.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},o.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype._next=function(i){this._call=t.setTimeout(e.proxy(this._next,this,i),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||a.hidden||this._core.next(i||this._core.settings.autoplaySpeed)},o.prototype.read=function(){return(new Date).getTime()-this._time},o.prototype.play=function(a,i){var o;this._core.is("rotating")||this._core.enter("rotating"),a=a||this._core.settings.autoplayTimeout,o=Math.min(this._time%(this._timeout||a),a),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%a-o,this._timeout=a,this._call=t.setTimeout(e.proxy(this._next,this,i),a-o)},o.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},o.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())}),this),"remove.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&this.draw()}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},o.prototype.initialize=function(){var t,a=this._core.settings;for(t in this._controls.$relative=(a.navContainer?e(a.navContainer):e("<div>").addClass(a.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+a.navElement+">").addClass(a.navClass[0]).html(a.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy((function(e){this.prev(a.navSpeed)}),this)),this._controls.$next=e("<"+a.navElement+">").addClass(a.navClass[1]).html(a.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy((function(e){this.next(a.navSpeed)}),this)),a.dotsData||(this._templates=[e('<button role="button">').addClass(a.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(a.dotsContainer?e(a.dotsContainer):e("<div>").addClass(a.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy((function(t){var i=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(i,a.dotsSpeed)}),this)),this._overrides)this._core[t]=e.proxy(this[t],this)},o.prototype.destroy=function(){var e,t,a,i,o;for(e in o=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&o.navContainer?this._controls[t].html(""):this._controls[t].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(a in Object.getOwnPropertyNames(this))"function"!=typeof this[a]&&(this[a]=null)},o.prototype.update=function(){var e,t,a=this._core.clones().length/2,i=a+this._core.items().length,o=this._core.maximum(!0),n=this._core.settings,r=n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],e=a,t=0;e<i;e++){if(t>=r||0===t){if(this._pages.push({start:Math.min(o,e-a),end:e-a+r-1}),Math.min(o,e-a)===o)break;t=0}t+=this._core.mergers(this._core.relative(e))}},o.prototype.draw=function(){var t,a=this._core.settings,i=this._core.items().length<=a.items,o=this._core.relative(this._core.current()),n=a.loop||a.rewind;this._controls.$relative.toggleClass("disabled",!a.nav||i),a.nav&&(this._controls.$previous.toggleClass("disabled",!n&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!n&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!a.dots||i),a.dots&&(t=this._pages.length-this._controls.$absolute.children().length,a.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},o.prototype.onTrigger=function(t){var a=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:a&&(a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy((function(e,a){return e.start<=t&&e.end>=t}),this)).pop()},o.prototype.getPosition=function(t){var a,i,o=this._core.settings;return"page"==o.slideBy?(a=e.inArray(this.current(),this._pages),i=this._pages.length,t?++a:--a,a=this._pages[(a%i+i)%i].start):(a=this._core.relative(this._core.current()),i=this._core.items().length,t?a+=o.slideBy:a-=o.slideBy),a},o.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},o.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},o.prototype.to=function(t,a,i){var o;!i&&this._pages.length?(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,a)):e.proxy(this._overrides.to,this._core)(t,a)},e.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=function(a){this._core=a,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy((function(a){a.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var a=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!a)return;this._hashes[a]=t.content}}),this),"changed.owl.carousel":e.proxy((function(a){if(a.namespace&&"position"===a.property.name){var i=this._core.items(this._core.relative(this._core.current())),o=e.map(this._hashes,(function(e,t){return e===i?t:null})).join();if(!o||t.location.hash.slice(1)===o)return;t.location.hash=o}}),this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy((function(e){var a=t.location.hash.substring(1),i=this._core.$stage.children(),o=this._hashes[a]&&i.index(this._hashes[a]);undefined!==o&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)}),this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var a,i;for(a in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(a,this._handlers[a]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(e,t,a,i){var o=e("<support>").get(0).style,n="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},l=function(){return!!d("transform")},s=function(){return!!d("perspective")},m=function(){return!!d("animation")};function d(t,a){var i=!1,r=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+n.join(r+" ")+r).split(" "),(function(e,t){if(undefined!==o[t])return i=!a||t,!1})),i}function c(e){return d(e,!0)}(function(){return!!d("transition")})()&&(e.support.transition=new String(c("transition")),e.support.transition.end=r.transition.end[e.support.transition]),m()&&(e.support.animation=new String(c("animation")),e.support.animation.end=r.animation.end[e.support.animation]),l()&&(e.support.transform=new String(c("transform")),e.support.transform3d=s())}(window.Zepto||window.jQuery,window,document);var o=window.jQuery,n=function(e){function n(t){var a=e.call(this,t)||this;a.containerRef=function(e){a.container=e};var i=l(a.props),o=i[0],n=i[1];return a.options=o,a.propsWithoutOptions=n,a}return function(e,t){function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}(n,e),n.prototype.componentDidMount=function(){this.$ele=o(this.container),this.create()},n.prototype.UNSAFE_componentWillReceiveProps=function(){this.destory()},n.prototype.componentDidUpdate=function(){var e=l(this.props),t=e[0],a=e[1];this.options=t,this.propsWithoutOptions=a,this.create()},n.prototype.next=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e?this.$ele.trigger("next.owl.carousel",[e]):this.$ele.trigger("next.owl.carousel",e)},n.prototype.prev=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e?this.$ele.trigger("prev.owl.carousel",[e]):this.$ele.trigger("prev.owl.carousel",e)},n.prototype.to=function(e,t){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e&&"number"==typeof t?this.$ele.trigger("to.owl.carousel",[e,t]):this.$ele.trigger("to.owl.carousel")},n.prototype.create=function(e){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.owlCarousel(e||this.options)},n.prototype.destory=function(){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.trigger("destroy.owl.carousel")},n.prototype.play=function(e,t){if(!this.$ele)throw new Error("OwlCarousel is not created");"number"==typeof e&&"number"==typeof t?this.$ele.trigger("play.owl.autoplay",[e,t]):this.$ele.trigger("play.owl.autoplay")},n.prototype.stop=function(){if(!this.$ele)throw new Error("OwlCarousel is not created");this.$ele.trigger("stop.owl.autoplay")},n.prototype.render=function(){var e=this.propsWithoutOptions,a=e.className,o=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&(a[i[o]]=e[i[o]])}return a}(e,["className"]);return t.createElement("div",i({className:"owl-carousel "+a,ref:this.containerRef},o))},n}(e.Component),r=new Set(["items","margin","loop","center","mouseDrag","touchDrag","pullDrag","freeDrag","stagePadding","merge","mergeFit","autoWidth","startPosition","URLhashListener","nav","rewind","navText","navElement","slideBy","dots","dotsEach","dotData","lazyLoad","lazyContent","autoplay","autoplayTimeout","autoplayHoverPause","smartSpeed","fluidSpeed","autoplaySpeed","navSpeed","dotsSpeed","dragEndSpeed","callbacks","responsive","responsiveRefreshRate","responsiveBaseElement","video","videoHeight","videoWidth","animateOut","animateIn","fallbackEasing","info","nestedItemSelector","itemElement","stageElement","navContainer","dotsContainer","refreshClass","loadingClass","loadedClass","rtlClass","dragClass","grabClass","stageClass","stageOuterClass","navContainerClass","navClass","controlsClass","dotClass","dotsClass","autoHeightClass","responsiveClass","onInitialize","onInitialized","onResize","onResized","onRefresh","onRefreshed","onDrag","onDragged","onTranslate","onTranslated","onChange","onChanged","onLoadLazy","onLoadedLazy","onStopVideo","onPlayVideo"]);function l(e){var t={},a={};return Object.keys(e).forEach((function(i){r.has(i)?t[i]=e[i]:a[i]=e[i]})),[t,a]}return n}(a(196))},196:e=>{"use strict";e.exports=window.React}},t={};function a(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.data,t={viewType:"Desktop"};(0,e.registerStore)("smart-blocks/data",{reducer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===a.type?{viewType:a.viewType}:e},selectors:{getView:e=>e.viewType},actions:{updateView:e=>({type:"UPDATE_VIEW",viewType:e})}});const i=window.wp.element,o=window.wp.blocks,n={id:{type:"string"},sbStyle:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsMarginSmTop:{type:"string"},columnsMarginSmLeft:{type:"string"},columnsMarginSmRight:{type:"string"},columnsMarginSmBottom:{type:"string"},columnsMarginMdTop:{type:"string"},columnsMarginMdLeft:{type:"string"},columnsMarginMdRight:{type:"string"},columnsMarginMdBottom:{type:"string"},columnsMarginTop:{type:"string"},columnsMarginLeft:{type:"string"},columnsMarginRight:{type:"string"},columnsMarginBottom:{type:"string"},columnsMarginUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsPaddingSmTop:{type:"string"},columnsPaddingSmLeft:{type:"string"},columnsPaddingSmRight:{type:"string"},columnsPaddingSmBottom:{type:"string"},columnsPaddingMdTop:{type:"string"},columnsPaddingMdLeft:{type:"string"},columnsPaddingMdRight:{type:"string"},columnsPaddingMdBottom:{type:"string"},columnsPaddingTop:{type:"string"},columnsPaddingLeft:{type:"string"},columnsPaddingRight:{type:"string"},columnsPaddingBottom:{type:"string"},columnsPaddingUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsWidthSm:{type:"string",default:1170},columnsWidthMd:{type:"string"},columnsWidth:{type:"string"},columnsWidthUnit:{type:"string",enum:["px","em","%","vw"],default:"px"},horizontalAlign:{type:"string"},horizontalAlignSm:{type:"string"},horizontalAlignMd:{type:"string"},columnAlignment:{type:"string"},columnAlignmentSm:{type:"string"},columnAlignmentMd:{type:"string"},columnsHeight:{type:"string"},columnsHeightSm:{type:"string"},columnsHeightMd:{type:"string"},columnsHeightUnit:{type:"string",enum:["px","em","%","vh"],default:"px"},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"},borderNormal:{type:"string"},borderHover:{type:"string"},borderNormalColor:{type:"string"},borderHoverColor:{type:"string"},sectionBgColor:{type:"string"},borderNormalWidthTop:{type:"string"},borderNormalWidthLeft:{type:"string"},borderNormalWidthRight:{type:"string"},borderNormalWidthBottom:{type:"string"},borderNormalWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverWidthTop:{type:"string"},borderHoverWidthLeft:{type:"string"},borderHoverWidthRight:{type:"string"},borderHoverWidthBottom:{type:"string"},borderHoverWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalRadiusTop:{type:"string"},borderNormalRadiusLeft:{type:"string"},borderNormalRadiusRight:{type:"string"},borderNormalRadiusBottom:{type:"string"},borderNormalRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverRadiusTop:{type:"string"},borderHoverRadiusLeft:{type:"string"},borderHoverRadiusRight:{type:"string"},borderHoverRadiusBottom:{type:"string"},borderHoverRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalBoxShadowHorizontal:{type:"string"},borderNormalBoxShadowVertical:{type:"string"},borderNormalBoxShadowBlur:{type:"string"},borderNormalBoxShadowSpread:{type:"string"},borderNormalBoxShadowColor:{type:"string"},borderNormalBoxShadowInset:{type:"string"},borderHoverBoxShadowHorizontal:{type:"string"},borderHoverBoxShadowVertical:{type:"string"},borderHoverBoxShadowBlur:{type:"string"},borderHoverBoxShadowSpread:{type:"string"},borderHoverBoxShadowColor:{type:"string"},borderHoverBoxShadowInset:{type:"string"},sectionBgType:{type:"string",default:"imageOrColor",enum:["imageOrColor","gradient"]},sectionBgImgURL:{type:"string"},sectionBgImageID:{type:"string"},sectionBgAttachment:{type:"string",default:"scroll"},sectionBgSize:{type:"string",default:"auto"},sectionBgPositionX:{type:"number",default:"0.5"},sectionBgPositionY:{type:"number",default:"0.5"},sectionBgRepeat:{type:"string",default:"repeat"},sectionBgGradient:{type:"string"},sectionBgOverlayColor:{type:"string"},sectionContentWidth:{type:"string",default:"boxed",enum:["full","boxed"]},columnsGapRow:{type:"string"},columnsGapSmRow:{type:"string"},columnsGapMdRow:{type:"string"},columnsGapColumn:{type:"string"},columnsGapSmColumn:{type:"string",default:20},columnsGapMdColumn:{type:"string"},columnsGapUnit:{type:"string",enum:["px","em","%"],default:"px"}};var r=a(184),l=a.n(r);const s=window.lodash,m=window.wp.compose,d=window.wp.blockEditor,c=window.wp.hooks,p={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}},g=window.wp.i18n,u=window.wp.components,h=()=>(0,i.createElement)("svg",{className:"fa-desktop","aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"desktop",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512","data-fa-i2svg":""},(0,i.createElement)("path",{fill:"currentColor",d:"M528 0H48C21.5 0 0 21.5 0 48v288c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-6 336H54c-3.3 0-6-2.7-6-6V54c0-3.3 2.7-6 6-6h468c3.3 0 6 2.7 6 6v276c0 3.3-2.7 6-6 6zm-42 152c0 13.3-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h98.7l18.6-55.8c1.6-4.9 6.2-8.2 11.4-8.2h78.7c5.2 0 9.8 3.3 11.4 8.2l18.6 55.8H456c13.3 0 24 10.7 24 24z"})),y=()=>(0,i.createElement)("svg",{className:"fa-tablet-alt","aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"tablet-alt",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","data-fa-i2svg":""},(0,i.createElement)("path",{fill:"currentColor",d:"M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"})),b=()=>(0,i.createElement)("svg",{className:"fa-mobile-alt","aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"mobile-alt",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""},(0,i.createElement)("path",{fill:"currentColor",d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"})),v=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11.126",height:"13.984",viewBox:"0 0 14.126 16.984"},(0,i.createElement)("path",{d:"M8.6,0V1.47A7.051,7.051,0,0,0,4.188,13.412l1.776-1.592A4.681,4.681,0,0,1,8.6,3.858V5.226l4.185-2.613Zm5.716,3.572L12.558,5.165A4.681,4.681,0,0,1,9.9,13.105V11.758L5.719,14.371,9.9,16.984v-1.47A7.051,7.051,0,0,0,14.313,3.572Z",transform:"translate(-2.188)",fill:"#888"})),T=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18.7",height:"17",viewBox:"0 0 18.7 17"},(0,i.createElement)("g",{transform:"translate(-205 -216)"},(0,i.createElement)("g",{transform:"translate(189 182)"},(0,i.createElement)("path",{d:"M16,54h7.932V64.577H16Z",transform:"translate(0 -13.577)"}),(0,i.createElement)("path",{d:"M16,34h7.932v5.288H16Z",transform:"translate(0 0)"}),(0,i.createElement)("path",{d:"M44,34h9.255V51H44Z",transform:"translate(-18.555 0)"})))),S=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16.538",height:"17",viewBox:"0 0 16.538 17"},(0,i.createElement)("g",{transform:"translate(-0.268)"},(0,i.createElement)("g",{transform:"translate(0.268)"},(0,i.createElement)("line",{stroke:"#449fdb",strokeWidth:"1"}),(0,i.createElement)("path",{d:"M15.268,35.672a6.135,6.135,0,0,0,1.35,2.549c.034.04.073.076.108.115l6.942-6.942-2.061-2.062Z",transform:"translate(-13.248 -25.057)"})),(0,i.createElement)("path",{d:"M35.764,47.016l-6.94,6.941a5.234,5.234,0,0,0,2.768,1.352l6.233-6.232Z",transform:"translate(-24.829 -40.164)"}),(0,i.createElement)("path",{d:"M78.833,5.847,76.772,3.785a2.112,2.112,0,0,0-2.865.289l-1,1L77.545,9.71l1-1a2.518,2.518,0,0,0,.734-1.445A1.669,1.669,0,0,0,78.833,5.847Z",transform:"translate(-62.488 -2.858)"}),(0,i.createElement)("path",{d:"M5.82,80.026a7.083,7.083,0,0,1-1.348-2.314l-1.19,5.229a.366.366,0,0,0,.355.446.351.351,0,0,0,.081-.01l5.337-1.214c.01,0,.017-.012.028-.015A6.58,6.58,0,0,1,5.82,80.026Z",transform:"translate(-3.001 -66.387)"}),(0,i.createElement)("path",{d:"M68.206,23.379l-1.03,1.031-4.638-4.637,1.03-1.031Z",transform:"translate(-53.629 -16.011)"}))),f=()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17"},(0,i.createElement)("g",{transform:"translate(0.284)"},(0,i.createElement)("g",{transform:"translate(-0.284)"},(0,i.createElement)("line",{stroke:"#449fdb",strokeWidth:"1"})),(0,i.createElement)("path",{d:"M36.617,32.5a4.113,4.113,0,1,0,4.113,4.113A4.118,4.118,0,0,0,36.617,32.5Zm0,6.731a2.618,2.618,0,1,1,2.618-2.618,2.621,2.621,0,0,1-2.618,2.618Z",transform:"translate(-27.864 -27.779)"}),(0,i.createElement)("path",{d:"M20.089,14.537a1.837,1.837,0,0,1,0-3.625.357.357,0,0,0,.25-.162.375.375,0,0,0,.046-.3,8.646,8.646,0,0,0-.751-1.877.358.358,0,0,0-.239-.179.347.347,0,0,0-.289.067A1.783,1.783,0,0,1,16.774,8.3,1.885,1.885,0,0,1,16.619,5.9a.38.38,0,0,0,.063-.3.361.361,0,0,0-.174-.246,8.013,8.013,0,0,0-1.82-.774.353.353,0,0,0-.292.047.368.368,0,0,0-.157.257,1.768,1.768,0,0,1-3.517,0,.37.37,0,0,0-.157-.257.352.352,0,0,0-.292-.047,8.03,8.03,0,0,0-1.819.774.365.365,0,0,0-.175.246.383.383,0,0,0,.064.3A1.884,1.884,0,0,1,8.189,8.3a1.785,1.785,0,0,1-2.333.159.349.349,0,0,0-.289-.067.355.355,0,0,0-.238.179,8.591,8.591,0,0,0-.752,1.877.38.38,0,0,0,.046.3.355.355,0,0,0,.25.162,1.837,1.837,0,0,1,0,3.625.352.352,0,0,0-.249.162.374.374,0,0,0-.045.3,8.643,8.643,0,0,0,.751,1.876.364.364,0,0,0,.238.18.355.355,0,0,0,.289-.067,1.781,1.781,0,0,1,2.333.159,1.883,1.883,0,0,1,.154,2.4.383.383,0,0,0-.064.3.365.365,0,0,0,.174.246,7.993,7.993,0,0,0,1.821.774.346.346,0,0,0,.292-.047.37.37,0,0,0,.157-.257,1.768,1.768,0,0,1,3.517,0,.368.368,0,0,0,.157.257.348.348,0,0,0,.292.047A8.035,8.035,0,0,0,16.51,20.1a.368.368,0,0,0,.174-.246.383.383,0,0,0-.064-.3,1.883,1.883,0,0,1,.154-2.4,1.782,1.782,0,0,1,2.333-.159.354.354,0,0,0,.289.067.363.363,0,0,0,.239-.18A8.555,8.555,0,0,0,20.386,15a.373.373,0,0,0-.046-.3.356.356,0,0,0-.251-.163Zm-7.607,2.97A4.719,4.719,0,0,1,7.84,12.724a4.719,4.719,0,0,1,4.641-4.783,4.72,4.72,0,0,1,4.641,4.783,4.72,4.72,0,0,1-4.641,4.783Z",transform:"translate(-3.683 -3.883)"}),(0,i.createElement)("path",{d:"M51.243,49.366a1.87,1.87,0,1,1-1.87-1.87A1.87,1.87,0,0,1,51.243,49.366Z",transform:"translate(-40.606 -40.532)"}))),L=t=>{let{label:a,className:o,children:n}=t;const r=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()})),{updateView:l}=(0,e.useDispatch)("smart-blocks/data"),{__experimentalSetPreviewDeviceType:s}=!!(0,e.useDispatch)("core/edit-post")&&(0,e.useDispatch)("core/edit-post"),m=s||l;return(0,i.createElement)("div",{className:"sb-device active-md"},(0,i.createElement)("button",{title:(0,g.__)("Desktop","smart-blocks"),className:"sb-device-desktop "+("Desktop"===r?" active":""),onClick:()=>{m("Desktop")}},(0,i.createElement)(h,null)),(0,i.createElement)("button",{title:(0,g.__)("Tablet","smart-blocks"),className:"sb-device-tablet "+("Tablet"===r?" active":""),onClick:()=>{m("Tablet")}},(0,i.createElement)(y,null)),(0,i.createElement)("button",{title:(0,g.__)("Phone","smart-blocks"),className:"sb-device-mobile "+("Mobile"===r?" active":""),onClick:()=>{m("Mobile")}},(0,i.createElement)(b,null)))},M=t=>{let{label:a,onClick:o,layout:n,layoutTablet:r,layoutMobile:s,columns:m}=t;const d=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]);let c;return"Desktop"===d?c=n:"Tablet"===d?c=r:"Mobile"===d&&(c=s),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field"},(0,i.createElement)("div",{className:"sb-label"},a&&(0,i.createElement)("label",{htmlFor:"input"},a),(0,i.createElement)(L,null)),(0,i.createElement)("div",{className:"sb-blocks-columns-layout-control"},1===m&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Single Row","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}))))||2===m&&(0,i.createElement)(i.Fragment,null,("Desktop"==d||"equal"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneTwo"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("1:2","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"oneTwo"===c}),onClick:()=>o("oneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"twoOne"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("2:1","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"twoOne"===c}),onClick:()=>o("twoOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))))||3===m&&(0,i.createElement)(i.Fragment,null,("Desktop"==d||"equal"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneOneTwo"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("1:1:2","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"oneOneTwo"===c}),onClick:()=>o("oneOneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"twoOneOne"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("2:1:1","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"twoOneOne"===c}),onClick:()=>o("twoOneOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneTwoOne"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("1:2:1","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"oneTwoOne"===c}),onClick:()=>o("oneTwoOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Desktop"==d||"oneThreeOne"==n)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("1:3:1","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"oneThreeOne"===c}),onClick:()=>o("oneThreeOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"11",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"47",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))))||4===m&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Two Column Grid","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"twoColumnGrid"===c}),onClick:()=>o("twoColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"}))))))||5===m&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"11",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"23",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"35",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"47",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Two Column Grid","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"twoColumnGrid"===c}),onClick:()=>o("twoColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"12.33",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"25.66",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Three Column Grid","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"threeColumnGrid"===c}),onClick:()=>o("threeColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"}))))))||6===m&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"equal"===c}),onClick:()=>o("equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"9",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"49",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"59",y:"0",width:"2",height:"40","stroke-width":"0"})))),("Mobile"==d||"Tablet"==d)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Two Column Grid","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"twoColumnGrid"===c}),onClick:()=>o("twoColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"12.33",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"25.66",width:"60",height:"2","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Three Column Grid","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"threeColumnGrid"===c}),onClick:()=>o("threeColumnGrid")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Collapsed Rows","smart-blocks")},(0,i.createElement)(u.Button,{className:l()("sb-blocks-column-layout",{selected:"collapsedRows"===c}),onClick:()=>o("collapsedRows")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"0",y:"19",width:"60",height:"2","stroke-width":"0"})))))))))},x=t=>{let{min:a,max:o,label:n,responsive:r,units:l,unit:s,setUnit:m,dimensionTop:d,setDimensionTop:c,dimensionLeft:p,setDimensionLeft:g,dimensionRight:u,setDimensionRight:h,dimensionBottom:y,setDimensionBottom:b,dimensionMdTop:v,setDimensionMdTop:T,dimensionSmTop:S,setDimensionSmTop:f,dimensionMdLeft:M,setDimensionMdLeft:x,dimensionSmLeft:E,setDimensionSmLeft:k,dimensionMdRight:B,setDimensionMdRight:_,dimensionSmRight:H,setDimensionSmRight:N,dimensionMdBottom:V,setDimensionMdBottom:C,dimensionSmBottom:w,setDimensionSmBottom:F}=t;const[R,z]=(0,i.useState)(!0),D=["Top","Right","Bottom","Left"],U=l||["px","em","%"],P=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),I=(e,t)=>{if(r)switch(e){case"setDimensionTop":return c(t);case"setDimensionLeft":return g(t);case"setDimensionRight":return h(t);case"setDimensionBottom":return b(t);case"setDimensionMdTop":return T(t);case"setDimensionMdLeft":return x(t);case"setDimensionMdRight":return _(t);case"setDimensionMdBottom":return C(t);case"setDimensionSmTop":return f(t);case"setDimensionSmLeft":return k(t);case"setDimensionSmRight":return N(t);case"setDimensionSmBottom":return F(t);default:console.error(`Function ${e} not found.`)}else switch(e){case"setDimensionTop":return c(t);case"setDimensionLeft":return g(t);case"setDimensionRight":return h(t);case"setDimensionBottom":return b(t);default:console.error(`Function ${e} not found.`)}},$=(e,t)=>{if(r)switch(e){case"dimensionTop":return d;case"dimensionLeft":return p;case"dimensionRight":return u;case"dimensionBottom":return y;case"dimensionMdTop":return v;case"dimensionMdLeft":return M;case"dimensionMdRight":return B;case"dimensionMdBottom":return V;case"dimensionSmTop":return S;case"dimensionSmLeft":return E;case"dimensionSmRight":return H;case"dimensionSmBottom":return w;default:console.error(`Value of ${e} not found.`)}else switch(e){case"dimensionTop":return d;case"dimensionLeft":return p;case"dimensionRight":return u;case"dimensionBottom":return y;default:console.error(`Value of ${e} not found.`)}},W=()=>{let e;switch(s){case"em":case"vh":case"vw":case"%":e=0;break;default:e=a}return e},O=()=>{let e;switch(s){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=o}return e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-dimension "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},n&&(0,i.createElement)("label",{htmlFor:"input"},n),r&&(0,i.createElement)(L,null),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},U.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),D.map(((e,t)=>{I(`setDimension${e}`,""),I(`setDimensionMd${e}`,""),I(`setDimensionSm${e}`,"")}))}},e))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},U.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),D.map(((e,t)=>{I(`setDimension${e}`,"")}))}},e)))))),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-dimension-input-group hasLock"},"Desktop"==P&&D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:O(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimension${e}`,t.target.value)})):I(`setDimension${e}`,t.target.value)},value:$(`dimension${e}`)}),(0,i.createElement)("span",null,e)))),"Tablet"==P&&D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:O(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimensionMd${e}`,t.target.value)})):I(`setDimensionMd${e}`,t.target.value)},value:$(`dimensionMd${e}`)}),(0,i.createElement)("span",null,e)))),"Mobile"==P&&D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:O(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimensionSm${e}`,t.target.value)})):I(`setDimensionSm${e}`,t.target.value)},value:$(`dimensionSm${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(R?"active ":"")+"sb-button",onClick:function(){return z(!R)}},R?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"}))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-dimension-input-group hasLock"},D.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:W(),max:O(),key:t,onChange:t=>{R?D.map(((e,a)=>{I(`setDimension${e}`,t.target.value)})):I(`setDimension${e}`,t.target.value)},value:$(`dimension${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(R?"active ":"")+"sb-button",onClick:function(){return z(!R)}},R?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"})))))))},E=t=>{let{label:a,min:o,max:n,steps:r,useUnit:l,responsive:s,value:m,setValue:d,valueSm:c,setValueSm:p,valueMd:g,setValueMd:u,units:h,unit:y,setUnit:b}=t;const v=h||["px","em","%"],T=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),S=()=>{let e;switch(y){case"em":case"vh":case"vw":case"%":e=0;break;default:e=o}return e},f=()=>{let e;switch(y){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=n}return e};return(0,i.createElement)("div",{className:"sb-field sb-field-range "+(s?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},a&&(0,i.createElement)("label",{htmlFor:"input"},a),s&&(0,i.createElement)(L,null),l&&(0,i.createElement)("div",{class:"sb-unit-btn-group"},v.map(((e,t)=>(0,i.createElement)("button",{className:y===e?"active":"",value:e,onClick:e=>{b(e.target.value),d(""),s&&p(""),s&&u("")}},e))))),(0,i.createElement)("div",{className:"sb-input-fields"},s?(0,i.createElement)(i.Fragment,null,"Mobile"==T&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:f(),value:c,step:r||1,onChange:e=>{p(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{p(e.target.value)},value:c})),"Tablet"==T&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:f(),value:g,step:r||1,onChange:e=>{u(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{u(e.target.value)},value:g})),"Desktop"==T&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:f(),value:m,step:r||1,onChange:e=>{d(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{d(e.target.value)},value:m}))):(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:S(),max:f(),value:m,step:r||1,onChange:e=>{d(e.target.value)}}),(0,i.createElement)("input",{type:"number",step:r||1,onChange:e=>{d(e.target.value)},value:m}))))},k=t=>{let{label:a,options:o,steps:n,responsive:r,value:l,setValue:s,valueSm:m,setValueSm:d,valueMd:c,setValueMd:p}=t;const g=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]);return(0,i.createElement)("div",{className:"sb-field sb-field-buttons "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},a&&(0,i.createElement)("label",{htmlFor:"input"},a),r&&(0,i.createElement)(L,null)),(0,i.createElement)("div",{className:"sb-input-fields"},r?(0,i.createElement)(i.Fragment,null,"Mobile"==g&&(0,i.createElement)(u.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(u.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===m,onClick:t=>{d(e.value===m?null:e.value)}})))),"Tablet"==g&&(0,i.createElement)(u.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(u.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===c,onClick:t=>{p(e.value===c?null:e.value)}})))),"Desktop"==g&&(0,i.createElement)(u.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(u.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===l,onClick:t=>{s(e.value===l?null:e.value)}}))))):(0,i.createElement)(u.ButtonGroup,{className:"sb-icon-button-group"},o.map((e=>(0,i.createElement)(u.Button,{icon:e.icon,label:e.label,showTooltip:!0,isLarge:!0,isPrimary:e.value===l,onClick:()=>{s(e.value===l?null:e.value)}}))))))},B=e=>{let{label:t,value:a,setValue:o,enableAlpha:n}=e;const r=e=>{o(e.hex)};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-color"},t&&(0,i.createElement)("label",null,t),(0,i.createElement)("div",{className:"sb-components-dropdown"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{o(void 0)}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(v,null)))),(0,i.createElement)(u.Dropdown,{position:"top right",contentClassName:"sb-popover-style",renderToggle:function(e){let{isOpen:t,onToggle:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("span",{className:"sb-color-picker-container"},(0,i.createElement)("button",{className:"sb-color-picker",isPrimary:!0,onClick:o,"aria-expanded":t,style:a&&{backgroundColor:a,borderColor:a}})))},renderContent:function(){return(0,i.createElement)("span",null,n?(0,i.createElement)(u.ColorPicker,{color:a||"",onChangeComplete:r,enableAlpha:!0}):(0,i.createElement)(u.ColorPicker,{color:a||"",onChangeComplete:r,disableAlpha:!0}))}}))))},_=e=>{let{label:t,options:a,value:o,onChange:n,inline:r=!0}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field "+(r?"sb-field-select sb-display-inline":"")},t&&(0,i.createElement)("label",{className:r?"":"sb-label"},t),(0,i.createElement)("div",{class:"sb-input-fields"},(0,i.createElement)("div",{class:"sb-popup-select"},(0,i.createElement)("select",{value:o,onChange:e=>{n(e.target.value)}},a&&a.map(((e,t)=>(0,i.createElement)("option",{value:e.value,key:e.value},e.label))))))))},H=e=>{let{label:t,imageURL:a,setImageURL:o,imageID:n,setImageID:r,imageAttachment:l,setImageAttachment:s,imageSize:m,setImageSize:c,imagePositionX:p,setImagePositionX:h,imagePositionY:y,setImagePositionY:b,imageRepeat:v,setImageRepeat:T,imageOverlayColor:S,setImageOverlayColor:f}=e;return(0,i.createElement)("div",{className:"sb-field sb-field-background"},t&&(0,i.createElement)("label",{htmlFor:"input"},t),(0,i.createElement)("div",{className:"sb-input-fields sb-image-container"},a?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.FocalPointPicker,{__nextHasNoMarginBottom:!0,url:a,value:{x:p,y},onDragStart:e=>{h(e.x),b(e.y)},onDrag:e=>{h(e.x),b(e.y)},onChange:e=>{h(e.x),b(e.y)}}),(0,i.createElement)(u.Button,{isSecondary:!0,className:"sb-image-container-delete-button",onClick:()=>{r(""),o("")}},(0,g.__)("Remove Image","smart-blocks")),(0,i.createElement)(_,{label:(0,g.__)("Attachment","smart-blocks"),value:l,options:[{label:(0,g.__)("Scroll","smart-blocks"),value:"scroll"},{label:(0,g.__)("Fixed","smart-blocks"),value:"fixed"}],onChange:e=>s(e)}),(0,i.createElement)(_,{label:(0,g.__)("Repeat","smart-blocks"),value:v,options:[{label:(0,g.__)("Repeat","smart-blocks"),value:"repeat"},{label:(0,g.__)("No Repeat","smart-blocks"),value:"no-repeat"},{label:(0,g.__)("Repeat X","smart-blocks"),value:"repeat-x"},{label:(0,g.__)("Repeat Y","smart-blocks"),value:"repeat-y"}],onChange:e=>T(e)}),(0,i.createElement)(_,{label:(0,g.__)("Size","smart-blocks"),value:m,options:[{label:(0,g.__)("Auto","smart-blocks"),value:"auto"},{label:(0,g.__)("Cover","smart-blocks"),value:"cover"},{label:(0,g.__)("Contain","smart-blocks"),value:"contain"}],onChange:e=>c(e)}),(0,i.createElement)(B,{label:(0,g.__)("Overlay Color","smart-blocks"),enableAlpha:!0,value:S,setValue:e=>f(e)})):(0,i.createElement)(d.MediaPlaceholder,{icon:"format-image",labels:{title:(0,g.__)("Background Image","smart-blocks"),name:(0,g.__)("Background Image","smart-blocks")},value:n,onSelect:e=>{r(e.id),o(e.url)},accept:"image/*",allowedTypes:["image"]})))},N=e=>{let{options:t,value:a,setValue:o,label:n}=e;return(0,i.createElement)("div",{className:"sb-field sb-field-radio-advanced"},n&&(0,i.createElement)("label",null,n),(0,i.createElement)("div",{className:"sb-field-button-wrap"},t.map((function(e,t){return(0,i.createElement)(u.Tooltip,{text:e.title||e.value},(0,i.createElement)("button",{className:(a==e.value?"active":"")+" sb-button",key:t,onClick:()=>o(e.value)},e.icon?(0,i.createElement)("i",{className:e.icon}):e.svg?(0,i.createElement)("span",{className:"sb-option-svg"},e.svg):e.label))}))))},V=e=>{let{label:t,valueHorizontal:a,setValueHorizontal:o,valueVertical:n,setValueVertical:r,valueBlur:l,setValueBlur:s,valueSpread:m,setValueSpread:d,valueColor:c,setValueColor:p,valueInset:h,setValueInset:y}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-boxshadow"},(0,i.createElement)("label",null,(0,g.__)("Box Shadow","smart-blocks")),(0,i.createElement)("div",{className:"sb-components-dropdown"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{o(""),r(""),s(""),d(""),p(void 0),y("")}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(v,null)))),(0,i.createElement)(u.Dropdown,{position:"top right",contentClassName:"sb-popover-style",renderToggle:e=>{let{isOpen:t,onToggle:a}=e;return(0,i.createElement)("button",{className:"sb-shadow-setttings sb-setting-button",isPrimary:!0,onClick:a,"aria-expanded":t},(0,i.createElement)(u.Dashicon,{size:"15",icon:"admin-tools"}))},renderContent:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-boxshadow"},(0,i.createElement)(u.TextControl,{label:(0,g.__)("X","smart-blocks"),type:"number",value:a,onChange:e=>o(e)}),(0,i.createElement)(u.TextControl,{label:(0,g.__)("Y","smart-blocks"),type:"number",value:n,onChange:e=>r(e)}),(0,i.createElement)(u.TextControl,{label:(0,g.__)("Blur","smart-blocks"),type:"number",value:l,onChange:e=>s(e)}),(0,i.createElement)(u.TextControl,{label:(0,g.__)("Spread","smart-blocks"),type:"number",value:m,onChange:e=>d(e)})),(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),value:c,setValue:e=>p(e),enableAlpha:!0}),(0,i.createElement)(N,{label:(0,g.__)("Inset","smart-blocks"),value:h,setValue:e=>y(e),options:[{label:(0,g.__)("Inset"),value:"inset",title:(0,g.__)("Inset")},{label:(0,g.__)("Outset"),value:"",title:(0,g.__)("Outset")}]}))}))))},C=e=>{let{label:t,value:a,setValue:o}=e;const n=[["solid",(0,g.__)("Solid","smart-blocks")],["dotted",(0,g.__)("Dotted","smart-blocks")],["dashed",(0,g.__)("Dashed","smart-blocks")],["double",(0,g.__)("Double","smart-blocks")]];return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-border"},(0,i.createElement)("label",null,(0,g.__)("Border","smart-blocks")),(0,i.createElement)("div",{className:"sb-field-button-list"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{o("")}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(v,null)))),(0,i.createElement)("div",{className:"sb-field-button-wrap"},n.map(((e,t)=>(0,i.createElement)(u.Tooltip,{text:e[1],key:t},(0,i.createElement)("button",{className:(a&&a==e[0]?"active":"")+" sb-button",onClick:()=>{o(e[0])}},(0,i.createElement)("span",{className:`sb-field-border-type sb-field-border-type-${e[0]}`})))))))))},w=t=>{let{min:a,max:o,label:n,responsive:r,units:l,unit:s,setUnit:m,gapRow:d,setGapRow:c,gapColumn:p,setGapColumn:g,gapMdRow:u,setGapMdRow:h,gapMdColumn:y,setGapMdColumn:b,gapSmRow:v,setGapSmRow:T,gapSmColumn:S,setGapSmColumn:f}=t;const[M,x]=(0,i.useState)(!0),E=["Column","Row"],k=l||["px","em","rem"],B=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),_=(e,t)=>{if(r)switch(e){case"setGapRow":return c(t);case"setGapColumn":return g(t);case"setGapMdRow":return h(t);case"setGapMdColumn":return b(t);case"setGapSmRow":return T(t);case"setGapSmColumn":return f(t);default:console.error(`Function ${e} not found.`)}else switch(e){case"setGapRow":return c(t);case"setGapColumn":return g(t);default:console.error(`Function ${e} not found.`)}},H=(e,t)=>{if(r)switch(e){case"gapRow":return d;case"gapColumn":return p;case"gapMdRow":return u;case"gapMdColumn":return y;case"gapSmRow":return v;case"gapSmColumn":return S;default:console.error(`Value of ${e} not found.`)}else switch(e){case"gapRow":return d;case"gapColumn":return p;default:console.error(`Value of ${e} not found.`)}},N=()=>{let e;switch(s){case"em":case"vh":case"vw":case"%":e=0;break;default:e=a}return e},V=()=>{let e;switch(s){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=o}return e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-gap "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},n&&(0,i.createElement)("label",{htmlFor:"input"},n),r&&(0,i.createElement)(L,null),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},k.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),E.map(((e,t)=>{_(`setGap${e}`,""),_(`setGapMd${e}`,""),_(`setGapSm${e}`,"")}))}},e))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},k.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),E.map(((e,t)=>{_(`setGap${e}`,"")}))}},e)))))),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},"Desktop"==B&&E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGap${e}`,t.target.value)})):_(`setGap${e}`,t.target.value)},value:H(`gap${e}`)}),(0,i.createElement)("span",null,e)))),"Tablet"==B&&E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGapMd${e}`,t.target.value)})):_(`setGapMd${e}`,t.target.value)},value:H(`gapMd${e}`)}),(0,i.createElement)("span",null,e)))),"Mobile"==B&&E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGapSm${e}`,t.target.value)})):_(`setGapSm${e}`,t.target.value)},value:H(`gapSm${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(M?"active ":"")+"sb-button",onClick:function(){return x(!M)}},M?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"}))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},E.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:N(),max:V(),key:t,onChange:t=>{M?E.map(((e,a)=>{_(`setGap${e}`,t.target.value)})):_(`setGap${e}`,t.target.value)},value:H(`gap${e}`)}),(0,i.createElement)("span",null,e)))),(0,i.createElement)("button",{className:(M?"active ":"")+"sb-button",onClick:function(){return x(!M)}},M?(0,i.createElement)("span",{className:"dashicons dashicons-admin-links"}):(0,i.createElement)("span",{className:"dashicons dashicons-editor-unlink"})))))))},F=e=>{let{label:t,checked:a,onChange:o}=e;return(0,i.createElement)("div",{className:"sb-field"},(0,i.createElement)(u.ToggleControl,{label:t,checked:a,onChange:o}))},R=e=>{let{children:t}=e;const a=null!=t[0]?t[0].props.tabTitle:"",[o,n]=(0,i.useState)(a);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},t.map((function(e){return(0,i.createElement)(i.Fragment,null,!1!==e&&(0,i.createElement)(u.Tooltip,{text:e.props.tabTitle},(0,i.createElement)("button",{className:(e.props.tabTitle===o?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>n(e.props.tabTitle)},e.props.tabTitle)))}))),(0,i.createElement)("div",{className:"sb-field-tab-items"},t.map((function(e){return(0,i.createElement)(i.Fragment,null,!1!==e&&e.props.tabTitle===o?e:"")})))))},z=t=>{const{attributes:a,setAttributes:o,updateColumnsWidth:n}=t,{columns:r,borderNormal:s,borderHover:m,borderNormalColor:p,borderHoverColor:h,borderNormalWidthTop:y,borderNormalWidthLeft:b,borderNormalWidthRight:v,borderNormalWidthBottom:L,borderNormalWidthUnit:N,borderHoverWidthTop:z,borderHoverWidthLeft:D,borderHoverWidthRight:U,borderHoverWidthBottom:P,borderHoverWidthUnit:I,borderNormalRadiusTop:$,borderNormalRadiusLeft:W,borderNormalRadiusRight:O,borderNormalRadiusBottom:A,borderNormalRadiusUnit:G,borderHoverRadiusTop:j,borderHoverRadiusLeft:K,borderHoverRadiusRight:Z,borderHoverRadiusBottom:q,borderHoverRadiusUnit:Y,borderNormalBoxShadowHorizontal:X,borderNormalBoxShadowVertical:J,borderNormalBoxShadowBlur:Q,borderNormalBoxShadowSpread:ee,borderNormalBoxShadowColor:te,borderNormalBoxShadowInset:ae,borderHoverBoxShadowHorizontal:ie,borderHoverBoxShadowVertical:oe,borderHoverBoxShadowBlur:ne,borderHoverBoxShadowSpread:re,borderHoverBoxShadowColor:le,borderHoverBoxShadowInset:se,sectionBgColor:me,horizontalAlign:de,horizontalAlignSm:ce,horizontalAlignMd:pe,columnAlignment:ge,columnAlignmentSm:ue,columnAlignmentMd:he,layout:ye,layoutTablet:be,layoutMobile:ve,columnsWidth:Te,columnsWidthMd:Se,columnsWidthSm:fe,columnsWidthUnit:Le,columnsHeight:Me,columnsHeightSm:xe,columnsHeightMd:Ee,columnsHeightUnit:ke,hide:Be,hideTablet:_e,hideMobile:He,reverseColumnsTablet:Ne,reverseColumnsMobile:Ve,columnsHTMLTag:Ce,columnsMarginSmTop:we,columnsMarginSmRight:Fe,columnsMarginSmBottom:Re,columnsMarginSmLeft:ze,columnsMarginMdTop:De,columnsMarginMdRight:Ue,columnsMarginMdBottom:Pe,columnsMarginMdLeft:Ie,columnsMarginTop:$e,columnsMarginRight:We,columnsMarginBottom:Oe,columnsMarginLeft:Ae,columnsMarginUnit:Ge,columnsPaddingSmTop:je,columnsPaddingSmRight:Ke,columnsPaddingSmBottom:Ze,columnsPaddingSmLeft:qe,columnsPaddingMdTop:Ye,columnsPaddingMdRight:Xe,columnsPaddingMdBottom:Je,columnsPaddingMdLeft:Qe,columnsPaddingTop:et,columnsPaddingRight:tt,columnsPaddingBottom:at,columnsPaddingLeft:it,columnsPaddingUnit:ot,sectionBgType:nt,sectionBgImgURL:rt,sectionBgImgID:lt,sectionBgAttachment:st,sectionBgSize:mt,sectionBgPositionX:dt,sectionBgPositionY:ct,sectionBgRepeat:pt,sectionBgGradient:gt,sectionBgOverlayColor:ut,sectionContentWidth:ht,columnsGapRow:yt,columnsGapSmRow:bt,columnsGapMdRow:vt,columnsGapColumn:Tt,columnsGapSmColumn:St,columnsGapMdColumn:ft,columnsGapUnit:Lt}=a,Mt=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),[xt,Et]=(0,i.useState)("layout"),[kt,Bt]=(0,i.useState)(!1);(0,i.useEffect)((()=>{kt&&(6>=r?n(r,"equal"):6<r?n(6,"equal"):1>=r&&n(1,"equal"),Bt(!1))}),[r]);const _t=(e,t)=>{"Desktop"===t&&o({hide:e}),"Tablet"===t&&o({hideTablet:e}),"Mobile"===t&&o({hideMobile:e})},Ht=(e,t)=>{"Tablet"===t&&o({reverseColumnsTablet:e}),"Mobile"===t&&o({reverseColumnsMobile:e})};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===xt}),onClick:()=>Et("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===xt}),onClick:()=>Et("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===xt}),onClick:()=>Et("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===xt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Columns & Layout","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Columns","smart-blocks"),min:1,max:6,responsive:!1,useUnit:!1,value:r,setValue:e=>{6>=(e=parseInt(e))&&o({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&o({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&o({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),Bt(!0)}}),(0,i.createElement)(M,{label:(0,g.__)("Layout","smart-blocks"),columns:r,layout:ye,layoutTablet:be,layoutMobile:ve,onClick:e=>{"Desktop"===Mt&&(o({layout:e}),n(r,e),(2==r||3==r)&&"collapsedRows"!=be&&o({layoutTablet:e}),(2==r||3==r)&&"collapsedRows"!=ve&&o({layoutMobile:e})),"Tablet"===Mt&&o({layoutTablet:e}),"Mobile"===Mt&&o({layoutMobile:e})}}),(0,i.createElement)(_,{label:(0,g.__)("Content Width","smart-blocks"),value:ht,options:[{label:(0,g.__)("Full Width","smart-blocks"),value:"full"},{label:(0,g.__)("Boxed","smart-blocks"),value:"boxed"}],onChange:e=>{o({sectionContentWidth:e,columnsWidth:"",columnsWidthSm:"",columnsWidthMd:""}),"full"===e&&o({columnsWidthUnit:"%"})},inline:!1}),(0,i.createElement)(E,{label:(0,g.__)("Width","smart-blocks"),min:0,max:2200,responsive:!0,value:Te,setValue:e=>o({columnsWidth:e}),valueSm:fe,setValueSm:e=>o({columnsWidthSm:e}),valueMd:Se,setValueMd:e=>o({columnsWidthMd:e}),useUnit:!0,units:"full"===ht?["%"]:["px","em","%","vw"],unit:Le,setUnit:e=>o({columnsWidthUnit:e})}),(0,i.createElement)(E,{label:(0,g.__)("Min Height","smart-blocks"),min:0,max:1200,responsive:!0,value:Me,setValue:e=>o({columnsHeight:e}),valueSm:xe,setValueSm:e=>o({columnsHeightSm:e}),valueMd:Ee,setValueMd:e=>o({columnsHeightMd:e}),useUnit:!0,units:["px","em","%","vh"],unit:ke,setUnit:e=>o({columnsHeightUnit:e})}),(0,i.createElement)(k,{label:(0,g.__)("Column Align","smart-blocks"),responsive:!0,options:[{value:"flex-start",icon:(0,i.createElement)("i",{class:"sbi-align-start-v"}),label:(0,g.__)("Flex Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-v"}),label:(0,g.__)("Center","smart-blocks")},{value:"flex-end",icon:(0,i.createElement)("i",{class:"sbi-align-end-v"}),label:(0,g.__)("Flex End","smart-blocks")},{value:"stretch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-v"}),label:(0,g.__)("Stretch","smart-blocks")}],value:ge,setValue:e=>o({columnAlignment:e}),valueSm:ue,setValueSm:e=>o({columnAlignmentSm:e}),valueMd:he,setValueMd:e=>o({columnAlignmentMd:e})}),(0,i.createElement)(k,{label:(0,g.__)("Text Align","smart-blocks"),responsive:!0,options:[{value:"left",icon:(0,i.createElement)("i",{class:"sbi-text-align-left"}),label:(0,g.__)("Left","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-text-align-center"}),label:(0,g.__)("Center","smart-blocks")},{value:"right",icon:(0,i.createElement)("i",{class:"sbi-text-align-right"}),label:(0,g.__)("Right","smart-blocks")}],value:de,setValue:e=>o({horizontalAlign:e}),valueSm:ce,setValueSm:e=>o({horizontalAlignSm:e}),valueMd:pe,setValueMd:e=>o({horizontalAlignMd:e})}),(0,i.createElement)(w,{label:(0,g.__)("Gaps","smart-blocks"),min:"0",max:"100",responsive:!0,gapColumn:Tt,setGapColumn:e=>o({columnsGapColumn:e}),gapMdColumn:ft,setGapMdColumn:e=>o({columnsGapMdColumn:e}),gapSmColumn:St,setGapSmColumn:e=>o({columnsGapSmColumn:e}),gapRow:yt,setGapRow:e=>o({columnsGapRow:e}),gapMdRow:vt,setGapMdRow:e=>o({columnsGapMdRow:e}),gapSmRow:bt,setGapSmRow:e=>o({columnsGapSmRow:e}),unit:Lt,setUnit:e=>o({columnsGapUnit:e})})))||"style"===xt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:$e,setDimensionTop:e=>o({columnsMarginTop:e}),dimensionMdTop:De,setDimensionMdTop:e=>o({columnsMarginMdTop:e}),dimensionSmTop:we,setDimensionSmTop:e=>o({columnsMarginSmTop:e}),dimensionLeft:Ae,setDimensionLeft:e=>o({columnsMarginLeft:e}),dimensionMdLeft:Ie,setDimensionMdLeft:e=>o({columnsMarginMdLeft:e}),dimensionSmLeft:ze,setDimensionSmLeft:e=>o({columnsMarginSmLeft:e}),dimensionRight:We,setDimensionRight:e=>o({columnsMarginRight:e}),dimensionMdRight:Ue,setDimensionMdRight:e=>o({columnsMarginMdRight:e}),dimensionSmRight:Fe,setDimensionSmRight:e=>o({columnsMarginSmRight:e}),dimensionBottom:Oe,setDimensionBottom:e=>o({columnsMarginBottom:e}),dimensionMdBottom:Pe,setDimensionMdBottom:e=>o({columnsMarginMdBottom:e}),dimensionSmBottom:Re,setDimensionSmBottom:e=>o({columnsMarginSmBottom:e}),unit:Ge,setUnit:e=>o({columnsMarginUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:et,setDimensionTop:e=>o({columnsPaddingTop:e}),dimensionMdTop:Ye,setDimensionMdTop:e=>o({columnsPaddingMdTop:e}),dimensionSmTop:je,setDimensionSmTop:e=>o({columnsPaddingSmTop:e}),dimensionLeft:it,setDimensionLeft:e=>o({columnsPaddingLeft:e}),dimensionMdLeft:Qe,setDimensionMdLeft:e=>o({columnsPaddingMdLeft:e}),dimensionSmLeft:qe,setDimensionSmLeft:e=>o({columnsPaddingSmLeft:e}),dimensionRight:tt,setDimensionRight:e=>o({columnsPaddingRight:e}),dimensionMdRight:Xe,setDimensionMdRight:e=>o({columnsPaddingMdRight:e}),dimensionSmRight:Ke,setDimensionSmRight:e=>o({columnsPaddingSmRight:e}),dimensionBottom:at,setDimensionBottom:e=>o({columnsPaddingBottom:e}),dimensionMdBottom:Je,setDimensionMdBottom:e=>o({columnsPaddingMdBottom:e}),dimensionSmBottom:Ze,setDimensionSmBottom:e=>o({columnsPaddingSmBottom:e}),unit:ot,setUnit:e=>o({columnsPaddingUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:s,setValue:e=>o({borderNormal:e})}),s&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:p,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:y,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:b,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:v,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:L,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:N,setUnit:e=>o({borderNormalWidthUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:$,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:W,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:O,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:A,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:G,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:X,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:J,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Q,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ee,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:te,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ae,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:m,setValue:e=>o({borderHover:e})}),m&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:h,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:z,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:D,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:U,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:P,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:I,setUnit:e=>o({borderHoverWidthUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:j,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:K,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Z,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:q,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Y,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ie,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:oe,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:ne,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:re,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:le,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:se,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Image/Color","smart-blocks")},(0,i.createElement)("button",{className:("imageOrColor"===nt?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({sectionBgType:"imageOrColor"})},(0,g.__)("Image/Color","smart-blocks"))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Gradient","smart-blocks")},(0,i.createElement)("button",{className:("gradient"===nt?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({sectionBgType:"gradient"})},(0,g.__)("Gradient","smart-blocks")))),(0,i.createElement)("div",{className:"sb-field-tab-items"},"imageOrColor"===nt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:me,setValue:e=>o({sectionBgColor:e})}),(0,i.createElement)(H,{label:(0,g.__)("Background Image","smart-blocks"),imageURL:rt,setImageURL:e=>o({sectionBgImgURL:e}),imageID:lt,setImageID:e=>o({sectionBgImgID:e}),imageAttachment:st,setImageAttachment:e=>o({sectionBgAttachment:e}),imageSize:mt,setImageSize:e=>o({sectionBgSize:e}),imagePositionX:dt,setImagePositionX:e=>o({sectionBgPositionX:e}),imagePositionY:ct,setImagePositionY:e=>o({sectionBgPositionY:e}),imageRepeat:pt,setImageRepeat:e=>o({sectionBgRepeat:e}),imageOverlayColor:ut,setImageOverlayColor:e=>o({sectionBgOverlayColor:e})}))||"gradient"===nt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.GradientPicker,{label:(0,g.__)("Background Gradient","smart-blocks"),value:gt,onChange:e=>o({sectionBgGradient:e})}))))))||"advanced"===xt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Responsive","smart-blocks"),initialOpen:!1},(0,i.createElement)(F,{label:(0,g.__)("Hide this section in Desktop devices?","smart-blocks"),checked:Be,onChange:e=>_t(e,"Desktop")}),(0,i.createElement)(F,{label:(0,g.__)("Hide this section in Tablet devices?","smart-blocks"),checked:_e,onChange:e=>_t(e,"Tablet")}),(0,i.createElement)(F,{label:(0,g.__)("Hide this section in Mobile devices?","smart-blocks"),checked:He,onChange:e=>_t(e,"Mobile")}),(0,i.createElement)("hr",null),!_e&&"collapsedRows"===be&&(0,i.createElement)(F,{label:(0,g.__)("Reverse Columns in Tablet devices?","smart-blocks"),checked:Ne,onChange:e=>Ht(e,"Tablet")}),!He&&"collapsedRows"===ve&&(0,i.createElement)(F,{label:(0,g.__)("Reverse Columns in Mobile devices?","smart-blocks"),checked:Ve,onChange:e=>Ht(e,"Mobile")})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Section Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("HTML Tag","smart-blocks"),value:Ce,options:[{label:(0,g.__)("Default (div)","smart-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})),(0,c.applyFilters)("smartblocks.columnsBlocks","",t),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))))},D={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var U,P=new Uint8Array(16);function I(){if(!U&&!(U="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return U(P)}for(var $=[],W=0;W<256;++W)$.push((W+256).toString(16).slice(1));const O=function(e,t,a){if(D.randomUUID&&!t&&!e)return D.randomUUID();var i=(e=e||{}).random||(e.rng||I)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){a=a||0;for(var o=0;o<16;++o)t[a+o]=i[o];return t}return function(e,t=0){return($[e[t+0]]+$[e[t+1]]+$[e[t+2]]+$[e[t+3]]+"-"+$[e[t+4]]+$[e[t+5]]+"-"+$[e[t+6]]+$[e[t+7]]+"-"+$[e[t+8]]+$[e[t+9]]+"-"+$[e[t+10]]+$[e[t+11]]+$[e[t+12]]+$[e[t+13]]+$[e[t+14]]+$[e[t+15]]).toLowerCase()}(i)},A={},G=(0,e.select)("core/block-editor").getBlock,j=(0,e.dispatch)("core/block-editor").updateBlockAttributes,K=e=>t=>{j(e,t)},Z=e=>{const t=G(e);return{attributes:null==t?void 0:t.attributes,name:null==t?void 0:t.name}},q=(e,t)=>(e=>{var t;const{attributes:a,setAttributes:i,clientId:o,idPrefix:n,name:r,defaultAttributes:l}=e;if(void 0===a||void 0===i)return e=>{var t;null===(t=A[r])||void 0===t||t.delete(e)};null!==(t=A[r])&&void 0!==t||(A[r]=new Set);const s=n||(e=>`wp-block-${e.replace("/","-")}-`)(r),m=((e,t,a)=>{const i=`${e}${t.substr(0,8)}`;if(a.has(i)){let t=`${e}${O().substr(0,8)}`;for(;a.has(t);)t=`${e}${O().substr(0,8)}`;return t}return i})(s,o,A[r]),d=a.id&&A[r].has(a.id);return void 0===a.id||d?(i({id:m}),A[r].add(m)):A[r].add(a.id),e=>{void 0===a.id||d?A[r].delete(m||e):A[r].delete((null==a?void 0:a.id)||e)}})({clientId:e,defaultAttributes:t,setAttributes:K(e),...Z(e)}),Y=e=>{let{clientId:t,setupColumns:a}=e;return(0,i.createElement)(u.Placeholder,{label:(0,g.__)("Section","smart-blocks"),instructions:(0,g.__)("Select a variation to start with","smart-blocks"),isColumnLayout:!0,className:"sb-onboarding-component"},(0,i.createElement)("div",{className:"sb-layout-picker"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Single","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(1,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(2,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("1:2","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(2,"oneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("2:1","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(2,"twoOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(3,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"19",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"39",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("1:1:2","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(3,"oneOneTwo")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("2:1:1","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(3,"twoOneOne")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"})))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Equal","smart-blocks")},(0,i.createElement)(u.Button,{isLarge:!0,className:"sb-blocks-column-layout",onClick:()=>a(4,"equal")},(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40",fill:"none",stroke:"inherit","stroke-width":"4"}),(0,i.createElement)("rect",{x:"14",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"29",y:"0",width:"2",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"44",y:"0",width:"2",height:"40","stroke-width":"0"}))))))},X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";var o=[];return e&&"inherit"!=e.toLowerCase()&&o.push("sb-ff"),t&&"inherit"!=t.toLowerCase()&&o.push("sb-fw"),a&&"inherit"!=a.toLowerCase()&&o.push("sb-tt"),i&&"inherit"!=i.toLowerCase()&&o.push("sb-td"),o.join(" ")},J=function(e,t,a,i,o){let n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return`--sb-${e}-top: ${t?t+n:"initial"};\n        --sb-${e}-right: ${a?a+n:"initial"};\n        --sb-${e}-bottom: ${i?i+n:"initial"};\n        --sb-${e}-left: ${o?o+n:"initial"};`},Q=function(e,t,a,i,o,n,r,l,s,m,d,c,p){let g=arguments.length>13&&void 0!==arguments[13]?arguments[13]:"";return`--sb-${e}-top-sm: ${n?n+g:"var(--sb-"+e+"-top-md)"};\n        --sb-${e}-right-sm: ${r?r+g:"var(--sb-"+e+"-right-md)"};\n        --sb-${e}-bottom-sm: ${l?l+g:"var(--sb-"+e+"-bottom-md)"};\n        --sb-${e}-left-sm: ${s?s+g:"var(--sb-"+e+"-left-md)"};\n        --sb-${e}-top-md: ${m?m+g:"var(--sb-"+e+"-top-lg)"};\n        --sb-${e}-right-md: ${d?d+g:"var(--sb-"+e+"-right-lg)"};\n        --sb-${e}-bottom-md: ${c?c+g:"var(--sb-"+e+"-bottom-lg)"};\n        --sb-${e}-left-md: ${p?p+g:"var(--sb-"+e+"-left-lg)"};\n        --sb-${e}-top-lg: ${t?t+g:"initial"};\n        --sb-${e}-right-lg: ${a?a+g:"initial"};\n        --sb-${e}-bottom-lg: ${i?i+g:"initial"};\n        --sb-${e}-left-lg: ${o?o+g:"initial"};`},ee=function(e,t,a,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return`--sb-${e}-sm: ${a?a+o:"var(--sb-"+e+"-md)"};\n        --sb-${e}-md: ${i?i+o:"var(--sb-"+e+"-lg)"};\n        --sb-${e}-lg: ${t?t+o:"initial"};`},te=function(e,t,a,i,o,n,r){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";return`--sb-${e}-horizontal: ${t?t+l:"0"};\n        --sb-${e}-vertical: ${a?a+l:"0"};\n        --sb-${e}-blur: ${i?i+l:"0"};\n        --sb-${e}-spread: ${o?o+l:"0"};\n        --sb-${e}-color: ${n||"transparent"};\n        --sb-${e}-inset: ${r||""};`},ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""!=t?t&&"default"!=t.toLowerCase()?e:"inherit":e&&"default"!=e.toLowerCase()?e:"inherit"},ie=(e,t,a,i,o,n,r,l,s,m,d,c,p,g,u,h,y)=>`--sb-${e}-family: ${t?ae(t):"inherit"};\n        --sb-${e}-weight: ${a?ae(a.replace(/\D/g,""),a):"inherit"};\n        --sb-${e}-style: ${a?ae(a.replace(/\d+/g,""),a):"inherit"};\n        --sb-${e}-tt: ${i||"inherit"};\n        --sb-${e}-td: ${o||"inherit"};\n        --sb-${e}-fs-sm: ${n?n+s:"var(--sb-"+e+"-fs-md)"};\n        --sb-${e}-fs-md: ${r?r+s:"var(--sb-"+e+"-fs-lg)"};\n        --sb-${e}-fs-lg: ${l?l+s:"inherit"};\n        --sb-${e}-ls-sm: ${m?m+p:"var(--sb-"+e+"-ls-md)"};\n        --sb-${e}-ls-md: ${d?d+p:"var(--sb-"+e+"-ls-lg)"};\n        --sb-${e}-ls-lg: ${c?c+p:"inherit"};\n        --sb-${e}-lh-sm: ${g?g+y:"var(--sb-"+e+"-lh-md)"};\n        --sb-${e}-lh-md: ${u?u+y:"var(--sb-"+e+"-lh-lg)"};\n        --sb-${e}-lh-lg: ${h?h+y:"inherit"};\n        `,oe=function(e,t,a,i,o,n,r){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";return`--sb-${e}-row-sm: ${a?a+l:"var(--sb-"+e+"-row-md)"};\n        --sb-${e}-row-md: ${i?i+l:"var(--sb-"+e+"-row-lg)"};\n        --sb-${e}-row-lg: ${t?t+l:"20px"};\n        --sb-${e}-column-sm: ${n?n+l:"var(--sb-"+e+"-column-md)"};\n        --sb-${e}-column-md: ${r?r+l:"var(--sb-"+e+"-column-lg)"};\n        --sb-${e}-column-lg: ${o?o+l:"20px"};`},ne=(e,t,a,i,o,n,r,l,s,m,d)=>`--sb-${e}-img-url: ${("imageOrColor"==l?"url("+(t||"")+")":s||"")||"initial"};\n        --sb-${e}-img-attachment: ${a||"scroll"};\n        --sb-${e}-img-size: ${i||"auto"};\n        --sb-${e}-img-position: ${o&&n?100*o+"%"+100*n+"%":"50% 50%"};\n        --sb-${e}-img-repeat: ${r||"repeat"};\n        --sb-${e}-color: ${m||"transparent"};\n        --sb-${e}-overlay-color: ${d||"transparent"};`;(0,o.registerBlockType)("smart-blocks/columns",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{x:"0",y:"0",width:"18",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"21",y:"0",width:"18",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"42",y:"0",width:"18",height:"40","stroke-width":"0"}))),null),supports:{align:["wide","full"],html:!1},category:"smart-blocks-block-modules",attributes:n,title:(0,g.__)("Columns","smart-blocks"),description:(0,g.__)("Display content in multiple columns, with blocks added to each column.","smart-blocks"),keywords:["section","column","row","container"],edit:t=>{const{attributes:a,setAttributes:o,className:r,clientId:g}=t,{id:u,columns:h,columnsWidth:y,columnsWidthMd:b,columnsWidthSm:v,columnsWidthUnit:T,columnsHTMLTag:S,layout:f,layoutTablet:L,layoutMobile:M,reverseColumnsTablet:x,reverseColumnsMobile:E,hideTablet:k,hideMobile:B,borderNormal:_,borderHover:H,borderNormalColor:N,borderHoverColor:V,borderNormalWidthTop:C,borderNormalWidthLeft:w,borderNormalWidthRight:F,borderNormalWidthBottom:R,borderNormalWidthUnit:D,borderHoverWidthTop:U,borderHoverWidthLeft:P,borderHoverWidthRight:I,borderHoverWidthBottom:$,borderHoverWidthUnit:W,borderNormalRadiusTop:O,borderNormalRadiusLeft:A,borderNormalRadiusRight:G,borderNormalRadiusBottom:j,borderNormalRadiusUnit:K,borderHoverRadiusTop:Z,borderHoverRadiusLeft:X,borderHoverRadiusRight:ae,borderHoverRadiusBottom:ie,borderHoverRadiusUnit:re,sectionBgColor:le,columnsHeight:se,columnsHeightSm:me,columnsHeightMd:de,columnsHeightUnit:ce,sbStyle:pe,horizontalAlign:ge,horizontalAlignSm:ue,horizontalAlignMd:he,columnAlignment:ye,columnAlignmentSm:be,columnAlignmentMd:ve,columnsMarginSmTop:Te,columnsMarginSmRight:Se,columnsMarginSmBottom:fe,columnsMarginSmLeft:Le,columnsMarginMdTop:Me,columnsMarginMdRight:xe,columnsMarginMdBottom:Ee,columnsMarginMdLeft:ke,columnsMarginTop:Be,columnsMarginRight:_e,columnsMarginBottom:He,columnsMarginLeft:Ne,columnsMarginUnit:Ve,columnsPaddingSmTop:Ce,columnsPaddingSmRight:we,columnsPaddingSmBottom:Fe,columnsPaddingSmLeft:Re,columnsPaddingMdTop:ze,columnsPaddingMdRight:De,columnsPaddingMdBottom:Ue,columnsPaddingMdLeft:Pe,columnsPaddingTop:Ie,columnsPaddingRight:$e,columnsPaddingBottom:We,columnsPaddingLeft:Oe,columnsPaddingUnit:Ae,sectionBgType:Ge,sectionBgImgURL:je,sectionBgAttachment:Ke,sectionBgSize:Ze,sectionBgPositionX:qe,sectionBgPositionY:Ye,sectionBgRepeat:Xe,sectionBgGradient:Je,sectionBgOverlayColor:Qe,borderNormalBoxShadowHorizontal:et,borderNormalBoxShadowVertical:tt,borderNormalBoxShadowBlur:at,borderNormalBoxShadowSpread:it,borderNormalBoxShadowColor:ot,borderNormalBoxShadowInset:nt,borderHoverBoxShadowHorizontal:rt,borderHoverBoxShadowVertical:lt,borderHoverBoxShadowBlur:st,borderHoverBoxShadowSpread:mt,borderHoverBoxShadowColor:dt,borderHoverBoxShadowInset:ct,sectionContentWidth:pt,columnsGapRow:gt,columnsGapSmRow:ut,columnsGapMdRow:ht,columnsGapColumn:yt,columnsGapSmColumn:bt,columnsGapMdColumn:vt,columnsGapUnit:Tt}=a,{updateBlockAttributes:St}=(0,e.useDispatch)("core/block-editor");o({id:(0,d.useBlockProps)().id});const ft=`#${u} {\n\t\t${ee("columns-width",y,v,b,T)}\n\t\t${ee("columns-horizontal-align",ge,ue,he,"")}\n\t\t${oe("columns-gap",gt,ut,ht,yt,bt,vt,Tt)}\n\t\t${ee("columns-align",ye,be,ve,"")}\n\n        ${Q("columns-margin",Be,_e,He,Ne,Te,Se,fe,Le,Me,xe,Ee,ke,Ve)}\n    \t${Q("columns-padding",Ie,$e,We,Oe,Ce,we,Fe,Re,ze,De,Ue,Pe,Ae)}\n\n        --sb-columns-border-normal:${_||"0"};\n        --sb-columns-border-hover: ${H?_:"var(--sb-columns-border-normal)"};\n        --sb-columns-border-normal-color: ${N||"initial"};\n        --sb-columns-border-hover-color: ${V||"var(--sb-columns-border-normal-color)"};\n\n        ${J("columns-border-normal-width",C,F,R,w,D)}\n        ${J("columns-border-hover-width",U,I,$,P,W)}\n        ${J("columns-border-normal-radius",O,G,j,A,K)}\n        ${J("columns-border-hover-radius",Z,ae,ie,X,re)}\n\n        ${te("columns-border-normal-box-shadow",et,tt,at,it,ot,nt,"px")}\n        ${te("columns-border-hover-box-shadow",rt,lt,st,mt,dt,ct,"px")}\n\n        ${ne("columns-bg",je,Ke,Ze,qe,Ye,Xe,Ge,Je,le,Qe)}\n\n\t\t${ee("columns-height",se,me,de,ce)}\n    }`;o({sbStyle:ft.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const{sectionBlock:Lt,isViewportAvailable:Mt,isPreviewDesktop:xt,isPreviewTablet:Et,isPreviewMobile:kt}=(0,e.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:t(g),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),Bt=(0,m.useViewportMatch)("large",">="),_t=(0,m.useViewportMatch)("large","<="),Ht=(0,m.useViewportMatch)("small",">="),Nt=(0,m.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=q(g,n);return()=>e(u)}),[u]);let Vt=Bt&&!_t&&Ht&&!Nt,Ct=!Bt&&!_t&&Ht&&!Nt,wt=!(Bt||_t||Ht||Nt);Mt&&!wt&&(Vt=xt,Ct=Et,wt=kt);const Ft=S,Rt=l()(r,`sb-has-${h}-columns`,`sb-has-desktop-${f}-layout`,`sb-has-tablet-${L}-layout`,`sb-has-mobile-${M}-layout`,{"sb-has-reverse-columns-tablet":x&&!k&&"collapsedRows"===L},{"sb-has-reverse-columns-mobile":E&&!B&&"collapsedRows"===M},{"sb-has-viewport-desktop":Vt},{"sb-has-viewport-tablet":Ct},{"sb-has-viewport-mobile":wt},`sb-has-${pt}-width`,a.sbColorAnimationType?`sb--ca-${a.sbColorAnimationType}`:"",{"sb-particles-yes":a.sbParticlesEnable},{"sb-water-ripples-yes":a.sbWaterRipplesEnable});if(!h)return(0,i.createElement)(Y,{clientId:g,setupColumns:(e,t)=>{o(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}});const zt=(0,i.createElement)("div",{className:"wp-block-smart-blocks-columns-wrap"},(0,i.createElement)(d.InnerBlocks,{allowedBlocks:["smart-blocks/column"],template:(Dt=h,(0,s.times)(Dt,(e=>["smart-blocks/column",{columnWidth:p[Dt][f][e]}]))),templateLock:"all"}));var Dt;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",pe,t),(0,c.applyFilters)("smartblocks.sectioncss","",t)),(0,i.createElement)(z,{attributes:a,setAttributes:o,updateColumnsWidth:(e,t)=>{Lt.innerBlocks.map(((a,i)=>{St(a.clientId,{columnWidth:p[e][t][i]})}))}}),(0,i.createElement)(Ft,{className:Rt,id:u},(0,c.applyFilters)("smartblocks.columns.innerBlock",zt,a)))},save:e=>{let{attributes:t,className:a}=e;const{id:o,columns:n,columnsHTMLTag:r,layout:s,layoutTablet:m,layoutMobile:p,reverseColumnsTablet:g,reverseColumnsMobile:u,hide:h,hideTablet:y,hideMobile:b,sectionContentWidth:v}=t,T=r,S=h?"":`sb-has-desktop-${s}-layout`,f=y?"":`sb-has-tablet-${m}-layout`,L=b?"":`sb-has-mobile-${p}-layout`,M=l()(a,`sb-has-${n}-columns`,S,f,L,{"hide-in-desktop":h},{"hide-in-tablet":y},{"hide-in-mobile":b},{"sb-has-reverse-columns-tablet":g&&!y&&"collapsedRows"===m},{"sb-has-reverse-columns-mobile":u&&!b&&"collapsedRows"===p},`sb-has-${v}-width`,{"sb-is-frontend":!0},t.sbColorAnimationType?`sb--ca-${t.sbColorAnimationType}`:"",{"sb-particles-yes":t.sbParticlesEnable},{"sb-water-ripples-yes":t.sbWaterRipplesEnable}),x=(0,i.createElement)("div",{className:"wp-block-smart-blocks-columns-wrap"},(0,i.createElement)(d.InnerBlocks.Content,null));return(0,i.createElement)(T,{className:M,id:o},(0,c.applyFilters)("smartblocks.columns.innerBlock",x,t))}});const re={id:{type:"string"},sbStyle:{type:"string"},columnMarginSmTop:{type:"string"},columnMarginSmLeft:{type:"string"},columnMarginSmRight:{type:"string"},columnMarginSmBottom:{type:"string"},columnMarginMdTop:{type:"string"},columnMarginMdLeft:{type:"string"},columnMarginMdRight:{type:"string"},columnMarginMdBottom:{type:"string"},columnMarginTop:{type:"string"},columnMarginLeft:{type:"string"},columnMarginRight:{type:"string"},columnMarginBottom:{type:"string"},columnMarginUnit:{type:"string",enum:["px","em","%"],default:"px"},columnPaddingSmTop:{type:"string"},columnPaddingSmLeft:{type:"string"},columnPaddingSmRight:{type:"string"},columnPaddingSmBottom:{type:"string"},columnPaddingMdTop:{type:"string"},columnPaddingMdLeft:{type:"string"},columnPaddingMdRight:{type:"string"},columnPaddingMdBottom:{type:"string"},columnPaddingTop:{type:"string"},columnPaddingLeft:{type:"string"},columnPaddingRight:{type:"string"},columnPaddingBottom:{type:"string"},columnPaddingUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"},borderNormal:{type:"string"},borderHover:{type:"string"},borderNormalColor:{type:"string"},borderHoverColor:{type:"string"},columnBgColor:{type:"string"},borderNormalWidthTop:{type:"string"},borderNormalWidthLeft:{type:"string"},borderNormalWidthRight:{type:"string"},borderNormalWidthBottom:{type:"string"},borderNormalWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverWidthTop:{type:"string"},borderHoverWidthLeft:{type:"string"},borderHoverWidthRight:{type:"string"},borderHoverWidthBottom:{type:"string"},borderHoverWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalRadiusTop:{type:"string"},borderNormalRadiusLeft:{type:"string"},borderNormalRadiusRight:{type:"string"},borderNormalRadiusBottom:{type:"string"},borderNormalRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverRadiusTop:{type:"string"},borderHoverRadiusLeft:{type:"string"},borderHoverRadiusRight:{type:"string"},borderHoverRadiusBottom:{type:"string"},borderHoverRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalBoxShadowHorizontal:{type:"string"},borderNormalBoxShadowVertical:{type:"string"},borderNormalBoxShadowBlur:{type:"string"},borderNormalBoxShadowSpread:{type:"string"},borderNormalBoxShadowColor:{type:"string"},borderNormalBoxShadowInset:{type:"string"},borderHoverBoxShadowHorizontal:{type:"string"},borderHoverBoxShadowVertical:{type:"string"},borderHoverBoxShadowBlur:{type:"string"},borderHoverBoxShadowSpread:{type:"string"},borderHoverBoxShadowColor:{type:"string"},borderHoverBoxShadowInset:{type:"string"},columnBgType:{type:"string",default:"imageOrColor",enum:["imageOrColor","gradient"]},columnBgImgURL:{type:"string"},columnBgImageID:{type:"string"},columnBgAttachment:{type:"string",default:"scroll"},columnBgSize:{type:"string",default:"auto"},columnBgPositionX:{type:"number",default:"0.5"},columnBgPositionY:{type:"number",default:"0.5"},columnBgRepeat:{type:"string",default:"repeat"},columnBgGradient:{type:"string"},columnBgOverlayColor:{type:"string"},columnAlignSelf:{type:"string"},columnAlignSelfSm:{type:"string"},columnAlignSelfMd:{type:"string"},columnGapColumn:{type:"string"},columnGapSmColumn:{type:"string",default:20},columnGapMdColumn:{type:"string"},columnGapUnit:{type:"string",enum:["px","em","%"],default:"px"}},le=t=>{let{min:a,max:o,label:n,responsive:r,units:l,unit:s,setUnit:m,gapColumn:d,setGapColumn:c,gapMdColumn:p,setGapMdColumn:g,gapSmColumn:u,setGapSmColumn:h}=t;const[y,b]=(0,i.useState)(!0),v=["Column"],T=l||["px","em","rem"],S=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),f=(e,t)=>{if(r)switch(e){case"setGapColumn":return c(t);case"setGapMdColumn":return g(t);case"setGapSmColumn":return h(t);default:console.error(`Function ${e} not found.`)}else{if("setGapColumn"===e)return c(t);console.error(`Function ${e} not found.`)}},M=(e,t)=>{if(r)switch(e){case"gapColumn":return d;case"gapMdColumn":return p;case"gapSmColumn":return u;default:console.error(`Value of ${e} not found.`)}else{if("gapColumn"===e)return d;console.error(`Value of ${e} not found.`)}},x=()=>{let e;switch(s){case"em":case"vh":case"vw":case"%":e=0;break;default:e=a}return e},E=()=>{let e;switch(s){case"em":e=10;break;case"vh":case"vw":case"%":e=100;break;default:e=o}return e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-gap "+(r?"sb-responsive":"")},(0,i.createElement)("div",{className:"sb-label"},n&&(0,i.createElement)("label",{htmlFor:"input"},n),r&&(0,i.createElement)(L,null),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},T.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),v.map(((e,t)=>{f(`setGap${e}`,""),f(`setGapMd${e}`,""),f(`setGapSm${e}`,"")}))}},e))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-unit-btn-group"},T.map(((e,t)=>(0,i.createElement)("button",{className:s===e?"active":"",value:e,onClick:e=>{m(e.target.value),v.map(((e,t)=>{f(`setGap${e}`,"")}))}},e)))))),r?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},"Desktop"==S&&v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{f(`setGap${e}`,t.target.value)},value:M(`gap${e}`)}),(0,i.createElement)("span",null,e)))),"Tablet"==S&&v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{f(`setGapMd${e}`,t.target.value)},value:M(`gapMd${e}`)}),(0,i.createElement)("span",null,e)))),"Mobile"==S&&v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{f(`setGapSm${e}`,t.target.value)},value:M(`gapSm${e}`)}),(0,i.createElement)("span",null,e))))))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-gap-input-group hasLock"},v.map(((e,t)=>(0,i.createElement)("span",null,(0,i.createElement)("input",{type:"number",min:x(),max:E(),key:t,onChange:t=>{f(`setGap${e}`,t.target.value)},value:M(`gap${e}`)}),(0,i.createElement)("span",null,e)))))))))},se=t=>{let{attributes:a,setAttributes:o,isSelected:n,clientId:r,adjacentBlock:s,parentBlock:m,updateBlockAttributes:c,adjacentBlockClientId:p}=t;const{columnMarginSmTop:h,columnMarginSmRight:y,columnMarginSmBottom:b,columnMarginSmLeft:v,columnMarginMdTop:L,columnMarginMdRight:M,columnMarginMdBottom:E,columnMarginMdLeft:_,columnMarginTop:N,columnMarginRight:w,columnMarginBottom:F,columnMarginLeft:z,columnMarginUnit:D,columnPaddingSmTop:U,columnPaddingSmRight:P,columnPaddingSmBottom:I,columnPaddingSmLeft:$,columnPaddingMdTop:W,columnPaddingMdRight:O,columnPaddingMdBottom:A,columnPaddingMdLeft:G,columnPaddingTop:j,columnPaddingRight:K,columnPaddingBottom:Z,columnPaddingLeft:q,columnPaddingUnit:Y,columnBgType:X,columnBgColor:J,columnBgImgURL:Q,columnBgImgID:ee,columnBgAttachment:te,columnBgSize:ae,columnBgPositionX:ie,columnBgPositionY:oe,columnBgRepeat:ne,columnBgGradient:re,columnBgOverlayColor:se,borderNormal:me,borderHover:de,borderNormalColor:ce,borderHoverColor:pe,borderNormalWidthTop:ge,borderNormalWidthLeft:ue,borderNormalWidthRight:he,borderNormalWidthBottom:ye,borderNormalWidthUnit:be,borderHoverWidthTop:ve,borderHoverWidthLeft:Te,borderHoverWidthRight:Se,borderHoverWidthBottom:fe,borderHoverWidthUnit:Le,borderNormalRadiusTop:Me,borderNormalRadiusLeft:xe,borderNormalRadiusRight:Ee,borderNormalRadiusBottom:ke,borderNormalRadiusUnit:Be,borderHoverRadiusTop:_e,borderHoverRadiusLeft:He,borderHoverRadiusRight:Ne,borderHoverRadiusBottom:Ve,borderHoverRadiusUnit:Ce,borderNormalBoxShadowHorizontal:we,borderNormalBoxShadowVertical:Fe,borderNormalBoxShadowBlur:Re,borderNormalBoxShadowSpread:ze,borderNormalBoxShadowColor:De,borderNormalBoxShadowInset:Ue,borderHoverBoxShadowHorizontal:Pe,borderHoverBoxShadowVertical:Ie,borderHoverBoxShadowBlur:$e,borderHoverBoxShadowSpread:We,borderHoverBoxShadowColor:Oe,borderHoverBoxShadowInset:Ae,columnAlignSelf:Ge,columnAlignSelfSm:je,columnAlignSelfMd:Ke,columnGapColumn:Ze,columnGapSmColumn:qe,columnGapMdColumn:Ye,columnGapUnit:Xe}=a;(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),(0,i.useEffect)((()=>{if(1<m.innerBlocks.length&&!p){const e=m.innerBlocks.findIndex((e=>e.clientId===r)),t=m.innerBlocks[e-1];tt.current=t.clientId,at.current=t.attributes.columnWidth}}),[]),(0,i.useEffect)((()=>{if(1<m.innerBlocks.length)if(p)at.current=s.attributes.columnWidth,tt.current=p,et.current=a.columnWidth;else{const e=m.innerBlocks.findIndex((e=>e.clientId===r)),t=m.innerBlocks[e-1];at.current=t.attributes.columnWidth,tt.current=t.clientId,et.current=a.columnWidth}}),[n,a.columnWidth,m.innerBlocks.length]);const[Je,Qe]=(0,i.useState)("layout"),et=(0,i.useRef)(a.columnWidth),tt=(0,i.useRef)(p&&p),at=(0,i.useRef)(s&&s.attributes.columnWidth);return(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===Je}),onClick:()=>Qe("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===Je}),onClick:()=>Qe("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===Je}),onClick:()=>Qe("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===Je&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Width","smart-blocks"),initialOpen:!1},1<m.innerBlocks.length&&(0,i.createElement)(u.RangeControl,{label:(0,g.__)("Column Width","smart-blocks"),value:Number(a.columnWidth),onChange:e=>{const t=e||10,a=Number(et.current)-t+Number(at.current);et.current=t,at.current=a,o({columnWidth:t.toFixed(2)}),c(tt.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(a.columnWidth)+Number(at.current)-10})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Layout","smart-blocks"),initialOpen:!1},(0,i.createElement)(k,{label:(0,g.__)("Align Self","smart-blocks"),responsive:!0,options:[{value:"start",icon:(0,i.createElement)("i",{class:"sbi-align-start-v"}),label:(0,g.__)("Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-v"}),label:(0,g.__)("Center","smart-blocks")},{value:"end",icon:(0,i.createElement)("i",{class:"sbi-align-end-v"}),label:(0,g.__)("Stretch","smart-blocks")},{value:"srtetch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-v"}),label:(0,g.__)("Stretch","smart-blocks")}],value:Ge,setValue:e=>o({columnAlignSelf:e}),valueSm:je,setValueSm:e=>o({columnAlignSelfSm:e}),valueMd:Ke,setValueMd:e=>o({columnAlignSelfMd:e})}),(0,i.createElement)(le,{label:(0,g.__)("Gaps","smart-blocks"),min:"0",max:"100",responsive:!0,gapColumn:Ze,setGapColumn:e=>o({columnGapColumn:e}),gapMdColumn:Ye,setGapMdColumn:e=>o({columnGapMdColumn:e}),gapSmColumn:qe,setGapSmColumn:e=>o({columnGapSmColumn:e}),unit:Xe,setUnit:e=>o({columnGapUnit:e})})))||"style"===Je&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:N,setDimensionTop:e=>o({columnMarginTop:e}),dimensionMdTop:L,setDimensionMdTop:e=>o({columnMarginMdTop:e}),dimensionSmTop:h,setDimensionSmTop:e=>o({columnMarginSmTop:e}),dimensionLeft:z,setDimensionLeft:e=>o({columnMarginLeft:e}),dimensionMdLeft:_,setDimensionMdLeft:e=>o({columnMarginMdLeft:e}),dimensionSmLeft:v,setDimensionSmLeft:e=>o({columnMarginSmLeft:e}),dimensionRight:w,setDimensionRight:e=>o({columnMarginRight:e}),dimensionMdRight:M,setDimensionMdRight:e=>o({columnMarginMdRight:e}),dimensionSmRight:y,setDimensionSmRight:e=>o({columnMarginSmRight:e}),dimensionBottom:F,setDimensionBottom:e=>o({columnMarginBottom:e}),dimensionMdBottom:E,setDimensionMdBottom:e=>o({columnMarginMdBottom:e}),dimensionSmBottom:b,setDimensionSmBottom:e=>o({columnMarginSmBottom:e}),unit:D,setUnit:e=>o({columnMarginUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:j,setDimensionTop:e=>o({columnPaddingTop:e}),dimensionMdTop:W,setDimensionMdTop:e=>o({columnPaddingMdTop:e}),dimensionSmTop:U,setDimensionSmTop:e=>o({columnPaddingSmTop:e}),dimensionLeft:q,setDimensionLeft:e=>o({columnPaddingLeft:e}),dimensionMdLeft:G,setDimensionMdLeft:e=>o({columnPaddingMdLeft:e}),dimensionSmLeft:$,setDimensionSmLeft:e=>o({columnPaddingSmLeft:e}),dimensionRight:K,setDimensionRight:e=>o({columnPaddingRight:e}),dimensionMdRight:O,setDimensionMdRight:e=>o({columnPaddingMdRight:e}),dimensionSmRight:P,setDimensionSmRight:e=>o({columnPaddingSmRight:e}),dimensionBottom:Z,setDimensionBottom:e=>o({columnPaddingBottom:e}),dimensionMdBottom:A,setDimensionMdBottom:e=>o({columnPaddingMdBottom:e}),dimensionSmBottom:I,setDimensionSmBottom:e=>o({columnPaddingSmBottom:e}),unit:Y,setUnit:e=>o({columnPaddingUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:me,setValue:e=>o({borderNormal:e})}),me&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ce,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:ge,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ue,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:he,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ye,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:be,setUnit:e=>o({borderNormalWidthUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Me,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:xe,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ee,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ke,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Be,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:we,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Fe,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Re,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ze,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:De,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ue,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:de,setValue:e=>o({borderHover:e})}),de&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:pe,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:ve,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Te,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Se,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:fe,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Le,setUnit:e=>o({borderHoverWidthUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:_e,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:He,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ne,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ve,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ce,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Pe,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ie,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:$e,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:We,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Oe,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Ae,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Image/Color","smart-blocks")},(0,i.createElement)("button",{className:("imageOrColor"===X?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"imageOrColor"})},(0,g.__)("Image/Color","smart-blocks"))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Gradient","smart-blocks")},(0,i.createElement)("button",{className:("gradient"===X?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"gradient"})},(0,g.__)("Gradient","smart-blocks")))),(0,i.createElement)("div",{className:"sb-field-tab-items"},"imageOrColor"===X&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:J,setValue:e=>o({columnBgColor:e})}),(0,i.createElement)(H,{label:(0,g.__)("Background Image","smart-blocks"),imageURL:Q,setImageURL:e=>o({columnBgImgURL:e}),imageID:ee,setImageID:e=>o({columnBgImgID:e}),imageAttachment:te,setImageAttachment:e=>o({columnBgAttachment:e}),imageSize:ae,setImageSize:e=>o({columnBgSize:e}),imagePositionX:ie,setImagePositionX:e=>o({columnBgPositionX:e}),imagePositionY:oe,setImagePositionY:e=>o({columnBgPositionY:e}),imageRepeat:ne,setImageRepeat:e=>o({columnBgRepeat:e}),imageOverlayColor:se,setImageOverlayColor:e=>o({columnBgOverlayColor:e})}))||"gradient"===X&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.GradientPicker,{label:(0,g.__)("Background Gradient","smart-blocks"),value:re,onChange:e=>o({columnBgGradient:e})}))))))||"advanced"===Je&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Section Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(u.SelectControl,{label:(0,g.__)("HTML Tag","smart-blocks"),value:a.columnsHTMLTag,options:[{label:(0,g.__)("Default (div)","smart-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>{o({columnsHTMLTag:e})}}))))))};(0,o.registerBlockType)("smart-blocks/column",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{x:"0",y:"0",width:"18",height:"40","stroke-width":"0",opacity:"0.4"}),(0,i.createElement)("rect",{x:"21",y:"0",width:"18",height:"40","stroke-width":"0"}),(0,i.createElement)("rect",{x:"42",y:"0",width:"18",height:"40","stroke-width":"0",opacity:"0.4"}))),null),supports:{inserter:!1,reusable:!1,html:!1},category:"smart-blocks-block-modules",attributes:re,title:(0,g.__)("Column","smart-blocks"),description:(0,g.__)("A single column within a columns block.","smart-blocks"),parent:["smart-blocks/columns"],keywords:["column"],edit:function(t){const{attributes:a,setAttributes:o,className:n,isSelected:r,clientId:s,toggleSelection:g}=t,{updateBlockAttributes:h}=(0,e.useDispatch)("core/block-editor"),{id:y,columnWidth:b,columnsHTMLTag:v,columnMarginSmTop:T,columnMarginSmRight:S,columnMarginSmBottom:f,columnMarginSmLeft:L,columnMarginMdTop:M,columnMarginMdRight:x,columnMarginMdBottom:E,columnMarginMdLeft:k,columnMarginTop:B,columnMarginRight:_,columnMarginBottom:H,columnMarginLeft:N,columnMarginUnit:V,columnPaddingSmTop:C,columnPaddingSmRight:w,columnPaddingSmBottom:F,columnPaddingSmLeft:R,columnPaddingMdTop:z,columnPaddingMdRight:D,columnPaddingMdBottom:U,columnPaddingMdLeft:P,columnPaddingTop:I,columnPaddingRight:$,columnPaddingBottom:W,columnPaddingLeft:O,columnPaddingUnit:A,sbStyle:G,columnBgColor:j,columnBgType:K,columnBgImgURL:Z,columnBgAttachment:Y,columnBgSize:X,columnBgPositionX:ae,columnBgPositionY:ie,columnBgRepeat:oe,columnBgGradient:le,columnBgOverlayColor:me,borderNormal:de,borderHover:ce,borderNormalColor:pe,borderHoverColor:ge,borderNormalWidthTop:ue,borderNormalWidthLeft:he,borderNormalWidthRight:ye,borderNormalWidthBottom:be,borderNormalWidthUnit:ve,borderHoverWidthTop:Te,borderHoverWidthLeft:Se,borderHoverWidthRight:fe,borderHoverWidthBottom:Le,borderHoverWidthUnit:Me,borderNormalRadiusTop:xe,borderNormalRadiusLeft:Ee,borderNormalRadiusRight:ke,borderNormalRadiusBottom:Be,borderNormalRadiusUnit:_e,borderHoverRadiusTop:He,borderHoverRadiusLeft:Ne,borderHoverRadiusRight:Ve,borderHoverRadiusBottom:Ce,borderHoverRadiusUnit:we,borderNormalBoxShadowHorizontal:Fe,borderNormalBoxShadowVertical:Re,borderNormalBoxShadowBlur:ze,borderNormalBoxShadowSpread:De,borderNormalBoxShadowColor:Ue,borderNormalBoxShadowInset:Pe,borderHoverBoxShadowHorizontal:Ie,borderHoverBoxShadowVertical:$e,borderHoverBoxShadowBlur:We,borderHoverBoxShadowSpread:Oe,borderHoverBoxShadowColor:Ae,borderHoverBoxShadowInset:Ge,columnAlignSelf:je,columnAlignSelfSm:Ke,columnAlignSelfMd:Ze,columnGapColumn:qe,columnGapSmColumn:Ye,columnGapMdColumn:Xe,columnGapUnit:Je}=a;o({id:(0,d.useBlockProps)().id});const Qe=`#${y} {\n        ${"--sb-column-width: "+b+"%;"}\n    \t${Q("column-margin",B,_,H,N,T,S,f,L,M,x,E,k,V)}\n    \t${Q("column-padding",I,$,W,O,C,w,F,R,z,D,U,P,A)}\n\t\t\n\t\t--sb-column-border-normal:${de||"0"};\n        --sb-column-border-hover: ${ce?de:"var(--sb-column-border-normal)"};\n        --sb-column-border-normal-color: ${pe||"initial"};\n        --sb-column-border-hover-color: ${ge||"var(--sb-column-border-normal-color)"};\n\n        ${J("column-border-normal-width",ue,ye,be,he,ve)}\n        ${J("column-border-hover-width",Te,fe,Le,Se,Me)}\n        ${J("column-border-normal-radius",xe,ke,Be,Ee,_e)}\n        ${J("column-border-hover-radius",He,Ve,Ce,Ne,we)}\n\n        ${te("column-border-normal-box-shadow",Fe,Re,ze,De,Ue,Pe,"px")}\n        ${te("column-border-hover-box-shadow",Ie,$e,We,Oe,Ae,Ge,"px")}\n\n        ${ne("column-bg",Z,Y,X,ae,ie,oe,K,le,j,me)}\n\n        ${ee("column-align-self",je,Ke,Ze)}\n\t\t${function(e,t,a,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return`--sb-${e}-column-sm: ${a?a+o:"var(--sb-"+e+"-column-md)"};\n        --sb-${e}-column-md: ${i?i+o:"var(--sb-"+e+"-column-lg)"};\n        --sb-${e}-column-lg: ${t?t+o:"20px"};`}("column-gap",qe,Ye,Xe,Je)}\n    }`;o({sbStyle:Qe.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const{adjacentBlockClientId:et,adjacentBlock:tt,parentClientId:at,parentBlock:it,hasInnerBlocks:ot,isViewportAvailable:nt,isPreviewDesktop:rt,isPreviewTablet:lt,isPreviewMobile:st}=(0,e.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:a,getBlockRootClientId:i}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post"),n=a(s),r=t(s),l=a(r),m=i(s);return{adjacentBlockClientId:r,adjacentBlock:l,parentClientId:m,parentBlock:a(m),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!o,isPreviewDesktop:!!o&&"Desktop"===o(),isPreviewTablet:!!o&&"Tablet"===o(),isPreviewMobile:!!o&&"Mobile"===o()}}),[]),mt=(0,m.useViewportMatch)("large",">="),dt=(0,m.useViewportMatch)("large","<="),ct=(0,m.useViewportMatch)("small",">="),pt=(0,m.useViewportMatch)("small","<=");(0,i.useEffect)((()=>{const e=q(s,re);return()=>e(y)}),[y]);const[gt,ut]=(0,i.useState)(0),[ht,yt]=(0,i.useState)(0);let bt=mt&&!dt&&ct&&!pt,vt=!mt&&!dt&&ct&&!pt,Tt=!(mt||dt||ct||pt);nt&&!Tt&&(bt=rt,vt=lt,Tt=st),void 0===b&&it.innerBlocks.map(((e,t)=>{if(s===e.clientId){const e=it.attributes.columns,a=it.attributes.layout;h(s,{columnWidth:p[e][a][t]})}}));const St=v,ft=l()(n);return(0,i.createElement)("div",(0,d.useBlockProps)(),(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",G,t)),(0,i.createElement)(se,{attributes:a,setAttributes:o,isSelected:r,clientId:s,adjacentBlock:tt,parentBlock:it,updateBlockAttributes:h,adjacentBlockClientId:et}),(0,i.createElement)(u.ResizableBox,{className:"block-library-spacer__resize-container sb-column-resize-container",enable:{right:!!et},handleWrapperClass:"sb-column-resize-container-handle",onResizeStart:()=>{ut(b),yt(tt.attributes.columnWidth),g(!1)},onResize:(e,t,a,i)=>{const n=document.getElementById(`block-${at}`).getBoundingClientRect().width,r=i.width/n*100,l=parseFloat(gt)+r,s=ht-r;10<=l&&10<=s&&(o({columnWidth:l.toFixed(2)}),h(et,{columnWidth:s.toFixed(2)}))},onResizeStop:()=>{g(!0)}},(0,i.createElement)(St,{className:ft,id:y},(0,i.createElement)(d.InnerBlocks,{templateLock:!1,renderAppender:!ot&&d.InnerBlocks.ButtonBlockAppender}))))},save:e=>{let{attributes:t,className:a}=e;const{id:o,columnsHTMLTag:n}=t,r=l()(a),s=n;return(0,i.createElement)(s,{className:r,id:o},(0,i.createElement)(d.InnerBlocks.Content,null))}});const me=e=>{let{label:t,value:a,setValue:o}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-text sb-display-inline"},t&&(0,i.createElement)("label",null,t),(0,i.createElement)("div",{class:"sb-field-child"},(0,i.createElement)(u.TextControl,{value:a,onChange:o}))))},de=t=>{const{attributes:a,setAttributes:o}=t,{enableSticky:n,stickyOffsetTop:r,stickyOffsetTopSm:s,stickyOffsetTopMd:m,stickyOffsetTopUnit:p,columnMarginSmTop:h,columnMarginSmRight:y,columnMarginSmBottom:b,columnMarginSmLeft:v,columnMarginMdTop:L,columnMarginMdRight:M,columnMarginMdBottom:N,columnMarginMdLeft:z,columnMarginTop:D,columnMarginRight:U,columnMarginBottom:P,columnMarginLeft:I,columnMarginUnit:$,columnPaddingSmTop:W,columnPaddingSmRight:O,columnPaddingSmBottom:A,columnPaddingSmLeft:G,columnPaddingMdTop:j,columnPaddingMdRight:K,columnPaddingMdBottom:Z,columnPaddingMdLeft:q,columnPaddingTop:Y,columnPaddingRight:X,columnPaddingBottom:J,columnPaddingLeft:Q,columnPaddingUnit:ee,columnBgType:te,columnBgColor:ae,columnBgImgURL:ie,columnBgImgID:oe,columnBgAttachment:ne,columnBgSize:re,columnBgPositionX:le,columnBgPositionY:se,columnBgRepeat:de,columnBgGradient:ce,columnBgOverlayColor:pe,borderNormal:ge,borderHover:ue,borderNormalColor:he,borderHoverColor:ye,borderNormalWidthTop:be,borderNormalWidthLeft:ve,borderNormalWidthRight:Te,borderNormalWidthBottom:Se,borderNormalWidthUnit:fe,borderHoverWidthTop:Le,borderHoverWidthLeft:Me,borderHoverWidthRight:xe,borderHoverWidthBottom:Ee,borderHoverWidthUnit:ke,borderNormalRadiusTop:Be,borderNormalRadiusLeft:_e,borderNormalRadiusRight:He,borderNormalRadiusBottom:Ne,borderNormalRadiusUnit:Ve,borderHoverRadiusTop:Ce,borderHoverRadiusLeft:we,borderHoverRadiusRight:Fe,borderHoverRadiusBottom:Re,borderHoverRadiusUnit:ze,borderNormalBoxShadowHorizontal:De,borderNormalBoxShadowVertical:Ue,borderNormalBoxShadowBlur:Pe,borderNormalBoxShadowSpread:Ie,borderNormalBoxShadowColor:$e,borderNormalBoxShadowInset:We,borderHoverBoxShadowHorizontal:Oe,borderHoverBoxShadowVertical:Ae,borderHoverBoxShadowBlur:Ge,borderHoverBoxShadowSpread:je,borderHoverBoxShadowColor:Ke,borderHoverBoxShadowInset:Ze,flexibleContentDisplay:qe,flexDirection:Ye,flexDirectionSm:Xe,flexDirectionMd:Je,containerWidthEnable:Qe,containerWidth:et,containerWidthSm:tt,containerWidthMd:at,containerWidthUnit:it,justifyContent:ot,justifyContentSm:nt,justifyContentMd:rt,justifyItems:lt,justifyItemsSm:st,justifyItemsMd:mt,alignItems:dt,alignItemsSm:ct,alignItemsMd:pt,containerWrap:gt,containerWrapSm:ut,containerWrapMd:ht,containerGapRow:yt,containerGapSmRow:bt,containerGapMdRow:vt,containerGapColumn:Tt,containerGapSmColumn:St,containerGapMdColumn:ft,containerGapUnit:Lt,gridColumnNumber:Mt,gridColumnNumberSm:xt,gridColumnNumberMd:Et,hrefLinkURL:kt,columnsHTMLTag:Bt}=a,[_t,Ht]=(0,i.useState)("layout");return(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===_t}),onClick:()=>Ht("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===_t}),onClick:()=>Ht("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===_t}),onClick:()=>Ht("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===_t&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Sticky Options","smart-blocks"),initialOpen:!1},(0,i.createElement)(F,{label:(0,g.__)("Enable Sticky","smart-blocks"),checked:n,onChange:()=>o({enableSticky:!n})}),n&&(0,i.createElement)(E,{label:(0,g.__)("Sticky Offset","smart-blocks"),min:0,max:300,responsive:!1,value:r,setValue:e=>o({stickyOffsetTop:e}),useUnit:!0,units:["px"],unit:p,setUnit:e=>o({stickyOffsetTopUnit:e})}),(0,i.createElement)("p",{className:"sb-inspector-help-text"},(0,g.__)("Container Should be inside column for sticky","smart-blocks"))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Flexible Content Options","smart-blocks"),initialOpen:!1},(0,i.createElement)(F,{label:(0,g.__)("Set Width","smart-blocks"),checked:Qe,onChange:()=>o({containerWidthEnable:!Qe})}),Qe&&(0,i.createElement)(E,{label:(0,g.__)("Container Width","smart-blocks"),min:0,max:2e3,responsive:!0,value:et,setValue:e=>o({containerWidth:e}),valueSm:tt,setValueSm:e=>o({containerWidthSm:e}),valueMd:at,setValueMd:e=>o({containerWidthMd:e}),useUnit:!0,unit:it,setUnit:e=>o({containerWidthUnit:e})}),(0,i.createElement)("div",{className:"sb-inspect-tabs"},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Flex","smart-blocks")},(0,i.createElement)("button",{className:(qe&&"flex"!==qe?"":"active-tab")+" components-button sb-tab-menu",onClick:()=>o({flexibleContentDisplay:"flex"})},(0,g.__)("Flex","smart-blocks"))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Grid","smart-blocks")},(0,i.createElement)("button",{className:("grid"===qe?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({flexibleContentDisplay:"grid"})},(0,g.__)("Grid","smart-blocks"))))),(!qe||"flex"===qe)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k,{label:(0,g.__)("Direction","smart-blocks"),responsive:!0,options:[{value:"row",icon:(0,i.createElement)("i",{class:"sbi-arrow-right"}),label:(0,g.__)("Right","smart-blocks")},{value:"column",icon:(0,i.createElement)("i",{class:"sbi-arrow-down"}),label:(0,g.__)("Bottom","smart-blocks")},{value:"row-reverse",icon:(0,i.createElement)("i",{class:"sbi-arrow-left"}),label:(0,g.__)("Left","smart-blocks")},{value:"column-reverse",icon:(0,i.createElement)("i",{class:"sbi-arrow-up"}),label:(0,g.__)("Top","smart-blocks")}],value:Ye,setValue:e=>o({flexDirection:e}),valueSm:Xe,setValueSm:e=>o({flexDirectionSm:e}),valueMd:Je,setValueMd:e=>o({flexDirectionMd:e})}),(0,i.createElement)(k,{label:(0,g.__)("Container Wrap","smart-blocks"),responsive:!0,options:[{value:"nowrap",icon:(0,i.createElement)("i",{class:"sbi-arrow-right"}),label:(0,g.__)("No Wrap","smart-blocks")},{value:"wrap",icon:(0,i.createElement)("i",{class:"sbi-wrap"}),label:(0,g.__)("Wrap","smart-blocks")}],value:gt,setValue:e=>o({containerWrap:e}),valueSm:ut,setValueSm:e=>o({containerWrapSm:e}),valueMd:ht,setValueMd:e=>o({containerWrapMd:e})})),"grid"===qe&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(E,{label:(0,g.__)("Column Number","smart-blocks"),min:1,max:8,responsive:!0,value:Mt,setValue:e=>o({gridColumnNumber:e}),valueSm:xt,setValueSm:e=>o({gridColumnNumberSm:e}),valueMd:Et,setValueMd:e=>o({gridColumnNumberMd:e})})),(0,i.createElement)(k,{label:(0,g.__)("Align Items","smart-blocks"),responsive:!0,options:[{value:"flex-start",icon:(0,i.createElement)("i",{class:"sbi-align-start-v"}),label:(0,g.__)("Flex Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-v"}),label:(0,g.__)("Center","smart-blocks")},{value:"flex-end",icon:(0,i.createElement)("i",{class:"sbi-align-end-v"}),label:(0,g.__)("Flex End","smart-blocks")},{value:"stretch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-v"}),label:(0,g.__)("Stretch","smart-blocks")}],value:dt,setValue:e=>o({alignItems:e}),valueSm:ct,setValueSm:e=>o({alignItemsSm:e}),valueMd:pt,setValueMd:e=>o({alignItemsMd:e})}),"flex"===qe&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k,{label:(0,g.__)("Justify Content","smart-blocks"),responsive:!0,options:[{value:"flex-start",icon:(0,i.createElement)("i",{class:"sbi-justify-start-h"}),label:(0,g.__)("Flex Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-justify-center-h"}),label:(0,g.__)("Center","smart-blocks")},{value:"flex-end",icon:(0,i.createElement)("i",{class:"sbi-justify-end-h"}),label:(0,g.__)("Flex End","smart-blocks")},{value:"space-between",icon:(0,i.createElement)("i",{class:"sbi-justify-space-between-h"}),label:(0,g.__)("Space Between","smart-blocks")},{value:"space-around",icon:(0,i.createElement)("i",{class:"sbi-justify-space-around-h"}),label:(0,g.__)("Space Around","smart-blocks")},{value:"space-evenly",icon:(0,i.createElement)("i",{class:"sbi-justify-space-evenly-h"}),label:(0,g.__)("Space Evenly","smart-blocks")}],value:ot,setValue:e=>o({justifyContent:e}),valueSm:nt,setValueSm:e=>o({justifyContentSm:e}),valueMd:rt,setValueMd:e=>o({justifyContentMd:e})})),"grid"===qe&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k,{label:(0,g.__)("Justify Items","smart-blocks"),responsive:!0,options:[{value:"start",icon:(0,i.createElement)("i",{class:"sbi-align-start-h"}),label:(0,g.__)("Start","smart-blocks")},{value:"center",icon:(0,i.createElement)("i",{class:"sbi-align-center-h"}),label:(0,g.__)("Center","smart-blocks")},{value:"end",icon:(0,i.createElement)("i",{class:"sbi-align-end-h"}),label:(0,g.__)("Stretch","smart-blocks")},{value:"srtetch",icon:(0,i.createElement)("i",{class:"sbi-align-stretch-h"}),label:(0,g.__)("Stretch","smart-blocks")}],value:lt,setValue:e=>o({justifyItems:e}),valueSm:st,setValueSm:e=>o({justifyItemsSm:e}),valueMd:mt,setValueMd:e=>o({justifyItemsMd:e})})),(0,i.createElement)(w,{label:(0,g.__)("Gaps","smart-blocks"),min:"0",max:"100",responsive:!0,gapColumn:Tt,setGapColumn:e=>o({containerGapColumn:e}),gapMdColumn:ft,setGapMdColumn:e=>o({containerGapMdColumn:e}),gapSmColumn:St,setGapSmColumn:e=>o({containerGapSmColumn:e}),gapRow:yt,setGapRow:e=>o({containerGapRow:e}),gapMdRow:vt,setGapMdRow:e=>o({containerGapMdRow:e}),gapSmRow:bt,setGapSmRow:e=>o({containerGapSmRow:e}),unit:Lt,setUnit:e=>o({containerGapUnit:e})})))||"style"===_t&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:D,setDimensionTop:e=>o({columnMarginTop:e}),dimensionMdTop:L,setDimensionMdTop:e=>o({columnMarginMdTop:e}),dimensionSmTop:h,setDimensionSmTop:e=>o({columnMarginSmTop:e}),dimensionLeft:I,setDimensionLeft:e=>o({columnMarginLeft:e}),dimensionMdLeft:z,setDimensionMdLeft:e=>o({columnMarginMdLeft:e}),dimensionSmLeft:v,setDimensionSmLeft:e=>o({columnMarginSmLeft:e}),dimensionRight:U,setDimensionRight:e=>o({columnMarginRight:e}),dimensionMdRight:M,setDimensionMdRight:e=>o({columnMarginMdRight:e}),dimensionSmRight:y,setDimensionSmRight:e=>o({columnMarginSmRight:e}),dimensionBottom:P,setDimensionBottom:e=>o({columnMarginBottom:e}),dimensionMdBottom:N,setDimensionMdBottom:e=>o({columnMarginMdBottom:e}),dimensionSmBottom:b,setDimensionSmBottom:e=>o({columnMarginSmBottom:e}),unit:$,setUnit:e=>o({columnMarginUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",responsive:!0,dimensionTop:Y,setDimensionTop:e=>o({columnPaddingTop:e}),dimensionMdTop:j,setDimensionMdTop:e=>o({columnPaddingMdTop:e}),dimensionSmTop:W,setDimensionSmTop:e=>o({columnPaddingSmTop:e}),dimensionLeft:Q,setDimensionLeft:e=>o({columnPaddingLeft:e}),dimensionMdLeft:q,setDimensionMdLeft:e=>o({columnPaddingMdLeft:e}),dimensionSmLeft:G,setDimensionSmLeft:e=>o({columnPaddingSmLeft:e}),dimensionRight:X,setDimensionRight:e=>o({columnPaddingRight:e}),dimensionMdRight:K,setDimensionMdRight:e=>o({columnPaddingMdRight:e}),dimensionSmRight:O,setDimensionSmRight:e=>o({columnPaddingSmRight:e}),dimensionBottom:J,setDimensionBottom:e=>o({columnPaddingBottom:e}),dimensionMdBottom:Z,setDimensionMdBottom:e=>o({columnPaddingMdBottom:e}),dimensionSmBottom:A,setDimensionSmBottom:e=>o({columnPaddingSmBottom:e}),unit:ee,setUnit:e=>o({columnPaddingUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:ge,setValue:e=>o({borderNormal:e})}),ge&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:he,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:be,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ve,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Te,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Se,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:fe,setUnit:e=>o({borderNormalWidthUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Be,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:_e,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:He,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ne,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ve,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:De,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Ue,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Pe,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ie,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:$e,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:We,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:ue,setValue:e=>o({borderHover:e})}),ue&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ye,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),units:["px","em"],dimensionTop:Le,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Me,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:xe,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Ee,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ke,setUnit:e=>o({borderHoverWidthUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Ce,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:we,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Fe,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Re,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ze,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Oe,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ae,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ge,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:je,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ke,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Ze,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)("div",{className:"sb-field sb-inspect-tabs "},(0,i.createElement)("div",{className:"components-tab-panel__tabs"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Image/Color","smart-blocks")},(0,i.createElement)("button",{className:("imageOrColor"===te?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"imageOrColor"})},(0,g.__)("Image/Color","smart-blocks"))),(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Gradient","smart-blocks")},(0,i.createElement)("button",{className:("gradient"===te?"active-tab":"")+" components-button sb-tab-menu",onClick:()=>o({columnBgType:"gradient"})},(0,g.__)("Gradient","smart-blocks")))),(0,i.createElement)("div",{className:"sb-field-tab-items"},"imageOrColor"===te&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ae,setValue:e=>o({columnBgColor:e})}),(0,i.createElement)(H,{label:(0,g.__)("Background Image","smart-blocks"),imageURL:ie,setImageURL:e=>o({columnBgImgURL:e}),imageID:oe,setImageID:e=>o({columnBgImgID:e}),imageAttachment:ne,setImageAttachment:e=>o({columnBgAttachment:e}),imageSize:re,setImageSize:e=>o({columnBgSize:e}),imagePositionX:le,setImagePositionX:e=>o({columnBgPositionX:e}),imagePositionY:se,setImagePositionY:e=>o({columnBgPositionY:e}),imageRepeat:de,setImageRepeat:e=>o({columnBgRepeat:e}),imageOverlayColor:pe,setImageOverlayColor:e=>o({columnBgOverlayColor:e})}))||"gradient"===te&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.GradientPicker,{label:(0,g.__)("Background Gradient","smart-blocks"),value:ce,onChange:e=>o({columnBgGradient:e})}))))))||"advanced"===_t&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Section Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("HTML Tag","smart-blocks"),value:Bt,options:[{label:(0,g.__)("Default (div)","smart-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"},{label:"anchor link",value:"a"}],onChange:e=>o({columnsHTMLTag:e}),inline:!1}),"a"==Bt&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(me,{label:(0,g.__)("Link URL","smart-blocks"),type:"text",value:kt,setValue:e=>o({hrefLinkURL:e})}),(0,i.createElement)("p",{className:"sb-inspector-help-text"},(0,g.__)("The contents inside the container should not have any anchort link inorder to work properly.","smart-blocks")))),(0,c.applyFilters)("smartblocks.containerBlocks","",t),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t)))))};(0,o.registerBlockType)("smart-blocks/container",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{viewBox:"0 0 60 40"},(0,i.createElement)("rect",{width:"60",height:"40"}))),null),supports:{align:["wide","full"],html:!1},category:"smart-blocks-block-modules",attributes:{id:{type:"string"},enableSticky:{type:"boolean",default:!1},stickyOffsetTop:{type:"string",default:0},stickyOffsetTopUnit:{type:"string",enum:["px"],default:"px"},sbStyle:{type:"string"},columnMarginSmTop:{type:"string"},columnMarginSmLeft:{type:"string"},columnMarginSmRight:{type:"string"},columnMarginSmBottom:{type:"string"},columnMarginMdTop:{type:"string"},columnMarginMdLeft:{type:"string"},columnMarginMdRight:{type:"string"},columnMarginMdBottom:{type:"string"},columnMarginTop:{type:"string"},columnMarginLeft:{type:"string"},columnMarginRight:{type:"string"},columnMarginBottom:{type:"string"},columnMarginUnit:{type:"string",enum:["px","em","%"],default:"px"},columnPaddingSmTop:{type:"string"},columnPaddingSmLeft:{type:"string"},columnPaddingSmRight:{type:"string"},columnPaddingSmBottom:{type:"string"},columnPaddingMdTop:{type:"string"},columnPaddingMdLeft:{type:"string"},columnPaddingMdRight:{type:"string"},columnPaddingMdBottom:{type:"string"},columnPaddingTop:{type:"string"},columnPaddingLeft:{type:"string"},columnPaddingRight:{type:"string"},columnPaddingBottom:{type:"string"},columnPaddingUnit:{type:"string",enum:["px","em","%"],default:"px"},columnsHTMLTag:{type:"string",default:"div"},borderNormal:{type:"string"},borderHover:{type:"string"},borderNormalColor:{type:"string"},borderHoverColor:{type:"string"},columnBgColor:{type:"string"},borderNormalWidthTop:{type:"string"},borderNormalWidthLeft:{type:"string"},borderNormalWidthRight:{type:"string"},borderNormalWidthBottom:{type:"string"},borderNormalWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverWidthTop:{type:"string"},borderHoverWidthLeft:{type:"string"},borderHoverWidthRight:{type:"string"},borderHoverWidthBottom:{type:"string"},borderHoverWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalRadiusTop:{type:"string"},borderNormalRadiusLeft:{type:"string"},borderNormalRadiusRight:{type:"string"},borderNormalRadiusBottom:{type:"string"},borderNormalRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderHoverRadiusTop:{type:"string"},borderHoverRadiusLeft:{type:"string"},borderHoverRadiusRight:{type:"string"},borderHoverRadiusBottom:{type:"string"},borderHoverRadiusUnit:{type:"string",enum:["px","em","%"],default:"px"},borderNormalBoxShadowHorizontal:{type:"string"},borderNormalBoxShadowVertical:{type:"string"},borderNormalBoxShadowBlur:{type:"string"},borderNormalBoxShadowSpread:{type:"string"},borderNormalBoxShadowColor:{type:"string"},borderNormalBoxShadowInset:{type:"string"},borderHoverBoxShadowHorizontal:{type:"string"},borderHoverBoxShadowVertical:{type:"string"},borderHoverBoxShadowBlur:{type:"string"},borderHoverBoxShadowSpread:{type:"string"},borderHoverBoxShadowColor:{type:"string"},borderHoverBoxShadowInset:{type:"string"},columnBgType:{type:"string",default:"imageOrColor",enum:["imageOrColor","gradient"]},columnBgImgURL:{type:"string"},columnBgImageID:{type:"string"},columnBgAttachment:{type:"string",default:"scroll"},columnBgSize:{type:"string",default:"auto"},columnBgPositionX:{type:"number",default:"0.5"},columnBgPositionY:{type:"number",default:"0.5"},columnBgRepeat:{type:"string",default:"repeat"},columnBgGradient:{type:"string"},columnBgOverlayColor:{type:"string"},columnAlignSelf:{type:"string"},columnAlignSelfSm:{type:"string"},columnAlignSelfMd:{type:"string"},flexibleContentDisplay:{type:"string",default:"flex",enum:["flex","grid"]},flexDirection:{type:"string"},flexDirectionSm:{type:"string"},flexDirectionMd:{type:"string"},containerWidthEnable:{type:"boolean"},containerWidth:{type:"string"},containerWidthSm:{type:"string"},containerWidthMd:{type:"string"},containerWidthUnit:{type:"string",enum:["px","em","%"],default:"px"},justifyContent:{type:"string"},justifyContentSm:{type:"string"},justifyContentMd:{type:"string"},justifyItems:{type:"string"},justifyItemsSm:{type:"string"},justifyItemsMd:{type:"string"},alignItems:{type:"string"},alignItemsSm:{type:"string"},alignItemsMd:{type:"string"},containerGapRow:{type:"string"},containerGapSmRow:{type:"string"},containerGapMdRow:{type:"string"},containerGapColumn:{type:"string"},containerGapSmColumn:{type:"string",default:20},containerGapMdColumn:{type:"string"},containerGapUnit:{type:"string",enum:["px","em","%"],default:"px"},containerWrap:{type:"string"},containerWrapSm:{type:"string"},containerWrapMd:{type:"string"},gridColumnNumber:{type:"string",default:"3"},gridColumnNumberSm:{type:"string"},gridColumnNumberMd:{type:"string"},hrefLinkURL:{type:"string"}},title:(0,g.__)("Container","smart-blocks"),description:(0,g.__)("Display container wrapper for elements","smart-blocks"),keywords:["section","column","row","container"],edit:function(t){const{attributes:a,setAttributes:o,clientId:n,className:r}=t,{id:s,enableSticky:m,stickyOffsetTop:p,stickyOffsetTopUnit:g,columnsHTMLTag:u,columnMarginSmTop:h,columnMarginSmRight:y,columnMarginSmBottom:b,columnMarginSmLeft:v,columnMarginMdTop:T,columnMarginMdRight:S,columnMarginMdBottom:f,columnMarginMdLeft:L,columnMarginTop:M,columnMarginRight:x,columnMarginBottom:E,columnMarginLeft:k,columnMarginUnit:B,columnPaddingSmTop:_,columnPaddingSmRight:H,columnPaddingSmBottom:N,columnPaddingSmLeft:V,columnPaddingMdTop:C,columnPaddingMdRight:w,columnPaddingMdBottom:F,columnPaddingMdLeft:R,columnPaddingTop:z,columnPaddingRight:D,columnPaddingBottom:U,columnPaddingLeft:P,columnPaddingUnit:I,sbStyle:$,columnBgColor:W,columnBgType:O,columnBgImgURL:A,columnBgAttachment:G,columnBgSize:j,columnBgPositionX:K,columnBgPositionY:Z,columnBgRepeat:q,columnBgGradient:Y,columnBgOverlayColor:X,borderNormal:ae,borderHover:ie,borderNormalColor:re,borderHoverColor:le,borderNormalWidthTop:se,borderNormalWidthLeft:me,borderNormalWidthRight:ce,borderNormalWidthBottom:pe,borderNormalWidthUnit:ge,borderHoverWidthTop:ue,borderHoverWidthLeft:he,borderHoverWidthRight:ye,borderHoverWidthBottom:be,borderHoverWidthUnit:ve,borderNormalRadiusTop:Te,borderNormalRadiusLeft:Se,borderNormalRadiusRight:fe,borderNormalRadiusBottom:Le,borderNormalRadiusUnit:Me,borderHoverRadiusTop:xe,borderHoverRadiusLeft:Ee,borderHoverRadiusRight:ke,borderHoverRadiusBottom:Be,borderHoverRadiusUnit:_e,borderNormalBoxShadowHorizontal:He,borderNormalBoxShadowVertical:Ne,borderNormalBoxShadowBlur:Ve,borderNormalBoxShadowSpread:Ce,borderNormalBoxShadowColor:we,borderNormalBoxShadowInset:Fe,borderHoverBoxShadowHorizontal:Re,borderHoverBoxShadowVertical:ze,borderHoverBoxShadowBlur:De,borderHoverBoxShadowSpread:Ue,borderHoverBoxShadowColor:Pe,borderHoverBoxShadowInset:Ie,flexibleContentDisplay:$e,flexDirection:We,flexDirectionSm:Oe,flexDirectionMd:Ae,justifyContent:Ge,justifyContentSm:je,justifyContentMd:Ke,justifyItems:Ze,justifyItemsSm:qe,justifyItemsMd:Ye,alignItems:Xe,alignItemsSm:Je,alignItemsMd:Qe,containerWrap:et,containerWrapSm:tt,containerWrapMd:at,containerGapRow:it,containerGapSmRow:ot,containerGapMdRow:nt,containerGapColumn:rt,containerGapSmColumn:lt,containerGapMdColumn:st,containerGapUnit:mt,gridColumnNumber:dt,gridColumnNumberSm:ct,gridColumnNumberMd:pt,containerWidthEnable:gt,containerWidth:ut,containerWidthSm:ht,containerWidthMd:yt,containerWidthUnit:bt,hrefLinkURL:vt}=a,{hasInnerBlocks:Tt}=(0,e.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),a=t(n);return{hasInnerBlocks:!(!a||!a.innerBlocks.length)}}),[]);o({id:(0,d.useBlockProps)().id}),o({sbStyle:`#${s} {\n    \t${Q("container-margin",M,x,E,k,h,y,b,v,T,S,f,L,B)}\n    \t${Q("container-padding",z,D,U,P,_,H,N,V,C,w,F,R,I)}\n\n    \t${gt?ee("container-width",ut,ht,yt,bt):""}\n\n\t\t--sb-container-border-normal:${ae||"0"};\n        --sb-container-border-hover: ${ie?ae:"var(--sb-container-border-normal)"};\n        --sb-container-border-normal-color: ${re||"initial"};\n        --sb-container-border-hover-color: ${le||"var(--sb-container-border-normal-color)"};\n\n        ${J("container-border-normal-width",se,ce,pe,me,ge)}\n        ${J("container-border-hover-width",ue,ye,be,he,ve)}\n        ${J("container-border-normal-radius",Te,fe,Le,Se,Me)}\n        ${J("container-border-hover-radius",xe,ke,Be,Ee,_e)}\n\n        ${te("container-border-normal-box-shadow",He,Ne,Ve,Ce,we,Fe,"px")}\n        ${te("container-border-hover-box-shadow",Re,ze,De,Ue,Pe,Ie,"px")}\n\n        ${ne("container-bg",A,G,j,K,Z,q,O,Y,W,X)}\n\n        --sb-container-sticky-offset:${p?p+"px":"0px"};\n\n        --sb-container-flexible-display:${$e||"flex"};\n        ${ee("container-flex-direction",We,Oe,Ae)}\n        ${ee("container-flex-justify-content",Ge,je,Ke)}\n\t\t${ee("container-flex-justify-items",Ze,qe,Ye)}\n        ${ee("container-flex-align-items",Xe,Je,Qe)}\n\t\t${oe("container-gap",it,ot,nt,rt,lt,st,mt)}\n        ${ee("container-flex-wrap",et,tt,at)}\n        ${ee("container-grid-columns",dt,ct,pt)}\n\n    }`.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const St=u,ft=l()(r,m?"sb-sticky-container":"",{"sb-transform-yes":t.attributes.sbTransformEnable},{"sb-float-yes":t.attributes.sbFloatEffectEnable},{"sb-float-infinite-rotation":t.attributes.sbFloatEffectRotateInfiniteEnable},{"sb-float-hide-on-tablet":a.sbFloatEffectHideOn&&a.sbFloatEffectHideOn.includes("tablet")},{"sb-float-hide-on-mobile":a.sbFloatEffectHideOn&&a.sbFloatEffectHideOn.includes("mobile")},{"sb-float-hide-on-desktop":a.sbFloatEffectHideOn&&a.sbFloatEffectHideOn.includes("desktop")},{"sb-parallax-yes":t.attributes.sbParallaxStyle&&"none"!=t.attributes.sbParallaxStyle},a.sbColorAnimationType?`sb--ca-${a.sbColorAnimationType}`:"");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",$,t),(0,c.applyFilters)("smartblocks.containercss","",t)),(0,i.createElement)(de,{attributes:a,setAttributes:o}),(0,i.createElement)(St,(0,d.useBlockProps)({id:s,className:ft,href:"a"==St&&vt?vt:""}),(0,i.createElement)(d.InnerBlocks,{templateLock:!1,renderAppender:!Tt&&d.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t,className:a}=e;const{id:o,columnsHTMLTag:n,enableSticky:r,hrefLinkURL:s}=t,m=l()(a,r?"sb-sticky-container":"",{"sb-is-frontend":!0},{"sb-transform-yes":t.sbTransformEnable},{"sb-float-yes":t.sbFloatEffectEnable},{"sb-float-infinite-rotation":t.sbFloatEffectRotateInfiniteEnable},{"sb-float-hide-on-tablet":t.sbFloatEffectHideOn&&t.sbFloatEffectHideOn.includes("tablet")},{"sb-float-hide-on-mobile":t.sbFloatEffectHideOn&&t.sbFloatEffectHideOn.includes("mobile")},{"sb-float-hide-on-desktop":t.sbFloatEffectHideOn&&t.sbFloatEffectHideOn.includes("desktop")},{"sb-parallax-yes":t.sbParallaxStyle&&"none"!=t.sbParallaxStyle},t.sbColorAnimationType?`sb--ca-${t.sbColorAnimationType}`:""),c=n;return(0,i.createElement)(c,d.useBlockProps.save({id:o,className:m,href:"a"==c&&s?s:""}),(0,i.createElement)("div",{class:"wp-block-smart-blocks-float-container"},(0,i.createElement)("div",{class:"wp-block-smart-blocks-container-content"},(0,i.createElement)(d.InnerBlocks.Content,null))))}});const ce=window.wp.date,pe=JSON.parse('[{"family":"inherit","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"ABeeZee","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Abel","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Abhaya Libre","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","sinhala":"Sinhala"}},{"family":"Abril Fatface","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Aclonica","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Acme","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Actor","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Adamina","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Advent Pro","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Aguafina Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Akronim","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Aladin","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Alata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alatsi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Aldrich","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Alef","variants":{"400":"Normal","700":"Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin"}},{"family":"Alegreya","variants":{"400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alegreya SC","variants":{"400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alegreya Sans","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alegreya Sans SC","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Aleo","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Alex Brush","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Alfa Slab One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Alice","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin"}},{"family":"Alike","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Alike Angular","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Allan","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Allerta","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Allerta Stencil","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Allura","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Almarai","variants":{"300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"arabic":"Arabic"}},{"family":"Almendra","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Almendra Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Almendra SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Amarante","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Amaranth","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Amatic SC","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Amethysta","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Amiko","variants":{"400":"Normal","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Amiri","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Amita","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Anaheim","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Andada","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Andika","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Angkor","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Annie Use Your Telescope","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Anonymous Pro","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Antic","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Antic Didone","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Antic Slab","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Anton","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Arapey","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Arbutus","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Arbutus Slab","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Architects Daughter","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Archivo","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Archivo Black","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Archivo Narrow","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Aref Ruqaa","variants":{"400":"Normal","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Arima Madurai","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil","vietnamese":"Vietnamese"}},{"family":"Arimo","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Arizonia","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Armata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Arsenal","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Artifika","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Arvo","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Arya","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Asap","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Asap Condensed","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Asar","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Asset","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Assistant","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin"}},{"family":"Astloch","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Asul","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Athiti","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Atma","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Atomic Age","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Aubrey","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Audiowide","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Autour One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Average","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Average Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Averia Gruesa Libre","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Averia Libre","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Averia Sans Libre","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Averia Serif Libre","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"B612","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"B612 Mono","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Bad Script","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin"}},{"family":"Bahiana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bahianita","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bai Jamjuree","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Baloo 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Bhai 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Bhaina 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","oriya":"Oriya","vietnamese":"Vietnamese"}},{"family":"Baloo Chettan 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","malayalam":"Malayalam","vietnamese":"Vietnamese"}},{"family":"Baloo Da 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Paaji 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gurmukhi":"Gurmukhi","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Tamma 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"kannada":"Kannada","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Baloo Tammudu 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","telugu":"Telugu","vietnamese":"Vietnamese"}},{"family":"Baloo Thambi 2","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil","vietnamese":"Vietnamese"}},{"family":"Balsamiq Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Balthazar","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bangers","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barlow","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barlow Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barlow Semi Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barriecito","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Barrio","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Basic","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Baskervville","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Battambang","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Baumans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bayon","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Be Vietnam","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bebas Neue","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Belgrano","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bellefair","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Belleza","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bellota","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bellota Text","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"BenchNine","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bentham","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Berkshire Swash","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Beth Ellen","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bevan","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Big Shoulders Display","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Big Shoulders Text","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bigelow Rules","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bigshot One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bilbo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bilbo Swash Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"BioRhyme","variants":{"200":"Extra Light","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"BioRhyme Expanded","variants":{"200":"Extra Light","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Biryani","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bitter","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Black And White Picture","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Black Han Sans","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Black Ops One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Blinker","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bokor","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Bonbon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Boogaloo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bowlby One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bowlby One SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Brawler","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Bree Serif","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bubblegum Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bubbler One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Buda","variants":{"300":"Light"},"subsets":{"latin":"Latin"}},{"family":"Buenard","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Bungee","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Hairline","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Inline","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Outline","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Bungee Shade","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Butcherman","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Butterfly Kids","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cabin","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cabin Condensed","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cabin Sketch","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Caesar Dressing","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cagliostro","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cairo","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Caladea","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Calistoga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Calligraffitti","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cambay","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cambo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Candal","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cantarell","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Cantata One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cantora One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Capriola","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cardo","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Carme","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Carrois Gothic","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Carrois Gothic SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Carter One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Catamaran","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Caudex","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Caveat","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Caveat Brush","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cedarville Cursive","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ceviche One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chakra Petch","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Changa","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Changa One","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Chango","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Charm","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Charmonman","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Chathura","variants":{"100":"Thin","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Chau Philomene One","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chela One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chelsea Market","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chenla","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Cherry Cream Soda","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cherry Swash","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chewy","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Chicle","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chilanka","variants":{"400":"Normal"},"subsets":{"latin":"Latin","malayalam":"Malayalam"}},{"family":"Chivo","variants":{"300":"Light","400":"Normal","700":"Bold","900":"Ultra Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Chonburi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Cinzel","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cinzel Decorative","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Clicker Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Coda","variants":{"400":"Normal","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Coda Caption","variants":{"800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Codystar","variants":{"300":"Light","400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Coiny","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil","vietnamese":"Vietnamese"}},{"family":"Combo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Comfortaa","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Comic Neue","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Coming Soon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Concert One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Condiment","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Content","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Contrail One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Convergence","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cookie","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Copse","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Corben","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cormorant","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Garamond","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Infant","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant SC","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Unicase","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cormorant Upright","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Courgette","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Courier Prime","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cousine","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Coustard","variants":{"400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Covered By Your Grace","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Crafty Girls","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Creepster","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Crete Round","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Crimson Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Crimson Text","variants":{"400":"Normal","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Croissant One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Crushed","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Cuprum","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Cute Font","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Cutive","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Cutive Mono","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Mono","variants":{"300":"Light","400":"Normal","500":"Medium","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Sans","variants":{"400":"Normal","500":"Medium","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Serif Display","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"DM Serif Text","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Damion","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Dancing Script","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Dangrek","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Darker Grotesque","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"David Libre","variants":{"400":"Normal","500":"Medium","700":"Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Dawning of a New Day","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Days One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Dekko","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Delius","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Delius Swash Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Delius Unicase","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Della Respira","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Denk One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Devonshire","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Dhurjati","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Didact Gothic","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Diplomata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Diplomata SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Do Hyeon","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Dokdo","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Domine","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Donegal One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Doppio One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Dorsa","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Dosis","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Dr Sugiyama","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Duru Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Dynalight","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"EB Garamond","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Eagle Lake","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"East Sea Dokdo","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Eater","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Economica","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Eczar","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"El Messiri","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","cyrillic":"Cyrillic","latin":"Latin"}},{"family":"Electrolize","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Elsie","variants":{"400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Elsie Swash Caps","variants":{"400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Emblema One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Emilys Candy","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Encode Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Expanded","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Semi Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Encode Sans Semi Expanded","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Engagement","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Englebert","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Enriqueta","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Epilogue","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Erica One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Esteban","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Euphoria Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ewert","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Exo","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Exo 2","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Expletus Sans","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Fahkwang","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Fanwood Text","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Farro","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Farsan","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fascinate","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fascinate Inline","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Faster One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fasthand","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Fauna One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Faustina","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Federant","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Federo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Felipa","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fenix","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Finger Paint","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fira Code","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fira Mono","variants":{"400":"Normal","500":"Medium","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fira Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fira Sans Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fira Sans Extra Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Fjalla One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fjord One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Flamenco","variants":{"300":"Light","400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Flavors","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fondamento","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fontdiner Swanky","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Forum","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Francois One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Frank Ruhl Libre","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Freckle Face","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fredericka the Great","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fredoka One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Freehand","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Fresca","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Frijole","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Fruktur","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Fugaz One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"GFS Didot","variants":{"400":"Normal"},"subsets":{"greek":"Greek"}},{"family":"GFS Neohellenic","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"greek":"Greek"}},{"family":"Gabriela","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin"}},{"family":"Gaegu","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gafata","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Galada","variants":{"400":"Normal"},"subsets":{"bengali":"Bengali","latin":"Latin"}},{"family":"Galdeano","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Galindo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gamja Flower","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gayathri","variants":{"100":"Thin","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","malayalam":"Malayalam"}},{"family":"Gelasio","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Gentium Basic","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gentium Book Basic","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Geo","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Geostar","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Geostar Fill","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Germania One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Gidugu","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Gilda Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Girassol","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Give You Glory","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Glass Antiqua","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Glegoo","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gloria Hallelujah","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Goblin One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Gochi Hand","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Gorditas","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Gothic A1","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gotu","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Goudy Bookletter 1911","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Graduate","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Grand Hotel","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gravitas One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Great Vibes","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Grenze","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Grenze Gotisch","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Griffy","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gruppo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gudea","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Gugi","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Gupter","variants":{"400":"Normal","500":"Medium","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Gurajada","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Habibi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Halant","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hammersmith One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hanalei","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hanalei Fill","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Handlee","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Hanuman","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Happy Monkey","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Harmattan","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Headland One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Heebo","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin"}},{"family":"Henny Penny","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Hepta Slab","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Herr Von Muellerhoff","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hi Melody","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Hind","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hind Guntur","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","telugu":"Telugu"}},{"family":"Hind Madurai","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Hind Siliguri","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Hind Vadodara","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Holtwood One SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Homemade Apple","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Homenaje","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IBM Plex Mono","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IBM Plex Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IBM Plex Sans Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IBM Plex Serif","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"IM Fell DW Pica","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell DW Pica SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Double Pica","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Double Pica SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell English","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell English SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell French Canon","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell French Canon SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Great Primer","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"IM Fell Great Primer SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ibarra Real Nova","variants":{"400":"Normal","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Iceberg","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Iceland","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Imprima","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inconsolata","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Inder","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Indie Flower","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Inika","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inknut Antiqua","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inria Sans","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inria Serif","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Inter","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Irish Grover","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Istok Web","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Italiana","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Italianno","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Itim","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Jacques Francois","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Jacques Francois Shadow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Jaldi","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jim Nightshade","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jockey One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jolly Lodger","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jomhuria","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jomolhari","variants":{"400":"Normal"},"subsets":{"latin":"Latin","tibetan":null}},{"family":"Josefin Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Josefin Slab","variants":{"100":"Thin","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Jost","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Joti One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Jua","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Judson","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Julee","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Julius Sans One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Junge","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Jura","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Just Another Hand","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Just Me Again Down Here","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"K2D","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kadwa","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin"}},{"family":"Kalam","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kameron","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Kanit","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kantumruy","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Karla","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Karma","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Katibeh","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kaushan Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kavivanar","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Kavoon","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kdam Thmor","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Keania One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kelly Slab","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kenia","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Khand","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Khmer","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Khula","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kirang Haerang","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Kite One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Knewave","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"KoHo","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kodchasan","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kosugi","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","japanese":null,"latin":"Latin"}},{"family":"Kosugi Maru","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","japanese":null,"latin":"Latin"}},{"family":"Kotta One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Koulen","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Kranky","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Kreon","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kristi","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Krona One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Krub","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Kulim Park","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kumar One","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kumar One Outline","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Kurale","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"La Belle Aurore","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lacquer","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Laila","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lakki Reddy","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Lalezar","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lancelot","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lateef","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Lato","variants":{"100":"Thin","300":"Light","400":"Normal","700":"Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"League Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Leckerli One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ledger","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lekton","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lemon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lemonada","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Deca","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Exa","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Giga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Mega","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Peta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Tera","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lexend Zetta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Libre Barcode 128","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 128 Text","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39 Extended","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39 Extended Text","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Barcode 39 Text","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Libre Baskerville","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Libre Caslon Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Libre Caslon Text","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Libre Franklin","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Life Savers","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lilita One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Lily Script One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Limelight","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Linden Hill","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Literata","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Liu Jian Mao Cao","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Livvic","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lobster","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Lobster Two","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Londrina Outline","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Londrina Shadow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Londrina Sketch","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Londrina Solid","variants":{"100":"Thin","300":"Light","400":"Normal","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Long Cang","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Lora","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Love Ya Like A Sister","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Loved by the King","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lovers Quarrel","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Luckiest Guy","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Lusitana","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Lustria","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"M PLUS 1p","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","japanese":null,"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"M PLUS Rounded 1c","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","japanese":null,"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Ma Shan Zheng","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Macondo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Macondo Swash Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Mada","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Magra","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Maiden Orange","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Maitree","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Major Mono Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Mako","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Mali","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Mallanna","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Mandali","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Manjari","variants":{"100":"Thin","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","malayalam":"Malayalam"}},{"family":"Manrope","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"cyrillic":"Cyrillic","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mansalva","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Manuale","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Marcellus","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Marcellus SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Marck Script","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Margarine","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Markazi Text","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Marko One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Marmelad","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Martel","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Martel Sans","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Marvel","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Mate","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Mate SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Maven Pro","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"McLaren","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Meddon","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"MedievalSharp","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Medula One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Meera Inimai","variants":{"400":"Normal"},"subsets":{"latin":"Latin","tamil":"Tamil"}},{"family":"Megrim","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Meie Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Merienda","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Merienda One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Merriweather","variants":{"300":"Light","400":"Normal","700":"Bold","900":"Ultra Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Merriweather Sans","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Metal","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Metal Mania","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Metamorphous","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Metrophobic","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Michroma","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Milonga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Miltonian","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Miltonian Tattoo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Mina","variants":{"400":"Normal","700":"Bold"},"subsets":{"bengali":"Bengali","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Miniver","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Miriam Libre","variants":{"400":"Normal","700":"Bold"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mirza","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Miss Fajardose","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mitr","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Modak","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Modern Antiqua","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mogra","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Molengo","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Molle","variants":{"400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Monda","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Monofett","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Monoton","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Monsieur La Doulaise","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Montaga","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Montez","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Montserrat","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Montserrat Alternates","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Montserrat Subrayada","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Moul","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Moulpali","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Mountains of Christmas","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Mouse Memoirs","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mr Bedfort","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mr Dafoe","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mr De Haviland","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mrs Saint Delafield","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mrs Sheppards","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mukta","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mukta Mahee","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gurmukhi":"Gurmukhi","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mukta Malar","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Mukta Vaani","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Mulish","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"MuseoModerno","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Mystery Quest","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"NTR","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Nanum Brush Script","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Gothic","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Gothic Coding","variants":{"400":"Normal","700":"Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Myeongjo","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Nanum Pen Script","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Neucha","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin"}},{"family":"Neuton","variants":{"200":"Extra Light","300":"Light","400":"Normal","700":"Bold","800":"Extra Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"New Rocker","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"News Cycle","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Niconne","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Niramit","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Nixie One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nobile","variants":{"400":"Normal","500":"Medium","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Nokora","variants":{"400":"Normal","700":"Bold"},"subsets":{"khmer":"Khmer"}},{"family":"Norican","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Nosifer","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Notable","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nothing You Could Do","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Noticia Text","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Noto Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","devanagari":"Devanagari","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Noto Sans HK","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-hongkong":null,"latin":"Latin"}},{"family":"Noto Sans JP","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"japanese":null,"latin":"Latin"}},{"family":"Noto Sans KR","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Noto Sans SC","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Noto Sans TC","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-traditional":null,"latin":"Latin"}},{"family":"Noto Serif","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Noto Serif JP","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"japanese":null,"latin":"Latin"}},{"family":"Noto Serif KR","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Noto Serif SC","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Noto Serif TC","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"chinese-traditional":null,"latin":"Latin"}},{"family":"Nova Cut","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Flat","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Mono","variants":{"400":"Normal"},"subsets":{"greek":"Greek","latin":"Latin"}},{"family":"Nova Oval","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Round","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Slim","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nova Square","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Numans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Nunito","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Nunito Sans","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Odibee Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Odor Mean Chey","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Offside","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Old Standard TT","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Oldenburg","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oleo Script","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oleo Script Swash Caps","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Open Sans","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Open Sans Condensed","variants":{"300":"Light","700":"Bold","300italic":"Light Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Oranienbaum","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Orbitron","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Oregano","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Orienta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Original Surfer","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Oswald","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Over the Rainbow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Overlock","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Overlock SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Overpass","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Overpass Mono","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ovo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Oxanium","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oxygen","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Oxygen Mono","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Mono","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Sans Caption","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Sans Narrow","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Serif","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"PT Serif Caption","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pacifico","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Padauk","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","myanmar":"Myanmar"}},{"family":"Palanquin","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Palanquin Dark","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pangolin","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Paprika","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Parisienne","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Passero One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Passion One","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pathway Gothic One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Patrick Hand","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Patrick Hand SC","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Pattaya","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Patua One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pavanam","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","tamil":"Tamil"}},{"family":"Paytone One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Peddana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Peralta","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Permanent Marker","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Petit Formal Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Petrona","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Philosopher","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","vietnamese":"Vietnamese"}},{"family":"Piedra","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pinyon Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pirata One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Plaster","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Play","variants":{"400":"Normal","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Playball","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Playfair Display","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Playfair Display SC","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold","400italic":"Normal Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Podkova","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Poiret One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Poller One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Poly","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Pompiere","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pontano Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Poor Story","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Poppins","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Port Lligat Sans","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Port Lligat Slab","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Pragati Narrow","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Prata","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","vietnamese":"Vietnamese"}},{"family":"Preahvihear","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Press Start 2P","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Pridi","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Princess Sofia","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Prociono","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Prompt","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Prosto One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Proza Libre","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Public Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Puritan","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Purple Purse","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Quando","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Quantico","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Quattrocento","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Quattrocento Sans","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Questrial","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Quicksand","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Quintessential","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Qwigley","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Racing Sans One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Radley","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rajdhani","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rakkas","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Raleway","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Raleway Dots","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ramabhadra","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Ramaraja","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Rambla","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rammetto One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ranchers","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rancho","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ranga","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rasa","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rationale","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Ravi Prakash","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Recursive","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","vietnamese":"Vietnamese"}},{"family":"Red Hat Display","variants":{"400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Red Hat Text","variants":{"400":"Normal","500":"Medium","700":"Bold","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Red Rose","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Redressed","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Reem Kufi","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Reenie Beanie","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Revalia","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rhodium Libre","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ribeye","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ribeye Marrow","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Righteous","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Risque","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Roboto","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold","100italic":"Thin Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Roboto Condensed","variants":{"300":"Light","400":"Normal","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Roboto Mono","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Roboto Slab","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rochester","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Rock Salt","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Rokkitt","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Romanesco","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ropa Sans","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rosario","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rosarivo","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rouge Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Rowdies","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rozha One","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rubik","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rubik Mono One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruda","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Rufina","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruge Boogie","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruluko","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rum Raisin","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruslan Display","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Russo One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ruthie","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Rye","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sacramento","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sahitya","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin"}},{"family":"Sail","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Saira","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Extra Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Semi Condensed","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Saira Stencil One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Salsa","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sanchez","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sancreek","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sansita","variants":{"400":"Normal","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sarabun","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Sarala","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sarina","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sarpanch","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Satisfy","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sawarabi Gothic","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","japanese":null,"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Sawarabi Mincho","variants":{"400":"Normal"},"subsets":{"japanese":null,"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Scada","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Scheherazade","variants":{"400":"Normal","700":"Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Schoolbell","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Scope One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Seaweed Script","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Secular One","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sedgwick Ave","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Sedgwick Ave Display","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Sen","variants":{"400":"Normal","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sevillana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Seymour One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Shadows Into Light","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Shadows Into Light Two","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Shanti","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Share","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Share Tech","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Share Tech Mono","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Shojumaru","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Short Stack","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Shrikhand","variants":{"400":"Normal"},"subsets":{"gujarati":"Gujarati","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Siemreap","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Sigmar One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Signika","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Signika Negative","variants":{"300":"Light","400":"Normal","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Simonetta","variants":{"400":"Normal","900":"Ultra Bold","400italic":"Normal Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Single Day","variants":{"400":"Normal"},"subsets":{"korean":null}},{"family":"Sintony","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sirin Stencil","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Six Caps","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Skranji","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Slabo 13px","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Slabo 27px","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Slackey","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Smokum","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Smythe","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sniglet","variants":{"400":"Normal","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Snippet","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Snowburst One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sofadi One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sofia","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Solway","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin"}},{"family":"Song Myung","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Sonsie One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sora","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sorts Mill Goudy","variants":{"400":"Normal","400italic":"Normal Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Source Code Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Source Sans Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Source Serif Pro","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Space Mono","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Spartan","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Special Elite","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Spectral","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Spectral SC","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Spicy Rice","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Spinnaker","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Spirax","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Squada One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sree Krushnadevaraya","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Sriracha","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Srisakdi","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Staatliches","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stalemate","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stalinist One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stardos Stencil","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Stint Ultra Condensed","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stint Ultra Expanded","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Stoke","variants":{"300":"Light","400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Strait","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Stylish","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Sue Ellen Francisco","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Suez One","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sulphur Point","variants":{"300":"Light","400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sumana","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Sunflower","variants":{"300":"Light","500":"Medium","700":"Bold"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Sunshiney","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Supermercado One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Sura","variants":{"400":"Normal","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Suranna","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Suravaram","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Suwannaphum","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Swanky and Moo Moo","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Syncopate","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Tajawal","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold","900":"Ultra Bold"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Tangerine","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Taprom","variants":{"400":"Normal"},"subsets":{"khmer":"Khmer"}},{"family":"Tauri","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Taviraj","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Teko","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Telex","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Tenali Ramakrishna","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Tenor Sans","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Text Me One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Thasadith","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"The Girl Next Door","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Tienne","variants":{"400":"Normal","700":"Bold","900":"Ultra Bold"},"subsets":{"latin":"Latin"}},{"family":"Tillana","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Timmana","variants":{"400":"Normal"},"subsets":{"latin":"Latin","telugu":"Telugu"}},{"family":"Tinos","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Titan One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Titillium Web","variants":{"200":"Extra Light","300":"Light","400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Tomorrow","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Trade Winds","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Trirong","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","thai":"Thai","vietnamese":"Vietnamese"}},{"family":"Trocchi","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Trochut","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic"},"subsets":{"latin":"Latin"}},{"family":"Trykker","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Tulpen One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Turret Road","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","700":"Bold","800":"Extra Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ubuntu","variants":{"300":"Light","400":"Normal","500":"Medium","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ubuntu Condensed","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ubuntu Mono","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","greek-ext":"Greek Extended","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Ultra","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Uncial Antiqua","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Underdog","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Unica One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"UnifrakturCook","variants":{"700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"UnifrakturMaguntia","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Unkempt","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin"}},{"family":"Unlock","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Unna","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"VT323","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vampiro One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Varela","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Varela Round","variants":{"400":"Normal"},"subsets":{"hebrew":"Hebrew","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Varta","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vast Shadow","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Vesper Libre","variants":{"400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Viaoda Libre","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vibes","variants":{"400":"Normal"},"subsets":{"arabic":"Arabic","latin":"Latin"}},{"family":"Vibur","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Vidaloka","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Viga","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Voces","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Volkhov","variants":{"400":"Normal","700":"Bold","400italic":"Normal Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin"}},{"family":"Vollkorn","variants":{"400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","greek":"Greek","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Vollkorn SC","variants":{"400":"Normal","600":"Semi Bold","700":"Bold","900":"Ultra Bold"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Voltaire","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Waiting for the Sunrise","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Wallpoet","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Walter Turncoat","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Warnes","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Wellfleet","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Wendy One","variants":{"400":"Normal"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Wire One","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Work Sans","variants":{"100":"Thin","200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","800":"Extra Bold","900":"Ultra Bold","100italic":"Thin Italic","200italic":"Extra Light Italic","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic","800italic":"Extra Bold Italic","900italic":"Ultra Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Yanone Kaffeesatz","variants":{"200":"Extra Light","300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"cyrillic":"Cyrillic","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Yantramanav","variants":{"100":"Thin","300":"Light","400":"Normal","500":"Medium","700":"Bold","900":"Ultra Bold"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Yatra One","variants":{"400":"Normal"},"subsets":{"devanagari":"Devanagari","latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Yellowtail","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Yeon Sung","variants":{"400":"Normal"},"subsets":{"korean":null,"latin":"Latin"}},{"family":"Yeseva One","variants":{"400":"Normal"},"subsets":{"cyrillic":"Cyrillic","cyrillic-ext":"Cyrillic Extended","latin":"Latin","latin-ext":"Latin Extended","vietnamese":"Vietnamese"}},{"family":"Yesteryear","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Yrsa","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"ZCOOL KuaiLe","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"ZCOOL QingKe HuangYou","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"ZCOOL XiaoWei","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Zeyada","variants":{"400":"Normal"},"subsets":{"latin":"Latin"}},{"family":"Zhi Mang Xing","variants":{"400":"Normal"},"subsets":{"chinese-simplified":null,"latin":"Latin"}},{"family":"Zilla Slab","variants":{"300":"Light","400":"Normal","500":"Medium","600":"Semi Bold","700":"Bold","300italic":"Light Italic","400italic":"Normal Italic","500italic":"Medium Italic","600italic":"Semi Bold Italic","700italic":"Bold Italic"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}},{"family":"Zilla Slab Highlight","variants":{"400":"Normal","700":"Bold"},"subsets":{"latin":"Latin","latin-ext":"Latin Extended"}}]');function ge(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ue(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function he(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(a),!0).forEach((function(t){ge(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ue(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function be(e,t){if(e){if("string"==typeof e)return ye(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ye(e,t):void 0}}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,o,n=[],_n=!0,r=!1;try{for(a=a.call(e);!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==a.return||a.return()}finally{if(r)throw o}}return n}}(e,t)||be(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 Te(e,t){if(null==e)return{};var a,i,o=function(e,t){if(null==e)return{};var a,i,o={},n=Object.keys(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}var Se=a(196),fe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Le.apply(this,arguments)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ee(e,t,a){return t&&xe(e.prototype,t),a&&xe(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}function Be(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}function He(e){return He="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},He(e)}function Ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ve(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ne(e)}function Ce(e){return function(e){if(Array.isArray(e))return ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||be(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.")}()}var we=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(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.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(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.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=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]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Fe=Math.abs,Re=String.fromCharCode,ze=Object.assign;function De(e){return e.trim()}function Ue(e,t,a){return e.replace(t,a)}function Pe(e,t){return e.indexOf(t)}function Ie(e,t){return 0|e.charCodeAt(t)}function $e(e,t,a){return e.slice(t,a)}function We(e){return e.length}function Oe(e){return e.length}function Ae(e,t){return t.push(e),e}var Ge=1,je=1,Ke=0,Ze=0,qe=0,Ye="";function Xe(e,t,a,i,o,n,r){return{value:e,root:t,parent:a,type:i,props:o,children:n,line:Ge,column:je,length:r,return:""}}function Je(e,t){return ze(Xe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qe(){return qe=Ze>0?Ie(Ye,--Ze):0,je--,10===qe&&(je=1,Ge--),qe}function et(){return qe=Ze<Ke?Ie(Ye,Ze++):0,je++,10===qe&&(je=1,Ge++),qe}function tt(){return Ie(Ye,Ze)}function at(){return Ze}function it(e,t){return $e(Ye,e,t)}function ot(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function nt(e){return Ge=je=1,Ke=We(Ye=e),Ze=0,[]}function rt(e){return Ye="",e}function lt(e){return De(it(Ze-1,dt(91===e?e+2:40===e?e+1:e)))}function st(e){for(;(qe=tt())&&qe<33;)et();return ot(e)>2||ot(qe)>3?"":" "}function mt(e,t){for(;--t&&et()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return it(e,at()+(t<6&&32==tt()&&32==et()))}function dt(e){for(;et();)switch(qe){case e:return Ze;case 34:case 39:34!==e&&39!==e&&dt(qe);break;case 40:41===e&&dt(e);break;case 92:et()}return Ze}function ct(e,t){for(;et()&&e+qe!==57&&(e+qe!==84||47!==tt()););return"/*"+it(t,Ze-1)+"*"+Re(47===e?e:et())}function pt(e){for(;!ot(tt());)et();return it(e,Ze)}var gt="-ms-",ut="-webkit-",ht="comm",yt="rule",bt="decl",vt="@keyframes";function Tt(e,t){for(var a="",i=Oe(e),o=0;o<i;o++)a+=t(e[o],o,e,t)||"";return a}function St(e,t,a,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bt:return e.return=e.return||e.value;case ht:return"";case vt:return e.return=e.value+"{"+Tt(e.children,i)+"}";case yt:e.value=e.props.join(",")}return We(a=Tt(e.children,i))?e.return=e.value+"{"+a+"}":""}function ft(e){return rt(Lt("",null,null,null,[""],e=nt(e),0,[0],e))}function Lt(e,t,a,i,o,n,r,l,s){for(var m=0,d=0,c=r,p=0,g=0,u=0,h=1,y=1,b=1,v=0,T="",S=o,f=n,L=i,M=T;y;)switch(u=v,v=et()){case 40:if(108!=u&&58==Ie(M,c-1)){-1!=Pe(M+=Ue(lt(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:M+=lt(v);break;case 9:case 10:case 13:case 32:M+=st(u);break;case 92:M+=mt(at()-1,7);continue;case 47:switch(tt()){case 42:case 47:Ae(xt(ct(et(),at()),t,a),s);break;default:M+="/"}break;case 123*h:l[m++]=We(M)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:-1==b&&(M=Ue(M,/\f/g,"")),g>0&&We(M)-c&&Ae(g>32?Et(M+";",i,a,c-1):Et(Ue(M," ","")+";",i,a,c-2),s);break;case 59:M+=";";default:if(Ae(L=Mt(M,t,a,m,d,o,l,T,S=[],f=[],c),n),123===v)if(0===d)Lt(M,t,L,L,S,n,c,l,f);else switch(99===p&&110===Ie(M,3)?100:p){case 100:case 108:case 109:case 115:Lt(e,L,L,i&&Ae(Mt(e,L,L,0,0,o,l,T,o,S=[],c),f),o,f,c,l,i?S:f);break;default:Lt(M,L,L,L,[""],f,0,l,f)}}m=d=g=0,h=b=1,T=M="",c=r;break;case 58:c=1+We(M),g=u;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Qe())continue;switch(M+=Re(v),v*h){case 38:b=d>0?1:(M+="\f",-1);break;case 44:l[m++]=(We(M)-1)*b,b=1;break;case 64:45===tt()&&(M+=lt(et())),p=tt(),d=c=We(T=M+=pt(at())),v++;break;case 45:45===u&&2==We(M)&&(h=0)}}return n}function Mt(e,t,a,i,o,n,r,l,s,m,d){for(var c=o-1,p=0===o?n:[""],g=Oe(p),u=0,h=0,y=0;u<i;++u)for(var b=0,v=$e(e,c+1,c=Fe(h=r[u])),T=e;b<g;++b)(T=De(h>0?p[b]+" "+v:Ue(v,/&\f/g,p[b])))&&(s[y++]=T);return Xe(e,t,a,0===o?yt:l,s,m,d)}function xt(e,t,a){return Xe(e,t,a,ht,Re(qe),$e(e,2,-2),0)}function Et(e,t,a,i){return Xe(e,t,a,bt,$e(e,0,i),$e(e,i+1,-1),i)}var kt=function(e,t,a){for(var i=0,o=0;i=o,o=tt(),38===i&&12===o&&(t[a]=1),!ot(o);)et();return it(e,Ze)},Bt=new WeakMap,_t=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,i=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Bt.get(a))&&!i){Bt.set(e,!0);for(var o=[],n=function(e,t){return rt(function(e,t){var a=-1,i=44;do{switch(ot(i)){case 0:38===i&&12===tt()&&(t[a]=1),e[a]+=kt(Ze-1,t,a);break;case 2:e[a]+=lt(i);break;case 4:if(44===i){e[++a]=58===tt()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=Re(i)}}while(i=et());return e}(nt(e),t))}(t,o),r=a.props,l=0,s=0;l<n.length;l++)for(var m=0;m<r.length;m++,s++)e.props[s]=o[l]?n[l].replace(/&\f/g,r[m]):r[m]+" "+n[l]}}},Ht=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Nt(e,t){switch(function(e,t){return 45^Ie(e,0)?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ut+e+"-moz-"+e+gt+e+e;case 6828:case 4268:return ut+e+gt+e+e;case 6165:return ut+e+gt+"flex-"+e+e;case 5187:return ut+e+Ue(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return ut+e+gt+"flex-item-"+Ue(e,/flex-|-self/,"")+e;case 4675:return ut+e+gt+"flex-line-pack"+Ue(e,/align-content|flex-|-self/,"")+e;case 5548:return ut+e+gt+Ue(e,"shrink","negative")+e;case 5292:return ut+e+gt+Ue(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+Ue(e,"-grow","")+ut+e+gt+Ue(e,"grow","positive")+e;case 4554:return ut+Ue(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Ue(Ue(Ue(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return Ue(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return Ue(Ue(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ut+e+e;case 4095:case 3583:case 4068:case 2532:return Ue(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(We(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(45!==Ie(e,t+4))break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Ie(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pe(e,"stretch")?Nt(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ie(e,t+1))break;case 6444:switch(Ie(e,We(e)-3-(~Pe(e,"!important")&&10))){case 107:return Ue(e,":",":-webkit-")+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Ie(e,14)?"inline-":"")+"box$3$1-webkit-$2$3$1-ms-$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return ut+e+gt+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ut+e+gt+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ut+e+gt+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ut+e+gt+e+e}return e}var Vt=[function(e,t,a,i){if(e.length>-1&&!e.return)switch(e.type){case bt:e.return=Nt(e.value,e.length);break;case vt:return Tt([Je(e,{value:Ue(e.value,"@","@-webkit-")})],i);case yt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Tt([Je(e,{props:[Ue(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return Tt([Je(e,{props:[Ue(t,/:(plac\w+)/,":-webkit-input-$1")]}),Je(e,{props:[Ue(t,/:(plac\w+)/,":-moz-$1")]}),Je(e,{props:[Ue(t,/:(plac\w+)/,"-ms-input-$1")]})],i)}return""}))}}],Ct=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,n=e.stylisPlugins||Vt,r={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)r[t[a]]=!0;l.push(e)}));var s,m,d,c,p=[St,(c=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],g=(m=[_t,Ht].concat(n,p),d=Oe(m),function(e,t,a,i){for(var o="",n=0;n<d;n++)o+=m[n](e,t,a,i)||"";return o});o=function(e,t,a,i){s=a,Tt(ft(e?e+"{"+t.styles+"}":t.styles),g),i&&(u.inserted[t.name]=!0)};var u={key:t,sheet:new we({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:o};return u.sheet.hydrate(l),u},wt=function(e,t,a){var i=e.key+"-"+t.name;!1===a&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},Ft={animationIterationCount:1,aspectRatio: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};function Rt(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}var zt=/[A-Z]|^ms/g,Dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ut=function(e){return 45===e.charCodeAt(1)},Pt=function(e){return null!=e&&"boolean"!=typeof e},It=Rt((function(e){return Ut(e)?e:e.replace(zt,"-$&").toLowerCase()})),$t=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Dt,(function(e,t,a){return Ot={name:t,styles:a,next:Ot},t}))}return 1===Ft[e]||Ut(e)||"number"!=typeof t||0===t?t:t+"px"};function Wt(e,t,a){if(null==a)return"";var i=a;if(void 0!==i.__emotion_styles)return i;switch(typeof a){case"boolean":return"";case"object":var o=a;if(1===o.anim)return Ot={name:o.name,styles:o.styles,next:Ot},o.name;var n=a;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ot={name:r.name,styles:r.styles,next:Ot},r=r.next;return n.styles+";"}return function(e,t,a){var i="";if(Array.isArray(a))for(var o=0;o<a.length;o++)i+=Wt(e,t,a[o])+";";else for(var n in a){var r=a[n];if("object"!=typeof r){var l=r;null!=t&&void 0!==t[l]?i+=n+"{"+t[l]+"}":Pt(l)&&(i+=It(n)+":"+$t(n,l)+";")}else if(!Array.isArray(r)||"string"!=typeof r[0]||null!=t&&void 0!==t[r[0]]){var s=Wt(e,t,r);switch(n){case"animation":case"animationName":i+=It(n)+":"+s+";";break;default:i+=n+"{"+s+"}"}}else for(var m=0;m<r.length;m++)Pt(r[m])&&(i+=It(n)+":"+$t(n,r[m])+";")}return i}(e,t,a);case"function":if(void 0!==e){var l=Ot,s=a(e);return Ot=l,Wt(e,t,s)}}var m=a;if(null==t)return m;var d=t[m];return void 0!==d?d:m}var Ot,At=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Gt(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";Ot=void 0;var n=e[0];null==n||void 0===n.raw?(i=!1,o+=Wt(a,t,n)):o+=n[0];for(var r=1;r<e.length;r++)o+=Wt(a,t,e[r]),i&&(o+=n[r]);At.lastIndex=0;for(var l,s="";null!==(l=At.exec(o));)s+="-"+l[1];var m=function(e){for(var t,a=0,i=0,o=e.length;o>=4;++i,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(o){case 3:a^=(255&e.charCodeAt(i+2))<<16;case 2:a^=(255&e.charCodeAt(i+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(i)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)}(o)+s;return{name:m,styles:o,next:Ot}}var jt=!!Se.useInsertionEffect&&Se.useInsertionEffect,Kt=jt||function(e){return e()},Zt=(jt||Se.useLayoutEffect,Se.createContext("undefined"!=typeof HTMLElement?Ct({key:"css"}):null)),qt=(Zt.Provider,function(e){return(0,Se.forwardRef)((function(t,a){var i=(0,Se.useContext)(Zt);return e(t,i,a)}))}),Yt=Se.createContext({}),Xt={}.hasOwnProperty,Jt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qt=function(e,t){var a={};for(var i in t)Xt.call(t,i)&&(a[i]=t[i]);return a[Jt]=e,a},ea=function(e){var t=e.cache,a=e.serialized,i=e.isStringTag;return wt(t,a,i),Kt((function(){return function(e,t,a){wt(e,t,a);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+i:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,a,i)})),null},ta=qt((function(e,t,a){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[Jt],n=[i],r="";"string"==typeof e.className?r=function(e,t,a){var i="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):i+=a+" "})),i}(t.registered,n,e.className):null!=e.className&&(r=e.className+" ");var l=Gt(n,void 0,Se.useContext(Yt));r+=t.key+"-"+l.name;var s={};for(var m in e)Xt.call(e,m)&&"css"!==m&&m!==Jt&&(s[m]=e[m]);return s.className=r,a&&(s.ref=a),Se.createElement(Se.Fragment,null,Se.createElement(ea,{cache:t,serialized:l,isStringTag:"string"==typeof o}),Se.createElement(o,s))})),aa=ta,ia=(a(679),function(e,t){var a=arguments;if(null==t||!Xt.call(t,"css"))return Se.createElement.apply(void 0,a);var i=a.length,o=new Array(i);o[0]=aa,o[1]=Qt(e,t);for(var n=2;n<i;n++)o[n]=a[n];return Se.createElement.apply(null,o)});function oa(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Gt(t)}const na=window.ReactDOM,ra=Math.min,la=Math.max,sa=Math.round,ma=Math.floor,da=e=>({x:e,y:e});function ca(e){return ua(e)?(e.nodeName||"").toLowerCase():"#document"}function pa(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ga(e){var t;return null==(t=(ua(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ua(e){return e instanceof Node||e instanceof pa(e).Node}function ha(e){return e instanceof Element||e instanceof pa(e).Element}function ya(e){return e instanceof HTMLElement||e instanceof pa(e).HTMLElement}function ba(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof pa(e).ShadowRoot)}function va(e){const{overflow:t,overflowX:a,overflowY:i,display:o}=Ta(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(o)}function Ta(e){return pa(e).getComputedStyle(e)}function Sa(e){const t=function(e){if("html"===ca(e))return e;const t=e.assignedSlot||e.parentNode||ba(e)&&e.host||ga(e);return ba(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(ca(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ya(t)&&va(t)?t:Sa(t)}function fa(e,t,a){var i;void 0===t&&(t=[]),void 0===a&&(a=!0);const o=Sa(e),n=o===(null==(i=e.ownerDocument)?void 0:i.body),r=pa(o);return n?t.concat(r,r.visualViewport||[],va(o)?o:[],r.frameElement&&a?fa(r.frameElement):[]):t.concat(o,fa(o,[],a))}function La(e){return ha(e)?e:e.contextElement}function Ma(e){const t=La(e);if(!ya(t))return da(1);const a=t.getBoundingClientRect(),{width:i,height:o,$:n}=function(e){const t=Ta(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=ya(e),n=o?e.offsetWidth:a,r=o?e.offsetHeight:i,l=sa(a)!==n||sa(i)!==r;return l&&(a=n,i=r),{width:a,height:i,$:l}}(t);let r=(n?sa(a.width):a.width)/i,l=(n?sa(a.height):a.height)/o;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}const xa=da(0);function Ea(e){const t=pa(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:xa}function ka(e,t,a,i){void 0===t&&(t=!1),void 0===a&&(a=!1);const o=e.getBoundingClientRect(),n=La(e);let r=da(1);t&&(i?ha(i)&&(r=Ma(i)):r=Ma(e));const l=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==pa(e))&&t}(n,a,i)?Ea(n):da(0);let s=(o.left+l.x)/r.x,m=(o.top+l.y)/r.y,d=o.width/r.x,c=o.height/r.y;if(n){const e=pa(n),t=i&&ha(i)?pa(i):i;let a=e,o=a.frameElement;for(;o&&i&&t!==a;){const e=Ma(o),t=o.getBoundingClientRect(),i=Ta(o),n=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;s*=e.x,m*=e.y,d*=e.x,c*=e.y,s+=n,m+=r,a=pa(o),o=a.frameElement}}return function(e){const{x:t,y:a,width:i,height:o}=e;return{width:i,height:o,top:a,left:t,right:t+i,bottom:a+o,x:t,y:a}}({width:d,height:c,x:s,y:m})}const Ba=Se.useLayoutEffect;var _a=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ha=function(){};function Na(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Va(e,t){for(var a=arguments.length,i=new Array(a>2?a-2:0),o=2;o<a;o++)i[o-2]=arguments[o];var n=[].concat(i);if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&n.push("".concat(Na(e,r)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ca=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===He(e)&&null!==e?[e]:[];var t},wa=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,he({},Te(e,_a))},Fa=function(e,t,a){var i=e.cx,o=e.getStyles,n=e.getClassNames,r=e.className;return{css:o(t,e),className:i(null!=a?a:{},n(t,e),r)}};function Ra(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function za(e){return Ra(e)?window.pageYOffset:e.scrollTop}function Da(e,t){Ra(e)?window.scrollTo(0,t):e.scrollTop=t}function Ua(e,t,a,i){return a*((e=e/i-1)*e*e+1)+t}function Pa(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ha,o=za(e),n=t-o,r=10,l=0;function s(){var t=Ua(l+=r,o,n,a);Da(e,t),l<a?window.requestAnimationFrame(s):i(e)}s()}function Ia(e,t){var a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=t.offsetHeight/3;i.bottom+o>a.bottom?Da(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):i.top-o<a.top&&Da(e,Math.max(t.offsetTop-o,0))}function $a(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Wa=!1,Oa={get passive(){return Wa=!0}},Aa="undefined"!=typeof window?window:{};Aa.addEventListener&&Aa.removeEventListener&&(Aa.addEventListener("p",Ha,Oa),Aa.removeEventListener("p",Ha,!1));var Ga=Wa;function ja(e){return null!=e}function Ka(e,t,a){return e?t:a}var Za=["children","innerProps"],qa=["children","innerProps"];var Ya,Xa,Ja,Qa=function(e){return"auto"===e?"bottom":e},ei=(0,Se.createContext)(null),ti=function(e){var t=e.children,a=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,n=e.menuPosition,r=e.menuShouldScrollIntoView,l=e.theme,s=((0,Se.useContext)(ei)||{}).setPortalPlacement,m=(0,Se.useRef)(null),d=ve((0,Se.useState)(i),2),c=d[0],p=d[1],g=ve((0,Se.useState)(null),2),u=g[0],h=g[1],y=l.spacing.controlHeight;return Ba((function(){var e=m.current;if(e){var t="fixed"===n,l=function(e){var t=e.maxHeight,a=e.menuEl,i=e.minHeight,o=e.placement,n=e.shouldScroll,r=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,i=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!a||"static"!==t.position)&&i.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(a),m={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return m;var d,c=s.getBoundingClientRect().height,p=a.getBoundingClientRect(),g=p.bottom,u=p.height,h=p.top,y=a.offsetParent.getBoundingClientRect().top,b=r||Ra(d=s)?window.innerHeight:d.clientHeight,v=za(s),T=parseInt(getComputedStyle(a).marginBottom,10),S=parseInt(getComputedStyle(a).marginTop,10),f=y-S,L=b-h,M=f+v,x=c-v-h,E=g-b+v+T,k=v+h-S,B=160;switch(o){case"auto":case"bottom":if(L>=u)return{placement:"bottom",maxHeight:t};if(x>=u&&!r)return n&&Pa(s,E,B),{placement:"bottom",maxHeight:t};if(!r&&x>=i||r&&L>=i)return n&&Pa(s,E,B),{placement:"bottom",maxHeight:r?L-T:x-T};if("auto"===o||r){var _=t,H=r?f:M;return H>=i&&(_=Math.min(H-T-l,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return n&&Da(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(f>=u)return{placement:"top",maxHeight:t};if(M>=u&&!r)return n&&Pa(s,k,B),{placement:"top",maxHeight:t};if(!r&&M>=i||r&&f>=i){var N=t;return(!r&&M>=i||r&&f>=i)&&(N=r?f-S:M-S),n&&Pa(s,k,B),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return m}({maxHeight:i,menuEl:e,minHeight:a,placement:o,shouldScroll:r&&!t,isFixedPosition:t,controlHeight:y});p(l.maxHeight),h(l.placement),null==s||s(l.placement)}}),[i,o,n,r,a,s,y]),t({ref:m,placerProps:he(he({},e),{},{placement:u||Qa(o),maxHeight:c})})},ai=function(e,t){var a=e.theme,i=a.spacing.baseUnit,o=a.colors;return he({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*i,"px ").concat(3*i,"px")})},ii=ai,oi=ai,ni=["size"],ri=["innerProps","isRtl","size"],li={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},si=function(e){var t=e.size,a=Te(e,ni);return ia("svg",Le({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:li},a))},mi=function(e){return ia(si,Le({size:20},e),ia("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"}))},di=function(e){return ia(si,Le({size:20},e),ia("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"}))},ci=function(e,t){var a=e.isFocused,i=e.theme,o=i.spacing.baseUnit,n=i.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*o,":hover":{color:a?n.neutral80:n.neutral40}})},pi=ci,gi=ci,ui=function(){var e=oa.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_"}}}(Ya||(Xa=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Ja||(Ja=Xa.slice(0)),Ya=Object.freeze(Object.defineProperties(Xa,{raw:{value:Object.freeze(Ja)}})))),hi=function(e){var t=e.delay,a=e.offset;return ia("span",{css:oa({animation:"".concat(ui," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yi=["data"],bi=["innerRef","isDisabled","isHidden","inputClassName"],vi={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ti={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vi)},Si=function(e){return he({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},vi)},fi=function(e){var t=e.children,a=e.innerProps;return ia("div",a,t)},Li={ClearIndicator:function(e){var t=e.children,a=e.innerProps;return ia("div",Le({},Fa(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||ia(mi,null))},Control:function(e){var t=e.children,a=e.isDisabled,i=e.isFocused,o=e.innerRef,n=e.innerProps,r=e.menuIsOpen;return ia("div",Le({ref:o},Fa(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":r}),n,{"aria-disabled":a||void 0}),t)},DropdownIndicator:function(e){var t=e.children,a=e.innerProps;return ia("div",Le({},Fa(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||ia(di,null))},DownChevron:di,CrossIcon:mi,Group:function(e){var t=e.children,a=e.cx,i=e.getStyles,o=e.getClassNames,n=e.Heading,r=e.headingProps,l=e.innerProps,s=e.label,m=e.theme,d=e.selectProps;return ia("div",Le({},Fa(e,"group",{group:!0}),l),ia(n,Le({},r,{selectProps:d,theme:m,getStyles:i,getClassNames:o,cx:a}),s),ia("div",null,t))},GroupHeading:function(e){var t=wa(e);t.data;var a=Te(t,yi);return ia("div",Le({},Fa(e,"groupHeading",{"group-heading":!0}),a))},IndicatorsContainer:function(e){var t=e.children,a=e.innerProps;return ia("div",Le({},Fa(e,"indicatorsContainer",{indicators:!0}),a),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ia("span",Le({},t,Fa(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,a=e.value,i=wa(e),o=i.innerRef,n=i.isDisabled,r=i.isHidden,l=i.inputClassName,s=Te(i,bi);return ia("div",Le({},Fa(e,"input",{"input-container":!0}),{"data-value":a||""}),ia("input",Le({className:t({input:!0},l),ref:o,style:Si(r),disabled:n},s)))},LoadingIndicator:function(e){var t=e.innerProps,a=e.isRtl,i=e.size,o=void 0===i?4:i,n=Te(e,ri);return ia("div",Le({},Fa(he(he({},n),{},{innerProps:t,isRtl:a,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ia(hi,{delay:0,offset:a}),ia(hi,{delay:160,offset:!0}),ia(hi,{delay:320,offset:!a}))},Menu:function(e){var t=e.children,a=e.innerRef,i=e.innerProps;return ia("div",Le({},Fa(e,"menu",{menu:!0}),{ref:a},i),t)},MenuList:function(e){var t=e.children,a=e.innerProps,i=e.innerRef,o=e.isMulti;return ia("div",Le({},Fa(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},a),t)},MenuPortal:function(e){var t=e.appendTo,a=e.children,i=e.controlElement,o=e.innerProps,n=e.menuPlacement,r=e.menuPosition,l=(0,Se.useRef)(null),s=(0,Se.useRef)(null),m=ve((0,Se.useState)(Qa(n)),2),d=m[0],c=m[1],p=(0,Se.useMemo)((function(){return{setPortalPlacement:c}}),[]),g=ve((0,Se.useState)(null),2),u=g[0],h=g[1],y=(0,Se.useCallback)((function(){if(i){var e=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}}(i),t="fixed"===r?0:window.pageYOffset,a=e[d]+t;a===(null==u?void 0:u.offset)&&e.left===(null==u?void 0:u.rect.left)&&e.width===(null==u?void 0:u.rect.width)||h({offset:a,rect:e})}}),[i,r,d,null==u?void 0:u.offset,null==u?void 0:u.rect.left,null==u?void 0:u.rect.width]);Ba((function(){y()}),[y]);var b=(0,Se.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),i&&l.current&&(s.current=function(e,t,a,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=i,m=La(e),d=o||n?[...m?fa(m):[],...fa(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",a,{passive:!0}),n&&e.addEventListener("resize",a)}));const c=m&&l?function(e,t){let a,i=null;const o=ga(e);function n(){var e;clearTimeout(a),null==(e=i)||e.disconnect(),i=null}return function r(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),n();const{left:m,top:d,width:c,height:p}=e.getBoundingClientRect();if(l||t(),!c||!p)return;const g={rootMargin:-ma(d)+"px "+-ma(o.clientWidth-(m+c))+"px "+-ma(o.clientHeight-(d+p))+"px "+-ma(m)+"px",threshold:la(0,ra(1,s))||1};let u=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!u)return r();t?r(!1,t):a=setTimeout((()=>{r(!1,1e-7)}),1e3)}u=!1}try{i=new IntersectionObserver(h,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(h,g)}i.observe(e)}(!0),n}(m,a):null;let p,g=-1,u=null;r&&(u=new ResizeObserver((e=>{let[i]=e;i&&i.target===m&&u&&(u.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=u)||e.observe(t)}))),a()})),m&&!s&&u.observe(m),u.observe(t));let h=s?ka(e):null;return s&&function t(){const i=ka(e);!h||i.x===h.x&&i.y===h.y&&i.width===h.width&&i.height===h.height||a(),h=i,p=requestAnimationFrame(t)}(),a(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",a),n&&e.removeEventListener("resize",a)})),null==c||c(),null==(e=u)||e.disconnect(),u=null,s&&cancelAnimationFrame(p)}}(i,l.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);Ba((function(){b()}),[b]);var v=(0,Se.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==r||!u)return null;var T=ia("div",Le({ref:v},Fa(he(he({},e),{},{offset:u.offset,position:r,rect:u.rect}),"menuPortal",{"menu-portal":!0}),o),a);return ia(ei.Provider,{value:p},t?(0,na.createPortal)(T,t):T)},LoadingMessage:function(e){var t=e.children,a=void 0===t?"Loading...":t,i=e.innerProps,o=Te(e,qa);return ia("div",Le({},Fa(he(he({},o),{},{children:a,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),a)},NoOptionsMessage:function(e){var t=e.children,a=void 0===t?"No options":t,i=e.innerProps,o=Te(e,Za);return ia("div",Le({},Fa(he(he({},o),{},{children:a,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),a)},MultiValue:function(e){var t=e.children,a=e.components,i=e.data,o=e.innerProps,n=e.isDisabled,r=e.removeProps,l=e.selectProps,s=a.Container,m=a.Label,d=a.Remove;return ia(s,{data:i,innerProps:he(he({},Fa(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":n})),o),selectProps:l},ia(m,{data:i,innerProps:he({},Fa(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),ia(d,{data:i,innerProps:he(he({},Fa(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},r),selectProps:l}))},MultiValueContainer:fi,MultiValueLabel:fi,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return ia("div",Le({role:"button"},a),t||ia(mi,{size:14}))},Option:function(e){var t=e.children,a=e.isDisabled,i=e.isFocused,o=e.isSelected,n=e.innerRef,r=e.innerProps;return ia("div",Le({},Fa(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":o}),{ref:n,"aria-disabled":a},r),t)},Placeholder:function(e){var t=e.children,a=e.innerProps;return ia("div",Le({},Fa(e,"placeholder",{placeholder:!0}),a),t)},SelectContainer:function(e){var t=e.children,a=e.innerProps,i=e.isDisabled,o=e.isRtl;return ia("div",Le({},Fa(e,"container",{"--is-disabled":i,"--is-rtl":o}),a),t)},SingleValue:function(e){var t=e.children,a=e.isDisabled,i=e.innerProps;return ia("div",Le({},Fa(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),i),t)},ValueContainer:function(e){var t=e.children,a=e.innerProps,i=e.isMulti,o=e.hasValue;return ia("div",Le({},Fa(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),a),t)}},Mi=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xi(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((i=e[a])===(o=t[a])||Mi(i)&&Mi(o)))return!1;var i,o;return!0}for(var Ei={name:"7pg0cj-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"},ki=function(e){return ia("span",Le({css:Ei},e))},Bi={guidance:function(e){var t=e.isSearchable,a=e.isMulti,i=e.tabSelectsValue,o=e.context,n=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return n?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",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";default:return""}},onChange:function(e){var t=e.action,a=e.label,i=void 0===a?"":a,o=e.labels,n=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(i,n?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,i=e.options,o=e.label,n=void 0===o?"":o,r=e.selectValue,l=e.isDisabled,s=e.isSelected,m=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&r)return"value ".concat(n," focused, ").concat(d(r,a),".");if("menu"===t&&m){var c=l?" disabled":"",p="".concat(s?" selected":"").concat(c);return"".concat(n).concat(p,", ").concat(d(i,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},_i=function(e){var t=e.ariaSelection,a=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,n=e.isFocused,r=e.selectValue,l=e.selectProps,s=e.id,m=e.isAppleDevice,d=l.ariaLiveMessages,c=l.getOptionLabel,p=l.inputValue,g=l.isMulti,u=l.isOptionDisabled,h=l.isSearchable,y=l.menuIsOpen,b=l.options,v=l.screenReaderStatus,T=l.tabSelectsValue,S=l.isLoading,f=l["aria-label"],L=l["aria-live"],M=(0,Se.useMemo)((function(){return he(he({},Bi),d||{})}),[d]),x=(0,Se.useMemo)((function(){var e,a="";if(t&&M.onChange){var i=t.option,o=t.options,n=t.removedValue,l=t.removedValues,s=t.value,m=n||i||(e=s,Array.isArray(e)?null:e),d=m?c(m):"",p=o||l||void 0,g=p?p.map(c):[],h=he({isDisabled:m&&u(m,r),label:d,labels:g},t);a=M.onChange(h)}return a}),[t,M,u,r,c]),E=(0,Se.useMemo)((function(){var e="",t=a||i,n=!!(a&&r&&r.includes(a));if(t&&M.onFocus){var l={focused:t,label:c(t),isDisabled:u(t,r),isSelected:n,options:o,context:t===a?"menu":"value",selectValue:r,isAppleDevice:m};e=M.onFocus(l)}return e}),[a,i,c,u,M,o,r,m]),k=(0,Se.useMemo)((function(){var e="";if(y&&b.length&&!S&&M.onFilter){var t=v({count:o.length});e=M.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,M,b,v,S]),B="initial-input-focus"===(null==t?void 0:t.action),_=(0,Se.useMemo)((function(){var e="";if(M.guidance){var t=i?"value":y?"menu":"input";e=M.guidance({"aria-label":f,context:t,isDisabled:a&&u(a,r),isMulti:g,isSearchable:h,tabSelectsValue:T,isInitialFocus:B})}return e}),[f,a,i,g,u,h,y,M,r,T,B]),H=ia(Se.Fragment,null,ia("span",{id:"aria-selection"},x),ia("span",{id:"aria-focused"},E),ia("span",{id:"aria-results"},k),ia("span",{id:"aria-guidance"},_));return ia(Se.Fragment,null,ia(ki,{id:s},B&&H),ia(ki,{"aria-live":L,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},n&&!B&&H))},Hi=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Ni=new RegExp("["+Hi.map((function(e){return e.letters})).join("")+"]","g"),Vi={},Ci=0;Ci<Hi.length;Ci++)for(var wi=Hi[Ci],Fi=0;Fi<wi.letters.length;Fi++)Vi[wi.letters[Fi]]=wi.base;var Ri=function(e){return e.replace(Ni,(function(e){return Vi[e]}))},zi=function(e,t){void 0===t&&(t=xi);var a=null;function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(a&&a.lastThis===this&&t(i,a.lastArgs))return a.lastResult;var n=e.apply(this,i);return a={lastResult:n,lastArgs:i,lastThis:this},n}return i.clear=function(){a=null},i}(Ri),Di=function(e){return e.replace(/^\s+|\s+$/g,"")},Ui=function(e){return"".concat(e.label," ").concat(e.value)},Pi=["innerRef"];function Ii(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];var o=Object.entries(e).filter((function(e){var t=ve(e,1)[0];return!a.includes(t)}));return o.reduce((function(e,t){var a=ve(t,2),i=a[0],o=a[1];return e[i]=o,e}),{})}(Te(e,Pi),"onExited","in","enter","exit","appear");return ia("input",Le({ref:t},a,{css:oa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var $i=["boxSizing","height","overflow","paddingRight","position"],Wi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Oi(e){e.preventDefault()}function Ai(e){e.stopPropagation()}function Gi(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function ji(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ki=!("undefined"==typeof window||!window.document||!window.document.createElement),Zi=0,qi={capture:!1,passive:!1},Yi=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Xi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ji(e){var t=e.children,a=e.lockEnabled,i=e.captureEnabled,o=function(e){var t=e.isEnabled,a=e.onBottomArrive,i=e.onBottomLeave,o=e.onTopArrive,n=e.onTopLeave,r=(0,Se.useRef)(!1),l=(0,Se.useRef)(!1),s=(0,Se.useRef)(0),m=(0,Se.useRef)(null),d=(0,Se.useCallback)((function(e,t){if(null!==m.current){var s=m.current,d=s.scrollTop,c=s.scrollHeight,p=s.clientHeight,g=m.current,u=t>0,h=c-p-d,y=!1;h>t&&r.current&&(i&&i(e),r.current=!1),u&&l.current&&(n&&n(e),l.current=!1),u&&t>h?(a&&!r.current&&a(e),g.scrollTop=c,y=!0,r.current=!0):!u&&-t>d&&(o&&!l.current&&o(e),g.scrollTop=0,y=!0,l.current=!0),y&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[a,i,o,n]),c=(0,Se.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,Se.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),g=(0,Se.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;d(e,t)}),[d]),u=(0,Se.useCallback)((function(e){if(e){var t=!!Ga&&{passive:!1};e.addEventListener("wheel",c,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",g,t)}}),[g,p,c]),h=(0,Se.useCallback)((function(e){e&&(e.removeEventListener("wheel",c,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",g,!1))}),[g,p,c]);return(0,Se.useEffect)((function(){if(t){var e=m.current;return u(e),function(){h(e)}}}),[t,u,h]),function(e){m.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),n=function(e){var t=e.isEnabled,a=e.accountForScrollbars,i=void 0===a||a,o=(0,Se.useRef)({}),n=(0,Se.useRef)(null),r=(0,Se.useCallback)((function(e){if(Ki){var t=document.body,a=t&&t.style;if(i&&$i.forEach((function(e){var t=a&&a[e];o.current[e]=t})),i&&Zi<1){var n=parseInt(o.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,l=window.innerWidth-r+n||0;Object.keys(Wi).forEach((function(e){var t=Wi[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(l,"px"))}t&&ji()&&(t.addEventListener("touchmove",Oi,qi),e&&(e.addEventListener("touchstart",Gi,qi),e.addEventListener("touchmove",Ai,qi))),Zi+=1}}),[i]),l=(0,Se.useCallback)((function(e){if(Ki){var t=document.body,a=t&&t.style;Zi=Math.max(Zi-1,0),i&&Zi<1&&$i.forEach((function(e){var t=o.current[e];a&&(a[e]=t)})),t&&ji()&&(t.removeEventListener("touchmove",Oi,qi),e&&(e.removeEventListener("touchstart",Gi,qi),e.removeEventListener("touchmove",Ai,qi)))}}),[i]);return(0,Se.useEffect)((function(){if(t){var e=n.current;return r(e),function(){l(e)}}}),[t,r,l]),function(e){n.current=e}}({isEnabled:a});return ia(Se.Fragment,null,a&&ia("div",{onClick:Yi,css:Xi}),t((function(e){o(e),n(e)})))}var Qi={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},eo=function(e){var t=e.name,a=e.onFocus;return ia("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Qi,value:"",onChange:function(){}})};function to(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ao(){return to(/^Mac/i)}var io={clearIndicator:gi,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var a=e.isDisabled,i=e.isFocused,o=e.theme,n=o.colors,r=o.borderRadius;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?n.neutral5:n.neutral0,borderColor:a?n.neutral10:i?n.primary:n.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(n.primary):void 0,"&:hover":{borderColor:i?n.primary:n.neutral30}})},dropdownIndicator:pi,group:function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:2*a.baseUnit,paddingTop:2*a.baseUnit}},groupHeading:function(e,t){var a=e.theme,i=a.colors,o=a.spacing;return he({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var a=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,n=i.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?n.neutral10:n.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var a=e.isDisabled,i=e.value,o=e.theme,n=o.spacing,r=o.colors;return he(he({visibility:a?"hidden":"visible",transform:i?"translateZ(0)":""},Ti),t?{}:{margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,color:r.neutral80})},loadingIndicator:function(e,t){var a=e.isFocused,i=e.size,o=e.theme,n=o.colors,r=o.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*r})},loadingMessage:oi,menu:function(e,t){var a,i=e.placement,o=e.theme,n=o.borderRadius,r=o.spacing,l=o.colors;return he((ge(a={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(i),"100%"),ge(a,"position","absolute"),ge(a,"width","100%"),ge(a,"zIndex",1),a),t?{}:{backgroundColor:l.neutral0,borderRadius:n,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:r.menuGutter,marginTop:r.menuGutter})},menuList:function(e,t){var a=e.maxHeight,i=e.theme.spacing.baseUnit;return he({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},menuPortal:function(e){var t=e.rect,a=e.offset,i=e.position;return{left:t.left,position:i,top:a,width:t.width,zIndex:1}},multiValue:function(e,t){var a=e.theme,i=a.spacing,o=a.borderRadius,n=a.colors;return he({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:n.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},multiValueLabel:function(e,t){var a=e.theme,i=a.borderRadius,o=a.colors,n=e.cropWithEllipsis;return he({overflow:"hidden",textOverflow:n||void 0===n?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var a=e.theme,i=a.spacing,o=a.borderRadius,n=a.colors,r=e.isFocused;return he({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:r?n.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}})},noOptionsMessage:ii,option:function(e,t){var a=e.isDisabled,i=e.isFocused,o=e.isSelected,n=e.theme,r=n.spacing,l=n.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:a?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),":active":{backgroundColor:a?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var a=e.theme,i=a.spacing,o=a.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},singleValue:function(e,t){var a=e.isDisabled,i=e.theme,o=i.spacing,n=i.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?n.neutral40:n.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var a=e.theme.spacing,i=e.isMulti,o=e.hasValue,n=e.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:i&&o&&n?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(2*a.baseUnit,"px")})}},oo={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}},no={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:$a(),captureMenuScroll:!$a(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=he({ignoreCase:!0,ignoreAccents:!0,stringify:Ui,trim:!0,matchFrom:"any"},undefined),i=a.ignoreCase,o=a.ignoreAccents,n=a.stringify,r=a.trim,l=a.matchFrom,s=r?Di(t):t,m=r?Di(n(e)):n(e);return i&&(s=s.toLowerCase(),m=m.toLowerCase()),o&&(s=zi(s),m=Ri(m)),"start"===l?m.substr(0,s.length)===s:m.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:function(e){return!!e.isDisabled},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,unstyled:!1};function ro(e,t,a,i){return{type:"option",data:t,isDisabled:ho(e,t,a),isSelected:yo(e,t,a),label:go(e,t),value:uo(e,t),index:i}}function lo(e,t){return e.options.map((function(a,i){if("options"in a){var o=a.options.map((function(a,i){return ro(e,a,t,i)})).filter((function(t){return co(e,t)}));return o.length>0?{type:"group",data:a,options:o,index:i}:void 0}var n=ro(e,a,t,i);return co(e,n)?n:void 0})).filter(ja)}function so(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ce(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function mo(e,t){return e.reduce((function(e,a){return"group"===a.type?e.push.apply(e,Ce(a.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(a.index,"-").concat(e.index)}})))):e.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),e}),[])}function co(e,t){var a=e.inputValue,i=void 0===a?"":a,o=t.data,n=t.isSelected,r=t.label,l=t.value;return(!vo(e)||!n)&&bo(e,{label:r,value:l,data:o},i)}var po=function(e,t){var a;return(null===(a=e.find((function(e){return e.data===t})))||void 0===a?void 0:a.id)||null},go=function(e,t){return e.getOptionLabel(t)},uo=function(e,t){return e.getOptionValue(t)};function ho(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function yo(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var i=uo(e,t);return a.some((function(t){return uo(e,t)===i}))}function bo(e,t,a){return!e.filterOption||e.filterOption(t,a)}var vo=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},To=1,So=function(e){Be(o,e);var t,a,i=(t=o,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,i=_e(t);if(a){var o=_e(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return Ve(this,e)});function o(e){var t;if(Me(this,o),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=ao()||to(/^iPhone/i)||to(/^iPad/i)||ao()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,a){var i=t.props,o=i.onChange,n=i.name;a.name=n,t.ariaOnChange(e,a),o(e,a)},t.setValue=function(e,a,i){var o=t.props,n=o.closeMenuOnSelect,r=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),n&&(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:a,option:i})},t.selectOption=function(e){var a=t.props,i=a.blurInputOnSelect,o=a.isMulti,n=a.name,r=t.state.selectValue,l=o&&t.isOptionSelected(e,r),s=t.isOptionDisabled(e,r);if(l){var m=t.getOptionValue(e);t.setValue(r.filter((function(e){return t.getOptionValue(e)!==m})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:n});o?t.setValue([].concat(Ce(r),[e]),"select-option",e):t.setValue(e,"select-option")}i&&t.blurInput()},t.removeValue=function(e){var a=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),n=i.filter((function(e){return t.getOptionValue(e)!==o})),r=Ka(a,n,n[0]||null);t.onChange(r,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ka(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,a=t.state.selectValue,i=a[a.length-1],o=a.slice(0,a.length-1),n=Ka(e,o,o[0]||null);t.onChange(n,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return po(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return mo(lo(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return Va.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return go(t.props,e)},t.getOptionValue=function(e){return uo(t.props,e)},t.getStyles=function(e,a){var i=t.props.unstyled,o=io[e](a,i);o.boxSizing="border-box";var n=t.props.styles[e];return n?n(o,a):o},t.getClassNames=function(e,a){var i,o;return null===(i=(o=t.props.classNames)[e])||void 0===i?void 0:i.call(o,a)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,he(he({},Li),e.components);var e},t.buildCategorizedOptions=function(){return lo(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return so(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:he({value:e},a)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var a=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():a&&t.openMenu("first"):(a&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var a=t.props,i=a.isMulti,o=a.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ra(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var a=e.touches,i=a&&a.item(0);i&&(t.initialTouchX=i.clientX,t.initialTouchY=i.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var a=e.touches,i=a&&a.item(0);if(i){var o=Math.abs(i.clientX-t.initialTouchX),n=Math.abs(i.clientY-t.initialTouchY);t.userIsDragging=o>5||n>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var a=t.props.inputValue,i=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(i,{action:"input-change",prevInputValue:a}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var a=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:a}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var a=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:a>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return vo(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var a=t.props,i=a.isMulti,o=a.backspaceRemovesValue,n=a.escapeClearsValue,r=a.inputValue,l=a.isClearable,s=a.isDisabled,m=a.menuIsOpen,d=a.onKeyDown,c=a.tabSelectsValue,p=a.openMenuOnFocus,g=t.state,u=g.focusedOption,h=g.focusedValue,y=g.selectValue;if(!(s||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!i||r)return;t.focusValue("previous");break;case"ArrowRight":if(!i||r)return;t.focusValue("next");break;case"Delete":case"Backspace":if(r)return;if(h)t.removeValue(h);else{if(!o)return;i?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!m||!c||!u||p&&t.isOptionSelected(u,y))return;t.selectOption(u);break;case"Enter":if(229===e.keyCode)break;if(m){if(!u)return;if(t.isComposing)return;t.selectOption(u);break}return;case"Escape":m?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:r}),t.onMenuClose()):l&&n&&t.clearValue();break;case" ":if(r)return;if(!m){t.openMenu("first");break}if(!u)return;t.selectOption(u);break;case"ArrowUp":m?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":m?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!m)return;t.focusOption("pageup");break;case"PageDown":if(!m)return;t.focusOption("pagedown");break;case"Home":if(!m)return;t.focusOption("first");break;case"End":if(!m)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++To),t.state.selectValue=Ca(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.getFocusableOptionsWithIds(),n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=a,t.state.focusedOption=n[r],t.state.focusedOptionId=po(a,n[r])}return t}return Ee(o,[{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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ia(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.isDisabled,i=t.menuIsOpen,o=this.state.isFocused;(o&&!a&&e.isDisabled||o&&i&&!e.menuIsOpen)&&this.focusInput(),o&&a&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||a||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ia(this.menuListRef,this.focusedOptionRef),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(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),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,a=this.state,i=a.selectValue,o=a.isFocused,n=this.buildFocusableOptions(),r="first"===e?0:n.length-1;if(!this.props.isMulti){var l=n.indexOf(i[0]);l>-1&&(r=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:n[r],focusedOptionId:this.getFocusedOptionId(n[r])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,i=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=a.indexOf(i);i||(o=-1);var n=a.length-1,r=-1;if(a.length){switch(e){case"previous":r=0===o?0:-1===o?n:o-1;break;case"next":o>-1&&o<n&&(r=o+1)}this.setState({inputIsHidden:-1!==r,focusedValue:a[r]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var o=0,n=i.indexOf(a);a||(n=-1),"up"===e?o=n>0?n-1:i.length-1:"down"===e?o=(n+1)%i.length:"pageup"===e?(o=n-t)<0&&(o=0):"pagedown"===e?(o=n+t)>i.length-1&&(o=i.length-1):"last"===e&&(o=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(i[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(oo):he(he({},oo),this.props.theme):oo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,i=this.getClassNames,o=this.getValue,n=this.selectOption,r=this.setValue,l=this.props,s=l.isMulti,m=l.isRtl,d=l.options;return{clearValue:e,cx:t,getStyles:a,getClassNames:i,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:m,options:d,selectOption:n,selectProps:l,setValue:r,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return ho(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return yo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return bo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:i})}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:"renderInput",value:function(){var e=this.props,t=e.isDisabled,a=e.isSearchable,i=e.inputId,o=e.inputValue,n=e.tabIndex,r=e.form,l=e.menuIsOpen,s=e.required,m=this.getComponents().Input,d=this.state,c=d.inputIsHidden,p=d.ariaSelection,g=this.commonProps,u=i||this.getElementId("input"),h=he(he(he({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Se.createElement(m,Le({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:r,type:"text",value:o},h)):Se.createElement(Ii,Le({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ha,onFocus:this.onInputFocus,disabled:t,tabIndex:n,inputMode:"none",form:r,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),a=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,n=t.MultiValueRemove,r=t.SingleValue,l=t.Placeholder,s=this.commonProps,m=this.props,d=m.controlShouldRenderValue,c=m.isDisabled,p=m.isMulti,g=m.inputValue,u=m.placeholder,h=this.state,y=h.selectValue,b=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!d)return g?null:Se.createElement(l,Le({},s,{key:"placeholder",isDisabled:c,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),u);if(p)return y.map((function(t,r){var l=t===b,m="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Se.createElement(a,Le({},s,{components:{Container:i,Label:o,Remove:n},isFocused:l,isDisabled:c,key:m,index:r,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(g)return null;var T=y[0];return Se.createElement(r,Le({},s,{data:T,isDisabled:c}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,a=this.props,i=a.isDisabled,o=a.isLoading,n=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var r={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Se.createElement(e,Le({},t,{innerProps:r,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,a=this.props,i=a.isDisabled,o=a.isLoading,n=this.state.isFocused;return e&&o?Se.createElement(e,Le({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,a=e.IndicatorSeparator;if(!t||!a)return null;var i=this.commonProps,o=this.props.isDisabled,n=this.state.isFocused;return Se.createElement(a,Le({},i,{isDisabled:o,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Se.createElement(e,Le({},t,{innerProps:o,isDisabled:a,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),a=t.Group,i=t.GroupHeading,o=t.Menu,n=t.MenuList,r=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,m=t.Option,d=this.commonProps,c=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,u=p.inputValue,h=p.isLoading,y=p.loadingMessage,b=p.minMenuHeight,v=p.maxMenuHeight,T=p.menuIsOpen,S=p.menuPlacement,f=p.menuPosition,L=p.menuPortalTarget,M=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,E=p.noOptionsMessage,k=p.onMenuScrollToTop,B=p.onMenuScrollToBottom;if(!T)return null;var _,H=function(t,a){var i=t.type,o=t.data,n=t.isDisabled,r=t.isSelected,l=t.label,s=t.value,p=c===o,g=n?void 0:function(){return e.onOptionHover(o)},u=n?void 0:function(){return e.selectOption(o)},h="".concat(e.getElementId("option"),"-").concat(a),y={id:h,onClick:u,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:r};return Se.createElement(m,Le({},d,{innerProps:y,data:o,isDisabled:n,isSelected:r,key:h,label:l,type:i,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,n=t.options,r=t.index,l="".concat(e.getElementId("group"),"-").concat(r),s="".concat(l,"-heading");return Se.createElement(a,Le({},d,{key:l,data:o,options:n,Heading:i,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return H(e,"".concat(r,"-").concat(e.index))})))}if("option"===t.type)return H(t,"".concat(t.index))}));else if(h){var N=y({inputValue:u});if(null===N)return null;_=Se.createElement(l,d,N)}else{var V=E({inputValue:u});if(null===V)return null;_=Se.createElement(s,d,V)}var C={minMenuHeight:b,maxMenuHeight:v,menuPlacement:S,menuPosition:f,menuShouldScrollIntoView:x},w=Se.createElement(ti,Le({},d,C),(function(t){var a=t.ref,i=t.placerProps,r=i.placement,l=i.maxHeight;return Se.createElement(o,Le({},d,C,{innerRef:a,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:r}),Se.createElement(Ji,{captureEnabled:g,onTopArrive:k,onBottomArrive:B,lockEnabled:M},(function(t){return Se.createElement(n,Le({},d,{innerRef:function(a){e.getMenuListRef(a),t(a)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:l,focusedOption:c}),_)})))}));return L||"fixed"===f?Se.createElement(r,Le({},d,{appendTo:L,controlElement:this.controlRef,menuPlacement:S,menuPosition:f}),w):w}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,i=t.isDisabled,o=t.isMulti,n=t.name,r=t.required,l=this.state.selectValue;if(r&&!this.hasValue()&&!i)return Se.createElement(eo,{name:n,onFocus:this.onValueInputFocus});if(n&&!i){if(o){if(a){var s=l.map((function(t){return e.getOptionValue(t)})).join(a);return Se.createElement("input",{name:n,type:"hidden",value:s})}var m=l.length>0?l.map((function(t,a){return Se.createElement("input",{key:"i-".concat(a),name:n,type:"hidden",value:e.getOptionValue(t)})})):Se.createElement("input",{name:n,type:"hidden",value:""});return Se.createElement("div",null,m)}var d=l[0]?this.getOptionValue(l[0]):"";return Se.createElement("input",{name:n,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,a=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,n=t.isFocused,r=t.selectValue,l=this.getFocusableOptions();return Se.createElement(_i,Le({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:i,focusedValue:o,isFocused:n,selectValue:r,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,a=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,n=this.props,r=n.className,l=n.id,s=n.isDisabled,m=n.menuIsOpen,d=this.state.isFocused,c=this.commonProps=this.getCommonProps();return Se.createElement(i,Le({},c,{className:r,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),Se.createElement(t,Le({},c,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:m}),Se.createElement(o,Le({},c,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Se.createElement(a,Le({},c,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,n=t.ariaSelection,r=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,m=e.options,d=e.value,c=e.menuIsOpen,p=e.inputValue,g=e.isMulti,u=Ca(d),h={};if(a&&(d!==a.value||m!==a.options||c!==a.menuIsOpen||p!==a.inputValue)){var y=c?function(e,t){return so(lo(e,t))}(e,u):[],b=c?mo(lo(e,u),"".concat(s,"-option")):[],v=i?function(e,t){var a=e.focusedValue,i=e.selectValue.indexOf(a);if(i>-1){if(t.indexOf(a)>-1)return a;if(i<t.length)return t[i]}return null}(t,u):null,T=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,y);h={selectValue:u,focusedOption:T,focusedOptionId:po(b,T),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var S=null!=o&&e!==a?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},f=n,L=r&&l;return r&&!L&&(f={value:Ka(g,u,u[0]||null),options:u,action:"initial-input-focus"},L=!l),"initial-input-focus"===(null==n?void 0:n.action)&&(f=null),he(he(he({},h),S),{},{prevProps:e,ariaSelection:f,prevWasFocused:L})}}]),o}(Se.Component);So.defaultProps=no;var fo=(0,Se.forwardRef)((function(e,t){var a=function(e){var t=e.defaultInputValue,a=void 0===t?"":t,i=e.defaultMenuIsOpen,o=void 0!==i&&i,n=e.defaultValue,r=void 0===n?null:n,l=e.inputValue,s=e.menuIsOpen,m=e.onChange,d=e.onInputChange,c=e.onMenuClose,p=e.onMenuOpen,g=e.value,u=Te(e,fe),h=ve((0,Se.useState)(void 0!==l?l:a),2),y=h[0],b=h[1],v=ve((0,Se.useState)(void 0!==s?s:o),2),T=v[0],S=v[1],f=ve((0,Se.useState)(void 0!==g?g:r),2),L=f[0],M=f[1],x=(0,Se.useCallback)((function(e,t){"function"==typeof m&&m(e,t),M(e)}),[m]),E=(0,Se.useCallback)((function(e,t){var a;"function"==typeof d&&(a=d(e,t)),b(void 0!==a?a:e)}),[d]),k=(0,Se.useCallback)((function(){"function"==typeof p&&p(),S(!0)}),[p]),B=(0,Se.useCallback)((function(){"function"==typeof c&&c(),S(!1)}),[c]),_=void 0!==l?l:y,H=void 0!==s?s:T,N=void 0!==g?g:L;return he(he({},u),{},{inputValue:_,menuIsOpen:H,onChange:x,onInputChange:E,onMenuClose:B,onMenuOpen:k,value:N})}(e);return Se.createElement(So,Le({ref:t},a))})),Lo=fo;const Mo=t=>{let{label:a,valueFamily:o,setValueFamily:n,valueWeight:r,setValueWeight:l,valueTextTransform:s,setValueTextTransform:m,valueTextDecoration:d,setValueTextDecoration:c,valueFontSize:p,setValueFontSize:h,valueFontSizeMd:y,setValueFontSizeMd:b,valueFontSizeSm:T,setValueFontSizeSm:S,valueFontSizeUnit:f,setValueFontSizeUnit:M,valueLetterSpacing:x,setValueLetterSpacing:E,valueLetterSpacingMd:k,setValueLetterSpacingMd:B,valueLetterSpacingSm:_,setValueLetterSpacingSm:H,valueLetterSpacingUnit:N,setValueLetterSpacingUnit:V,valueLineHeight:C,setValueLineHeight:w,valueLineHeightMd:F,setValueLineHeightMd:R,valueLineHeightSm:z,setValueLineHeightSm:D,valueLineHeightUnit:U,setValueLineHeightUnit:P}=t;const[I,$]=(0,i.useState)(pe.filter((e=>e.family===(o||"inherit")))[0].variants),W=()=>{let e;return e=0,0},O=()=>{let e;switch(f){case"em":case"rem":e=10;break;default:e=100}return e},A=()=>{let e;switch(N){case"em":case"rem":e=-5;break;default:e=-10}return e},G=()=>{let e;switch(N){case"em":case"rem":e=5;break;default:e=20}return e},j=()=>{let e;return e=0,0},K=()=>{let e;switch(U){case"em":case"rem":e=5;break;default:e=100}return e},Z=(0,e.useSelect)((e=>{const{getView:t}=e("smart-blocks/data"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post");return a?a():t()}),[]);var q=[];return pe&&pe.map(((e,t)=>{q.push({label:"inherit"!=e.family?e.family:"Default",value:e.family})})),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-field-typography sb-display-inline"},(0,i.createElement)("label",null,a||(0,g.__)("Typography","smart-blocks")),(0,i.createElement)("div",{className:"sb-components-dropdown"},(0,i.createElement)(u.Tooltip,{text:(0,g.__)("Clear","smart-blocks")},(0,i.createElement)("div",{className:"sb-reset-field",onClick:e=>{n("inherit"),l("inherit"),m("inherit"),c("inherit"),h(""),b(""),S(""),M("px"),E(""),B(""),H(""),V("px"),w(""),R(""),D(""),P("px")}},(0,i.createElement)("span",{className:"sb-clear-field",role:"button"},(0,i.createElement)(v,null)))),(0,i.createElement)(u.Dropdown,{position:"top right",contentClassName:"sb-popover-style",renderToggle:e=>{let{isOpen:t,onToggle:a}=e;return(0,i.createElement)("button",{className:"sb-typo-setttings sb-setting-button",isPrimary:!0,onClick:a,"aria-expanded":t},(0,i.createElement)(u.Dashicon,{size:"15",icon:"admin-tools"}))},renderContent:()=>(0,i.createElement)("div",{className:"sb-field-typography-options"},(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,g.__)("Font Family","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)(Lo,{value:q.find((e=>e.value==o)),onChange:e=>{const t=e.value;n(t),$(pe.filter((e=>e.family===t))[0].variants),l("400")},options:q,isMulti:!1,className:"sb-select-container",classNamePrefix:"sb-select"})))),(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,g.__)("Weight/Style","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)("select",{value:r,onChange:e=>l(e.target.value)},!(o&&"inherit"!=o)&&(0,i.createElement)("option",{value:"inherit"},"Default"),Object.keys(I).sort().map((e=>(0,i.createElement)("option",{value:e},I[e]))))))),(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,g.__)("Text Transform","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)("select",{value:s,onChange:e=>m(e.target.value)},(0,i.createElement)("option",{value:"inherit"},"Default"),(0,i.createElement)("option",{value:"none"},"None"),(0,i.createElement)("option",{value:"uppercase"},"Uppercase"),(0,i.createElement)("option",{value:"lowercase"},"Lowercase"),(0,i.createElement)("option",{value:"capitalize"},"Capitalize"))))),(0,i.createElement)("div",{className:"sb-field sb-field-select sb-display-inline"},(0,i.createElement)("label",null,(0,g.__)("Text Decoration","smart-blocks")),(0,i.createElement)("div",{className:"sb-input-fields"},(0,i.createElement)("div",{className:"sb-popup-select"},(0,i.createElement)("select",{value:d,onChange:e=>c(e.target.value)},(0,i.createElement)("option",{value:"inherit"},"Default"),(0,i.createElement)("option",{value:"none"},"None"),(0,i.createElement)("option",{value:"underline"},"Underline"),(0,i.createElement)("option",{value:"line-through"},"Line Through"),(0,i.createElement)("option",{value:"overline"},"Overline"))))),(0,i.createElement)("div",{className:"sb-field sb-field-range sb-responsive"},(0,i.createElement)("div",{class:"sb-label"},(0,i.createElement)("label",{for:"input"},(0,g.__)("Font Size","smart-blocks")),(0,i.createElement)(L,null),(0,i.createElement)("div",{className:"sb-unit-btn-group"},(0,i.createElement)("button",{className:"px"===f?"active":"",onClick:()=>{h(""),b(""),S(""),M("px")}},"px"),(0,i.createElement)("button",{className:"em"===f?"active":"",onClick:()=>{h(""),b(""),S(""),M("em")}},"em"),(0,i.createElement)("button",{className:"rem"===f?"active":"",onClick:()=>{h(""),b(""),S(""),M("rem")}},"rem"),(0,i.createElement)("button",{className:"%"===f?"active":"",onClick:e=>{h(""),b(""),S(""),M("%")}},"%"))),(0,i.createElement)("div",{className:"sb-input-fields"},"Desktop"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:W(),max:O(),step:"1",value:p,onChange:e=>h(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"1",value:p,onChange:e=>h(e.target.value)})),"Tablet"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:W(),max:O(),step:"1",value:y,onChange:e=>b(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"1",value:y,onChange:e=>b(e.target.value)})),"Mobile"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:W(),max:O(),step:"1",value:T,onChange:e=>S(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"1",value:T,onChange:e=>S(e.target.value)})))),(0,i.createElement)("div",{className:"sb-field sb-field-range sb-responsive"},(0,i.createElement)("div",{class:"sb-label"},(0,i.createElement)("label",{for:"input"},(0,g.__)("Letter Spacing","smart-blocks")),(0,i.createElement)(L,null),(0,i.createElement)("div",{className:"sb-unit-btn-group"},(0,i.createElement)("button",{className:"px"===N?"active":"",onClick:()=>{E(""),B(""),H(""),V("px")}},"px"),(0,i.createElement)("button",{className:"em"===N?"active":"",onClick:()=>{E(""),B(""),H(""),V("em")}},"em"),(0,i.createElement)("button",{className:"rem"===N?"active":"",onClick:()=>{E(""),B(""),H(""),V("rem")}},"rem"))),(0,i.createElement)("div",{className:"sb-input-fields"},"Desktop"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:A(),max:G(),step:"px"==N?1:.1,value:x,onChange:e=>E(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==N?1:.1,value:x,onChange:e=>E(e.target.value)})),"Tablet"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:A(),max:G(),step:"px"==N?1:.1,value:k,onChange:e=>setValuesLetterSpacingMd(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==N?1:.1,value:k,onChange:e=>setValuesLetterSpacingMd(e.target.value)})),"Mobile"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:A(),max:G(),step:"px"==N?1:.1,value:_,onChange:e=>setValuesLetterSpacingSm(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==N?1:.1,value:_,onChange:e=>setValuesLetterSpacingSm(e.target.value)})))),(0,i.createElement)("div",{className:"sb-field sb-field-range sb-responsive"},(0,i.createElement)("div",{class:"sb-label"},(0,i.createElement)("label",{for:"input"},(0,g.__)("Line Height","smart-blocks")),(0,i.createElement)(L,null),(0,i.createElement)("div",{className:"sb-unit-btn-group"},(0,i.createElement)("button",{className:"px"===U?"active":"",onClick:()=>{w(""),R(""),D(""),P("px")}},"px"),(0,i.createElement)("button",{className:"em"===U?"active":"",onClick:()=>{w(""),R(""),D(""),P("em")}},"em"),(0,i.createElement)("button",{className:"rem"===U?"active":"",onClick:()=>{w(""),R(""),D(""),P("rem")}},"rem"))),(0,i.createElement)("div",{className:"sb-input-fields"},"Desktop"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:j(),max:K(),step:"px"==U?1:.1,value:C,onChange:e=>w(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==U?1:.1,value:C,onChange:e=>w(e.target.value)})),"Tablet"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:j(),max:K(),step:"px"==U?1:.1,value:F,onChange:e=>R(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==U?1:.1,value:F,onChange:e=>R(e.target.value)})),"Mobile"==Z&&(0,i.createElement)("div",{className:"sb-input-range"},(0,i.createElement)("input",{type:"range",min:j(),max:K(),step:"px"==U?1:.1,value:z,onChange:e=>D(e.target.value)}),(0,i.createElement)("input",{type:"number",step:"px"==U?1:.1,value:z,onChange:e=>D(e.target.value)})))))}))))},xo=e=>{let{family:t,weight:a}=e;const o=a&&a.length>0&&"inherit"!=a?":"+a:null;return t&&"inherit"!=t?(0,i.createElement)("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${t}${o||""}`}):""};function Eo(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),i.forEach((function(t){ge(e,t,a[t])}))}return e}var ko=a(143),Bo=a.n(ko),_o=a(697),Ho=a.n(_o),No=function(){function e(){Me(this,e),ge(this,"refs",{})}return Ee(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var a=this.getIndex(e,t);-1!==a&&this.refs[e].splice(a,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(Vo)}}]),e}();function Vo(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Co(e,t){return Object.keys(e).reduce((function(a,i){return-1===t.indexOf(i)&&(a[i]=e[i]),a}),{})}var wo={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Fo=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function Ro(e,t){Object.keys(t).forEach((function(a){e.style[a]=t[a]}))}function zo(e,t){e.style["".concat(Fo,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Do(e,t){e.style["".concat(Fo,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function Uo(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Po(e,t,a){return Math.max(e,Math.min(a,t))}function Io(e){return"px"===e.substr(-2)?parseFloat(e):0}function $o(e){var t=window.getComputedStyle(e);return{bottom:Io(t.marginBottom),left:Io(t.marginLeft),right:Io(t.marginRight),top:Io(t.marginTop)}}function Wo(e,t){var a=t.displayName||t.name;return a?"".concat(e,"(").concat(a,")"):e}function Oo(e,t){var a=e.getBoundingClientRect();return{top:a.top+t.top,left:a.left+t.left}}function Ao(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Go(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function jo(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var i={left:a.left+e.offsetLeft,top:a.top+e.offsetTop};return e.parentNode===t?i:jo(e.parentNode,t,i)}}function Ko(e,t,a){return e<a&&e>t?e-1:e>a&&e<t?e+1:e}function Zo(e){var t=e.lockOffset,a=e.width,i=e.height,o=t,n=t,r="px";if("string"==typeof t){var l=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Bo()(null!==l,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),n=parseFloat(t),r=l[1]}return Bo()(isFinite(o)&&isFinite(n),"lockOffset value should be a finite. Given %s",t),"%"===r&&(o=o*a/100,n=n*i/100),{x:o,y:n}}function qo(e){var t=e.height,a=e.width,i=e.lockOffset,o=Array.isArray(i)?i:[i,i];Bo()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",i);var n=ve(o,2),r=n[0],l=n[1];return[Zo({height:t,lockOffset:r,width:a}),Zo({height:t,lockOffset:l,width:a})]}function Yo(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),a=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return a.test(t[e])}))}(e)?e:Yo(e.parentNode):null}function Xo(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Io(t.gridColumnGap),y:Io(t.gridRowGap)}:{x:0,y:0}}var Jo="BUTTON",Qo="INPUT",en="OPTION",tn="TEXTAREA",an="SELECT";function on(e){var t="input, textarea, select, canvas, [contenteditable]",a=e.querySelectorAll(t),i=e.cloneNode(!0);return Ce(i.querySelectorAll(t)).forEach((function(e,t){"file"!==e.type&&(e.value=a[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),"CANVAS"===e.tagName&&a[t].width>0&&a[t].height>0&&e.getContext("2d").drawImage(a[t],0,0)})),i}function nn(e){return null!=e.sortableHandle}var rn=function(){function e(t,a){Me(this,e),this.container=t,this.onScrollCallback=a}return Ee(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,a=e.translate,i=e.minTranslate,o=e.maxTranslate,n=e.width,r=e.height,l={x:0,y:0},s={x:1,y:1},m=this.container,d=m.scrollTop,c=m.scrollLeft,p=m.scrollHeight,g=m.scrollWidth,u=0===d,h=p-d-m.clientHeight==0,y=0===c,b=g-c-m.clientWidth==0;a.y>=o.y-r/2&&!h?(l.y=1,s.y=10*Math.abs((o.y-r/2-a.y)/r)):a.x>=o.x-n/2&&!b?(l.x=1,s.x=10*Math.abs((o.x-n/2-a.x)/n)):a.y<=i.y+r/2&&!u?(l.y=-1,s.y=10*Math.abs((a.y-r/2-i.y)/r)):a.x<=i.x+n/2&&!y&&(l.x=-1,s.x=10*Math.abs((a.x-n/2-i.x)/n)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:s.x*l.x,top:s.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}(),ln={axis:Ho().oneOf(["x","y","xy"]),contentWindow:Ho().any,disableAutoscroll:Ho().bool,distance:Ho().number,getContainer:Ho().func,getHelperDimensions:Ho().func,helperClass:Ho().string,helperContainer:Ho().oneOfType([Ho().func,"undefined"==typeof HTMLElement?Ho().any:Ho().instanceOf(HTMLElement)]),hideSortableGhost:Ho().bool,keyboardSortingTransitionDuration:Ho().number,lockAxis:Ho().string,lockOffset:Ho().oneOfType([Ho().number,Ho().string,Ho().arrayOf(Ho().oneOfType([Ho().number,Ho().string]))]),lockToContainerEdges:Ho().bool,onSortEnd:Ho().func,onSortMove:Ho().func,onSortOver:Ho().func,onSortStart:Ho().func,pressDelay:Ho().number,pressThreshold:Ho().number,keyCodes:Ho().shape({lift:Ho().arrayOf(Ho().number),drop:Ho().arrayOf(Ho().number),cancel:Ho().arrayOf(Ho().number),up:Ho().arrayOf(Ho().number),down:Ho().arrayOf(Ho().number)}),shouldCancelStart:Ho().func,transitionDuration:Ho().number,updateBeforeSortStart:Ho().func,useDragHandle:Ho().bool,useWindowAsScrollContainer:Ho().bool},sn={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},mn={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:sn,shouldCancelStart:function(e){return-1!==[Qo,tn,an,en,Jo].indexOf(e.target.tagName)||!!Uo(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},dn=Object.keys(ln);function cn(e){Bo()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function pn(e,t){try{var a=e()}catch(e){return t(!0,e)}return a&&a.then?a.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var gn=(0,Se.createContext)({manager:{}}),un={index:Ho().number.isRequired,collection:Ho().oneOfType([Ho().number,Ho().string]),disabled:Ho().bool},hn=Object.keys(un);const yn=function(e){var t,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(){var e,t;Me(this,a);for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];return ge(Ne(Ne(t=Ve(this,(e=_e(a)).call.apply(e,[this].concat(o))))),"wrappedInstance",(0,Se.createRef)()),t}return Be(a,t),Ee(a,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,a=e.disabled,i=e.index,o=(0,na.findDOMNode)(this);o.sortableInfo={collection:t,disabled:a,index:i,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Bo()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return(0,Se.createElement)(e,Le({ref:t},Co(this.props,hn)))}}]),a}(Se.Component),ge(t,"displayName",Wo("sortableElement",e)),ge(t,"contextType",gn),ge(t,"propTypes",un),ge(t,"defaultProps",{collection:0}),a}((e=>{const t={...e.innerProps,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()}};return(0,i.createElement)(Li.MultiValue,Le({},e,{innerProps:t}))})),bn=function(e){var t,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(){var e,t;Me(this,a);for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];return ge(Ne(Ne(t=Ve(this,(e=_e(a)).call.apply(e,[this].concat(o))))),"wrappedInstance",(0,Se.createRef)()),t}return Be(a,t),Ee(a,[{key:"componentDidMount",value:function(){(0,na.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Bo()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return(0,Se.createElement)(e,Le({ref:t},this.props))}}]),a}(Se.Component),ge(t,"displayName",Wo("sortableHandle",e)),a}((e=>(0,i.createElement)(Li.MultiValueLabel,e))),vn=function(e){var t,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(e){var t;Me(this,a),ge(Ne(Ne(t=Ve(this,_e(a).call(this,e)))),"state",{}),ge(Ne(Ne(t)),"handleStart",(function(e){var a=t.props,i=a.distance,o=a.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=Ao(e);var n=Uo(e.target,(function(e){return null!=e.sortableInfo}));if(n&&n.sortableInfo&&t.nodeIsChild(n)&&!t.state.sorting){var r=t.props.useDragHandle,l=n.sortableInfo,s=l.index,m=l.collection;if(l.disabled)return;if(r&&!Uo(e.target,nn))return;t.manager.active={collection:m,index:s},Go(e)||"A"!==e.target.tagName||e.preventDefault(),i||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),ge(Ne(Ne(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),ge(Ne(Ne(t)),"handleMove",(function(e){var a=t.props,i=a.distance,o=a.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var n=Ao(e),r={x:t.position.x-n.x,y:t.position.y-n.y},l=Math.abs(r.x)+Math.abs(r.y);t.delta=r,i||o&&!(l>=o)?i&&l>=i&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),ge(Ne(Ne(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),ge(Ne(Ne(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),ge(Ne(Ne(t)),"handlePress",(function(e){try{var a=t.manager.getActive(),i=function(){if(a){var i=function(){var a=p.sortableInfo.index,i=$o(p),o=Xo(t.container),m=t.scrollContainer.getBoundingClientRect(),h=r({index:a,node:p,collection:g});if(t.node=p,t.margin=i,t.gridGap=o,t.width=h.width,t.height=h.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=m,t.index=a,t.newIndex=a,t.axis={x:n.indexOf("x")>=0,y:n.indexOf("y")>=0},t.offsetEdge=jo(p,t.container),t.initialOffset=Ao(u?Eo({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(on(p)),Ro(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-i.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-i.top,"px"),width:"".concat(t.width,"px")}),u&&t.helper.focus(),s&&(t.sortableGhost=p,Ro(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},u){var y=c?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,b=y.top,v=y.left,T=y.width,S=b+y.height,f=v+T;t.axis.x&&(t.minTranslate.x=v-t.boundingClientRect.left,t.maxTranslate.x=f-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=b-t.boundingClientRect.top,t.maxTranslate.y=S-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(c?0:m.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(c?t.contentWindow.innerWidth:m.left+m.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(c?0:m.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(c?t.contentWindow.innerHeight:m.top+m.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,u?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(wo.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),wo.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:a}),d&&d({node:p,index:a,collection:g,isKeySorting:u,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),u&&t.keyMove(0)},o=t.props,n=o.axis,r=o.getHelperDimensions,l=o.helperClass,s=o.hideSortableGhost,m=o.updateBeforeSortStart,d=o.onSortStart,c=o.useWindowAsScrollContainer,p=a.node,g=a.collection,u=t.manager.isKeySorting,h=function(){if("function"==typeof m){t._awaitingUpdateBeforeSortStart=!0;var a=pn((function(){var t=p.sortableInfo.index;return Promise.resolve(m({collection:g,index:t,node:p,isKeySorting:u},e)).then((function(){}))}),(function(e,a){if(t._awaitingUpdateBeforeSortStart=!1,e)throw a;return a}));if(a&&a.then)return a.then((function(){}))}}();return h&&h.then?h.then(i):i()}}();return Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),ge(Ne(Ne(t)),"handleSortMove",(function(e){var a=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),a&&a(e)})),ge(Ne(Ne(t)),"handleSortEnd",(function(e){var a=t.props,i=a.hideSortableGhost,o=a.onSortEnd,n=t.manager,r=n.active.collection,l=n.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(l?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(wo.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),wo.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),i&&t.sortableGhost&&Ro(t.sortableGhost,{opacity:"",visibility:""});for(var m=0,d=s.length;m<d;m++){var c=s[m],p=c.node;c.edgeOffset=null,c.boundingClientRect=null,zo(p,null),Do(p,null),c.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:r,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:l,nodes:s},e),t.touched=!1})),ge(Ne(Ne(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,a=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(a){var i=Eo({},t.translate),o=0,n=0;return t.axis.x&&(i.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-i.x),t.axis.y&&(i.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),n=t.translate.y-i.y),t.translate=i,zo(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=n)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),ge(Ne(Ne(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),ge(Ne(Ne(t)),"handleKeyDown",(function(e){var a=e.keyCode,i=t.props,o=i.shouldCancelStart,n=i.keyCodes,r=Eo({},sn,void 0===n?{}:n);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||r.lift.includes(a)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),r.lift.includes(a)&&!t.manager.active?t.keyLift(e):r.drop.includes(a)&&t.manager.active?t.keyDrop(e):r.cancel.includes(a)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):r.up.includes(a)?t.keyMove(-1):r.down.includes(a)&&t.keyMove(1))})),ge(Ne(Ne(t)),"keyLift",(function(e){var a=e.target,i=Uo(a,(function(e){return null!=e.sortableInfo})).sortableInfo,o=i.index,n=i.collection;t.initialFocusedNode=a,t.manager.isKeySorting=!0,t.manager.active={index:o,collection:n},t.handlePress(e)})),ge(Ne(Ne(t)),"keyMove",(function(e){var a=t.manager.getOrderedRefs(),i=a[a.length-1].node.sortableInfo.index,o=t.newIndex+e,n=t.newIndex;if(!(o<0||o>i)){t.prevIndex=n,t.newIndex=o;var r=Ko(t.newIndex,t.prevIndex,t.index),l=a.find((function(e){return e.node.sortableInfo.index===r})),s=l.node,m=t.containerScrollDelta,d=l.boundingClientRect||Oo(s,m),c=l.translate||{x:0,y:0},p=d.top+c.y-m.top,g=d.left+c.x-m.left,u=n<o,h=u&&t.axis.x?s.offsetWidth-t.width:0,y=u&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:g+h,pageY:p+y,ignoreTransition:0===e})}})),ge(Ne(Ne(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),ge(Ne(Ne(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),ge(Ne(Ne(t)),"isValidSortingTarget",(function(e){var a=t.props.useDragHandle,i=e.target,o=Uo(i,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(a?nn(i):i.sortableInfo)}));var i=new No;return cn(e),t.manager=i,t.wrappedInstance=(0,Se.createRef)(),t.sortableContextValue={manager:i},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return Be(a,t),Ee(a,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,a=this.getContainer();Promise.resolve(a).then((function(a){e.container=a,e.document=e.container.ownerDocument||document;var i=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof i?i():i,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Yo(e.container)||e.container,e.autoScroller=new rn(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return wo[t].forEach((function(a){return e.container.addEventListener(a,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return wo[t].forEach((function(a){return e.container.removeEventListener(a,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,a=t.lockAxis,i=t.lockOffset,o=t.lockToContainerEdges,n=t.transitionDuration,r=t.keyboardSortingTransitionDuration,l=void 0===r?n:r,s=this.manager.isKeySorting,m=e.ignoreTransition,d=Ao(e),c={x:d.x-this.initialOffset.x,y:d.y-this.initialOffset.y};if(c.y-=window.pageYOffset-this.initialWindowScroll.top,c.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=c,o){var p=ve(qo({height:this.height,lockOffset:i,width:this.width}),2),g=p[0],u=p[1],h={x:this.width/2-g.x,y:this.height/2-g.y},y={x:this.width/2-u.x,y:this.height/2-u.y};c.x=Po(this.minTranslate.x+h.x,this.maxTranslate.x-y.x,c.x),c.y=Po(this.minTranslate.y+h.y,this.maxTranslate.y-y.y,c.y)}"x"===a?c.y=0:"y"===a&&(c.x=0),s&&l&&!m&&Do(this.helper,l),zo(this.helper,c)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,a=e.hideSortableGhost,i=e.onSortOver,o=this.containerScrollDelta,n=this.windowScrollDelta,r=this.manager.getOrderedRefs(),l=this.offsetEdge.left+this.translate.x+o.left,s=this.offsetEdge.top+this.translate.y+o.top,m=this.manager.isKeySorting,d=this.newIndex;this.newIndex=null;for(var c=0,p=r.length;c<p;c++){var g=r[c].node,u=g.sortableInfo.index,h=g.offsetWidth,y=g.offsetHeight,b={height:this.height>y?y/2:this.height/2,width:this.width>h?h/2:this.width/2},v=m&&u>this.index&&u<=d,T=m&&u<this.index&&u>=d,S={x:0,y:0},f=r[c].edgeOffset;f||(f=jo(g,this.container),r[c].edgeOffset=f,m&&(r[c].boundingClientRect=Oo(g,o)));var L=c<r.length-1&&r[c+1],M=c>0&&r[c-1];L&&!L.edgeOffset&&(L.edgeOffset=jo(L.node,this.container),m&&(L.boundingClientRect=Oo(L.node,o))),u!==this.index?(t&&Do(g,t),this.axis.x?this.axis.y?T||u<this.index&&(l+n.left-b.width<=f.left&&s+n.top<=f.top+b.height||s+n.top+b.height<=f.top)?(S.x=this.width+this.marginOffset.x,f.left+S.x>this.containerBoundingRect.width-b.width&&L&&(S.x=L.edgeOffset.left-f.left,S.y=L.edgeOffset.top-f.top),null===this.newIndex&&(this.newIndex=u)):(v||u>this.index&&(l+n.left+b.width>=f.left&&s+n.top+b.height>=f.top||s+n.top+b.height>=f.top+y))&&(S.x=-(this.width+this.marginOffset.x),f.left+S.x<this.containerBoundingRect.left+b.width&&M&&(S.x=M.edgeOffset.left-f.left,S.y=M.edgeOffset.top-f.top),this.newIndex=u):v||u>this.index&&l+n.left+b.width>=f.left?(S.x=-(this.width+this.marginOffset.x),this.newIndex=u):(T||u<this.index&&l+n.left<=f.left+b.width)&&(S.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=u)):this.axis.y&&(v||u>this.index&&s+n.top+b.height>=f.top?(S.y=-(this.height+this.marginOffset.y),this.newIndex=u):(T||u<this.index&&s+n.top<=f.top+b.height)&&(S.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=u))),zo(g,S),r[c].translate=S):a&&(this.sortableGhost=g,Ro(g,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),m&&(this.newIndex=d);var x=m?this.prevIndex:d;i&&this.newIndex!==x&&i({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:x,isKeySorting:m,nodes:r,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Bo()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,na.findDOMNode)(this):e(i.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return(0,Se.createElement)(gn.Provider,{value:this.sortableContextValue},(0,Se.createElement)(e,Le({ref:t},Co(this.props,dn))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),a}(Se.Component),ge(t,"displayName",Wo("sortableList",e)),ge(t,"defaultProps",mn),ge(t,"propTypes",ln),a}(Lo),Tn=e=>{let{label:t,options:a,value:o,setValue:n}=e;var r=[];return o&&o.map((e=>{let t=a.find((t=>t.value==e));t&&r.push(t)})),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-field sb-multiple-select"},t&&(0,i.createElement)("label",{className:"sb-label"},t),(0,i.createElement)("div",{class:"sb-input-fields"},(0,i.createElement)("div",{class:"sb-popup-select"},(0,i.createElement)(vn,{useDragHandle:!0,axis:"xy",onSortEnd:e=>{let{oldIndex:t,newIndex:a}=e;const i=(l=t,s=a,(o=(o=r).slice()).splice(s<0?o.length+s:s,0,o.splice(l,1)[0]),o);var o,l,s;let m=[];i.map(((e,t)=>{m.push(e.value)})),n(m)},getHelperDimensions:e=>{let{node:t}=e;return t.getBoundingClientRect()},isMulti:!0,options:a,value:r,onChange:e=>{let t=[];e.map(((e,a)=>{t.push(e.value)})),n(t)},components:{MultiValue:yn,MultiValueLabel:bn},closeMenuOnSelect:!1,className:"sb-select-container",classNamePrefix:"sb-select"})))))},Sn=t=>{const{attributes:a,setAttributes:o,usePostNumber:n,optChange:r=(()=>{})}=t,{postsPostType:l,excludePosts:s,orderBy:m,order:d,offset:p,categories:h}=a,{allTaxonomies:y,allPostsSelect:b,allPostTypes:v,allTaxTerms:T}=(0,e.useSelect)((e=>{let t=[],a=e("core").getTaxonomies();null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==l&&t.push({value:e.slug,label:e.name})}));let i=[],o=e("core").getPostTypes();null==o||o.forEach((e=>{!0===e.visibility.show_in_nav_menus&&i.push({value:e.slug,label:e.name})}));let n=[];t&&t.map((function(t,a){n[t.value]=e("core").getEntityRecords("taxonomy",t.value,{per_page:-1})}));let r=e("core").getEntityRecords("postType",l,{per_page:10,_embed:!0,order:d,orderby:m,offset:parseInt(p||0)}),s=[];return r&&r.map(((e,t)=>{s.push({value:e.id,label:e.title.rendered})})),{allTaxonomies:t,allPostsSelect:s,allPostTypes:i,allTaxTerms:n}}),[l,d,m,h,p,s]),S=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;var i,o=[],n=[];if(t&&t.length)if(void 0!==t[0].parent){for(i=0;i<t.length;i++)t[i].parent==e&&(n=[...n,t[i]]);n.length&&(a++,n&&n.map((e=>{let n="";for(i=0;i<a;)n+="- ",i++;n+=e.name.replace("-"," "),o.push({value:e.id,label:n+" ("+e.count+")"});let r=S(e.id,t,a);r.length&&(o=[...o,...r])})))}else t.map((e=>{o.push({value:e.id,label:e.name+" ("+e.count+")"})}));return o},f=e=>{let t=[];return T[e]&&(t=S(0,T[e])),t};return(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Content Filter","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Source","smart-blocks"),value:l,onChange:e=>{o({postsPostType:e}),r()},options:v}),y&&y.map(((e,t)=>{var a;const n=h&&null!==(a=h[e.value])&&void 0!==a?a:[];return(0,i.createElement)(Tn,{label:e.label,options:f(e.value),value:n,setValue:t=>{o({categories:{...h,[e.value]:t}}),r()},key:t})})),(0,i.createElement)(Tn,{label:(0,g.__)("Exclude Posts","smart-blocks"),options:b,value:s,setValue:e=>{o({excludePosts:e}),r()}}),(0,i.createElement)(_,{label:(0,g.__)("Order By","smart-blocks"),value:m,onChange:e=>{o({orderBy:e}),r()},options:[{value:"date",label:(0,g.__)("Date","smart-blocks")},{value:"modified",label:(0,g.__)("Last Modified Date","smart-blocks")},{value:"rand",label:(0,g.__)("Rand","smart-blocks")},{value:"comment_count",label:(0,g.__)("Comment Count","smart-blocks")},{value:"title",label:(0,g.__)("Title","smart-blocks")},{value:"author",label:(0,g.__)("Show Post Author","smart-blocks")}]}),(0,i.createElement)(_,{label:(0,g.__)("Order","smart-blocks"),value:d,onChange:e=>{o({order:e}),r()},options:[{value:"desc",label:(0,g.__)("Descending","smart-blocks")},{value:"asc",label:(0,g.__)("Ascending","smart-blocks")}]}),(0,i.createElement)(E,{label:(0,g.__)("Offset","smart-blocks"),value:p,setValue:e=>{o({offset:e}),r()},min:0,max:10}),n&&(0,i.createElement)(E,{label:(0,g.__)("No of Posts","smart-blocks"),value:a.noOfPosts,setValue:e=>{o({noOfPosts:e}),r()},min:0,max:20}),(0,c.applyFilters)("smartblocks.queryFilter","",t))};(0,o.registerBlockType)("smart-blocks/news-module-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 108.82"},(0,i.createElement)("path",{fill:"#687e8b",d:"M159.83 23.8h44v34.01h-44z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 64.61h37.41v3.4h-37.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 71.41h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M159.83 81.62h44v3.4h-44zm0 6.8h44.21v3.4h-44.21z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 20.4h44v34.01H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 61.21h37.41v3.4H3.4z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M13.6 68.01h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 78.21h44v3.4H0zm0 6.81h44.21v3.4H0zm64.61 10.2h74.81v6.8H64.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M88.42 105.42h27.2v3.4h-27.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M57.81 0h88.42v88.42H57.81z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 1","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideExcerptLength:fe,sideImageHeight:Le,sidePostAuthor:Me,sidePostDate:xe,sidePostComments:Ee,sidePostCategory:ke,sideTypographyFamily:Be,sideTypographyWeight:_e,sideTypographyTextTransform:He,sideTypographyTextDecoration:Ne,sideTypographyFontSizeSm:Ve,sideTypographyFontSizeMd:Ce,sideTypographyFontSize:we,sideTypographyFontSizeUnit:Fe,sideTypographyLetterSpacingSm:Re,sideTypographyLetterSpacingMd:ze,sideTypographyLetterSpacing:De,sideTypographyLetterSpacingUnit:Ue,sideTypographyLineHeightSm:Pe,sideTypographyLineHeightMd:Ie,sideTypographyLineHeight:$e,sideTypographyLineHeightUnit:We,featuredImageSize:Oe,featuredExcerptLength:Ae,featuredImageHeight:Ge,featuredPostAuthor:je,featuredPostDate:Ke,featuredPostComments:Ze,featuredPostCategory:qe,featuredTitleMarginSmTop:Ye,featuredTitleMarginSmLeft:Xe,featuredTitleMarginSmRight:Je,featuredTitleMarginSmBottom:Qe,featuredTitleMarginMdTop:et,featuredTitleMarginMdLeft:tt,featuredTitleMarginMdRight:at,featuredTitleMarginMdBottom:it,featuredTitleMarginTop:ot,featuredTitleMarginLeft:nt,featuredTitleMarginRight:rt,featuredTitleMarginBottom:lt,featuredTitleMarginUnit:st,featuredTypographyFamily:mt,featuredTypographyWeight:dt,featuredTypographyTextTransform:ct,featuredTypographyTextDecoration:pt,featuredTypographyFontSizeSm:gt,featuredTypographyFontSizeMd:ut,featuredTypographyFontSize:ht,featuredTypographyFontSizeUnit:yt,featuredTypographyLetterSpacingSm:bt,featuredTypographyLetterSpacingMd:vt,featuredTypographyLetterSpacing:Tt,featuredTypographyLetterSpacingUnit:St,featuredTypographyLineHeightSm:ft,featuredTypographyLineHeightMd:Lt,featuredTypographyLineHeight:Mt,featuredTypographyLineHeightUnit:xt,excerptTypographyFamily:Et,excerptTypographyWeight:kt,excerptTypographyTextTransform:Bt,excerptTypographyTextDecoration:_t,excerptTypographyFontSizeSm:Ht,excerptTypographyFontSizeMd:Nt,excerptTypographyFontSize:Vt,excerptTypographyFontSizeUnit:Ct,excerptTypographyLetterSpacingSm:wt,excerptTypographyLetterSpacingMd:Ft,excerptTypographyLetterSpacing:Rt,excerptTypographyLetterSpacingUnit:zt,excerptTypographyLineHeightSm:Dt,excerptTypographyLineHeightMd:Ut,excerptTypographyLineHeight:Pt,excerptTypographyLineHeightUnit:It,metasTypographyFamily:$t,metasTypographyWeight:Wt,metasTypographyTextTransform:Ot,metasTypographyTextDecoration:At,metasTypographyFontSizeSm:Gt,metasTypographyFontSizeMd:jt,metasTypographyFontSize:Kt,metasTypographyFontSizeUnit:Zt,metasTypographyLetterSpacingSm:qt,metasTypographyLetterSpacingMd:Yt,metasTypographyLetterSpacing:Xt,metasTypographyLetterSpacingUnit:Jt,metasTypographyLineHeightSm:Qt,metasTypographyLineHeightMd:ea,metasTypographyLineHeight:ta,metasTypographyLineHeightUnit:aa,dateFormat:ia,customDateFormat:oa,imageBorderRadius:na,sideTitleMarginSmTop:ra,sideTitleMarginSmLeft:la,sideTitleMarginSmRight:sa,sideTitleMarginSmBottom:ma,sideTitleMarginMdTop:da,sideTitleMarginMdLeft:ca,sideTitleMarginMdRight:pa,sideTitleMarginMdBottom:ga,sideTitleMarginTop:ua,sideTitleMarginLeft:ha,sideTitleMarginRight:ya,sideTitleMarginBottom:ba,sideTitleMarginUnit:va,categoryBackgroundColor:Ta,categoryTextColor:Sa,categoryBackgroundHoverColor:fa,categoryTextHoverColor:La,titleColor:Ma,titleHoverColor:xa,excerptColor:Ea,postMetasColor:ka,blockMarginSmTop:Ba,blockMarginSmLeft:_a,blockMarginSmRight:Ha,blockMarginSmBottom:Na,blockMarginMdTop:Va,blockMarginMdLeft:Ca,blockMarginMdRight:wa,blockMarginMdBottom:Fa,blockMarginTop:Ra,blockMarginLeft:za,blockMarginRight:Da,blockMarginBottom:Ua,blockMarginUnit:Pa,blockPaddingSmTop:Ia,blockPaddingSmLeft:$a,blockPaddingSmRight:Wa,blockPaddingSmBottom:Oa,blockPaddingMdTop:Aa,blockPaddingMdLeft:Ga,blockPaddingMdRight:ja,blockPaddingMdBottom:Ka,blockPaddingTop:Za,blockPaddingLeft:qa,blockPaddingRight:Ya,blockPaddingBottom:Xa,blockPaddingUnit:Ja,borderNormal:Qa,borderHover:ei,borderNormalColor:ti,borderHoverColor:ai,borderNormalWidthTop:ii,borderNormalWidthLeft:oi,borderNormalWidthRight:ni,borderNormalWidthBottom:ri,borderNormalWidthUnit:li,borderHoverWidthTop:si,borderHoverWidthLeft:mi,borderHoverWidthRight:di,borderHoverWidthBottom:ci,borderHoverWidthUnit:pi,borderNormalRadiusTop:gi,borderNormalRadiusLeft:ui,borderNormalRadiusRight:hi,borderNormalRadiusBottom:yi,borderNormalRadiusUnit:bi,borderHoverRadiusTop:vi,borderHoverRadiusLeft:Ti,borderHoverRadiusRight:Si,borderHoverRadiusBottom:fi,borderHoverRadiusUnit:Li,borderNormalBoxShadowHorizontal:Mi,borderNormalBoxShadowVertical:xi,borderNormalBoxShadowBlur:Ei,borderNormalBoxShadowSpread:ki,borderNormalBoxShadowColor:Bi,borderNormalBoxShadowInset:_i,borderHoverBoxShadowHorizontal:Hi,borderHoverBoxShadowVertical:Ni,borderHoverBoxShadowBlur:Vi,borderHoverBoxShadowSpread:Ci,borderHoverBoxShadowColor:wi,borderHoverBoxShadowInset:Fi,blockBgColor:Ri}=a;o({id:(0,d.useBlockProps)().id});const zi=`#${s} {\n        ${Qa?"--sb-border-normal: "+Qa+";":""}\n        ${ei?"--sb-border-hover: "+Qa+";":""}\n        ${ti?"--sb-border-normal-color: "+ti+";":""}\n        ${ai?"--sb-border-hover-color: "+ai+";":""}\n\n        ${J("border-normal-width",ii,ni,ri,oi,li)}\n        ${J("border-hover-width",si,di,ci,mi,pi)}\n        ${J("border-normal-radius",gi,hi,yi,ui,bi)}\n        ${J("border-hover-radius",vi,Si,fi,Ti,Li)}\n\n        ${te("border-normal-box-shadow",Mi,xi,Ei,ki,Bi,_i,"px")}\n        ${te("border-hover-box-shadow",Hi,Ni,Vi,Ci,wi,Fi,"px")}\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Q("block-margin",Ra,Da,Ua,za,Ba,Ha,Na,_a,Va,wa,Fa,Ca,Pa)}\n\n        ${Q("block-padding",Za,Ya,Xa,qa,Ia,Wa,Oa,$a,Aa,ja,Ka,Ga,Ja)}\n\n        ${Q("featured-title-margin",ot,rt,lt,nt,Ye,Je,Qe,Xe,et,at,it,tt,st)}\n\n        ${Q("side-post-title-margin",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Ge?"--sb-featured-thumb-height: "+Ge+"%;":""}\n        ${Le?"--sb-side-post-thumb-height: "+Le+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt,xt)}\n\n        ${ie("side-post-title-typo",Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut,Pt,It)}\n\n        ${ie("post-metas-typo",$t,Wt,Ot,At,Gt,jt,Kt,Zt,qt,Yt,Xt,Jt,Qt,ea,ta,aa)}\n\n        ${Ta?"--sb-category-background-color: "+Ta+";":""}\n        ${Sa?"--sb-category-text-color: "+Sa+";":""}\n        ${fa?"--sb-category-background-hover-color: "+fa+";":""}\n        ${La?"--sb-category-text-hover-color: "+La+";":""}\n        ${Ma?"--sb-title-color: "+Ma+";":""}\n        ${xa?"--sb-title-hover-color: "+xa+";":""}\n\n        ${Ea?"--sb-excerpt-color: "+Ea+";":""}\n        ${ka?"--sb-post-metas-color: "+ka+";":""}\n\n        ${na?"--sb-image-border-radius: "+na+"px;":""}\n    }`;o({sbStyle:zi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Di=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ui={per_page:3,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Di&&Di.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ui[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ui)),[p,h,b,ve,Te,Ui,y]),Ii=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),$i=l()("sb-block-title",`${L}`,X(N,w,z,D)),Wi=(e,t,a)=>{if(a&&0!=t)return;const o=Ii&&Ii.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Oi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Ai=()=>{const e=[];return null==Oi||Oi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),mt&&"Default"!=mt&&(0,i.createElement)(xo,{family:mt,weight:dt.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(xo,{family:Be,weight:_e.replace("italic","i")}),Et&&"Default"!=Et&&(0,i.createElement)(xo,{family:Et,weight:kt.replace("italic","i")}),$t&&"Default"!=$t&&(0,i.createElement)(xo,{family:$t,weight:Wt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Ai(),value:Oe,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Ge,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:Ae,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:je,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:qe,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Ai(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({sideExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:ke,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:na,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ia,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ia&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:oa,onChange:e=>o({customDateFormat:e})})),(0,c.applyFilters)("smartblocks.newsModuleOptions","",t))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:mt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:dt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:ct,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:pt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:gt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ut,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ht,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:yt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:bt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:vt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:Tt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:St,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:ft,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Lt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Mt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:xt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ot,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:et,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ye,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:nt,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:tt,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Xe,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:rt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:at,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Je,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:lt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:it,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Qe,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:st,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Side Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:we,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:Fe,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ze,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ua,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:va,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Et,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:kt,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Bt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:_t,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ht,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Nt,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Vt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ct,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:wt,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ft,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Rt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:zt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Dt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Ut,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Pt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:It,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:ka,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:$t,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Wt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Ot,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:At,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Gt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:jt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Kt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Zt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:qt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Yt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Xt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Jt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Qt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:ea,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ta,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:aa,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ra,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Va,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Ba,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:za,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ca,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_a,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Da,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:wa,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ha,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ua,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Fa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Na,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Za,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Aa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ia,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ga,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$a,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ja,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ka,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Oa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Ja,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Qa,setValue:e=>o({borderNormal:e})}),Qa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ii,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oi,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ni,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ri,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:li,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:gi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ui,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:hi,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:yi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:bi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Mi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ei,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ki,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Bi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_i,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:ei,setValue:e=>o({borderHover:e})}),ei&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ai,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:si,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:mi,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:di,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ci,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pi,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:vi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ti,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Si,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fi,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Li,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Hi,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ni,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Vi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ci,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:wi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Fi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ri,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-one"}),(0,i.createElement)("div",{className:"sb-block-header"},(0,i.createElement)("h2",{className:$i},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,c.applyFilters)("smartblocks.afterHeaderBlocks","",t)),(0,i.createElement)("div",{className:"sb-block-inner"},(0,i.createElement)("div",{className:"sb-news-module-one-wrap"},Pi&&Pi.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=0==t?`sb-large-title ${X(mt,dt,ct,pt)}`:`sb-big-title ${X(Be,_e,He,Ne)}`,c=0==t?je:Me,p=0==t?Ke:xe,u=0==t?Ze:Ee,h=0==t?Oe||"large":Se||"large",y=0==t?Ae:fe,b=0==t?qe:ke;return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&0==t?e.categories.map(((e,t)=>Wi(e,t,!1))):e.categories.map(((e,t)=>Wi(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ia&&`${e.relative_dates.created}`,"default"==ia&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ia&&(0,ce.dateI18n)(oa,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))})(e,t))))),(0,c.applyFilters)("smartblocks.footerBlocks","",t))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-two",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 203.82 119.02"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h44v34.01H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 40.81h37.41v3.4H3.4z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M13.6 47.61h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 64.61h44v34.01H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 105.42h37.41v3.4H3.4zm64.61 3.4h68.01v3.4H68.01zm0 6.8h68.01v3.4H68.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M13.6 112.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M159.83 0h44v34.01h-44z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 40.81h37.41v3.4h-37.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 47.61h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M159.83 64.61h44v34.01h-44z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 105.42h37.41v3.4h-37.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 112.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M64.61 91.82h74.81v6.8H64.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M88.42 102.02h27.2v3.4h-27.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M57.81 0h88.42v85.02H57.81z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 2","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideExcerptLength:fe,sideImageHeight:Le,sidePostAuthor:Me,sidePostDate:xe,sidePostComments:Ee,sidePostCategory:ke,sideTypographyFamily:Be,sideTypographyWeight:_e,sideTypographyTextTransform:He,sideTypographyTextDecoration:Ne,sideTypographyFontSizeSm:Ve,sideTypographyFontSizeMd:Ce,sideTypographyFontSize:we,sideTypographyFontSizeUnit:Fe,sideTypographyLetterSpacingSm:Re,sideTypographyLetterSpacingMd:ze,sideTypographyLetterSpacing:De,sideTypographyLetterSpacingUnit:Ue,sideTypographyLineHeightSm:Pe,sideTypographyLineHeightMd:Ie,sideTypographyLineHeight:$e,sideTypographyLineHeightUnit:We,featuredImageSize:Oe,featuredExcerptLength:Ae,featuredImageHeight:Ge,featuredPostAuthor:je,featuredPostDate:Ke,featuredPostComments:Ze,featuredPostCategory:qe,featuredTitleMarginSmTop:Ye,featuredTitleMarginSmLeft:Xe,featuredTitleMarginSmRight:Je,featuredTitleMarginSmBottom:Qe,featuredTitleMarginMdTop:et,featuredTitleMarginMdLeft:tt,featuredTitleMarginMdRight:at,featuredTitleMarginMdBottom:it,featuredTitleMarginTop:ot,featuredTitleMarginLeft:nt,featuredTitleMarginRight:rt,featuredTitleMarginBottom:lt,featuredTitleMarginUnit:st,featuredTypographyFamily:mt,featuredTypographyWeight:dt,featuredTypographyTextTransform:ct,featuredTypographyTextDecoration:pt,featuredTypographyFontSizeSm:gt,featuredTypographyFontSizeMd:ut,featuredTypographyFontSize:ht,featuredTypographyFontSizeUnit:yt,featuredTypographyLetterSpacingSm:bt,featuredTypographyLetterSpacingMd:vt,featuredTypographyLetterSpacing:Tt,featuredTypographyLetterSpacingUnit:St,featuredTypographyLineHeightSm:ft,featuredTypographyLineHeightMd:Lt,featuredTypographyLineHeight:Mt,featuredTypographyLineHeightUnit:xt,excerptTypographyFamily:Et,excerptTypographyWeight:kt,excerptTypographyTextTransform:Bt,excerptTypographyTextDecoration:_t,excerptTypographyFontSizeSm:Ht,excerptTypographyFontSizeMd:Nt,excerptTypographyFontSize:Vt,excerptTypographyFontSizeUnit:Ct,excerptTypographyLetterSpacingSm:wt,excerptTypographyLetterSpacingMd:Ft,excerptTypographyLetterSpacing:Rt,excerptTypographyLetterSpacingUnit:zt,excerptTypographyLineHeightSm:Dt,excerptTypographyLineHeightMd:Ut,excerptTypographyLineHeight:Pt,excerptTypographyLineHeightUnit:It,metasTypographyFamily:$t,metasTypographyWeight:Wt,metasTypographyTextTransform:Ot,metasTypographyTextDecoration:At,metasTypographyFontSizeSm:Gt,metasTypographyFontSizeMd:jt,metasTypographyFontSize:Kt,metasTypographyFontSizeUnit:Zt,metasTypographyLetterSpacingSm:qt,metasTypographyLetterSpacingMd:Yt,metasTypographyLetterSpacing:Xt,metasTypographyLetterSpacingUnit:Jt,metasTypographyLineHeightSm:Qt,metasTypographyLineHeightMd:ea,metasTypographyLineHeight:ta,metasTypographyLineHeightUnit:aa,dateFormat:ia,customDateFormat:oa,imageBorderRadius:na,sideTitleMarginSmTop:ra,sideTitleMarginSmLeft:la,sideTitleMarginSmRight:sa,sideTitleMarginSmBottom:ma,sideTitleMarginMdTop:da,sideTitleMarginMdLeft:ca,sideTitleMarginMdRight:pa,sideTitleMarginMdBottom:ga,sideTitleMarginTop:ua,sideTitleMarginLeft:ha,sideTitleMarginRight:ya,sideTitleMarginBottom:ba,sideTitleMarginUnit:va,categoryBackgroundColor:Ta,categoryTextColor:Sa,categoryBackgroundHoverColor:fa,categoryTextHoverColor:La,titleColor:Ma,titleHoverColor:xa,excerptColor:Ea,postMetasColor:ka,blockMarginSmTop:Ba,blockMarginSmLeft:_a,blockMarginSmRight:Ha,blockMarginSmBottom:Na,blockMarginMdTop:Va,blockMarginMdLeft:Ca,blockMarginMdRight:wa,blockMarginMdBottom:Fa,blockMarginTop:Ra,blockMarginLeft:za,blockMarginRight:Da,blockMarginBottom:Ua,blockMarginUnit:Pa,blockPaddingSmTop:Ia,blockPaddingSmLeft:$a,blockPaddingSmRight:Wa,blockPaddingSmBottom:Oa,blockPaddingMdTop:Aa,blockPaddingMdLeft:Ga,blockPaddingMdRight:ja,blockPaddingMdBottom:Ka,blockPaddingTop:Za,blockPaddingLeft:qa,blockPaddingRight:Ya,blockPaddingBottom:Xa,blockPaddingUnit:Ja,borderNormal:Qa,borderHover:ei,borderNormalColor:ti,borderHoverColor:ai,borderNormalWidthTop:ii,borderNormalWidthLeft:oi,borderNormalWidthRight:ni,borderNormalWidthBottom:ri,borderNormalWidthUnit:li,borderHoverWidthTop:si,borderHoverWidthLeft:mi,borderHoverWidthRight:di,borderHoverWidthBottom:ci,borderHoverWidthUnit:pi,borderNormalRadiusTop:gi,borderNormalRadiusLeft:ui,borderNormalRadiusRight:hi,borderNormalRadiusBottom:yi,borderNormalRadiusUnit:bi,borderHoverRadiusTop:vi,borderHoverRadiusLeft:Ti,borderHoverRadiusRight:Si,borderHoverRadiusBottom:fi,borderHoverRadiusUnit:Li,borderNormalBoxShadowHorizontal:Mi,borderNormalBoxShadowVertical:xi,borderNormalBoxShadowBlur:Ei,borderNormalBoxShadowSpread:ki,borderNormalBoxShadowColor:Bi,borderNormalBoxShadowInset:_i,borderHoverBoxShadowHorizontal:Hi,borderHoverBoxShadowVertical:Ni,borderHoverBoxShadowBlur:Vi,borderHoverBoxShadowSpread:Ci,borderHoverBoxShadowColor:wi,borderHoverBoxShadowInset:Fi,blockBgColor:Ri}=a;o({id:(0,d.useBlockProps)().id});const zi=`#${s} {\n        ${Qa?"--sb-border-normal: "+Qa+";":""}\n        ${ei?"--sb-border-hover: "+Qa+";":""}\n        ${ti?"--sb-border-normal-color: "+ti+";":""}\n        ${ai?"--sb-border-hover-color: "+ai+";":""}\n\n        ${J("border-normal-width",ii,ni,ri,oi,li)}\n        ${J("border-hover-width",si,di,ci,mi,pi)}\n        ${J("border-normal-radius",gi,hi,yi,ui,bi)}\n        ${J("border-hover-radius",vi,Si,fi,Ti,Li)}\n\n        ${te("border-normal-box-shadow",Mi,xi,Ei,ki,Bi,_i,"px")}\n        ${te("border-hover-box-shadow",Hi,Ni,Vi,Ci,wi,Fi,"px")}\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Q("block-margin",Ra,Da,Ua,za,Ba,Ha,Na,_a,Va,wa,Fa,Ca,Pa)}\n\n        ${Q("block-padding",Za,Ya,Xa,qa,Ia,Wa,Oa,$a,Aa,ja,Ka,Ga,Ja)}\n\n        ${Q("featured-title-margin",ot,rt,lt,nt,Ye,Je,Qe,Xe,et,at,it,tt,st)}\n\n        ${Q("side-post-title-margin",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n        ${Ri?"--sb-block-bg-color: "+Ri+";":""}\n\n        ${Ge?"--sb-featured-thumb-height: "+Ge+"%;":""}\n        ${Le?"--sb-side-post-thumb-height: "+Le+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt,xt)}\n\n        ${ie("side-post-title-typo",Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut,Pt,It)}\n\n        ${ie("post-metas-typo",$t,Wt,Ot,At,Gt,jt,Kt,Zt,qt,Yt,Xt,Jt,Qt,ea,ta,aa)}\n\n        ${Ta?"--sb-category-background-color: "+Ta+";":""}\n        ${Sa?"--sb-category-text-color: "+Sa+";":""}\n        ${fa?"--sb-category-background-hover-color: "+fa+";":""}\n        ${La?"--sb-category-text-hover-color: "+La+";":""}\n        ${Ma?"--sb-title-color: "+Ma+";":""}\n        ${xa?"--sb-title-hover-color: "+xa+";":""}\n\n        ${Ea?"--sb-excerpt-color: "+Ea+";":""}\n        ${ka?"--sb-post-metas-color: "+ka+";":""}\n\n        ${na?"--sb-image-border-radius: "+na+"px;":""}\n    }`;o({sbStyle:zi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Di=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ui={per_page:5,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Di&&Di.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ui[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ui)),[p,h,b,ve,Te,Ui,y]),Ii=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var $i=[];Ii&&Ii.map(((e,t)=>{$i.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Wi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Oi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Ai=(e,t,a)=>{if(a&&0!=t)return;const o=Wi&&Wi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Gi=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title "+X(mt,dt,ct,pt):X(Be,_e,He,Ne),c="featured"==t?je:Me,p="featured"==t?Ke:xe,u="featured"==t?Ze:Ee,h="featured"==t?Oe||"large":Se||"large",y="featured"==t?Ae:fe,b="featured"==t?qe:ke;return(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&"featured"==t?e.categories.map(((e,t)=>Ai(e,t,!1))):e.categories.map(((e,t)=>Ai(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ia&&`${e.relative_dates.created}`,"default"==ia&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ia&&(0,ce.dateI18n)(oa,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))},ji=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Ki=()=>{const e=[];return null==ji||ji.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),mt&&(0,i.createElement)(xo,{family:mt,weight:dt.replace("italic","i")}),Be&&(0,i.createElement)(xo,{family:Be,weight:_e.replace("italic","i")}),Et&&(0,i.createElement)(xo,{family:Et,weight:kt.replace("italic","i")}),$t&&(0,i.createElement)(xo,{family:$t,weight:Wt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Ki(),value:Oe,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Ge,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:Ae,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:je,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:qe,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Ki(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({sideExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:ke,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:na,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ia,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ia&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:oa,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:mt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:dt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:ct,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:pt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:gt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ut,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ht,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:yt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:bt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:vt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:Tt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:St,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:ft,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Lt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Mt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:xt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ot,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:et,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ye,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:nt,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:tt,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Xe,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:rt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:at,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Je,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:lt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:it,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Qe,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:st,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Side Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:we,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:Fe,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ze,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ua,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:va,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Et,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:kt,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Bt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:_t,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ht,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Nt,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Vt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ct,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:wt,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ft,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Rt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:zt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Dt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Ut,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Pt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:It,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:ka,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:$t,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Wt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Ot,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:At,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Gt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:jt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Kt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Zt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:qt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Yt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Xt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Jt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Qt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:ea,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ta,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:aa,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ra,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Va,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Ba,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:za,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ca,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_a,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Da,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:wa,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ha,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ua,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Fa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Na,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Za,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Aa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ia,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ga,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$a,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ja,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ka,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Oa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Ja,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Qa,setValue:e=>o({borderNormal:e})}),Qa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ii,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oi,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ni,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ri,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:li,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:gi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ui,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:hi,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:yi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:bi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Mi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ei,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ki,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Bi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_i,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:ei,setValue:e=>o({borderHover:e})}),ei&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ai,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:si,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:mi,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:di,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ci,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pi,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:vi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ti,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Si,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fi,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Li,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Hi,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ni,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Vi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ci,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:wi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Fi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ri,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-two"}),(0,i.createElement)("h2",{className:Oi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-two-wrap"},Pi&&Pi.length>0&&(0,i.createElement)("div",{className:"col1"},Gi(Pi[Object.keys(Pi)[0]],"featured")),Pi&&Pi.length>1&&(0,i.createElement)("div",{className:"col2"},Gi(Pi[Object.keys(Pi)[1]],""),Pi.length>2&&Gi(Pi[Object.keys(Pi)[2]],"side")),Pi&&Pi.length>3&&(0,i.createElement)("div",{className:"col3"},Gi(Pi[Object.keys(Pi)[3]],""),Pi.length>4&&Gi(Pi[Object.keys(Pi)[4]],"side"))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-three",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 108.82"},(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 37.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M163.23 0h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 37.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M163.23 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 61.21h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 98.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 105.42h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M163.23 61.21h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 98.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M163.23 105.42h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h95.22v108.82H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 81.61h78.21v3.4H6.8zm0 6.81h68.01v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 98.62h27.21v3.4H6.8z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 3","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideImageHeight:fe,sidePostAuthor:Le,sidePostDate:Me,sidePostComments:xe,sidePostCategory:Ee,sideTypographyFamily:ke,sideTypographyWeight:Be,sideTypographyTextTransform:_e,sideTypographyTextDecoration:He,sideTypographyFontSizeSm:Ne,sideTypographyFontSizeMd:Ve,sideTypographyFontSize:Ce,sideTypographyFontSizeUnit:we,sideTypographyLetterSpacingSm:Fe,sideTypographyLetterSpacingMd:Re,sideTypographyLetterSpacing:ze,sideTypographyLetterSpacingUnit:De,sideTypographyLineHeightSm:Ue,sideTypographyLineHeightMd:Pe,sideTypographyLineHeight:Ie,sideTypographyLineHeightUnit:$e,featuredImageSize:We,featuredPostAuthor:Oe,featuredPostDate:Ae,featuredPostComments:Ge,featuredPostCategory:je,featuredTitleMarginSmTop:Ke,featuredTitleMarginSmLeft:Ze,featuredTitleMarginSmRight:qe,featuredTitleMarginSmBottom:Ye,featuredTitleMarginMdTop:Xe,featuredTitleMarginMdLeft:Je,featuredTitleMarginMdRight:Qe,featuredTitleMarginMdBottom:et,featuredTitleMarginTop:tt,featuredTitleMarginLeft:at,featuredTitleMarginRight:it,featuredTitleMarginBottom:ot,featuredTitleMarginUnit:nt,featuredTypographyFamily:rt,featuredTypographyWeight:lt,featuredTypographyTextTransform:st,featuredTypographyTextDecoration:mt,featuredTypographyFontSizeSm:dt,featuredTypographyFontSizeMd:ct,featuredTypographyFontSize:pt,featuredTypographyFontSizeUnit:gt,featuredTypographyLetterSpacingSm:ut,featuredTypographyLetterSpacingMd:ht,featuredTypographyLetterSpacing:yt,featuredTypographyLetterSpacingUnit:bt,featuredTypographyLineHeightSm:vt,featuredTypographyLineHeightMd:Tt,featuredTypographyLineHeight:St,featuredTypographyLineHeightUnit:ft,metasTypographyFamily:Lt,metasTypographyWeight:Mt,metasTypographyTextTransform:xt,metasTypographyTextDecoration:Et,metasTypographyFontSizeSm:kt,metasTypographyFontSizeMd:Bt,metasTypographyFontSize:_t,metasTypographyFontSizeUnit:Ht,metasTypographyLetterSpacingSm:Nt,metasTypographyLetterSpacingMd:Vt,metasTypographyLetterSpacing:Ct,metasTypographyLetterSpacingUnit:wt,metasTypographyLineHeightSm:Ft,metasTypographyLineHeightMd:Rt,metasTypographyLineHeight:zt,metasTypographyLineHeightUnit:Dt,dateFormat:Ut,customDateFormat:Pt,imageBorderRadius:It,sideTitleMarginSmTop:$t,sideTitleMarginSmLeft:Wt,sideTitleMarginSmRight:Ot,sideTitleMarginSmBottom:At,sideTitleMarginMdTop:Gt,sideTitleMarginMdLeft:jt,sideTitleMarginMdRight:Kt,sideTitleMarginMdBottom:Zt,sideTitleMarginTop:qt,sideTitleMarginLeft:Yt,sideTitleMarginRight:Xt,sideTitleMarginBottom:Jt,sideTitleMarginUnit:Qt,categoryBackgroundColor:ea,categoryTextColor:ta,categoryBackgroundHoverColor:aa,categoryTextHoverColor:ia,featuredTitleColor:oa,sideTitleColor:na,sideTitleHoverColor:ra,titleHoverColor:la,postMetasColor:sa,blockMarginSmTop:ma,blockMarginSmLeft:da,blockMarginSmRight:ca,blockMarginSmBottom:pa,blockMarginMdTop:ga,blockMarginMdLeft:ua,blockMarginMdRight:ha,blockMarginMdBottom:ya,blockMarginTop:ba,blockMarginLeft:va,blockMarginRight:Ta,blockMarginBottom:Sa,blockMarginUnit:fa,blockPaddingSmTop:La,blockPaddingSmLeft:Ma,blockPaddingSmRight:xa,blockPaddingSmBottom:Ea,blockPaddingMdTop:ka,blockPaddingMdLeft:Ba,blockPaddingMdRight:_a,blockPaddingMdBottom:Ha,blockPaddingTop:Na,blockPaddingLeft:Va,blockPaddingRight:Ca,blockPaddingBottom:wa,blockPaddingUnit:Fa,borderNormal:Ra,borderHover:za,borderNormalColor:Da,borderHoverColor:Ua,borderNormalWidthTop:Pa,borderNormalWidthLeft:Ia,borderNormalWidthRight:$a,borderNormalWidthBottom:Wa,borderNormalWidthUnit:Oa,borderHoverWidthTop:Aa,borderHoverWidthLeft:Ga,borderHoverWidthRight:ja,borderHoverWidthBottom:Ka,borderHoverWidthUnit:Za,borderNormalRadiusTop:qa,borderNormalRadiusLeft:Ya,borderNormalRadiusRight:Xa,borderNormalRadiusBottom:Ja,borderNormalRadiusUnit:Qa,borderHoverRadiusTop:ei,borderHoverRadiusLeft:ti,borderHoverRadiusRight:ai,borderHoverRadiusBottom:ii,borderHoverRadiusUnit:oi,borderNormalBoxShadowHorizontal:ni,borderNormalBoxShadowVertical:ri,borderNormalBoxShadowBlur:li,borderNormalBoxShadowSpread:si,borderNormalBoxShadowColor:mi,borderNormalBoxShadowInset:di,borderHoverBoxShadowHorizontal:ci,borderHoverBoxShadowVertical:pi,borderHoverBoxShadowBlur:gi,borderHoverBoxShadowSpread:ui,borderHoverBoxShadowColor:hi,borderHoverBoxShadowInset:yi,blockBgColor:bi}=a;o({id:(0,d.useBlockProps)().id});const vi=`#${s} {\n        ${Ra?"--sb-border-normal: "+Ra+";":""}\n        ${za?"--sb-border-hover: "+Ra+";":""}\n        ${Da?"--sb-border-normal-color: "+Da+";":""}\n        ${Ua?"--sb-border-hover-color: "+Ua+";":""}\n\n        ${J("border-normal-width",Pa,$a,Wa,Ia,Oa)}\n        ${J("border-hover-width",Aa,ja,Ka,Ga,Za)}\n        ${J("border-normal-radius",qa,Xa,Ja,Ya,Qa)}\n        ${J("border-hover-radius",ei,ai,ii,ti,oi)}\n\n        ${te("border-normal-box-shadow",ni,ri,li,si,mi,di,"px")}\n        ${te("border-hover-box-shadow",ci,pi,gi,ui,hi,yi,"px")}\n\n        ${bi?"--sb-block-bg-color: "+bi+";":""}\n\n        ${Q("block-margin",ba,Ta,Sa,va,ma,ca,pa,da,ga,ha,ya,ua,fa)}\n\n        ${Q("block-padding",Na,Ca,wa,Va,La,xa,Ea,Ma,ka,_a,Ha,Ba,Fa)}\n\n        ${Q("featured-title-margin",tt,it,ot,at,Ke,qe,Ye,Ze,Xe,Qe,et,Je,nt)}\n\n        ${Q("side-post-title-margin",qt,Xt,Jt,Yt,$t,Ot,At,Wt,Gt,Kt,Zt,jt,Qt)}\n\n        ${bi?"--sb-block-bg-color: "+bi+";":""}\n\n        ${fe?"--sb-side-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft)}\n\n        ${ie("side-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Lt,Mt,xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt)}\n\n        ${ea?"--sb-category-background-color: "+ea+";":""}\n        ${ta?"--sb-category-text-color: "+ta+";":""}\n        ${aa?"--sb-category-background-hover-color: "+aa+";":""}\n        ${ia?"--sb-category-text-hover-color: "+ia+";":""}\n        ${oa?"--sb-featured-title-color: "+oa+";":""}\n        ${na?"--sb-side-title-color: "+na+";":""}\n        ${ra?"--sb-side-title-hover-color: "+ra+";":""}\n\n        ${sa?"--sb-post-metas-color: "+sa+";":""}\n\n        ${It?"--sb-image-border-radius: "+It+"px;":""}\n    }`;o({sbStyle:vi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ti=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Si={per_page:5,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Ti&&Ti.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Si[t]=(a=e.value,b&&b[a]?b[a]:[])}));const fi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Si)),[p,h,b,ve,Te,Si,y]),Li=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Mi=[];Li&&Li.map(((e,t)=>{Mi.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const xi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Ei=l()("sb-block-title",`${L}`,X(N,w,z,D)),ki=(e,t,a)=>{if(a&&0!=t)return;const o=xi&&xi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Bi=(e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],p=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h="featured"==t?Oe:Le,y="featured"==t?Ae:Me,b="featured"==t?Ge:xe,v="featured"==t?We||"large":Se||"large",T="featured"==t?je:Ee,S=(0,i.createElement)("div",{class:"sb-post-item"},(0,i.createElement)("div",{class:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{class:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[v]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[v].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title sb-large-title ${X(rt,lt,st,mt)}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Ut&&`${e.relative_dates.created}`,"default"==Ut&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Ut&&(0,ce.dateI18n)(Pt,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)))),T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>ki(e,t,!1)))))),f=(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[v]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[v].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text}))),T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>ki(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${X(ke,Be,_e,He)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Ut&&`${e.relative_dates.created}`,"default"==Ut&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Ut&&(0,ce.dateI18n)(Pt,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))));return"featured"==t?S:f},_i=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Hi=()=>{const e=[];return null==_i||_i.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),rt&&"Default"!=rt&&(0,i.createElement)(xo,{family:rt,weight:lt.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),Lt&&"Default"!=Lt&&(0,i.createElement)(xo,{family:Lt,weight:Mt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Hi(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Oe,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ae,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:je,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Hi(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:It,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:Ut,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==Ut&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:Pt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Featured Post Title Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({featuredTitleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Side Post Title Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({sideTitleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Side Post Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({sideTitleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:rt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:lt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:st,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:mt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:dt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ct,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:pt,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:gt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:ut,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ht,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:yt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:bt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:vt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Tt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:St,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:ft,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:tt,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Xe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ke,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:at,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Je,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ze,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:it,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:Qe,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:qe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:ot,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:et,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Ye,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:nt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Side Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:qt,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:Gt,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:$t,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:Yt,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:jt,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:Wt,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:Xt,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:Kt,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:Ot,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:Jt,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:Zt,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:At,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:Qt,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:sa,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Lt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Mt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:xt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Et,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:kt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Bt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:_t,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ht,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Nt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Vt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Ct,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:wt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ft,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Rt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:zt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Dt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ba,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:ga,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ma,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:va,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ua,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:da,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Ta,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ha,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:ca,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Sa,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ya,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:pa,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:fa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Na,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:ka,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:La,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Va,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ba,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ma,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ca,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:_a,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:xa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:wa,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ha,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Ea,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Fa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Ra,setValue:e=>o({borderNormal:e})}),Ra&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Da,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Pa,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Ia,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:$a,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Wa,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Oa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:qa,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:Ya,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Xa,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ja,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Qa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ni,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ri,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:li,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:si,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:mi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:di,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:za,setValue:e=>o({borderHover:e})}),za&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Ua,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Aa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Ga,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ja,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Ka,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Za,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ei,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ti,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ai,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ii,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:oi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ci,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:pi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:gi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:ui,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:hi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:yi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:bi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-three"}),(0,i.createElement)("h2",{className:Ei},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-three-wrap"},fi&&fi.length>0&&(0,i.createElement)("div",{className:"col1"},Bi(fi[Object.keys(fi)[0]],"featured")),fi&&fi.length>1&&(0,i.createElement)("div",{className:"col2"},(0,i.createElement)("div",{className:"col2-wrap"},function(e,t){let a=[];for(;++t<e.length;)a.push(Bi(fi[Object.keys(fi)[t]]));return a}(fi,0)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-four",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 142.83"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 95.22h40.81v30.61H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M3.4 132.62h34.01v3.4H3.4zm3.4-71.41h81.61v3.4H6.8zm6.8 6.8h68.01v3.4H13.6zm108.82 0h68.01v3.4h-68.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M34.01 78.21h27.2v3.4h-27.2zM10.2 139.43h20.4v3.4H10.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M54.41 95.22h40.81v30.61H54.41z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M57.81 132.62h34.01v3.4H57.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M64.61 139.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 95.22h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M112.22 132.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M119.02 139.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M163.23 95.22h40.81v30.61h-40.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M166.63 132.62h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M173.43 139.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h95.22v54.41H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M115.62 61.21h81.61v3.4h-81.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M142.83 78.21h27.21v3.4h-27.21z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h95.22v54.41h-95.22z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 4","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,bottomImageSize:Se,bottomImageHeight:fe,bottomPostAuthor:Le,bottomPostDate:Me,bottomPostComments:xe,bottomPostCategory:Ee,bottomTypographyFamily:ke,bottomTypographyWeight:Be,bottomTypographyTextTransform:_e,bottomTypographyTextDecoration:He,bottomTypographyFontSizeSm:Ne,bottomTypographyFontSizeMd:Ve,bottomTypographyFontSize:Ce,bottomTypographyFontSizeUnit:we,bottomTypographyLetterSpacingSm:Fe,bottomTypographyLetterSpacingMd:Re,bottomTypographyLetterSpacing:ze,bottomTypographyLetterSpacingUnit:De,bottomTypographyLineHeightSm:Ue,bottomTypographyLineHeightMd:Pe,bottomTypographyLineHeight:Ie,bottomTypographyLineHeightUnit:$e,topImageSize:We,topImageHeight:Oe,topPostAuthor:Ae,topPostDate:Ge,topPostComments:je,topPostCategory:Ke,topTitleMarginTop:Ze,topTitleMarginLeft:qe,topTitleMarginRight:Ye,topTitleMarginBottom:Xe,topTitleMarginSmTop:Je,topTitleMarginSmLeft:Qe,topTitleMarginSmRight:et,topTitleMarginSmBottom:tt,topTitleMarginMdTop:at,topTitleMarginMdLeft:it,topTitleMarginMdRight:ot,topTitleMarginMdBottom:nt,topTitleMarginUnit:rt,topTypographyFamily:lt,topTypographyWeight:st,topTypographyTextTransform:mt,topTypographyTextDecoration:dt,topTypographyFontSizeSm:ct,topTypographyFontSizeMd:pt,topTypographyFontSize:gt,topTypographyFontSizeUnit:ut,topTypographyLetterSpacingSm:ht,topTypographyLetterSpacingMd:yt,topTypographyLetterSpacing:bt,topTypographyLetterSpacingUnit:vt,topTypographyLineHeightSm:Tt,topTypographyLineHeightMd:St,topTypographyLineHeight:ft,topTypographyLineHeightUnit:Lt,metasTypographyFamily:Mt,metasTypographyWeight:xt,metasTypographyTextTransform:Et,metasTypographyTextDecoration:kt,metasTypographyFontSizeSm:Bt,metasTypographyFontSizeMd:_t,metasTypographyFontSize:Ht,metasTypographyFontSizeUnit:Nt,metasTypographyLetterSpacingSm:Vt,metasTypographyLetterSpacingMd:Ct,metasTypographyLetterSpacing:wt,metasTypographyLetterSpacingUnit:Ft,metasTypographyLineHeightSm:Rt,metasTypographyLineHeightMd:zt,metasTypographyLineHeight:Dt,metasTypographyLineHeightUnit:Ut,dateFormat:Pt,customDateFormat:It,imageBorderRadius:$t,bottomTitleMarginTop:Wt,bottomTitleMarginLeft:Ot,bottomTitleMarginRight:At,bottomTitleMarginBottom:Gt,bottomTitleMarginSmTop:jt,bottomTitleMarginSmLeft:Kt,bottomTitleMarginSmRight:Zt,bottomTitleMarginSmBottom:qt,bottomTitleMarginMdTop:Yt,bottomTitleMarginMdLeft:Xt,bottomTitleMarginMdRight:Jt,bottomTitleMarginMdBottom:Qt,bottomTitleMarginUnit:ea,categoryBackgroundColor:ta,categoryTextColor:aa,categoryBackgroundHoverColor:ia,categoryTextHoverColor:oa,titleColor:na,titleHoverColor:ra,postMetasColor:la,blockMarginSmTop:sa,blockMarginSmLeft:ma,blockMarginSmRight:da,blockMarginSmBottom:ca,blockMarginMdTop:pa,blockMarginMdLeft:ga,blockMarginMdRight:ua,blockMarginMdBottom:ha,blockMarginTop:ya,blockMarginLeft:ba,blockMarginRight:va,blockMarginBottom:Ta,blockMarginUnit:Sa,blockPaddingSmTop:fa,blockPaddingSmLeft:La,blockPaddingSmRight:Ma,blockPaddingSmBottom:xa,blockPaddingMdTop:Ea,blockPaddingMdLeft:ka,blockPaddingMdRight:Ba,blockPaddingMdBottom:_a,blockPaddingTop:Ha,blockPaddingLeft:Na,blockPaddingRight:Va,blockPaddingBottom:Ca,blockPaddingUnit:wa,borderNormal:Fa,borderHover:Ra,borderNormalColor:za,borderHoverColor:Da,borderNormalWidthTop:Ua,borderNormalWidthLeft:Pa,borderNormalWidthRight:Ia,borderNormalWidthBottom:$a,borderNormalWidthUnit:Wa,borderHoverWidthTop:Oa,borderHoverWidthLeft:Aa,borderHoverWidthRight:Ga,borderHoverWidthBottom:ja,borderHoverWidthUnit:Ka,borderNormalRadiusTop:Za,borderNormalRadiusLeft:qa,borderNormalRadiusRight:Ya,borderNormalRadiusBottom:Xa,borderNormalRadiusUnit:Ja,borderHoverRadiusTop:Qa,borderHoverRadiusLeft:ei,borderHoverRadiusRight:ti,borderHoverRadiusBottom:ai,borderHoverRadiusUnit:ii,borderNormalBoxShadowHorizontal:oi,borderNormalBoxShadowVertical:ni,borderNormalBoxShadowBlur:ri,borderNormalBoxShadowSpread:li,borderNormalBoxShadowColor:si,borderNormalBoxShadowInset:mi,borderHoverBoxShadowHorizontal:di,borderHoverBoxShadowVertical:ci,borderHoverBoxShadowBlur:pi,borderHoverBoxShadowSpread:gi,borderHoverBoxShadowColor:ui,borderHoverBoxShadowInset:hi,blockBgColor:yi}=a;o({id:(0,d.useBlockProps)().id});const bi=`#${s} {\n        ${Fa?"--sb-border-normal: "+Fa+";":""}\n        ${Ra?"--sb-border-hover: "+Ra+";":""}\n        ${za?"--sb-border-normal-color: "+za+";":""}\n        ${Da?"--sb-border-hover-color: "+Da+";":""}\n\n        ${J("border-normal-width",Ua,Ia,$a,Pa,Wa)}\n        ${J("border-hover-width",Oa,Ga,ja,Aa,Ka)}\n        ${J("border-normal-radius",Za,Ya,Xa,qa,Ja)}\n        ${J("border-hover-radius",Qa,ti,ai,ei,ii)}\n\n        ${te("border-normal-box-shadow",oi,ni,ri,li,si,mi,"px")}\n        ${te("border-hover-box-shadow",di,ci,pi,gi,ui,hi,"px")}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Q("block-margin",ya,va,Ta,ba,sa,da,ca,ma,pa,ua,ha,ga,Sa)}\n\n        ${Q("block-padding",Ha,Va,Ca,Na,fa,Ma,xa,La,Ea,Ba,_a,ka,wa)}\n\n        ${Q("top-post-title-margin",Ze,Ye,Xe,qe,Je,et,tt,Qe,at,ot,nt,it,rt)}\n\n        ${Q("bottom-post-title-margin",Wt,At,Gt,Ot,jt,Zt,qt,Kt,Yt,Jt,Qt,Xt,ea)}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Oe?"--sb-top-thumb-height: "+Oe+"%;":""}\n        ${fe?"--sb-bottom-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("top-post-title-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("bottom-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Mt,xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut)}\n\n        ${ta?"--sb-category-background-color: "+ta+";":""}\n        ${aa?"--sb-category-text-color: "+aa+";":""}\n        ${ia?"--sb-category-background-hover-color: "+ia+";":""}\n        ${oa?"--sb-category-text-hover-color: "+oa+";":""}\n        ${na?"--sb-title-color: "+na+";":""}\n        ${ra?"--sb-title-hover-color: "+ra+";":""}\n\n        ${la?"--sb-post-metas-color: "+la+";":""}\n\n        ${$t?"--sb-image-border-radius: "+$t+"px;":""}\n    }`;o({sbStyle:bi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const vi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ti={per_page:6,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};vi&&vi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ti[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Si=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ti)),[p,h,b,ve,Te,Ti,y]),fi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Li=[];fi&&fi.map(((e,t)=>{Li.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Mi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),xi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Ei=(e,t,a)=>{if(a&&0!=t)return;const o=Mi&&Mi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},ki=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Bi=()=>{const e=[];return null==ki||ki.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(xo,{family:lt,weight:st.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),Mt&&"Default"!=Mt&&(0,i.createElement)(xo,{family:Mt,weight:xt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Top Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Bi(),value:We,onChange:e=>o({topImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Oe,setValue:e=>o({topImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Ae,onChange:e=>o({topPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ge,onChange:e=>o({topPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:je,onChange:e=>o({topPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ke,onChange:e=>o({topPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Bottom Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Bi(),value:Se,onChange:e=>o({bottomImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({bottomImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({bottomPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({bottomPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({bottomPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({bottomPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:$t,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:Pt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==Pt&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:It,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Top Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({topTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({topTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({topTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({topTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({topTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({topTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({topTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({topTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({topTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({topTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({topTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({topTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({topTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({topTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({topTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({topTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ze,setDimensionTop:e=>o({topTitleMarginTop:e}),dimensionMdTop:at,setDimensionMdTop:e=>o({topTitleMarginMdTop:e}),dimensionSmTop:Je,setDimensionSmTop:e=>o({topTitleMarginSmTop:e}),dimensionLeft:qe,setDimensionLeft:e=>o({topTitleMarginLeft:e}),dimensionMdLeft:it,setDimensionMdLeft:e=>o({topTitleMarginMdLeft:e}),dimensionSmLeft:Qe,setDimensionSmLeft:e=>o({topTitleMarginSmLeft:e}),dimensionRight:Ye,setDimensionRight:e=>o({topTitleMarginRight:e}),dimensionMdRight:ot,setDimensionMdRight:e=>o({topTitleMarginMdRight:e}),dimensionSmRight:et,setDimensionSmRight:e=>o({topTitleMarginSmRight:e}),dimensionBottom:Xe,setDimensionBottom:e=>o({topTitleMarginBottom:e}),dimensionMdBottom:nt,setDimensionMdBottom:e=>o({topTitleMarginMdBottom:e}),dimensionSmBottom:tt,setDimensionSmBottom:e=>o({topTitleMarginSmBottom:e}),unit:rt,setUnit:e=>o({topTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Bottom Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({bottomTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({bottomTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({bottomTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({bottomTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({bottomTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({bottomTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({bottomTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({bottomTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({bottomTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({bottomTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({bottomTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({bottomTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({bottomTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({bottomTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({bottomTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({bottomTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:Wt,setDimensionTop:e=>o({bottomTitleMarginTop:e}),dimensionMdTop:Yt,setDimensionMdTop:e=>o({bottomTitleMarginMdTop:e}),dimensionSmTop:jt,setDimensionSmTop:e=>o({bottomTitleMarginSmTop:e}),dimensionLeft:Ot,setDimensionLeft:e=>o({bottomTitleMarginLeft:e}),dimensionMdLeft:Xt,setDimensionMdLeft:e=>o({bottomTitleMarginMdLeft:e}),dimensionSmLeft:Kt,setDimensionSmLeft:e=>o({bottomTitleMarginSmLeft:e}),dimensionRight:At,setDimensionRight:e=>o({bottomTitleMarginRight:e}),dimensionMdRight:Jt,setDimensionMdRight:e=>o({bottomTitleMarginMdRight:e}),dimensionSmRight:Zt,setDimensionSmRight:e=>o({bottomTitleMarginSmRight:e}),dimensionBottom:Gt,setDimensionBottom:e=>o({bottomTitleMarginBottom:e}),dimensionMdBottom:Qt,setDimensionMdBottom:e=>o({bottomTitleMarginMdBottom:e}),dimensionSmBottom:qt,setDimensionSmBottom:e=>o({bottomTitleMarginSmBottom:e}),unit:ea,setUnit:e=>o({bottomTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:la,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Mt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:xt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Et,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:kt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Bt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:_t,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ht,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Nt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Vt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ct,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:wt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ft,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Rt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:zt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Dt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Ut,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ya,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:pa,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:sa,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ga,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ma,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:va,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ua,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:da,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ha,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ca,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Sa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ha,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ea,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:fa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Na,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:ka,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:La,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Va,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ba,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Ma,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ca,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:_a,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:xa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:wa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Fa,setValue:e=>o({borderNormal:e})}),Fa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:za,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Ua,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Pa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ia,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:$a,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Wa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Za,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ja,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:oi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ni,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ri,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:li,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:si,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:mi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Ra,setValue:e=>o({borderHover:e})}),Ra&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Da,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Oa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Aa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ja,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ka,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Qa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ei,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ai,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ii,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:di,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:ci,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:pi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:gi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:ui,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:hi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:yi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-four"}),(0,i.createElement)("h2",{className:xi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-four-wrap"},Si&&Si.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=0==t||1==t?"sb-big-title "+X(lt,st,mt,dt):X(ke,Be,_e,He),c=0==t||1==t?Ae:Le,p=0==t||1==t?Ge:Me,u=0==t||1==t?je:xe,h=0==t||1==t?We||"large":Se||"large",y=0==t||1==t?Ke:Ee;return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},!e.categories||0!=t&&1!=t?e.categories.map(((e,t)=>Ei(e,t,!0))):e.categories.map(((e,t)=>Ei(e,t,!1))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Pt&&`${e.relative_dates.created}`,"default"==Pt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Pt&&(0,ce.dateI18n)(It,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-five",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 149.63"},(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 98.62h88.42v3.4H0zm0 6.8h74.81v3.4H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h34.01v27.2h-34.01zM0 0h95.22v91.82H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 0h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 40.81h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 40.81h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 57.81h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 81.61h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 81.61h54.41v3.4h-54.41zm0 6.81h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 98.62h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 122.42h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 122.42h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81zM0 125.82h95.22v3.4H0zm0 6.8h81.61v3.4H0zm0 6.81h74.81v3.4H0zm0 6.8h68.01v3.4H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 139.43h20.4v3.4h-20.4zM0 115.62h27.2v3.4H0z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 5","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingImageHeight:fe,listingPostAuthor:Le,listingPostDate:Me,listingPostComments:xe,listingPostCategory:Ee,listingTypographyFamily:ke,listingTypographyWeight:Be,listingTypographyTextTransform:_e,listingTypographyTextDecoration:He,listingTypographyFontSizeSm:Ne,listingTypographyFontSizeMd:Ve,listingTypographyFontSize:Ce,listingTypographyFontSizeUnit:we,listingTypographyLetterSpacingSm:Fe,listingTypographyLetterSpacingMd:Re,listingTypographyLetterSpacing:ze,listingTypographyLetterSpacingUnit:De,listingTypographyLineHeightSm:Ue,listingTypographyLineHeightMd:Pe,listingTypographyLineHeight:Ie,listingTypographyLineHeightUnit:$e,featuredImageSize:We,featuredExcerptLength:Oe,featuredImageHeight:Ae,featuredPostAuthor:Ge,featuredPostDate:je,featuredPostComments:Ke,featuredPostCategory:Ze,featuredTitleMarginSmTop:qe,featuredTitleMarginSmLeft:Ye,featuredTitleMarginSmRight:Xe,featuredTitleMarginSmBottom:Je,featuredTitleMarginMdTop:Qe,featuredTitleMarginMdLeft:et,featuredTitleMarginMdRight:tt,featuredTitleMarginMdBottom:at,featuredTitleMarginTop:it,featuredTitleMarginLeft:ot,featuredTitleMarginRight:nt,featuredTitleMarginBottom:rt,featuredTitleMarginUnit:lt,featuredTypographyFamily:st,featuredTypographyWeight:mt,featuredTypographyTextTransform:dt,featuredTypographyTextDecoration:ct,featuredTypographyFontSizeSm:pt,featuredTypographyFontSizeMd:gt,featuredTypographyFontSize:ut,featuredTypographyFontSizeUnit:ht,featuredTypographyLetterSpacingSm:yt,featuredTypographyLetterSpacingMd:bt,featuredTypographyLetterSpacing:vt,featuredTypographyLetterSpacingUnit:Tt,featuredTypographyLineHeightSm:St,featuredTypographyLineHeightMd:ft,featuredTypographyLineHeight:Lt,featuredTypographyLineHeightUnit:Mt,excerptTypographyFamily:xt,excerptTypographyWeight:Et,excerptTypographyTextTransform:kt,excerptTypographyTextDecoration:Bt,excerptTypographyFontSizeSm:_t,excerptTypographyFontSizeMd:Ht,excerptTypographyFontSize:Nt,excerptTypographyFontSizeUnit:Vt,excerptTypographyLetterSpacingSm:Ct,excerptTypographyLetterSpacingMd:wt,excerptTypographyLetterSpacing:Ft,excerptTypographyLetterSpacingUnit:Rt,excerptTypographyLineHeightSm:zt,excerptTypographyLineHeightMd:Dt,excerptTypographyLineHeight:Ut,excerptTypographyLineHeightUnit:Pt,metasTypographyFamily:It,metasTypographyWeight:$t,metasTypographyTextTransform:Wt,metasTypographyTextDecoration:Ot,metasTypographyFontSizeSm:At,metasTypographyFontSizeMd:Gt,metasTypographyFontSize:jt,metasTypographyFontSizeUnit:Kt,metasTypographyLetterSpacingSm:Zt,metasTypographyLetterSpacingMd:qt,metasTypographyLetterSpacing:Yt,metasTypographyLetterSpacingUnit:Xt,metasTypographyLineHeightSm:Jt,metasTypographyLineHeightMd:Qt,metasTypographyLineHeight:ea,metasTypographyLineHeightUnit:ta,dateFormat:aa,customDateFormat:ia,imageBorderRadius:oa,listingTitleMarginSmTop:na,listingTitleMarginSmLeft:ra,listingTitleMarginSmRight:la,listingTitleMarginSmBottom:sa,listingTitleMarginMdTop:ma,listingTitleMarginMdLeft:da,listingTitleMarginMdRight:ca,listingTitleMarginMdBottom:pa,listingTitleMarginTop:ga,listingTitleMarginLeft:ua,listingTitleMarginRight:ha,listingTitleMarginBottom:ya,listingTitleMarginUnit:ba,categoryBackgroundColor:va,categoryTextColor:Ta,categoryBackgroundHoverColor:Sa,categoryTextHoverColor:fa,titleColor:La,titleHoverColor:Ma,excerptColor:xa,postMetasColor:Ea,blockMarginSmTop:ka,blockMarginSmLeft:Ba,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:wa,blockMarginTop:Fa,blockMarginLeft:Ra,blockMarginRight:za,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Oa,blockPaddingMdLeft:Aa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Ka,blockPaddingLeft:Za,blockPaddingRight:qa,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:ki,borderNormalBoxShadowInset:Bi,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:wi,blockBgColor:Fi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,ki,Bi,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,wi,"px")}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n\n        ${Q("block-margin",Fa,za,Da,Ra,ka,_a,Ha,Ba,Na,Ca,wa,Va,Ua)}\n\n        ${Q("block-padding",Ka,qa,Ya,Za,Pa,$a,Wa,Ia,Oa,Ga,ja,Aa,Xa)}\n\n        ${Q("featured-title-margin",it,nt,rt,ot,qe,Xe,Je,Ye,Qe,tt,at,et,lt)}\n\n        ${Q("listing-post-title-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n\n\t\t${Ae?"--sb-featured-thumb-height: "+Ae+"%;":""}\n\t\t${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n\t\t${M?"--sb-header-color: "+M+";":""}\n\t\t${k?"--sb-header-short-border-color: "+k+";":""}\n\t\t${H?"--sb-header-long-border-color: "+H+";":""}\n\n\t\t${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n\t\t${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt)}\n\n        ${ie("listing-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut,Pt)}\n\n        ${ie("post-metas-typo",It,$t,Wt,Ot,At,Gt,jt,Kt,Zt,qt,Yt,Xt,Jt,Qt,ea,ta)}\n\n\n\t\t${va?"--sb-category-background-color: "+va+";":""}\n\t\t${Ta?"--sb-category-text-color: "+Ta+";":""}\n\t\t${Sa?"--sb-category-background-hover-color: "+Sa+";":""}\n\t\t${fa?"--sb-category-text-hover-color: "+fa+";":""}\n\t\t${La?"--sb-title-color: "+La+";":""}\n\t\t${Ma?"--sb-title-hover-color: "+Ma+";":""}\n\n\t\t${xa?"--sb-excerpt-color: "+xa+";":""}\n\t\t${Ea?"--sb-post-metas-color: "+Ea+";":""}\n\n\t\t${oa?"--sb-image-border-radius: "+oa+"px;":""}\n\t}`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const zi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:5,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};zi&&zi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[p,h,b,ve,Te,Di,y]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Oi=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Ai=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title "+X(st,mt,dt,ct):X(ke,Be,_e,He),c="featured"==t?Ge:Le,p="featured"==t?je:Me,u="featured"==t?Ke:xe,h="featured"==t?We||"large":Se||"large",y="featured"==t?Oe:0,b="featured"==t?Ze:Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),b&&"featured"==t&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Oi(e,t,!1))))),(0,i.createElement)("div",{class:"sb-post-content"},b&&"featured"!=t&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Oi(e,t,!0)))),(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),st&&"Default"!=st&&(0,i.createElement)(xo,{family:st,weight:mt.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),xt&&"Default"!=xt&&(0,i.createElement)(xo,{family:xt,weight:Et.replace("italic","i")}),It&&"Default"!=It&&(0,i.createElement)(xo,{family:It,weight:$t.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:"Style 1"},{value:"sb-title-style2",label:"Style 2"},{value:"sb-title-style3",label:"Style 3"},{value:"sb-title-style4",label:"Style 4"}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Ae,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:Oe,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:je,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:oa,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:aa,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==aa&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:ia,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:st,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:mt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:dt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:ct,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:pt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:gt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ut,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ht,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:yt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:bt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:vt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:Tt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:St,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:ft,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Lt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Mt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:it,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Qe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:qe,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:ot,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:et,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ye,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:nt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:tt,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Xe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:rt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:at,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Je,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:lt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Listing Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ba,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:xt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Et,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:kt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:Bt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:_t,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ht,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Nt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Vt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ct,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:wt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Ft,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Rt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:zt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Dt,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Ut,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Pt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:It,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:$t,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Wt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ot,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:At,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Gt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:jt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Kt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Zt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:qt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Yt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Xt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Jt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Qt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ea,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ta,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Fa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ka,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Ba,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:za,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ka,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Oa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Za,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Aa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:qa,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ki,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Bi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Fi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-five"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-five-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Ai(Ui[Object.keys(Ui)[0]],"featured")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},function(e,t){let a=[];for(;++t<e.length;)a.push(Ai(Ui[Object.keys(Ui)[t]]));return a}(Ui,0))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-six",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200.64 156.43"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 98.62h57.81v40.81H0zM0 0h200.64v85.02H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 146.23h47.61v3.4H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M0 153.03h20.4v3.4H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 57.81h142.83v3.4H6.8zm0 6.8h125.82v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 74.81h34.01v3.4H6.8z",opacity:".71"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 98.62h57.81v40.81H71.41z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M71.41 146.23h47.61v3.4H71.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M71.41 153.03h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 98.62h57.81v40.81h-57.81z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M142.83 146.23h47.61v3.4h-47.61z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M142.83 153.03h20.4v3.4h-20.4z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 6","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,bottomImageSize:Se,bottomImageHeight:fe,bottomPostAuthor:Le,bottomPostDate:Me,bottomPostComments:xe,bottomPostCategory:Ee,bottomTypographyFamily:ke,bottomTypographyWeight:Be,bottomTypographyTextTransform:_e,bottomTypographyTextDecoration:He,bottomTypographyFontSizeSm:Ne,bottomTypographyFontSizeMd:Ve,bottomTypographyFontSize:Ce,bottomTypographyFontSizeUnit:we,bottomTypographyLetterSpacingSm:Fe,bottomTypographyLetterSpacingMd:Re,bottomTypographyLetterSpacing:ze,bottomTypographyLetterSpacingUnit:De,bottomTypographyLineHeightSm:Ue,bottomTypographyLineHeightMd:Pe,bottomTypographyLineHeight:Ie,bottomTypographyLineHeightUnit:$e,topImageSize:We,topImageHeight:Oe,topPostAuthor:Ae,topPostDate:Ge,topPostComments:je,topPostCategory:Ke,topTitleMarginTop:Ze,topTitleMarginLeft:qe,topTitleMarginRight:Ye,topTitleMarginBottom:Xe,topTitleMarginSmTop:Je,topTitleMarginSmLeft:Qe,topTitleMarginSmRight:et,topTitleMarginSmBottom:tt,topTitleMarginMdTop:at,topTitleMarginMdLeft:it,topTitleMarginMdRight:ot,topTitleMarginMdBottom:nt,topTitleMarginUnit:rt,topTypographyFamily:lt,topTypographyWeight:st,topTypographyTextTransform:mt,topTypographyTextDecoration:dt,topTypographyFontSizeSm:ct,topTypographyFontSizeMd:pt,topTypographyFontSize:gt,topTypographyFontSizeUnit:ut,topTypographyLetterSpacingSm:ht,topTypographyLetterSpacingMd:yt,topTypographyLetterSpacing:bt,topTypographyLetterSpacingUnit:vt,topTypographyLineHeightSm:Tt,topTypographyLineHeightMd:St,topTypographyLineHeight:ft,topTypographyLineHeightUnit:Lt,excerptTypographyFamily:Mt,excerptTypographyWeight:xt,excerptTypographyTextTransform:Et,excerptTypographyTextDecoration:kt,excerptTypographyFontSizeSm:Bt,excerptTypographyFontSizeMd:_t,excerptTypographyFontSize:Ht,excerptTypographyFontSizeUnit:Nt,excerptTypographyLetterSpacingSm:Vt,excerptTypographyLetterSpacingMd:Ct,excerptTypographyLetterSpacing:wt,excerptTypographyLetterSpacingUnit:Ft,excerptTypographyLineHeightSm:Rt,excerptTypographyLineHeightMd:zt,excerptTypographyLineHeight:Dt,excerptTypographyLineHeightUnit:Ut,metasTypographyFamily:Pt,metasTypographyWeight:It,metasTypographyTextTransform:$t,metasTypographyTextDecoration:Wt,metasTypographyFontSizeSm:Ot,metasTypographyFontSizeMd:At,metasTypographyFontSize:Gt,metasTypographyFontSizeUnit:jt,metasTypographyLetterSpacingSm:Kt,metasTypographyLetterSpacingMd:Zt,metasTypographyLetterSpacing:qt,metasTypographyLetterSpacingUnit:Yt,metasTypographyLineHeightSm:Xt,metasTypographyLineHeightMd:Jt,metasTypographyLineHeight:Qt,metasTypographyLineHeightUnit:ea,dateFormat:ta,customDateFormat:aa,imageBorderRadius:ia,bottomTitleMarginTop:oa,bottomTitleMarginLeft:na,bottomTitleMarginRight:ra,bottomTitleMarginBottom:la,bottomTitleMarginSmTop:sa,bottomTitleMarginSmLeft:ma,bottomTitleMarginSmRight:da,bottomTitleMarginSmBottom:ca,bottomTitleMarginMdTop:pa,bottomTitleMarginMdLeft:ga,bottomTitleMarginMdRight:ua,bottomTitleMarginMdBottom:ha,bottomTitleMarginUnit:ya,categoryBackgroundColor:ba,categoryTextColor:va,categoryBackgroundHoverColor:Ta,categoryTextHoverColor:Sa,titleColor:fa,titleHoverColor:La,excerptColor:Ma,postMetasColor:xa,bottomExcerptLength:Ea,blockMarginSmTop:ka,blockMarginSmLeft:Ba,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:wa,blockMarginTop:Fa,blockMarginLeft:Ra,blockMarginRight:za,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Oa,blockPaddingMdLeft:Aa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Ka,blockPaddingLeft:Za,blockPaddingRight:qa,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:ki,borderNormalBoxShadowInset:Bi,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:wi,blockBgColor:Fi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,ki,Bi,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,wi,"px")}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n\n        ${Q("block-margin",Fa,za,Da,Ra,ka,_a,Ha,Ba,Na,Ca,wa,Va,Ua)}\n\n        ${Q("block-padding",Ka,qa,Ya,Za,Pa,$a,Wa,Ia,Oa,Ga,ja,Aa,Xa)}\n\n        ${Q("top-post-title-margin",Ze,Ye,Xe,qe,Je,et,tt,Qe,at,ot,nt,it,rt)}\n\n        ${Q("bottom-post-title-margin",oa,ra,la,na,sa,da,ca,ma,pa,ua,ha,ga,ya)}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n\n        ${Oe?"--sb-top-thumb-height: "+Oe+"%;":""}\n        ${fe?"--sb-bottom-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("top-post-title-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("bottom-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",Mt,xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut)}\n\n        ${ie("post-metas-typo",Pt,It,$t,Wt,Ot,At,Gt,jt,Kt,Zt,qt,Yt,Xt,Jt,Qt,ea)}\n\n        ${ba?"--sb-category-background-color: "+ba+";":""}\n        ${va?"--sb-category-text-color: "+va+";":""}\n        ${Ta?"--sb-category-background-hover-color: "+Ta+";":""}\n        ${Sa?"--sb-category-text-hover-color: "+Sa+";":""}\n        ${fa?"--sb-title-color: "+fa+";":""}\n        ${La?"--sb-title-hover-color: "+La+";":""}\n\n        ${Ma?"--sb-excerpt-color: "+Ma+";":""}\n        ${xa?"--sb-post-metas-color: "+xa+";":""}\n\n        ${ia?"--sb-image-border-radius: "+ia+"px;":""}\n    }`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const zi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:4,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};zi&&zi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[p,h,b,ve,Te,Di,y]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Oi=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Ai=(e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],p=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h="top"==t?"sb-big-title "+X(lt,st,mt,dt):X(ke,Be,_e,He),y="top"==t?Ae:Le,b="top"==t?Ge:Me,v="top"==t?je:xe,T="top"==t?We||"large":Se||"large",S="top"==t?Ke:Ee,f=Ea,L=(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[T]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[T].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ta&&`${e.relative_dates.created}`,"default"==ta&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ta&&(0,ce.dateI18n)(aa,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))),S&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Oi(e,t,!1)))))),M=(0,i.createElement)("div",{className:"sb-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[T]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[T].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text})),S&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Oi(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ta&&`${e.relative_dates.created}`,"default"==ta&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ta&&(0,ce.dateI18n)(aa,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)),0!=f&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,f),f<e.content.rendered.length?"...":""))));return"top"==t?L:M},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(xo,{family:lt,weight:st.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),Mt&&"Default"!=Mt&&(0,i.createElement)(xo,{family:Mt,weight:xt.replace("italic","i")}),Pt&&"Default"!=Pt&&(0,i.createElement)(xo,{family:Pt,weight:It.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Top Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({topImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Oe,setValue:e=>o({topImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Ae,onChange:e=>o({topPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ge,onChange:e=>o({topPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:je,onChange:e=>o({topPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ke,onChange:e=>o({topPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Bottom Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({bottomImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({bottomImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:Ea,setValue:e=>o({bottomExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({bottomPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({bottomPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({bottomPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({bottomPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:ia,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ta,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ta&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:aa,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ba,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Top Block","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({topTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({topTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({topTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({topTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({topTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({topTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({topTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({topTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({topTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({topTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({topTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({topTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({topTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({topTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({topTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({topTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ze,setDimensionTop:e=>o({topTitleMarginTop:e}),dimensionMdTop:at,setDimensionMdTop:e=>o({topTitleMarginMdTop:e}),dimensionSmTop:Je,setDimensionSmTop:e=>o({topTitleMarginSmTop:e}),dimensionLeft:qe,setDimensionLeft:e=>o({topTitleMarginLeft:e}),dimensionMdLeft:it,setDimensionMdLeft:e=>o({topTitleMarginMdLeft:e}),dimensionSmLeft:Qe,setDimensionSmLeft:e=>o({topTitleMarginSmLeft:e}),dimensionRight:Ye,setDimensionRight:e=>o({topTitleMarginRight:e}),dimensionMdRight:ot,setDimensionMdRight:e=>o({topTitleMarginMdRight:e}),dimensionSmRight:et,setDimensionSmRight:e=>o({topTitleMarginSmRight:e}),dimensionBottom:Xe,setDimensionBottom:e=>o({topTitleMarginBottom:e}),dimensionMdBottom:nt,setDimensionMdBottom:e=>o({topTitleMarginMdBottom:e}),dimensionSmBottom:tt,setDimensionSmBottom:e=>o({topTitleMarginSmBottom:e}),unit:rt,setUnit:e=>o({topTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Bottom Block","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({bottomTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({bottomTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({bottomTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({bottomTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({bottomTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({bottomTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({bottomTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({bottomTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({bottomTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({bottomTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({bottomTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({bottomTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({bottomTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({bottomTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({bottomTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({bottomTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:oa,setDimensionTop:e=>o({bottomTitleMarginTop:e}),dimensionMdTop:pa,setDimensionMdTop:e=>o({bottomTitleMarginMdTop:e}),dimensionSmTop:sa,setDimensionSmTop:e=>o({bottomTitleMarginSmTop:e}),dimensionLeft:na,setDimensionLeft:e=>o({bottomTitleMarginLeft:e}),dimensionMdLeft:ga,setDimensionMdLeft:e=>o({bottomTitleMarginMdLeft:e}),dimensionSmLeft:ma,setDimensionSmLeft:e=>o({bottomTitleMarginSmLeft:e}),dimensionRight:ra,setDimensionRight:e=>o({bottomTitleMarginRight:e}),dimensionMdRight:ua,setDimensionMdRight:e=>o({bottomTitleMarginMdRight:e}),dimensionSmRight:da,setDimensionSmRight:e=>o({bottomTitleMarginSmRight:e}),dimensionBottom:la,setDimensionBottom:e=>o({bottomTitleMarginBottom:e}),dimensionMdBottom:ha,setDimensionMdBottom:e=>o({bottomTitleMarginMdBottom:e}),dimensionSmBottom:ca,setDimensionSmBottom:e=>o({bottomTitleMarginSmBottom:e}),unit:ya,setUnit:e=>o({bottomTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Mt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:xt,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Et,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:kt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Bt,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:_t,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Ht,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Nt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Vt,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ct,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:wt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ft,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Rt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:zt,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Dt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Ut,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Pt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:It,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:$t,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Wt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Ot,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:At,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Gt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:jt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Kt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Zt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:qt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Yt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Xt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Jt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Qt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ea,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Fa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ka,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Ba,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:za,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ka,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Oa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Za,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Aa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:qa,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ki,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Bi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Fi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-six"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-six-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Ai(Ui[Object.keys(Ui)[0]],"top")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},function(e,t){let a=[];for(;++t<e.length;)a.push(Ai(Ui[Object.keys(Ui)[t]]));return a}(Ui,0))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-seven",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 163.23"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 136.02h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 136.02h54.41v3.4H40.81zm0 6.81h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 153.03h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 136.02h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 136.02h54.41v3.4h-54.41zM108.82 34.01h95.22v3.4h-95.22zm0 6.8h95.22v3.4h-95.22zm0 6.8h88.42v3.4h-88.42zm0 6.8h81.61v3.4h-81.61zm0 6.8h74.81v3.4h-74.81zm40.81 81.62h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 153.03h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 95.22h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 95.22h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 112.22h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 95.22h34.01v27.2h-34.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M149.63 95.22h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M149.63 112.22h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 6.8h95.22v3.4h-95.22zm0 6.8h74.81V17h-74.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 23.8h27.2v3.4h-27.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h95.22v81.61H0z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 7","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingImageHeight:fe,listingPostAuthor:Le,listingPostDate:Me,listingPostComments:xe,listingPostCategory:Ee,listingTypographyFamily:ke,listingTypographyWeight:Be,listingTypographyTextTransform:_e,listingTypographyTextDecoration:He,listingTypographyFontSizeSm:Ne,listingTypographyFontSizeMd:Ve,listingTypographyFontSize:Ce,listingTypographyFontSizeUnit:we,listingTypographyLetterSpacingSm:Fe,listingTypographyLetterSpacingMd:Re,listingTypographyLetterSpacing:ze,listingTypographyLetterSpacingUnit:De,listingTypographyLineHeightSm:Ue,listingTypographyLineHeightMd:Pe,listingTypographyLineHeight:Ie,listingTypographyLineHeightUnit:$e,featuredImageSize:We,featuredExcerptLength:Oe,featuredImageHeight:Ae,featuredPostAuthor:Ge,featuredPostDate:je,featuredPostComments:Ke,featuredPostCategory:Ze,featuredTitleMarginSmTop:qe,featuredTitleMarginSmLeft:Ye,featuredTitleMarginSmRight:Xe,featuredTitleMarginSmBottom:Je,featuredTitleMarginMdTop:Qe,featuredTitleMarginMdLeft:et,featuredTitleMarginMdRight:tt,featuredTitleMarginMdBottom:at,featuredTitleMarginTop:it,featuredTitleMarginLeft:ot,featuredTitleMarginRight:nt,featuredTitleMarginBottom:rt,featuredTitleMarginUnit:lt,featuredTypographyFamily:st,featuredTypographyWeight:mt,featuredTypographyTextTransform:dt,featuredTypographyTextDecoration:ct,featuredTypographyFontSizeSm:pt,featuredTypographyFontSizeMd:gt,featuredTypographyFontSize:ut,featuredTypographyFontSizeUnit:ht,featuredTypographyLetterSpacingSm:yt,featuredTypographyLetterSpacingMd:bt,featuredTypographyLetterSpacing:vt,featuredTypographyLetterSpacingUnit:Tt,featuredTypographyLineHeightSm:St,featuredTypographyLineHeightMd:ft,featuredTypographyLineHeight:Lt,featuredTypographyLineHeightUnit:Mt,excerptTypographyFamily:xt,excerptTypographyWeight:Et,excerptTypographyTextTransform:kt,excerptTypographyTextDecoration:Bt,excerptTypographyFontSizeSm:_t,excerptTypographyFontSizeMd:Ht,excerptTypographyFontSize:Nt,excerptTypographyFontSizeUnit:Vt,excerptTypographyLetterSpacingSm:Ct,excerptTypographyLetterSpacingMd:wt,excerptTypographyLetterSpacing:Ft,excerptTypographyLetterSpacingUnit:Rt,excerptTypographyLineHeightSm:zt,excerptTypographyLineHeightMd:Dt,excerptTypographyLineHeight:Ut,excerptTypographyLineHeightUnit:Pt,metasTypographyFamily:It,metasTypographyWeight:$t,metasTypographyTextTransform:Wt,metasTypographyTextDecoration:Ot,metasTypographyFontSizeSm:At,metasTypographyFontSizeMd:Gt,metasTypographyFontSize:jt,metasTypographyFontSizeUnit:Kt,metasTypographyLetterSpacingSm:Zt,metasTypographyLetterSpacingMd:qt,metasTypographyLetterSpacing:Yt,metasTypographyLetterSpacingUnit:Xt,metasTypographyLineHeightSm:Jt,metasTypographyLineHeightMd:Qt,metasTypographyLineHeight:ea,metasTypographyLineHeightUnit:ta,dateFormat:aa,customDateFormat:ia,imageBorderRadius:oa,listingTitleMarginSmTop:na,listingTitleMarginSmLeft:ra,listingTitleMarginSmRight:la,listingTitleMarginSmBottom:sa,listingTitleMarginMdTop:ma,listingTitleMarginMdLeft:da,listingTitleMarginMdRight:ca,listingTitleMarginMdBottom:pa,listingTitleMarginTop:ga,listingTitleMarginLeft:ua,listingTitleMarginRight:ha,listingTitleMarginBottom:ya,listingTitleMarginUnit:ba,categoryBackgroundColor:va,categoryTextColor:Ta,categoryBackgroundHoverColor:Sa,categoryTextHoverColor:fa,titleColor:La,titleHoverColor:Ma,excerptColor:xa,postMetasColor:Ea,blockMarginSmTop:ka,blockMarginSmLeft:Ba,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:wa,blockMarginTop:Fa,blockMarginLeft:Ra,blockMarginRight:za,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Oa,blockPaddingMdLeft:Aa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Ka,blockPaddingLeft:Za,blockPaddingRight:qa,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:ki,borderNormalBoxShadowInset:Bi,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:wi,blockBgColor:Fi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,ki,Bi,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,wi,"px")}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n\n        ${Q("block-margin",Fa,za,Da,Ra,ka,_a,Ha,Ba,Na,Ca,wa,Va,Ua)}\n\n        ${Q("block-padding",Ka,qa,Ya,Za,Pa,$a,Wa,Ia,Oa,Ga,ja,Aa,Xa)}\n\n        ${Q("featured-title-margin",it,nt,rt,ot,qe,Xe,Je,Ye,Qe,tt,at,et,lt)}\n\n        ${Q("listing-post-title-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n\n        ${Ae?"--sb-featured-thumb-height: "+Ae+"%;":""}\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt)}\n\n        ${ie("listing-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut,Pt)}\n\n        ${ie("post-metas-typo",It,$t,Wt,Ot,At,Gt,jt,Kt,Zt,qt,Yt,Xt,Jt,Qt,ea,ta)}\n\n        ${va?"--sb-category-background-color: "+va+";":""}\n        ${Ta?"--sb-category-text-color: "+Ta+";":""}\n        ${Sa?"--sb-category-background-hover-color: "+Sa+";":""}\n        ${fa?"--sb-category-text-hover-color: "+fa+";":""}\n        ${La?"--sb-title-color: "+La+";":""}\n        ${Ma?"--sb-title-hover-color: "+Ma+";":""}\n\n        ${xa?"--sb-excerpt-color: "+xa+";":""}\n        ${Ea?"--sb-post-metas-color: "+Ea+";":""}\n\n        ${oa?"--sb-image-border-radius: "+oa+"px;":""}\n    }`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const zi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:7,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};zi&&zi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[p,h,b,ve,Te,Di,y]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Oi=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Ai=(e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],p=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h="featured"==t?"sb-post-title "+X(st,mt,dt,ct):X(ke,Be,_e,He),y="featured"==t?Ge:Le,b="featured"==t?je:Me,v="featured"==t?Ke:xe,T="featured"==t?We||"large":Se||"large",S="featured"==t?Oe:0,f="featured"==t?Ze:Ee,L=(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[T]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[T].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("ul",{class:"post-categories"},f&&e.categories&&e.categories.map(((e,t)=>Oi(e,t,!1))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)),0!=S&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,S),S<e.content.rendered.length?"...":"")))),M=(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[T]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[T].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text}))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("ul",{class:"post-categories"},f&&e.categories&&e.categories.map(((e,t)=>Oi(e,t,!0)))),(0,i.createElement)("h3",{className:`sb-post-title ${h}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(y||b||v)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&y&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&b&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),v&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))));return"featured"==t?L:M},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),st&&"Default"!=st&&(0,i.createElement)(xo,{family:st,weight:mt.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),xt&&"Default"!=xt&&(0,i.createElement)(xo,{family:xt,weight:Et.replace("italic","i")}),It&&"Default"!=It&&(0,i.createElement)(xo,{family:It,weight:$t.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Ae,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:Oe,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:je,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:oa,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:aa,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==aa&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:ia,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:st,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:mt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:dt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:ct,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:pt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:gt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ut,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ht,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:yt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:bt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:vt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:Tt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:St,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:ft,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Lt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Mt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:it,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Qe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:qe,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:ot,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:et,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ye,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:nt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:tt,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Xe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:rt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:at,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Je,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:lt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Listing Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ba,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:xt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Et,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:kt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:Bt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:_t,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ht,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Nt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Vt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ct,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:wt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Ft,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Rt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:zt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Dt,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Ut,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Pt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:It,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:$t,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Wt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ot,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:At,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Gt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:jt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Kt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Zt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:qt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Yt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Xt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Jt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Qt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ea,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ta,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Fa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ka,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Ba,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:za,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ka,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Oa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Za,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Aa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:qa,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ki,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Bi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Fi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-seven"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-seven-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Ai(Ui[Object.keys(Ui)[0]],"featured")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},function(e,t){let a=[];for(;++t<e.length;)a.push(Ai(Ui[Object.keys(Ui)[t]],""));return a}(Ui,0))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-eight",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45 25.5"},(0,i.createElement)("path",{fill:"#687e8b",d:"M24 0h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M24 9h7.5v.75H24z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M24 10.5h3.75v.75H24zM0 21h6v.75H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M36 0h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M36 9h7.5v.75H36z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M36 10.5h3.75v.75H36z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M24 14.25h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M24 23.25h7.5V24H24zm-24 0h19.5V24H0zm0 1.5h17.25v.75H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M24 24.75h3.75v.75H24z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M36 14.25h9v7.5h-9z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M36 23.25h7.5V24H36z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M36 24.75h3.75v.75H36z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h21v15.75H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 17.25h17.25V18H0zm0 1.5h14.25v.75H0z"}),(0,i.createElement)("path",{fill:"#8ca7b9",d:"M0 21h6v.75H0z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 8","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sideImageHeight:fe,sidePostAuthor:Le,sidePostDate:Me,sidePostComments:xe,sidePostCategory:Ee,sideTypographyFamily:ke,sideTypographyWeight:Be,sideTypographyTextTransform:_e,sideTypographyTextDecoration:He,sideTypographyFontSizeSm:Ne,sideTypographyFontSizeMd:Ve,sideTypographyFontSize:Ce,sideTypographyFontSizeUnit:we,sideTypographyLetterSpacingSm:Fe,sideTypographyLetterSpacingMd:Re,sideTypographyLetterSpacing:ze,sideTypographyLetterSpacingUnit:De,sideTypographyLineHeightSm:Ue,sideTypographyLineHeightMd:Pe,sideTypographyLineHeight:Ie,sideTypographyLineHeightUnit:$e,featuredImageSize:We,featuredExcerptLength:Oe,featuredImageHeight:Ae,featuredPostAuthor:Ge,featuredPostDate:je,featuredPostComments:Ke,featuredPostCategory:Ze,featuredTitleMarginSmTop:qe,featuredTitleMarginSmLeft:Ye,featuredTitleMarginSmRight:Xe,featuredTitleMarginSmBottom:Je,featuredTitleMarginMdTop:Qe,featuredTitleMarginMdLeft:et,featuredTitleMarginMdRight:tt,featuredTitleMarginMdBottom:at,featuredTitleMarginTop:it,featuredTitleMarginLeft:ot,featuredTitleMarginRight:nt,featuredTitleMarginBottom:rt,featuredTitleMarginUnit:lt,featuredTypographyFamily:st,featuredTypographyWeight:mt,featuredTypographyTextTransform:dt,featuredTypographyTextDecoration:ct,featuredTypographyFontSizeSm:pt,featuredTypographyFontSizeMd:gt,featuredTypographyFontSize:ut,featuredTypographyFontSizeUnit:ht,featuredTypographyLetterSpacingSm:yt,featuredTypographyLetterSpacingMd:bt,featuredTypographyLetterSpacing:vt,featuredTypographyLetterSpacingUnit:Tt,featuredTypographyLineHeightSm:St,featuredTypographyLineHeightMd:ft,featuredTypographyLineHeight:Lt,featuredTypographyLineHeightUnit:Mt,excerptTypographyFamily:xt,excerptTypographyWeight:Et,excerptTypographyTextTransform:kt,excerptTypographyTextDecoration:Bt,excerptTypographyFontSizeSm:_t,excerptTypographyFontSizeMd:Ht,excerptTypographyFontSize:Nt,excerptTypographyFontSizeUnit:Vt,excerptTypographyLetterSpacingSm:Ct,excerptTypographyLetterSpacingMd:wt,excerptTypographyLetterSpacing:Ft,excerptTypographyLetterSpacingUnit:Rt,excerptTypographyLineHeightSm:zt,excerptTypographyLineHeightMd:Dt,excerptTypographyLineHeight:Ut,excerptTypographyLineHeightUnit:Pt,metasTypographyFamily:It,metasTypographyWeight:$t,metasTypographyTextTransform:Wt,metasTypographyTextDecoration:Ot,metasTypographyFontSizeSm:At,metasTypographyFontSizeMd:Gt,metasTypographyFontSize:jt,metasTypographyFontSizeUnit:Kt,metasTypographyLetterSpacingSm:Zt,metasTypographyLetterSpacingMd:qt,metasTypographyLetterSpacing:Yt,metasTypographyLetterSpacingUnit:Xt,metasTypographyLineHeightSm:Jt,metasTypographyLineHeightMd:Qt,metasTypographyLineHeight:ea,metasTypographyLineHeightUnit:ta,dateFormat:aa,customDateFormat:ia,imageBorderRadius:oa,sideTitleMarginSmTop:na,sideTitleMarginSmLeft:ra,sideTitleMarginSmRight:la,sideTitleMarginSmBottom:sa,sideTitleMarginMdTop:ma,sideTitleMarginMdLeft:da,sideTitleMarginMdRight:ca,sideTitleMarginMdBottom:pa,sideTitleMarginTop:ga,sideTitleMarginLeft:ua,sideTitleMarginRight:ha,sideTitleMarginBottom:ya,sideTitleMarginUnit:ba,categoryBackgroundColor:va,categoryTextColor:Ta,categoryBackgroundHoverColor:Sa,categoryTextHoverColor:fa,titleColor:La,titleHoverColor:Ma,excerptColor:xa,postMetasColor:Ea,blockMarginSmTop:ka,blockMarginSmLeft:Ba,blockMarginSmRight:_a,blockMarginSmBottom:Ha,blockMarginMdTop:Na,blockMarginMdLeft:Va,blockMarginMdRight:Ca,blockMarginMdBottom:wa,blockMarginTop:Fa,blockMarginLeft:Ra,blockMarginRight:za,blockMarginBottom:Da,blockMarginUnit:Ua,blockPaddingSmTop:Pa,blockPaddingSmLeft:Ia,blockPaddingSmRight:$a,blockPaddingSmBottom:Wa,blockPaddingMdTop:Oa,blockPaddingMdLeft:Aa,blockPaddingMdRight:Ga,blockPaddingMdBottom:ja,blockPaddingTop:Ka,blockPaddingLeft:Za,blockPaddingRight:qa,blockPaddingBottom:Ya,blockPaddingUnit:Xa,borderNormal:Ja,borderHover:Qa,borderNormalColor:ei,borderHoverColor:ti,borderNormalWidthTop:ai,borderNormalWidthLeft:ii,borderNormalWidthRight:oi,borderNormalWidthBottom:ni,borderNormalWidthUnit:ri,borderHoverWidthTop:li,borderHoverWidthLeft:si,borderHoverWidthRight:mi,borderHoverWidthBottom:di,borderHoverWidthUnit:ci,borderNormalRadiusTop:pi,borderNormalRadiusLeft:gi,borderNormalRadiusRight:ui,borderNormalRadiusBottom:hi,borderNormalRadiusUnit:yi,borderHoverRadiusTop:bi,borderHoverRadiusLeft:vi,borderHoverRadiusRight:Ti,borderHoverRadiusBottom:Si,borderHoverRadiusUnit:fi,borderNormalBoxShadowHorizontal:Li,borderNormalBoxShadowVertical:Mi,borderNormalBoxShadowBlur:xi,borderNormalBoxShadowSpread:Ei,borderNormalBoxShadowColor:ki,borderNormalBoxShadowInset:Bi,borderHoverBoxShadowHorizontal:_i,borderHoverBoxShadowVertical:Hi,borderHoverBoxShadowBlur:Ni,borderHoverBoxShadowSpread:Vi,borderHoverBoxShadowColor:Ci,borderHoverBoxShadowInset:wi,blockBgColor:Fi}=a;o({id:(0,d.useBlockProps)().id});const Ri=`#${s} {\n        ${Ja?"--sb-border-normal: "+Ja+";":""}\n        ${Qa?"--sb-border-hover: "+Ja+";":""}\n        ${ei?"--sb-border-normal-color: "+ei+";":""}\n        ${ti?"--sb-border-hover-color: "+ti+";":""}\n\n        ${J("border-normal-width",ai,oi,ni,ii,ri)}\n        ${J("border-hover-width",li,mi,di,si,ci)}\n        ${J("border-normal-radius",pi,ui,hi,gi,yi)}\n        ${J("border-hover-radius",bi,Ti,Si,vi,fi)}\n\n        ${te("border-normal-box-shadow",Li,Mi,xi,Ei,ki,Bi,"px")}\n        ${te("border-hover-box-shadow",_i,Hi,Ni,Vi,Ci,wi,"px")}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n\n        ${Q("block-margin",Fa,za,Da,Ra,ka,_a,Ha,Ba,Na,Ca,wa,Va,Ua)}\n\n        ${Q("block-padding",Ka,qa,Ya,Za,Pa,$a,Wa,Ia,Oa,Ga,ja,Aa,Xa)}\n\n        ${Fi?"--sb-block-bg-color: "+Fi+";":""}\n        \n        ${Ae?"--sb-featured-thumb-height: "+Ae+"%;":""}\n        ${fe?"--sb-side-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt,Mt)}\n\n        ${ie("side-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("excerpt-typo",xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut,Pt)}\n\n        ${ie("post-metas-typo",It,$t,Wt,Ot,At,Gt,jt,Kt,Zt,qt,Yt,Xt,Jt,Qt,ea,ta)}\n\n        ${va?"--sb-category-background-color: "+va+";":""}\n        ${Ta?"--sb-category-text-color: "+Ta+";":""}\n        ${Sa?"--sb-category-background-hover-color: "+Sa+";":""}\n        ${fa?"--sb-category-text-hover-color: "+fa+";":""}\n        ${La?"--sb-title-color: "+La+";":""}\n        ${Ma?"--sb-title-hover-color: "+Ma+";":""}\n\n        ${Q("featured-title-margin",it,nt,rt,ot,qe,Xe,Je,Ye,Qe,tt,at,et,lt)}\n\n        ${Q("side-post-title-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${xa?"--sb-excerpt-color: "+xa+";":""}\n        ${Ea?"--sb-post-metas-color: "+Ea+";":""}\n        ${oa?"--sb-image-border-radius: "+oa+"px;":""}\n    }`;o({sbStyle:Ri.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const zi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Di={per_page:5,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};zi&&zi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Di[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Ui=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Di)),[p,h,b,ve,Te,Di,y]),Pi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Ii=[];Pi&&Pi.map(((e,t)=>{Ii.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const $i=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Wi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Oi=(e,t,a)=>{if(a&&0!=t)return;const o=$i&&$i.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},Ai=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-post-title "+X(st,mt,dt,ct):X(ke,Be,_e,He),c="featured"==t?Ge:Le,p="featured"==t?je:Me,u="featured"==t?Ke:xe,h="featured"==t?We||"large":Se||"large",y="featured"==t?Oe:0,b="featured"==t?Ze:Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&"featured"==t?e.categories.map(((e,t)=>Oi(e,t,!1))):e.categories.map(((e,t)=>Oi(e,t,!0))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==aa&&`${e.relative_dates.created}`,"default"==aa&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==aa&&(0,ce.dateI18n)(ia,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=y&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,y),y<e.content.rendered.length?"...":""))))},Gi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),ji=()=>{const e=[];return null==Gi||Gi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),st&&"Default"!=st&&(0,i.createElement)(xo,{family:st,weight:mt.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),xt&&"Default"!=xt&&(0,i.createElement)(xo,{family:xt,weight:Et.replace("italic","i")}),It&&"Default"!=It&&(0,i.createElement)(xo,{family:It,weight:$t.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Ae,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:Oe,setValue:e=>o({featuredExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:je,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ze,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:ji(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({sideImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:oa,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:aa,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==aa&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:ia,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:va,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ma,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:st,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:mt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:dt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:ct,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:pt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:gt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ut,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ht,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:yt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:bt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:vt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:Tt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:St,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:ft,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Lt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Mt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:it,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Qe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:qe,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:ot,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:et,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ye,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:nt,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:tt,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Xe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:rt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:at,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Je,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:lt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Side Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:ba,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:xa,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:xt,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Et,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:kt,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:Bt,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:_t,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ht,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Nt,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Vt,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ct,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:wt,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Ft,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Rt,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:zt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Dt,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Ut,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:Pt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ea,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:It,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:$t,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Wt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ot,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:At,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Gt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:jt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Kt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Zt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:qt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Yt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Xt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Jt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Qt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ea,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ta,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Fa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ka,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Ba,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:za,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:wa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ua,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ka,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Oa,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Za,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Aa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ia,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:qa,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ga,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ja,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Wa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Ja,setValue:e=>o({borderNormal:e})}),Ja&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ai,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ii,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:oi,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ni,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ri,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:pi,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gi,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ui,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:hi,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yi,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Li,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mi,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ei,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ki,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Bi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Qa,setValue:e=>o({borderHover:e})}),Qa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:li,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:si,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mi,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:di,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ci,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:bi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vi,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Si,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:fi,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:_i,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Hi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ni,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Fi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-eight"}),(0,i.createElement)("h2",{className:Wi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-eight-wrap"},Ui&&Ui.length>0&&(0,i.createElement)("div",{className:"sb-big-block"},Ai(Ui[Object.keys(Ui)[0]],"featured")),Ui&&Ui.length>1&&(0,i.createElement)("div",{className:"sb-small-block"},(0,i.createElement)("div",{class:"sb-small-block-wrap"},function(e,t){let a=[];for(;++t<e.length;)a.push(Ai(Ui[Object.keys(Ui)[t]],""));return a}(Ui,0)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-nine",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.22 163.23"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 71.41h34.01v23.8H0zM0 0h95.22v61.21H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 78.21h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 88.42h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 71.41h54.41v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 105.42h34.01v23.8H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 112.22h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 122.42h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 105.42h54.41v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 139.43h34.01v23.8H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 146.23h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 156.43h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 139.43h54.41v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 44.21h68.01v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 51.01H34v3.4H6.8z",opacity:".61"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 9","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingImageHeight:fe,listingPostAuthor:Le,listingPostDate:Me,listingPostComments:xe,listingPostCategory:Ee,listingTypographyFamily:ke,listingTypographyWeight:Be,listingTypographyTextTransform:_e,listingTypographyTextDecoration:He,listingTypographyFontSizeSm:Ne,listingTypographyFontSizeMd:Ve,listingTypographyFontSize:Ce,listingTypographyFontSizeUnit:we,listingTypographyLetterSpacingSm:Fe,listingTypographyLetterSpacingMd:Re,listingTypographyLetterSpacing:ze,listingTypographyLetterSpacingUnit:De,listingTypographyLineHeightSm:Ue,listingTypographyLineHeightMd:Pe,listingTypographyLineHeight:Ie,listingTypographyLineHeightUnit:$e,featuredImageSize:We,featuredImageHeight:Oe,featuredPostAuthor:Ae,featuredPostDate:Ge,featuredPostComments:je,featuredPostCategory:Ke,featuredTitleMarginSmTop:Ze,featuredTitleMarginSmLeft:qe,featuredTitleMarginSmRight:Ye,featuredTitleMarginSmBottom:Xe,featuredTitleMarginMdTop:Je,featuredTitleMarginMdLeft:Qe,featuredTitleMarginMdRight:et,featuredTitleMarginMdBottom:tt,featuredTitleMarginTop:at,featuredTitleMarginLeft:it,featuredTitleMarginRight:ot,featuredTitleMarginBottom:nt,featuredTitleMarginUnit:rt,featuredTypographyFamily:lt,featuredTypographyWeight:st,featuredTypographyTextTransform:mt,featuredTypographyTextDecoration:dt,featuredTypographyFontSizeSm:ct,featuredTypographyFontSizeMd:pt,featuredTypographyFontSize:gt,featuredTypographyFontSizeUnit:ut,featuredTypographyLetterSpacingSm:ht,featuredTypographyLetterSpacingMd:yt,featuredTypographyLetterSpacing:bt,featuredTypographyLetterSpacingUnit:vt,featuredTypographyLineHeightSm:Tt,featuredTypographyLineHeightMd:St,featuredTypographyLineHeight:ft,featuredTypographyLineHeightUnit:Lt,metasTypographyFamily:Mt,metasTypographyWeight:xt,metasTypographyTextTransform:Et,metasTypographyTextDecoration:kt,metasTypographyFontSizeSm:Bt,metasTypographyFontSizeMd:_t,metasTypographyFontSize:Ht,metasTypographyFontSizeUnit:Nt,metasTypographyLetterSpacingSm:Vt,metasTypographyLetterSpacingMd:Ct,metasTypographyLetterSpacing:wt,metasTypographyLetterSpacingUnit:Ft,metasTypographyLineHeightSm:Rt,metasTypographyLineHeightMd:zt,metasTypographyLineHeight:Dt,metasTypographyLineHeightUnit:Ut,dateFormat:Pt,customDateFormat:It,imageBorderRadius:$t,listingTitleMarginSmTop:Wt,listingTitleMarginSmLeft:Ot,listingTitleMarginSmRight:At,listingTitleMarginSmBottom:Gt,listingTitleMarginMdTop:jt,listingTitleMarginMdLeft:Kt,listingTitleMarginMdRight:Zt,listingTitleMarginMdBottom:qt,listingTitleMarginTop:Yt,listingTitleMarginLeft:Xt,listingTitleMarginRight:Jt,listingTitleMarginBottom:Qt,listingTitleMarginUnit:ea,categoryBackgroundColor:ta,categoryTextColor:aa,categoryBackgroundHoverColor:ia,categoryTextHoverColor:oa,titleColor:na,titleHoverColor:ra,postMetasColor:la,blockMarginSmTop:sa,blockMarginSmLeft:ma,blockMarginSmRight:da,blockMarginSmBottom:ca,blockMarginMdTop:pa,blockMarginMdLeft:ga,blockMarginMdRight:ua,blockMarginMdBottom:ha,blockMarginTop:ya,blockMarginLeft:ba,blockMarginRight:va,blockMarginBottom:Ta,blockMarginUnit:Sa,blockPaddingSmTop:fa,blockPaddingSmLeft:La,blockPaddingSmRight:Ma,blockPaddingSmBottom:xa,blockPaddingMdTop:Ea,blockPaddingMdLeft:ka,blockPaddingMdRight:Ba,blockPaddingMdBottom:_a,blockPaddingTop:Ha,blockPaddingLeft:Na,blockPaddingRight:Va,blockPaddingBottom:Ca,blockPaddingUnit:wa,borderNormal:Fa,borderHover:Ra,borderNormalColor:za,borderHoverColor:Da,borderNormalWidthTop:Ua,borderNormalWidthLeft:Pa,borderNormalWidthRight:Ia,borderNormalWidthBottom:$a,borderNormalWidthUnit:Wa,borderHoverWidthTop:Oa,borderHoverWidthLeft:Aa,borderHoverWidthRight:Ga,borderHoverWidthBottom:ja,borderHoverWidthUnit:Ka,borderNormalRadiusTop:Za,borderNormalRadiusLeft:qa,borderNormalRadiusRight:Ya,borderNormalRadiusBottom:Xa,borderNormalRadiusUnit:Ja,borderHoverRadiusTop:Qa,borderHoverRadiusLeft:ei,borderHoverRadiusRight:ti,borderHoverRadiusBottom:ai,borderHoverRadiusUnit:ii,borderNormalBoxShadowHorizontal:oi,borderNormalBoxShadowVertical:ni,borderNormalBoxShadowBlur:ri,borderNormalBoxShadowSpread:li,borderNormalBoxShadowColor:si,borderNormalBoxShadowInset:mi,borderHoverBoxShadowHorizontal:di,borderHoverBoxShadowVertical:ci,borderHoverBoxShadowBlur:pi,borderHoverBoxShadowSpread:gi,borderHoverBoxShadowColor:ui,borderHoverBoxShadowInset:hi,blockBgColor:yi}=a;o({id:(0,d.useBlockProps)().id});const bi=`#${s} {\n        ${Fa?"--sb-border-normal: "+Fa+";":""}\n        ${Ra?"--sb-border-hover: "+Fa+";":""}\n        ${za?"--sb-border-normal-color: "+za+";":""}\n        ${Da?"--sb-border-hover-color: "+Da+";":""}\n\n        ${J("border-normal-width",Ua,Ia,$a,Pa,Wa)}\n        ${J("border-hover-width",Oa,Ga,ja,Aa,Ka)}\n        ${J("border-normal-radius",Za,Ya,Xa,qa,Ja)}\n        ${J("border-hover-radius",Qa,ti,ai,ei,ii)}\n\n        ${te("border-normal-box-shadow",oi,ni,ri,li,si,mi,"px")}\n        ${te("border-hover-box-shadow",di,ci,pi,gi,ui,hi,"px")}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Q("block-margin",ya,va,Ta,ba,sa,da,ca,ma,pa,ua,ha,ga,Sa)}\n\n        ${Q("block-padding",Ha,Va,Ca,Na,fa,Ma,xa,La,Ea,Ba,_a,ka,wa)}\n\n        ${Q("featured-title-margin",at,ot,nt,it,Ze,Ye,Xe,qe,Je,et,tt,Qe,rt)}\n\n        ${Q("listing-post-title-margin",Yt,Jt,Qt,Xt,Wt,At,Gt,Ot,jt,Zt,qt,Kt,ea)}\n\n        ${yi?"--sb-block-bg-color: "+yi+";":""}\n\n        ${Oe?"--sb-featured-thumb-height: "+Oe+"%;":""}\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("listing-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Mt,xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt,Ut)}\n\n        ${ta?"--sb-category-background-color: "+ta+";":""}\n\n        ${aa?"--sb-category-text-color: "+aa+";":""}\n        ${ia?"--sb-category-background-hover-color: "+ia+";":""}\n        ${oa?"--sb-category-text-hover-color: "+oa+";":""}\n        ${na?"--sb-title-color: "+na+";":""}\n        ${ra?"--sb-title-hover-color: "+ra+";":""}\n        ${la?"--sb-post-metas-color: "+la+";":""}\n\n        ${$t?"--sb-image-border-radius: "+$t+"px;":""}\n    }`;o({sbStyle:bi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const vi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ti={per_page:5,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};vi&&vi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ti[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Si=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ti)),[p,h,b,ve,Te,Ti,y]),fi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Li=[];fi&&fi.map(((e,t)=>{Li.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Mi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),xi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Ei=(e,t,a)=>{if(a&&0!=t)return;const o=Mi&&Mi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))},ki=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Bi=()=>{const e=[];return null==ki||ki.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(xo,{family:lt,weight:st.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),Mt&&"Default"!=Mt&&(0,i.createElement)(xo,{family:Mt,weight:xt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Bi(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Oe,setValue:e=>o({featuredImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Ae,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:je,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ke,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Bi(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:$t,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:Pt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==Pt&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:It,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:at,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Je,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ze,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:it,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Qe,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:qe,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:ot,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:et,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Ye,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:nt,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:tt,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Xe,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:rt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Listing Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:Yt,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:jt,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:Wt,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:Xt,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:Kt,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:Ot,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:Jt,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:Zt,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:At,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:Qt,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:qt,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:Gt,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ea,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:la,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Mt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:xt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Et,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:kt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Bt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:_t,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ht,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Nt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Vt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ct,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:wt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ft,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Rt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:zt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Dt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Ut,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ya,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:pa,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:sa,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ga,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ma,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:va,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ua,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:da,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ha,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ca,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Sa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ha,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ea,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:fa,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Na,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:ka,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:La,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Va,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ba,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Ma,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ca,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:_a,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:xa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:wa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Fa,setValue:e=>o({borderNormal:e})}),Fa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:za,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Ua,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Pa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ia,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:$a,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Wa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Za,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ja,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:oi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ni,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ri,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:li,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:si,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:mi,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Ra,setValue:e=>o({borderHover:e})}),Ra&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Da,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Oa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Aa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ja,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ka,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Qa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ei,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ti,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ai,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ii,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:di,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:ci,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:pi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:gi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:ui,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:hi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:yi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-nine"}),(0,i.createElement)("h2",{className:xi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-nine-wrap"},Si&&Si.map(((e,t)=>((e,t)=>{var a,o,n,r,l,s,m,d;const c=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],p=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],u=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],h=0==t?Ae:Le,y=0==t?Ge:Me,b=0==t?je:xe,v=0==t?We||"large":Se||"large",T=0==t?Ke:Ee,S=(0,i.createElement)("div",{className:"sb-big-post-item"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(a=c.media_details.sizes)&&void 0!==a&&a[v]?null===(o=c.media_details.sizes)||void 0===o?void 0:o[v].source_url:null!==(n=c.media_details.sizes)&&void 0!==n&&n.full?null===(r=c.media_details.sizes)||void 0===r?void 0:r.full.source_url:c.source_url,alt:c.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title ${X(lt,st,mt,dt)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Pt&&`${e.relative_dates.created}`,"default"==Pt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Pt&&(0,ce.dateI18n)(It,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0)))),T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ei(e,t,!1)))))),f=(0,i.createElement)("div",{className:"sb-post-item sb-clearfix"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},c&&c.media_details&&(0,i.createElement)("img",{src:null!==(l=c.media_details.sizes)&&void 0!==l&&l[v]?null===(s=c.media_details.sizes)||void 0===s?void 0:s[v].source_url:null!==(m=c.media_details.sizes)&&void 0!==m&&m.full?null===(d=c.media_details.sizes)||void 0===d?void 0:d.full.source_url:c.source_url,alt:c.alt_text})))),(0,i.createElement)("div",{class:"sb-post-content"},T&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>Ei(e,t,!0)))),(0,i.createElement)("h3",{className:`sb-post-title ${X(ke,Be,_e,He)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(h||y||b)&&(0,i.createElement)("div",{className:"sb-post-meta"},p&&h&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),p.name),e.date_gmt&&y&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Pt&&`${e.relative_dates.created}`,"default"==Pt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Pt&&(0,ce.dateI18n)(It,e.date_gmt)),b&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),u?u.length:0))));return 0==t?S:f})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-ten",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.22 149.63"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 40.81h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 40.81h54.41v3.4H40.81zm0-40.81h54.41v3.4H40.81zm0 47.61h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 57.81h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 81.61h34.01v27.2H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 81.61h54.41v3.4H40.81zm0 6.81h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 98.62h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 122.42h34.01v27.21H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M40.81 122.42h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M40.81 139.43h20.4v3.4h-20.4z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 10","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,listingImageSize:Se,listingExcerptLength:fe,listingImageWidth:Le,listingImageHeight:Me,listingPostAuthor:xe,listingPostDate:Ee,listingPostComments:ke,listingPostCategory:Be,listingTypographyFamily:_e,listingTypographyWeight:He,listingTypographyTextTransform:Ne,listingTypographyTextDecoration:Ve,listingTypographyFontSizeSm:Ce,listingTypographyFontSizeMd:we,listingTypographyFontSize:Fe,listingTypographyFontSizeUnit:Re,listingTypographyLetterSpacingSm:ze,listingTypographyLetterSpacingMd:De,listingTypographyLetterSpacing:Ue,listingTypographyLetterSpacingUnit:Pe,listingTypographyLineHeightSm:Ie,listingTypographyLineHeightMd:$e,listingTypographyLineHeight:We,listingTypographyLineHeightUnit:Oe,metasTypographyFamily:Ae,metasTypographyWeight:Ge,metasTypographyTextTransform:je,metasTypographyTextDecoration:Ke,metasTypographyFontSizeSm:Ze,metasTypographyFontSizeMd:qe,metasTypographyFontSize:Ye,metasTypographyFontSizeUnit:Xe,metasTypographyLetterSpacingSm:Je,metasTypographyLetterSpacingMd:Qe,metasTypographyLetterSpacing:et,metasTypographyLetterSpacingUnit:tt,metasTypographyLineHeightSm:at,metasTypographyLineHeightMd:it,metasTypographyLineHeight:ot,metasTypographyLineHeightUnit:nt,dateFormat:rt,customDateFormat:lt,imageBorderRadius:st,listingTitleMarginSmTop:mt,listingTitleMarginSmLeft:dt,listingTitleMarginSmRight:ct,listingTitleMarginSmBottom:pt,listingTitleMarginMdTop:gt,listingTitleMarginMdLeft:ut,listingTitleMarginMdRight:ht,listingTitleMarginMdBottom:yt,listingTitleMarginTop:bt,listingTitleMarginLeft:vt,listingTitleMarginRight:Tt,listingTitleMarginBottom:St,listingTitleMarginUnit:ft,categoryBackgroundColor:Lt,categoryTextColor:Mt,categoryBackgroundHoverColor:xt,categoryTextHoverColor:Et,titleColor:kt,titleHoverColor:Bt,postMetasColor:_t,noOfPosts:Ht,blockMarginSmTop:Nt,blockMarginSmLeft:Vt,blockMarginSmRight:Ct,blockMarginSmBottom:wt,blockMarginMdTop:Ft,blockMarginMdLeft:Rt,blockMarginMdRight:zt,blockMarginMdBottom:Dt,blockMarginTop:Ut,blockMarginLeft:Pt,blockMarginRight:It,blockMarginBottom:$t,blockMarginUnit:Wt,blockPaddingSmTop:Ot,blockPaddingSmLeft:At,blockPaddingSmRight:Gt,blockPaddingSmBottom:jt,blockPaddingMdTop:Kt,blockPaddingMdLeft:Zt,blockPaddingMdRight:qt,blockPaddingMdBottom:Yt,blockPaddingTop:Xt,blockPaddingLeft:Jt,blockPaddingRight:Qt,blockPaddingBottom:ea,blockPaddingUnit:ta,borderNormal:aa,borderHover:ia,borderNormalColor:oa,borderHoverColor:na,borderNormalWidthTop:ra,borderNormalWidthLeft:la,borderNormalWidthRight:sa,borderNormalWidthBottom:ma,borderNormalWidthUnit:da,borderHoverWidthTop:ca,borderHoverWidthLeft:pa,borderHoverWidthRight:ga,borderHoverWidthBottom:ua,borderHoverWidthUnit:ha,borderNormalRadiusTop:ya,borderNormalRadiusLeft:ba,borderNormalRadiusRight:va,borderNormalRadiusBottom:Ta,borderNormalRadiusUnit:Sa,borderHoverRadiusTop:fa,borderHoverRadiusLeft:La,borderHoverRadiusRight:Ma,borderHoverRadiusBottom:xa,borderHoverRadiusUnit:Ea,borderNormalBoxShadowHorizontal:ka,borderNormalBoxShadowVertical:Ba,borderNormalBoxShadowBlur:_a,borderNormalBoxShadowSpread:Ha,borderNormalBoxShadowColor:Na,borderNormalBoxShadowInset:Va,borderHoverBoxShadowHorizontal:Ca,borderHoverBoxShadowVertical:wa,borderHoverBoxShadowBlur:Fa,borderHoverBoxShadowSpread:Ra,borderHoverBoxShadowColor:za,borderHoverBoxShadowInset:Da,blockBgColor:Ua}=a;o({id:(0,d.useBlockProps)().id});const Pa=`#${s} {\n        ${aa?"--sb-border-normal: "+aa+";":""}\n        ${ia?"--sb-border-hover: "+aa+";":""}\n        ${oa?"--sb-border-normal-color: "+oa+";":""}\n        ${na?"--sb-border-hover-color: "+na+";":""}\n\n        ${J("border-normal-width",ra,sa,ma,la,da)}\n        ${J("border-hover-width",ca,ga,ua,pa,ha)}\n        ${J("border-normal-radius",ya,va,Ta,ba,Sa)}\n        ${J("border-hover-radius",fa,Ma,xa,La,Ea)}\n\n        ${te("border-normal-box-shadow",ka,Ba,_a,Ha,Na,Va,"px")}\n        ${te("border-hover-box-shadow",Ca,wa,Fa,Ra,za,Da,"px")}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${Q("block-margin",Ut,It,$t,Pt,Nt,Ct,wt,Vt,Ft,zt,Dt,Rt,Wt)}\n\n        ${Q("block-padding",Xt,Qt,ea,Jt,Ot,Gt,jt,At,Kt,qt,Yt,Zt,ta)}\n\n        ${Q("listing-post-title-margin",bt,Tt,St,vt,mt,ct,pt,dt,gt,ht,yt,ut,ft)}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${Me?"--sb-listing-post-thumb-height: "+Me+"%;":""}\n        ${Le?"--sb-listing-post-thumb-width: "+Le+"px;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e,We,Oe)}\n\n        ${ie("post-metas-typo",Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at,it,ot,nt)}\n\n        ${Lt?"--sb-category-background-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-color: "+Mt+";":""}\n        ${xt?"--sb-category-background-hover-color: "+xt+";":""}\n        ${Et?"--sb-category-text-hover-color: "+Et+";":""}\n        ${kt?"--sb-title-color: "+kt+";":""}\n        ${Bt?"--sb-title-hover-color: "+Bt+";":""}\n\n        ${_t?"--sb-post-metas-color: "+_t+";":""}\n\n        ${st?"--sb-image-border-radius: "+st+"px;":""}\n    }`;o({sbStyle:Pa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ia=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),$a={per_page:Ht,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Ia&&Ia.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),$a[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,$a)),[p,h,b,ve,Te,Ht,$a]),Oa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Aa=[];Oa&&Oa.map(((e,t)=>{Aa.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Ga=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),ja=l()("sb-block-title",`${L}`,X(N,w,z,D)),Ka=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),_e&&"Default"!=_e&&(0,i.createElement)(xo,{family:_e,weight:He.replace("italic","i")}),Ae&&"Default"!=Ae&&(0,i.createElement)(xo,{family:Ae,weight:Ge.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o,usePostNumber:!0}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Listing Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Ka||Ka.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({listingImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Width (px)","smart-blocks"),value:Le,setValue:e=>o({listingImageWidth:e}),min:50,max:300}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Me,setValue:e=>o({listingImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:xe,onChange:e=>o({listingPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ee,onChange:e=>o({listingPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:ke,onChange:e=>o({listingPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Be,onChange:e=>o({listingPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:st,setValue:e=>o({imageBorderRadius:e}),min:0,max:150}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:rt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==rt&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:lt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:xt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Et,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:kt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Bt,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:_e,setValueFamily:e=>o({listingTypographyFamily:e}),valueWeight:He,setValueWeight:e=>o({listingTypographyWeight:e}),valueTextTransform:Ne,setValueTextTransform:e=>o({listingTypographyTextTransform:e}),valueTextDecoration:Ve,setValueTextDecoration:e=>o({listingTypographyTextDecoration:e}),valueFontSizeSm:Ce,setValueFontSizeSm:e=>o({listingTypographyFontSizeSm:e}),valueFontSizeMd:we,setValueFontSizeMd:e=>o({listingTypographyFontSizeMd:e}),valueFontSize:Fe,setValueFontSize:e=>o({listingTypographyFontSize:e}),valueFontSizeUnit:Re,setValueFontSizeUnit:e=>o({listingTypographyFontSizeUnit:e}),valueLetterSpacingSm:ze,setValueLetterSpacingSm:e=>o({listingTypographyLetterSpacingSm:e}),valueLetterSpacingMd:De,setValueLetterSpacingMd:e=>o({listingTypographyLetterSpacingMd:e}),valueLetterSpacing:Ue,setValueLetterSpacing:e=>o({listingTypographyLetterSpacing:e}),valueLetterSpacingUnit:Pe,setValueLetterSpacingUnit:e=>o({listingTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ie,setValueLineHeightSm:e=>o({listingTypographyLineHeightSm:e}),valueLineHeightMd:$e,setValueLineHeightMd:e=>o({listingTypographyLineHeightMd:e}),valueLineHeight:We,setValueLineHeight:e=>o({listingTypographyLineHeight:e}),valueLineHeightUnit:Oe,setValueLineHeightUnit:e=>o({listingTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:bt,setDimensionTop:e=>o({listingTitleMarginTop:e}),dimensionMdTop:gt,setDimensionMdTop:e=>o({listingTitleMarginMdTop:e}),dimensionSmTop:mt,setDimensionSmTop:e=>o({listingTitleMarginSmTop:e}),dimensionLeft:vt,setDimensionLeft:e=>o({listingTitleMarginLeft:e}),dimensionMdLeft:ut,setDimensionMdLeft:e=>o({listingTitleMarginMdLeft:e}),dimensionSmLeft:dt,setDimensionSmLeft:e=>o({listingTitleMarginSmLeft:e}),dimensionRight:Tt,setDimensionRight:e=>o({listingTitleMarginRight:e}),dimensionMdRight:ht,setDimensionMdRight:e=>o({listingTitleMarginMdRight:e}),dimensionSmRight:ct,setDimensionSmRight:e=>o({listingTitleMarginSmRight:e}),dimensionBottom:St,setDimensionBottom:e=>o({listingTitleMarginBottom:e}),dimensionMdBottom:yt,setDimensionMdBottom:e=>o({listingTitleMarginMdBottom:e}),dimensionSmBottom:pt,setDimensionSmBottom:e=>o({listingTitleMarginSmBottom:e}),unit:ft,setUnit:e=>o({listingTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:_t,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Ae,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Ge,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:je,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ke,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Ze,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:qe,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ye,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Xe,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Je,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Qe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:et,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:tt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:at,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:it,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ot,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:nt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ut,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Ft,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Nt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Pt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Rt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Vt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:It,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:zt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ct,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:$t,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Dt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:wt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Wt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Xt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Kt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ot,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Jt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Zt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:At,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Qt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:qt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Gt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ea,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Yt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:jt,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:ta,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:aa,setValue:e=>o({borderNormal:e})}),aa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ra,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:la,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:sa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ma,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:da,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ya,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:va,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Sa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ka,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Ba,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:_a,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ha,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Na,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Va,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:ia,setValue:e=>o({borderHover:e})}),ia&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ca,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:pa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ua,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ha,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:fa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:La,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ma,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:xa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ea,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ca,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:wa,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Fa,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ra,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:za,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Da,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ua,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-ten"}),(0,i.createElement)("h2",{className:ja},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-news-module-ten-wrap"},Wa&&Wa.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=xe,c=Ee,p=ke,u=Se||"large",h=Be;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),(0,i.createElement)("div",{class:"sb-post-content"},h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t)=>{if(0!=t)return;const a=Ga&&Ga.find((t=>t.id===e));return a&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${a.link}`},a.name))})(e,t)))),(0,i.createElement)("h3",{className:`sb-post-title ${X(_e,He,Ne,Ve)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(d||c||p)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==rt&&`${e.relative_dates.created}`,"default"==rt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==rt&&(0,ce.dateI18n)(lt,e.date_gmt)),p&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-eleven",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200.64 129.22"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h57.81v57.81H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 40.81h40.81v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 47.61h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 0h57.81v57.81H71.41z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 40.81h40.81v3.4H78.21z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 47.61h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 0h57.81v57.81h-57.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 40.81h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 47.61h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 71.41h57.81v57.81H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 112.22h40.81v3.4H6.8"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 119.02h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 71.41h57.81v57.81H71.41z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 112.22h40.81v3.4H78.21z"}),(0,i.createElement)("path",{fill:"#fff",d:"M78.21 119.02h17v3.4h-17z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 71.41h57.81v57.81h-57.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 112.22h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M149.63 119.02h17v3.4h-17z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 11","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postImageHeight:fe,postPostAuthor:Le,postPostDate:Me,postPostComments:xe,postPostCategory:Ee,postTypographyFamily:ke,postTypographyWeight:Be,postTypographyTextTransform:_e,postTypographyTextDecoration:He,postTypographyFontSizeSm:Ne,postTypographyFontSizeMd:Ve,postTypographyFontSize:Ce,postTypographyFontSizeUnit:we,postTypographyLetterSpacingSm:Fe,postTypographyLetterSpacingMd:Re,postTypographyLetterSpacing:ze,postTypographyLetterSpacingUnit:De,postTypographyLineHeightSm:Ue,postTypographyLineHeightMd:Pe,postTypographyLineHeight:Ie,postTypographyLineHeightUnit:$e,metasTypographyFamily:We,metasTypographyWeight:Oe,metasTypographyTextTransform:Ae,metasTypographyTextDecoration:Ge,metasTypographyFontSizeSm:je,metasTypographyFontSizeMd:Ke,metasTypographyFontSize:Ze,metasTypographyFontSizeUnit:qe,metasTypographyLetterSpacingSm:Ye,metasTypographyLetterSpacingMd:Xe,metasTypographyLetterSpacing:Je,metasTypographyLetterSpacingUnit:Qe,metasTypographyLineHeightSm:et,metasTypographyLineHeightMd:tt,metasTypographyLineHeight:at,metasTypographyLineHeightUnit:it,dateFormat:ot,customDateFormat:nt,imageBorderRadius:rt,postTitleMarginSmTop:lt,postTitleMarginSmLeft:st,postTitleMarginSmRight:mt,postTitleMarginSmBottom:dt,postTitleMarginMdTop:ct,postTitleMarginMdLeft:pt,postTitleMarginMdRight:gt,postTitleMarginMdBottom:ut,postTitleMarginTop:ht,postTitleMarginLeft:yt,postTitleMarginRight:bt,postTitleMarginBottom:vt,postTitleMarginUnit:Tt,categoryBackgroundColor:St,categoryTextColor:ft,categoryBackgroundHoverColor:Lt,categoryTextHoverColor:Mt,blockMarginSmTop:xt,blockMarginSmLeft:Et,blockMarginSmRight:kt,blockMarginSmBottom:Bt,blockMarginMdTop:_t,blockMarginMdLeft:Ht,blockMarginMdRight:Nt,blockMarginMdBottom:Vt,blockMarginTop:Ct,blockMarginLeft:wt,blockMarginRight:Ft,blockMarginBottom:Rt,blockMarginUnit:zt,blockPaddingSmTop:Dt,blockPaddingSmLeft:Ut,blockPaddingSmRight:Pt,blockPaddingSmBottom:It,blockPaddingMdTop:$t,blockPaddingMdLeft:Wt,blockPaddingMdRight:Ot,blockPaddingMdBottom:At,blockPaddingTop:Gt,blockPaddingLeft:jt,blockPaddingRight:Kt,blockPaddingBottom:Zt,blockPaddingUnit:qt,borderNormal:Yt,borderHover:Xt,borderNormalColor:Jt,borderHoverColor:Qt,borderNormalWidthTop:ea,borderNormalWidthLeft:ta,borderNormalWidthRight:aa,borderNormalWidthBottom:ia,borderNormalWidthUnit:oa,borderHoverWidthTop:na,borderHoverWidthLeft:ra,borderHoverWidthRight:la,borderHoverWidthBottom:sa,borderHoverWidthUnit:ma,borderNormalRadiusTop:da,borderNormalRadiusLeft:ca,borderNormalRadiusRight:pa,borderNormalRadiusBottom:ga,borderNormalRadiusUnit:ua,borderHoverRadiusTop:ha,borderHoverRadiusLeft:ya,borderHoverRadiusRight:ba,borderHoverRadiusBottom:va,borderHoverRadiusUnit:Ta,borderNormalBoxShadowHorizontal:Sa,borderNormalBoxShadowVertical:fa,borderNormalBoxShadowBlur:La,borderNormalBoxShadowSpread:Ma,borderNormalBoxShadowColor:xa,borderNormalBoxShadowInset:Ea,borderHoverBoxShadowHorizontal:ka,borderHoverBoxShadowVertical:Ba,borderHoverBoxShadowBlur:_a,borderHoverBoxShadowSpread:Ha,borderHoverBoxShadowColor:Na,borderHoverBoxShadowInset:Va,blockBgColor:Ca}=a;o({id:(0,d.useBlockProps)().id});const wa=`#${s} {\n        ${Yt?"--sb-border-normal: "+Yt+";":""}\n        ${Xt?"--sb-border-hover: "+Yt+";":""}\n        ${Jt?"--sb-border-normal-color: "+Jt+";":""}\n        ${Qt?"--sb-border-hover-color: "+Qt+";":""}\n\n        ${J("border-normal-width",ea,aa,ia,ta,oa)}\n        ${J("border-hover-width",na,la,sa,ra,ma)}\n        ${J("border-normal-radius",da,pa,ga,ca,ua)}\n        ${J("border-hover-radius",ha,ba,va,ya,Ta)}\n\n        ${te("border-normal-box-shadow",Sa,fa,La,Ma,xa,Ea,"px")}\n        ${te("border-hover-box-shadow",ka,Ba,_a,Ha,Na,Va,"px")}\n\n        ${Ca?"--sb-block-bg-color: "+Ca+";":""}\n\n        ${Q("block-margin",Ct,Ft,Rt,wt,xt,kt,Bt,Et,_t,Nt,Vt,Ht,zt)}\n\n        ${Q("block-padding",Gt,Kt,Zt,jt,Dt,Pt,It,Ut,$t,Ot,At,Wt,qt)}\n\n        ${Q("listing-post-title-margin",ht,bt,vt,yt,lt,mt,dt,st,ct,gt,ut,pt,Tt)}\n\n        ${Ca?"--sb-block-bg-color: "+Ca+";":""}\n\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",We,Oe,Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at,it)}\n\n        ${St?"--sb-category-background-color: "+St+";":""}\n        ${ft?"--sb-category-text-color: "+ft+";":""}\n        ${Lt?"--sb-category-background-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-hover-color: "+Mt+";":""}\n\n        ${rt?"--sb-image-border-radius: "+rt+"px;":""}\n    }`;o({sbStyle:wa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Fa=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ra={per_page:6,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Fa&&Fa.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ra[t]=(a=e.value,b&&b[a]?b[a]:[])}));const za=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ra)),[p,h,b,ve,Te,Ra,y]),Da=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Ua=[];Da&&Da.map(((e,t)=>{Ua.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Pa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Ia=l()("sb-block-title",`${L}`,X(N,w,z,D)),$a=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),We&&"Default"!=We&&(0,i.createElement)(xo,{family:We,weight:Oe.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==$a||$a.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:rt,setValue:e=>o({imageBorderRadius:e}),min:0,max:60}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ot,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ot&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:nt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ht,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:ct,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:lt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:yt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:pt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:st,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:bt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:gt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:mt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:vt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:ut,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:dt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Tt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:We,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Oe,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Ae,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ge,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:je,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ke,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ze,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:qe,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ye,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Xe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Je,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Qe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:et,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:tt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:at,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:it,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ct,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:_t,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:xt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:wt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ht,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Et,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Ft,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Nt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:kt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Rt,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Vt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Bt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:zt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Gt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:$t,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Dt,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:jt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Wt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ut,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Kt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ot,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Pt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Zt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:At,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:It,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:qt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Yt,setValue:e=>o({borderNormal:e})}),Yt&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Jt,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ea,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:ta,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:aa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ia,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:oa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:da,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ca,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:pa,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ga,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ua,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Sa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:fa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:La,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ma,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:xa,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ea,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Xt,setValue:e=>o({borderHover:e})}),Xt&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Qt,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:na,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ra,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:la,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:sa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ma,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ha,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ya,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ba,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:va,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ta,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ka,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ba,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:_a,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ha,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Na,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Va,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ca,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-eleven"}),(0,i.createElement)("h2",{className:Ia},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-grid-blocks"},za&&za.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le,c=Me,p=xe,u=Se||"large",h=Ee;return(0,i.createElement)("div",{className:"sb-grid-block sb-post-item",key:t},(0,i.createElement)("div",{class:"sb-grid-block-inner"},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),(0,i.createElement)("div",{class:"sb-post-content sb-gradient-overlay"},(0,i.createElement)("h3",{className:`sb-post-title ${X(ke,Be,_e,He)}`},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks")),(d||c||p)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ot&&`${e.relative_dates.created}`,"default"==ot&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ot&&(0,ce.dateI18n)(nt,e.date_gmt)),p&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)))),h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Pa&&Pa.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-twelve",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 129.22"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h34.01v34.01H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 0h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 0h34.01v34.01h-34.01z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 0h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 17h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 47.61h34.01v34.01H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 47.61h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 64.61h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 47.61h34.01v34.01h-34.01z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 47.61h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 64.61h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 95.22h34.01v34.01H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 95.22h54.41v3.4H40.81zm0 6.8h40.81v3.4H40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M40.81 112.22h20.4v3.4h-20.4z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M108.82 95.22h34.01v34.01h-34.01z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 95.22h54.41v3.4h-54.41zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M149.63 112.22h20.4v3.4h-20.4z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 12","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postImageHeight:fe,postPostAuthor:Le,postPostDate:Me,postPostComments:xe,postPostCategory:Ee,postTypographyFamily:ke,postTypographyWeight:Be,postTypographyTextTransform:_e,postTypographyTextDecoration:He,postTypographyFontSizeSm:Ne,postTypographyFontSizeMd:Ve,postTypographyFontSize:Ce,postTypographyFontSizeUnit:we,postTypographyLetterSpacingSm:Fe,postTypographyLetterSpacingMd:Re,postTypographyLetterSpacing:ze,postTypographyLetterSpacingUnit:De,postTypographyLineHeightSm:Ue,postTypographyLineHeightMd:Pe,postTypographyLineHeight:Ie,postTypographyLineHeightUnit:$e,metasTypographyFamily:We,metasTypographyWeight:Oe,metasTypographyTextTransform:Ae,metasTypographyTextDecoration:Ge,metasTypographyFontSizeSm:je,metasTypographyFontSizeMd:Ke,metasTypographyFontSize:Ze,metasTypographyFontSizeUnit:qe,metasTypographyLetterSpacingSm:Ye,metasTypographyLetterSpacingMd:Xe,metasTypographyLetterSpacing:Je,metasTypographyLetterSpacingUnit:Qe,metasTypographyLineHeightSm:et,metasTypographyLineHeightMd:tt,metasTypographyLineHeight:at,metasTypographyLineHeightUnit:it,dateFormat:ot,customDateFormat:nt,imageBorderRadius:rt,postTitleMarginSmTop:lt,postTitleMarginSmLeft:st,postTitleMarginSmRight:mt,postTitleMarginSmBottom:dt,postTitleMarginMdTop:ct,postTitleMarginMdLeft:pt,postTitleMarginMdRight:gt,postTitleMarginMdBottom:ut,postTitleMarginTop:ht,postTitleMarginLeft:yt,postTitleMarginRight:bt,postTitleMarginBottom:vt,postTitleMarginUnit:Tt,categoryBackgroundColor:St,categoryTextColor:ft,categoryBackgroundHoverColor:Lt,categoryTextHoverColor:Mt,titleColor:xt,titleHoverColor:Et,postMetasColor:kt,blockMarginSmTop:Bt,blockMarginSmLeft:_t,blockMarginSmRight:Ht,blockMarginSmBottom:Nt,blockMarginMdTop:Vt,blockMarginMdLeft:Ct,blockMarginMdRight:wt,blockMarginMdBottom:Ft,blockMarginTop:Rt,blockMarginLeft:zt,blockMarginRight:Dt,blockMarginBottom:Ut,blockMarginUnit:Pt,blockPaddingSmTop:It,blockPaddingSmLeft:$t,blockPaddingSmRight:Wt,blockPaddingSmBottom:Ot,blockPaddingMdTop:At,blockPaddingMdLeft:Gt,blockPaddingMdRight:jt,blockPaddingMdBottom:Kt,blockPaddingTop:Zt,blockPaddingLeft:qt,blockPaddingRight:Yt,blockPaddingBottom:Xt,blockPaddingUnit:Jt,borderNormal:Qt,borderHover:ea,borderNormalColor:ta,borderHoverColor:aa,borderNormalWidthTop:ia,borderNormalWidthLeft:oa,borderNormalWidthRight:na,borderNormalWidthBottom:ra,borderNormalWidthUnit:la,borderHoverWidthTop:sa,borderHoverWidthLeft:ma,borderHoverWidthRight:da,borderHoverWidthBottom:ca,borderHoverWidthUnit:pa,borderNormalRadiusTop:ga,borderNormalRadiusLeft:ua,borderNormalRadiusRight:ha,borderNormalRadiusBottom:ya,borderNormalRadiusUnit:ba,borderHoverRadiusTop:va,borderHoverRadiusLeft:Ta,borderHoverRadiusRight:Sa,borderHoverRadiusBottom:fa,borderHoverRadiusUnit:La,borderNormalBoxShadowHorizontal:Ma,borderNormalBoxShadowVertical:xa,borderNormalBoxShadowBlur:Ea,borderNormalBoxShadowSpread:ka,borderNormalBoxShadowColor:Ba,borderNormalBoxShadowInset:_a,borderHoverBoxShadowHorizontal:Ha,borderHoverBoxShadowVertical:Na,borderHoverBoxShadowBlur:Va,borderHoverBoxShadowSpread:Ca,borderHoverBoxShadowColor:wa,borderHoverBoxShadowInset:Fa,blockBgColor:Ra}=a;o({id:(0,d.useBlockProps)().id});const za=`#${s} {\n        ${Qt?"--sb-border-normal: "+Qt+";":""}\n        ${ea?"--sb-border-hover: "+Qt+";":""}\n        ${ta?"--sb-border-normal-color: "+ta+";":""}\n        ${aa?"--sb-border-hover-color: "+aa+";":""}\n\n        ${J("border-normal-width",ia,na,ra,oa,la)}\n        ${J("border-hover-width",sa,da,ca,ma,pa)}\n        ${J("border-normal-radius",ga,ha,ya,ua,ba)}\n        ${J("border-hover-radius",va,Sa,fa,Ta,La)}\n\n        ${te("border-normal-box-shadow",Ma,xa,Ea,ka,Ba,_a,"px")}\n        ${te("border-hover-box-shadow",Ha,Na,Va,Ca,wa,Fa,"px")}\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${Q("block-margin",Rt,Dt,Ut,zt,Bt,Ht,Nt,_t,Vt,wt,Ft,Ct,Pt)}\n\n        ${Q("block-padding",Zt,Yt,Xt,qt,It,Wt,Ot,$t,At,jt,Kt,Gt,Jt)}\n\n        ${Q("listing-post-title-margin",ht,bt,vt,yt,lt,mt,dt,st,ct,gt,ut,pt,Tt)}\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${fe?"--sb-listing-post-thumb-height: "+fe+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",We,Oe,Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at,it)}\n\n        ${St?"--sb-category-background-color: "+St+";":""}\n        ${ft?"--sb-category-text-color: "+ft+";":""}\n        ${Lt?"--sb-category-background-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-hover-color: "+Mt+";":""}\n        ${xt?"--sb-title-color: "+xt+";":""}\n        ${Et?"--sb-title-hover-color: "+Et+";":""}\n\n        ${kt?"--sb-post-metas-color: "+kt+";":""}\n\n        ${rt?"--sb-image-border-radius: "+rt+"px;":""}\n    }`;o({sbStyle:za.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Da=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ua={per_page:8,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Da&&Da.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ua[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Pa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ua)),[p,h,b,ve,Te,Ua,y]),Ia=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var $a=[];Ia&&Ia.map(((e,t)=>{$a.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Oa=l()("sb-block-title",`${L}`,X(N,w,z,D)),Aa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),We&&"Default"!=We&&(0,i.createElement)(xo,{family:We,weight:Oe.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Aa||Aa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:rt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ot,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ot&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:nt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:xt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Et,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ht,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:ct,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:lt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:yt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:pt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:st,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:bt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:gt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:mt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:vt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:ut,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:dt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Tt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:kt,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:We,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Oe,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Ae,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ge,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:je,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ke,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ze,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:qe,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ye,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Xe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Je,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Qe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:et,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:tt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:at,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:it,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Rt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Vt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Bt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:zt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ct,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_t,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Dt,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:wt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ht,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ut,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Ft,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Nt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Zt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:At,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:It,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Gt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$t,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Yt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:jt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Kt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Ot,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Jt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Qt,setValue:e=>o({borderNormal:e})}),Qt&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ia,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:na,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ra,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:la,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ba,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ma,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ea,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ka,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Ba,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_a,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:ea,setValue:e=>o({borderHover:e})}),ea&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:sa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ma,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:da,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ca,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pa,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:va,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ta,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Sa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:La,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ha,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Na,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Va,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ca,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:wa,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Fa,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ra,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-twelve"}),(0,i.createElement)("h2",{className:Oa},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-double-small-block"},Pa&&Pa.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le,c=Me,p=xe,u=Se||"large",h=Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})))),(0,i.createElement)("div",{class:"sb-post-content"},h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Wa&&Wa.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))),(0,i.createElement)("h3",{className:`sb-post-title ${X(ke,Be,_e,He)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(d||c||p)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ot&&`${e.relative_dates.created}`,"default"==ot&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ot&&(0,ce.dateI18n)(nt,e.date_gmt)),p&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-thirteen",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 136.02"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 68.01h68.01v68.01H0z",opacity:".08"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M6.8 81.62h54.41v3.4H6.8zm0 6.8h44.21v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h68.01v68.01H0zm68.01 68.01h68.01v68.01H68.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M6.8 105.42h54.41v3.4H6.8zm0 6.8h47.61v3.4H6.8zm0 6.8h40.81v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M6.8 95.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M136.02 68.01h68.01v68.01h-68.01z",opacity:".08"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M68.01 6.8h68.01v68.01H68.01z",opacity:".15"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M142.83 81.62h54.41v3.4h-54.41zm0 6.8h44.21v3.4h-44.21z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M136.02 0h68.01v68.01h-68.01z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M142.83 105.42h54.41v3.4h-54.41zm0 6.8h47.61v3.4h-47.61zm0 6.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M142.83 95.22h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M68.01 0h68.01v68.01H68.01z",opacity:".08"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M74.81 13.6h54.41V17H74.81zm0 6.8h44.21v3.4H74.81zm0 17.01h54.41v3.4H74.81zm0 6.8h47.61v3.4H74.81zm0 6.8h40.81v3.4H74.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M74.81 27.2h17v3.4h-17z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 13","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postExcerptLength:fe,postImageHeight:Le,postPostAuthor:Me,postPostDate:xe,postPostComments:Ee,postPostCategory:ke,postTypographyFamily:Be,postTypographyWeight:_e,postTypographyTextTransform:He,postTypographyTextDecoration:Ne,postTypographyFontSizeSm:Ve,postTypographyFontSizeMd:Ce,postTypographyFontSize:we,postTypographyFontSizeUnit:Fe,postTypographyLetterSpacingSm:Re,postTypographyLetterSpacingMd:ze,postTypographyLetterSpacing:De,postTypographyLetterSpacingUnit:Ue,postTypographyLineHeightSm:Pe,postTypographyLineHeightMd:Ie,postTypographyLineHeight:$e,postTypographyLineHeightUnit:We,excerptTypographyFamily:Oe,excerptTypographyWeight:Ae,excerptTypographyTextTransform:Ge,excerptTypographyTextDecoration:je,excerptTypographyFontSizeSm:Ke,excerptTypographyFontSizeMd:Ze,excerptTypographyFontSize:qe,excerptTypographyFontSizeUnit:Ye,excerptTypographyLetterSpacingSm:Xe,excerptTypographyLetterSpacingMd:Je,excerptTypographyLetterSpacing:Qe,excerptTypographyLetterSpacingUnit:et,excerptTypographyLineHeightSm:tt,excerptTypographyLineHeightMd:at,excerptTypographyLineHeight:it,excerptTypographyLineHeightUnit:ot,metasTypographyFamily:nt,metasTypographyWeight:rt,metasTypographyTextTransform:lt,metasTypographyTextDecoration:st,metasTypographyFontSizeSm:mt,metasTypographyFontSizeMd:dt,metasTypographyFontSize:ct,metasTypographyFontSizeUnit:pt,metasTypographyLetterSpacingSm:gt,metasTypographyLetterSpacingMd:ut,metasTypographyLetterSpacing:ht,metasTypographyLetterSpacingUnit:yt,metasTypographyLineHeightSm:bt,metasTypographyLineHeightMd:vt,metasTypographyLineHeight:Tt,metasTypographyLineHeightUnit:St,dateFormat:ft,customDateFormat:Lt,imageBorderRadius:Mt,postTitleMarginSmTop:xt,postTitleMarginSmLeft:Et,postTitleMarginSmRight:kt,postTitleMarginSmBottom:Bt,postTitleMarginMdTop:_t,postTitleMarginMdLeft:Ht,postTitleMarginMdRight:Nt,postTitleMarginMdBottom:Vt,postTitleMarginTop:Ct,postTitleMarginLeft:wt,postTitleMarginRight:Ft,postTitleMarginBottom:Rt,postTitleMarginUnit:zt,categoryBackgroundColor:Dt,categoryTextColor:Ut,categoryBackgroundHoverColor:Pt,categoryTextHoverColor:It,titleColor:$t,titleHoverColor:Wt,excerptColor:Ot,postMetasColor:At,contentBgColor:Gt,blockMarginSmTop:jt,blockMarginSmLeft:Kt,blockMarginSmRight:Zt,blockMarginSmBottom:qt,blockMarginMdTop:Yt,blockMarginMdLeft:Xt,blockMarginMdRight:Jt,blockMarginMdBottom:Qt,blockMarginTop:ea,blockMarginLeft:ta,blockMarginRight:aa,blockMarginBottom:ia,blockMarginUnit:oa,blockPaddingSmTop:na,blockPaddingSmLeft:ra,blockPaddingSmRight:la,blockPaddingSmBottom:sa,blockPaddingMdTop:ma,blockPaddingMdLeft:da,blockPaddingMdRight:ca,blockPaddingMdBottom:pa,blockPaddingTop:ga,blockPaddingLeft:ua,blockPaddingRight:ha,blockPaddingBottom:ya,blockPaddingUnit:ba,borderNormal:va,borderHover:Ta,borderNormalColor:Sa,borderHoverColor:fa,borderNormalWidthTop:La,borderNormalWidthLeft:Ma,borderNormalWidthRight:xa,borderNormalWidthBottom:Ea,borderNormalWidthUnit:ka,borderHoverWidthTop:Ba,borderHoverWidthLeft:_a,borderHoverWidthRight:Ha,borderHoverWidthBottom:Na,borderHoverWidthUnit:Va,borderNormalRadiusTop:Ca,borderNormalRadiusLeft:wa,borderNormalRadiusRight:Fa,borderNormalRadiusBottom:Ra,borderNormalRadiusUnit:za,borderHoverRadiusTop:Da,borderHoverRadiusLeft:Ua,borderHoverRadiusRight:Pa,borderHoverRadiusBottom:Ia,borderHoverRadiusUnit:$a,borderNormalBoxShadowHorizontal:Wa,borderNormalBoxShadowVertical:Oa,borderNormalBoxShadowBlur:Aa,borderNormalBoxShadowSpread:Ga,borderNormalBoxShadowColor:ja,borderNormalBoxShadowInset:Ka,borderHoverBoxShadowHorizontal:Za,borderHoverBoxShadowVertical:qa,borderHoverBoxShadowBlur:Ya,borderHoverBoxShadowSpread:Xa,borderHoverBoxShadowColor:Ja,borderHoverBoxShadowInset:Qa,blockBgColor:ei}=a;o({id:(0,d.useBlockProps)().id});const ti=`#${s} {\n        ${va?"--sb-border-normal: "+va+";":""}\n        ${Ta?"--sb-border-hover: "+va+";":""}\n        ${Sa?"--sb-border-normal-color: "+Sa+";":""}\n        ${fa?"--sb-border-hover-color: "+fa+";":""}\n\n        ${J("border-normal-width",La,xa,Ea,Ma,ka)}\n        ${J("border-hover-width",Ba,Ha,Na,_a,Va)}\n        ${J("border-normal-radius",Ca,Fa,Ra,wa,za)}\n        ${J("border-hover-radius",Da,Pa,Ia,Ua,$a)}\n\n        ${te("border-normal-box-shadow",Wa,Oa,Aa,Ga,ja,Ka,"px")}\n        ${te("border-hover-box-shadow",Za,qa,Ya,Xa,Ja,Qa,"px")}\n\n        ${ei?"--sb-block-bg-color: "+ei+";":""}\n\n        ${Q("block-margin",ea,aa,ia,ta,jt,Zt,qt,Kt,Yt,Jt,Qt,Xt,oa)}\n\n        ${Q("block-padding",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${Q("listing-post-title-margin",Ct,Ft,Rt,wt,xt,kt,Bt,Et,_t,Nt,Vt,Ht,zt)}\n\n        ${ei?"--sb-block-bg-color: "+ei+";":""}\n\n        ${Le?"--sb-listing-post-thumb-height: "+Le+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n\n        ${ie("listing-post-title-typo",Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Oe,Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at,it,ot)}\n\n        ${ie("post-metas-typo",nt,rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St)}\n\n        ${Dt?"--sb-category-background-color: "+Dt+";":""}\n        ${Ut?"--sb-category-text-color: "+Ut+";":""}\n        ${Pt?"--sb-category-background-hover-color: "+Pt+";":""}\n        ${It?"--sb-category-text-hover-color: "+It+";":""}\n        ${$t?"--sb-title-color: "+$t+";":""}\n        ${Wt?"--sb-title-hover-color: "+Wt+";":""}\n\n        ${Gt?"--sb-content-bg-color: "+Gt+";":""}\n        ${Ot?"--sb-excerpt-color: "+Ot+";":""}\n\n        ${At?"--sb-post-metas-color: "+At+";":""}\n\n        ${Mt?"--sb-image-border-radius: "+Mt+"px;":""}\n    }`;o({sbStyle:ti.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const ai=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),ii={per_page:3,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};ai&&ai.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),ii[t]=(a=e.value,b&&b[a]?b[a]:[])}));const oi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,ii)),[p,h,b,ve,Te,ii,y]),ni=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var ri=[];ni&&ni.map(((e,t)=>{ri.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const li=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),si=l()("sb-block-title",`${L}`,X(N,w,z,D)),mi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(xo,{family:Be,weight:_e.replace("italic","i")}),Oe&&"Default"!=Oe&&(0,i.createElement)(xo,{family:Oe,weight:Ae.replace("italic","i")}),nt&&"Default"!=nt&&(0,i.createElement)(xo,{family:nt,weight:rt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==mi||mi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({postExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:ke,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:Mt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ft,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ft&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:Lt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Dt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ut,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:It,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:$t,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Wt,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:we,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:Fe,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ze,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:Ct,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:_t,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:xt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:wt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Ht,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:Et,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:Ft,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Nt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:kt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Rt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:Vt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:Bt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:zt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Gt,setValue:e=>o({contentBgColor:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ot,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Oe,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Ae,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Ge,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:je,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ke,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ze,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:qe,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ye,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Xe,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Je,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Qe,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:et,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:tt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:at,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:it,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:ot,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:At,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:nt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:rt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:lt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:st,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:mt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:dt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:ct,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:pt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:gt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ut,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:ht,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:yt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:bt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:vt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Tt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:St,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ea,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Yt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:jt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ta,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Xt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Kt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:aa,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Jt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Zt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:ia,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Qt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:qt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:oa,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:ga,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:ba,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:va,setValue:e=>o({borderNormal:e})}),va&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Sa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:La,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Ma,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:xa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Ea,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ka,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Ca,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:wa,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Fa,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ra,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:za,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Wa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Oa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Aa,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ga,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ja,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ka,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Ta,setValue:e=>o({borderHover:e})}),Ta&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Ba,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:_a,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ha,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Na,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Va,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Da,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ua,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Pa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ia,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:$a,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Za,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:qa,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ya,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Xa,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ja,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Qa,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ei,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-thirteen"}),(0,i.createElement)("h2",{className:si},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-alternate-block"},oi&&oi.map(((e,t)=>((e,t,a)=>{var o,n,r,l;const s=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],m=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],d=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],c=Me,p=xe,u=Ee,h=fe,y=Se||"large",b=ke;return(0,i.createElement)("div",{className:"sb-alt-post-item sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},s&&s.media_details&&(0,i.createElement)("img",{src:null!==(o=s.media_details.sizes)&&void 0!==o&&o[y]?null===(n=s.media_details.sizes)||void 0===n?void 0:n[y].source_url:null!==(r=s.media_details.sizes)&&void 0!==r&&r.full?null===(l=s.media_details.sizes)||void 0===l?void 0:l.full.source_url:s.source_url,alt:s.alt_text}))),b&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=li&&li.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("div",{class:"sb-post-content-inner"},(0,i.createElement)("div",{class:"sb-post-content-wrap"},(0,i.createElement)("div",null,(0,i.createElement)("h3",{className:`sb-post-title ${X(Be,_e,He,Ne)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},m&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),m.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ft&&`${e.relative_dates.created}`,"default"==ft&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ft&&(0,ce.dateI18n)(Lt,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),d?d.length:0)),0!=h&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,h),h<e.content.rendered.length?"...":"")))))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-fourteen",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 207.44 64.61"},(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 54.41h44.21v3.4H0zm0 6.8h37.41v3.4H0z"}),(0,i.createElement)("g",{fill:"#687e8b"},(0,i.createElement)("path",{d:"M0 0h44.21v30.61H0zm54.41 0h44.21v30.61H54.41z"}),(0,i.createElement)("path",{d:"M54.41 0h44.21v30.61H54.41zm54.41 0h44.21v30.61h-44.21zm54.41 0h44.21v30.61h-44.21z"}),(0,i.createElement)("path",{d:"M163.23 0h44.21v30.61h-44.21z"})),(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 37.41h40.81v3.4H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M0 44.21h17v3.4H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M54.41 54.41h44.21v3.4H54.41zm0 6.8h37.41v3.4H54.41zm0-23.8h40.81v3.4H54.41z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M54.41 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M108.82 54.41h44.21v3.4h-44.21zm0 6.8h37.41v3.4h-37.41zm0-23.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M108.82 44.21h17v3.4h-17z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M163.23 54.41h44.21v3.4h-44.21zm0 6.8h37.41v3.4h-37.41zm0-23.8h40.81v3.4h-40.81z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M163.23 44.21h17v3.4h-17z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 14","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postExcerptLength:fe,postImageHeight:Le,postPostAuthor:Me,postPostDate:xe,postPostComments:Ee,postPostCategory:ke,postTypographyFamily:Be,postTypographyWeight:_e,postTypographyTextTransform:He,postTypographyTextDecoration:Ne,postTypographyFontSizeSm:Ve,postTypographyFontSizeMd:Ce,postTypographyFontSize:we,postTypographyFontSizeUnit:Fe,postTypographyLetterSpacingSm:Re,postTypographyLetterSpacingMd:ze,postTypographyLetterSpacing:De,postTypographyLetterSpacingUnit:Ue,postTypographyLineHeightSm:Pe,postTypographyLineHeightMd:Ie,postTypographyLineHeight:$e,postTypographyLineHeightUnit:We,excerptTypographyFamily:Oe,excerptTypographyWeight:Ae,excerptTypographyTextTransform:Ge,excerptTypographyTextDecoration:je,excerptTypographyFontSizeSm:Ke,excerptTypographyFontSizeMd:Ze,excerptTypographyFontSize:qe,excerptTypographyFontSizeUnit:Ye,excerptTypographyLetterSpacingSm:Xe,excerptTypographyLetterSpacingMd:Je,excerptTypographyLetterSpacing:Qe,excerptTypographyLetterSpacingUnit:et,excerptTypographyLineHeightSm:tt,excerptTypographyLineHeightMd:at,excerptTypographyLineHeight:it,excerptTypographyLineHeightUnit:ot,metasTypographyFamily:nt,metasTypographyWeight:rt,metasTypographyTextTransform:lt,metasTypographyTextDecoration:st,metasTypographyFontSizeSm:mt,metasTypographyFontSizeMd:dt,metasTypographyFontSize:ct,metasTypographyFontSizeUnit:pt,metasTypographyLetterSpacingSm:gt,metasTypographyLetterSpacingMd:ut,metasTypographyLetterSpacing:ht,metasTypographyLetterSpacingUnit:yt,metasTypographyLineHeightSm:bt,metasTypographyLineHeightMd:vt,metasTypographyLineHeight:Tt,metasTypographyLineHeightUnit:St,dateFormat:ft,customDateFormat:Lt,imageBorderRadius:Mt,postTitleMarginSmTop:xt,postTitleMarginSmLeft:Et,postTitleMarginSmRight:kt,postTitleMarginSmBottom:Bt,postTitleMarginMdTop:_t,postTitleMarginMdLeft:Ht,postTitleMarginMdRight:Nt,postTitleMarginMdBottom:Vt,postTitleMarginTop:Ct,postTitleMarginLeft:wt,postTitleMarginRight:Ft,postTitleMarginBottom:Rt,postTitleMarginUnit:zt,categoryBackgroundColor:Dt,categoryTextColor:Ut,categoryBackgroundHoverColor:Pt,categoryTextHoverColor:It,titleColor:$t,titleHoverColor:Wt,excerptColor:Ot,postMetasColor:At,noOfPosts:Gt,noOfCol:jt,blockMarginSmTop:Kt,blockMarginSmLeft:Zt,blockMarginSmRight:qt,blockMarginSmBottom:Yt,blockMarginMdTop:Xt,blockMarginMdLeft:Jt,blockMarginMdRight:Qt,blockMarginMdBottom:ea,blockMarginTop:ta,blockMarginLeft:aa,blockMarginRight:ia,blockMarginBottom:oa,blockMarginUnit:na,blockPaddingSmTop:ra,blockPaddingSmLeft:la,blockPaddingSmRight:sa,blockPaddingSmBottom:ma,blockPaddingMdTop:da,blockPaddingMdLeft:ca,blockPaddingMdRight:pa,blockPaddingMdBottom:ga,blockPaddingTop:ua,blockPaddingLeft:ha,blockPaddingRight:ya,blockPaddingBottom:ba,blockPaddingUnit:va,borderNormal:Ta,borderHover:Sa,borderNormalColor:fa,borderHoverColor:La,borderNormalWidthTop:Ma,borderNormalWidthLeft:xa,borderNormalWidthRight:Ea,borderNormalWidthBottom:ka,borderNormalWidthUnit:Ba,borderHoverWidthTop:_a,borderHoverWidthLeft:Ha,borderHoverWidthRight:Na,borderHoverWidthBottom:Va,borderHoverWidthUnit:Ca,borderNormalRadiusTop:wa,borderNormalRadiusLeft:Fa,borderNormalRadiusRight:Ra,borderNormalRadiusBottom:za,borderNormalRadiusUnit:Da,borderHoverRadiusTop:Ua,borderHoverRadiusLeft:Pa,borderHoverRadiusRight:Ia,borderHoverRadiusBottom:$a,borderHoverRadiusUnit:Wa,borderNormalBoxShadowHorizontal:Oa,borderNormalBoxShadowVertical:Aa,borderNormalBoxShadowBlur:Ga,borderNormalBoxShadowSpread:ja,borderNormalBoxShadowColor:Ka,borderNormalBoxShadowInset:Za,borderHoverBoxShadowHorizontal:qa,borderHoverBoxShadowVertical:Ya,borderHoverBoxShadowBlur:Xa,borderHoverBoxShadowSpread:Ja,borderHoverBoxShadowColor:Qa,borderHoverBoxShadowInset:ei,blockBgColor:ti}=a;o({id:(0,d.useBlockProps)().id});const ai=`#${s} {\n        ${Ta?"--sb-border-normal: "+Ta+";":""}\n        ${Sa?"--sb-border-hover: "+Ta+";":""}\n        ${fa?"--sb-border-normal-color: "+fa+";":""}\n        ${La?"--sb-border-hover-color: "+La+";":""}\n\n        ${J("border-normal-width",Ma,Ea,ka,xa,Ba)}\n        ${J("border-hover-width",_a,Na,Va,Ha,Ca)}\n        ${J("border-normal-radius",wa,Ra,za,Fa,Da)}\n        ${J("border-hover-radius",Ua,Ia,$a,Pa,Wa)}\n\n        ${te("border-normal-box-shadow",Oa,Aa,Ga,ja,Ka,Za,"px")}\n        ${te("border-hover-box-shadow",qa,Ya,Xa,Ja,Qa,ei,"px")}\n\n        ${ti?"--sb-block-bg-color: "+ti+";":""}\n\n        ${Q("block-margin",ta,ia,oa,aa,Kt,qt,Yt,Zt,Xt,Qt,ea,Jt,na)}\n\n        ${Q("block-padding",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n        ${Q("listing-post-title-margin",Ct,Ft,Rt,wt,xt,kt,Bt,Et,_t,Nt,Vt,Ht,zt)}\n\n        ${ti?"--sb-block-bg-color: "+ti+";":""}\n\n        ${Le?"--sb-listing-post-thumb-height: "+Le+"%;":""}\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e,We)}\n\n        ${ie("excerpt-typo",Oe,Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at,it,ot)}\n\n        ${ie("post-metas-typo",nt,rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St)}\n\n        ${Dt?"--sb-category-background-color: "+Dt+";":""}\n        ${Ut?"--sb-category-text-color: "+Ut+";":""}\n        ${Pt?"--sb-category-background-hover-color: "+Pt+";":""}\n        ${It?"--sb-category-text-hover-color: "+It+";":""}\n        ${$t?"--sb-title-color: "+$t+";":""}\n        ${Wt?"--sb-title-hover-color: "+Wt+";":""}\n\n        ${Ot?"--sb-excerpt-color: "+Ot+";":""}\n        ${At?"--sb-post-metas-color: "+At+";":""}\n\n        ${Mt?"--sb-image-border-radius: "+Mt+"px;":""}\n    }`;o({sbStyle:ai.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const ii=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),oi={per_page:Gt,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};ii&&ii.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),oi[t]=(a=e.value,b&&b[a]?b[a]:[])}));const ni=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,oi)),[p,h,b,ve,Te,Gt,oi]),ri=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var li=[];ri&&ri.map(((e,t)=>{li.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const si=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),mi=l()("sb-block-title",`${L}`,X(N,w,z,D)),di=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),Be&&"Default"!=Be&&(0,i.createElement)(xo,{family:Be,weight:_e.replace("italic","i")}),Oe&&"Default"!=Oe&&(0,i.createElement)(xo,{family:Oe,weight:Ae.replace("italic","i")}),nt&&"Default"!=nt&&(0,i.createElement)(xo,{family:nt,weight:rt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("No of Columns","smart-blocks"),value:jt,setValue:e=>o({noOfCol:e}),min:1,max:4}),(0,i.createElement)(E,{label:(0,g.__)("No of Posts","smart-blocks"),value:Gt,setValue:e=>o({noOfPosts:e}),min:1,max:20}),(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==di||di.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Le,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:fe,setValue:e=>o({postExcerptLength:e}),min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Me,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:xe,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ee,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:ke,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:Mt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ft,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ft&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:Lt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Dt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Ut,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:It,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:$t,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Wt,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Be,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:_e,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:He,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:Ne,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ve,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ce,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:we,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:Fe,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:Re,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ze,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:De,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ue,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Pe,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Ie,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:$e,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:We,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:Ct,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:_t,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:xt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:wt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Ht,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:Et,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:Ft,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Nt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:kt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Rt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:Vt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:Bt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:zt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ot,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Oe,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Ae,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Ge,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:je,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Ke,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ze,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:qe,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Ye,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Xe,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Je,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:Qe,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:et,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:tt,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:at,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:it,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:ot,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:At,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:nt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:rt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:lt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:st,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:mt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:dt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:ct,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:pt,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:gt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ut,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:ht,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:yt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:bt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:vt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Tt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:St,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ta,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Xt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Kt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:aa,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Jt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Zt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:ia,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Qt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:qt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:oa,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ea,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Yt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:na,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:ua,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:va,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Ta,setValue:e=>o({borderNormal:e})}),Ta&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:fa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Ma,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:xa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ea,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ka,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Ba,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:wa,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:Fa,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ra,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:za,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Da,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Oa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Aa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ga,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ja,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Ka,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Za,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Sa,setValue:e=>o({borderHover:e})}),Sa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:La,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:_a,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Ha,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Na,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Va,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ca,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Ua,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Pa,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ia,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:$a,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Wa,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:qa,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ya,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Xa,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ja,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Qa,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:ei,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ti,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-fourteen"}),(0,i.createElement)("h2",{className:mi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:`sb-four-column-block sb-col-${jt}`},ni&&ni.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Me,c=xe,p=Ee,u=fe,h=Se||"large",y=ke;return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=si&&si.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${X(Be,_e,He,Ne)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(d||c||p)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ft&&`${e.relative_dates.created}`,"default"==ft&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ft&&(0,ce.dateI18n)(Lt,e.date_gmt)),p&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=u&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,u),u<e.content.rendered.length?"...":""))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/news-module-fifteen",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 23.8"},(0,i.createElement)("path",{fill:"#687e8b",d:"M142.83 0h27.2v23.8h-27.2z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M176.83 0h27.21v3.4h-27.21zm0 6.8h23.8v3.4h-23.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M176.83 17h10.2v3.4h-10.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M71.41 0h27.2v23.8h-27.2z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M105.42 0h27.2v3.4h-27.2zm0 6.8h23.8v3.4h-23.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M105.42 17h10.2v3.4h-10.2z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h27.2v23.8H0z"}),(0,i.createElement)("path",{fill:"#7e97a7",d:"M34.01 0h27.2v3.4h-27.2zm0 6.8h23.8v3.4h-23.8z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M34.01 17h10.2v3.4h-10.2z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("News Module 15","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postImageHeight:fe,postPostAuthor:Le,postPostDate:Me,postPostComments:xe,postPostCategory:Ee,postTypographyFamily:ke,postTypographyWeight:Be,postTypographyTextTransform:_e,postTypographyTextDecoration:He,postTypographyFontSizeSm:Ne,postTypographyFontSizeMd:Ve,postTypographyFontSize:Ce,postTypographyFontSizeUnit:we,postTypographyLetterSpacingSm:Fe,postTypographyLetterSpacingMd:Re,postTypographyLetterSpacing:ze,postTypographyLetterSpacingUnit:De,postTypographyLineHeightSm:Ue,postTypographyLineHeightMd:Pe,postTypographyLineHeight:Ie,postTypographyLineHeightUnit:$e,metasTypographyFamily:We,metasTypographyWeight:Oe,metasTypographyTextTransform:Ae,metasTypographyTextDecoration:Ge,metasTypographyFontSizeSm:je,metasTypographyFontSizeMd:Ke,metasTypographyFontSize:Ze,metasTypographyFontSizeUnit:qe,metasTypographyLetterSpacingSm:Ye,metasTypographyLetterSpacingMd:Xe,metasTypographyLetterSpacing:Je,metasTypographyLetterSpacingUnit:Qe,metasTypographyLineHeightSm:et,metasTypographyLineHeightMd:tt,metasTypographyLineHeight:at,metasTypographyLineHeightUnit:it,dateFormat:ot,customDateFormat:nt,imageBorderRadius:rt,postTitleMarginSmTop:lt,postTitleMarginSmLeft:st,postTitleMarginSmRight:mt,postTitleMarginSmBottom:dt,postTitleMarginMdTop:ct,postTitleMarginMdLeft:pt,postTitleMarginMdRight:gt,postTitleMarginMdBottom:ut,postTitleMarginTop:ht,postTitleMarginLeft:yt,postTitleMarginRight:bt,postTitleMarginBottom:vt,postTitleMarginUnit:Tt,categoryBackgroundColor:St,categoryTextColor:ft,categoryBackgroundHoverColor:Lt,categoryTextHoverColor:Mt,titleColor:xt,titleHoverColor:Et,postMetasColor:kt,blockMarginSmTop:Bt,blockMarginSmLeft:_t,blockMarginSmRight:Ht,blockMarginSmBottom:Nt,blockMarginMdTop:Vt,blockMarginMdLeft:Ct,blockMarginMdRight:wt,blockMarginMdBottom:Ft,blockMarginTop:Rt,blockMarginLeft:zt,blockMarginRight:Dt,blockMarginBottom:Ut,blockMarginUnit:Pt,blockPaddingSmTop:It,blockPaddingSmLeft:$t,blockPaddingSmRight:Wt,blockPaddingSmBottom:Ot,blockPaddingMdTop:At,blockPaddingMdLeft:Gt,blockPaddingMdRight:jt,blockPaddingMdBottom:Kt,blockPaddingTop:Zt,blockPaddingLeft:qt,blockPaddingRight:Yt,blockPaddingBottom:Xt,blockPaddingUnit:Jt,borderNormal:Qt,borderHover:ea,borderNormalColor:ta,borderHoverColor:aa,borderNormalWidthTop:ia,borderNormalWidthLeft:oa,borderNormalWidthRight:na,borderNormalWidthBottom:ra,borderNormalWidthUnit:la,borderHoverWidthTop:sa,borderHoverWidthLeft:ma,borderHoverWidthRight:da,borderHoverWidthBottom:ca,borderHoverWidthUnit:pa,borderNormalRadiusTop:ga,borderNormalRadiusLeft:ua,borderNormalRadiusRight:ha,borderNormalRadiusBottom:ya,borderNormalRadiusUnit:ba,borderHoverRadiusTop:va,borderHoverRadiusLeft:Ta,borderHoverRadiusRight:Sa,borderHoverRadiusBottom:fa,borderHoverRadiusUnit:La,borderNormalBoxShadowHorizontal:Ma,borderNormalBoxShadowVertical:xa,borderNormalBoxShadowBlur:Ea,borderNormalBoxShadowSpread:ka,borderNormalBoxShadowColor:Ba,borderNormalBoxShadowInset:_a,borderHoverBoxShadowHorizontal:Ha,borderHoverBoxShadowVertical:Na,borderHoverBoxShadowBlur:Va,borderHoverBoxShadowSpread:Ca,borderHoverBoxShadowColor:wa,borderHoverBoxShadowInset:Fa,blockBgColor:Ra}=a;o({id:(0,d.useBlockProps)().id});const za=`#${s} {\n        ${Qt?"--sb-border-normal: "+Qt+";":""}\n        ${ea?"--sb-border-hover: "+Qt+";":""}\n        ${ta?"--sb-border-normal-color: "+ta+";":""}\n        ${aa?"--sb-border-hover-color: "+aa+";":""}\n\n        ${J("border-normal-width",ia,na,ra,oa,la)}\n        ${J("border-hover-width",sa,da,ca,ma,pa)}\n        ${J("border-normal-radius",ga,ha,ya,ua,ba)}\n        ${J("border-hover-radius",va,Sa,fa,Ta,La)}\n\n        ${te("border-normal-box-shadow",Ma,xa,Ea,ka,Ba,_a,"px")}\n        ${te("border-hover-box-shadow",Ha,Na,Va,Ca,wa,Fa,"px")}\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${Q("block-margin",Rt,Dt,Ut,zt,Bt,Ht,Nt,_t,Vt,wt,Ft,Ct,Pt)}\n\n        ${Q("block-padding",Zt,Yt,Xt,qt,It,Wt,Ot,$t,At,jt,Kt,Gt,Jt)}\n\n        ${Q("listing-post-title-margin",ht,bt,vt,yt,lt,mt,dt,st,ct,gt,ut,pt,Tt)}\n\n\n        ${Ra?"--sb-block-bg-color: "+Ra+";":""}\n\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",We,Oe,Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at,it)}\n\n        ${St?"--sb-category-background-color: "+St+";":""}\n        ${ft?"--sb-category-text-color: "+ft+";":""}\n        ${Lt?"--sb-category-background-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-category-text-hover-color: "+Mt+";":""}\n        ${xt?"--sb-title-color: "+xt+";":""}\n        ${Et?"--sb-title-hover-color: "+Et+";":""}\n\n        ${kt?"--sb-post-metas-color: "+kt+";":""}\n\n        ${rt?"--sb-image-border-radius: "+rt+"px;":""}\n\n        ${fe?"--sb-post-thumb-height: "+fe+"%;":""}\n    }`;o({sbStyle:za.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Da=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),Ua={per_page:3,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Da&&Da.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ua[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Pa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,Ua)),[p,h,b,ve,Te,Ua,y]),Ia=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var $a=[];Ia&&Ia.map(((e,t)=>{$a.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Wa=l()("sb-block-title",`${L}`,X(N,w,z,D)),Oa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Aa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),We&&"Default"!=We&&(0,i.createElement)(xo,{family:We,weight:Oe.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Aa||Aa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:fe,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:rt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:ot,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==ot&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:nt,onChange:e=>o({customDateFormat:e})})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:xt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:Et,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ht,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:ct,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:lt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:yt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:pt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:st,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:bt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:gt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:mt,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:vt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:ut,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:dt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Tt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:kt,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:We,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Oe,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Ae,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ge,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:je,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Ke,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ze,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:qe,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ye,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Xe,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Je,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Qe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:et,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:tt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:at,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:it,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Rt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Vt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Bt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:zt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ct,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:_t,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Dt,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:wt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ht,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Ut,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Ft,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Nt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Pt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Zt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:At,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:It,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:qt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Gt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:$t,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Yt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:jt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Wt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Xt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Kt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Ot,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Jt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Qt,setValue:e=>o({borderNormal:e})}),Qt&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ia,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:oa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:na,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ra,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:la,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ga,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ba,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ma,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:xa,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ea,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ka,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Ba,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:_a,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:ea,setValue:e=>o({borderHover:e})}),ea&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:sa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ma,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:da,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ca,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:pa,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:va,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ta,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Sa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:fa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:La,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ha,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Na,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Va,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ca,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:wa,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Fa,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ra,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-news-module-fifteen"}),(0,i.createElement)("h2",{className:Wa},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-mini-news"},Pa&&Pa.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le,c=Me,p=xe,u=Se||"large",h=Ee;return(0,i.createElement)("div",{className:"sb-post-item sb-clearfix",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),(0,i.createElement)("div",{class:"sb-post-content"},h&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Oa&&Oa.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))),(0,i.createElement)("h3",{className:"sb-post-title"},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(d||c||p)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==ot&&`${e.relative_dates.created}`,"default"==ot&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==ot&&(0,ce.dateI18n)(nt,e.date_gmt)),p&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/tile-module-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 98.62"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h102.02v98.62H0zm105.42 0h98.62v47.61h-98.62zm0 51.01h47.61v47.61h-47.61zm51.01 0h47.61v47.61h-47.61z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 81.61h78.21v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 88.42h27.21v3.4H6.8z",opacity:".68"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 30.61h74.81v3.4h-74.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 37.41h27.21v3.4h-27.21z",opacity:".68"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 81.61h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M112.22 88.42h13.6v3.4h-13.6z",opacity:".68"}),(0,i.createElement)("path",{fill:"#fff",d:"M163.23 81.61h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M163.23 88.42h13.6v3.4h-13.6z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("Tile Module 1","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,largeSideImageSize:Se,sideImageSize:fe,sidePostAuthor:Le,sidePostDate:Me,sidePostComments:xe,sidePostCategory:Ee,sideTypographyFamily:ke,sideTypographyWeight:Be,sideTypographyTextTransform:_e,sideTypographyTextDecoration:He,sideTypographyFontSizeSm:Ne,sideTypographyFontSizeMd:Ve,sideTypographyFontSize:Ce,sideTypographyFontSizeUnit:we,sideTypographyLetterSpacingSm:Fe,sideTypographyLetterSpacingMd:Re,sideTypographyLetterSpacing:ze,sideTypographyLetterSpacingUnit:De,sideTypographyLineHeightSm:Ue,sideTypographyLineHeightMd:Pe,sideTypographyLineHeight:Ie,sideTypographyLineHeightUnit:$e,featuredImageSize:We,featuredPostAuthor:Oe,featuredPostDate:Ae,featuredPostComments:Ge,featuredPostCategory:je,featuredTitleMarginSmTop:Ke,featuredTitleMarginSmLeft:Ze,featuredTitleMarginSmRight:qe,featuredTitleMarginSmBottom:Ye,featuredTitleMarginMdTop:Xe,featuredTitleMarginMdLeft:Je,featuredTitleMarginMdRight:Qe,featuredTitleMarginMdBottom:et,featuredTitleMarginTop:tt,featuredTitleMarginLeft:at,featuredTitleMarginRight:it,featuredTitleMarginBottom:ot,featuredTitleMarginUnit:nt,featuredTypographyFamily:rt,featuredTypographyWeight:lt,featuredTypographyTextTransform:st,featuredTypographyTextDecoration:mt,featuredTypographyFontSizeSm:dt,featuredTypographyFontSizeMd:ct,featuredTypographyFontSize:pt,featuredTypographyFontSizeUnit:gt,featuredTypographyLetterSpacingSm:ut,featuredTypographyLetterSpacingMd:ht,featuredTypographyLetterSpacing:yt,featuredTypographyLetterSpacingUnit:bt,featuredTypographyLineHeightSm:vt,featuredTypographyLineHeightMd:Tt,featuredTypographyLineHeight:St,featuredTypographyLineHeightUnit:ft,metasTypographyFamily:Lt,metasTypographyWeight:Mt,metasTypographyTextTransform:xt,metasTypographyTextDecoration:Et,metasTypographyFontSizeSm:kt,metasTypographyFontSizeMd:Bt,metasTypographyFontSize:_t,metasTypographyFontSizeUnit:Ht,metasTypographyLetterSpacingSm:Nt,metasTypographyLetterSpacingMd:Vt,metasTypographyLetterSpacing:Ct,metasTypographyLetterSpacingUnit:wt,metasTypographyLineHeightSm:Ft,metasTypographyLineHeightMd:Rt,metasTypographyLineHeight:zt,metasTypographyLineHeightUnit:Dt,dateFormat:Ut,customDateFormat:Pt,imageBorderRadius:It,sideTitleMarginSmTop:$t,sideTitleMarginSmLeft:Wt,sideTitleMarginSmRight:Ot,sideTitleMarginSmBottom:At,sideTitleMarginMdTop:Gt,sideTitleMarginMdLeft:jt,sideTitleMarginMdRight:Kt,sideTitleMarginMdBottom:Zt,sideTitleMarginTop:qt,sideTitleMarginLeft:Yt,sideTitleMarginRight:Xt,sideTitleMarginBottom:Jt,sideTitleMarginUnit:Qt,categoryBackgroundColor:ea,categoryTextColor:ta,categoryBackgroundHoverColor:aa,categoryTextHoverColor:ia,titleColor:oa,moduleHeight:na,blockMarginSmTop:ra,blockMarginSmLeft:la,blockMarginSmRight:sa,blockMarginSmBottom:ma,blockMarginMdTop:da,blockMarginMdLeft:ca,blockMarginMdRight:pa,blockMarginMdBottom:ga,blockMarginTop:ua,blockMarginLeft:ha,blockMarginRight:ya,blockMarginBottom:ba,blockMarginUnit:va,blockPaddingSmTop:Ta,blockPaddingSmLeft:Sa,blockPaddingSmRight:fa,blockPaddingSmBottom:La,blockPaddingMdTop:Ma,blockPaddingMdLeft:xa,blockPaddingMdRight:Ea,blockPaddingMdBottom:ka,blockPaddingTop:Ba,blockPaddingLeft:_a,blockPaddingRight:Ha,blockPaddingBottom:Na,blockPaddingUnit:Va,borderNormal:Ca,borderHover:wa,borderNormalColor:Fa,borderHoverColor:Ra,borderNormalWidthTop:za,borderNormalWidthLeft:Da,borderNormalWidthRight:Ua,borderNormalWidthBottom:Pa,borderNormalWidthUnit:Ia,borderHoverWidthTop:$a,borderHoverWidthLeft:Wa,borderHoverWidthRight:Oa,borderHoverWidthBottom:Aa,borderHoverWidthUnit:Ga,borderNormalRadiusTop:ja,borderNormalRadiusLeft:Ka,borderNormalRadiusRight:Za,borderNormalRadiusBottom:qa,borderNormalRadiusUnit:Ya,borderHoverRadiusTop:Xa,borderHoverRadiusLeft:Ja,borderHoverRadiusRight:Qa,borderHoverRadiusBottom:ei,borderHoverRadiusUnit:ti,borderNormalBoxShadowHorizontal:ai,borderNormalBoxShadowVertical:ii,borderNormalBoxShadowBlur:oi,borderNormalBoxShadowSpread:ni,borderNormalBoxShadowColor:ri,borderNormalBoxShadowInset:li,borderHoverBoxShadowHorizontal:si,borderHoverBoxShadowVertical:mi,borderHoverBoxShadowBlur:di,borderHoverBoxShadowSpread:ci,borderHoverBoxShadowColor:pi,borderHoverBoxShadowInset:gi,blockBgColor:ui}=a;o({id:(0,d.useBlockProps)().id});const hi=`#${s} {\n        ${Ca?"--sb-border-normal: "+Ca+";":""}\n        ${wa?"--sb-border-hover: "+Ca+";":""}\n        ${Fa?"--sb-border-normal-color: "+Fa+";":""}\n        ${Ra?"--sb-border-hover-color: "+Ra+";":""}\n\n        ${J("border-normal-width",za,Ua,Pa,Da,Ia)}\n        ${J("border-hover-width",$a,Oa,Aa,Wa,Ga)}\n        ${J("border-normal-radius",ja,Za,qa,Ka,Ya)}\n        ${J("border-hover-radius",Xa,Qa,ei,Ja,ti)}\n\n        ${te("border-normal-box-shadow",ai,ii,oi,ni,ri,li,"px")}\n        ${te("border-hover-box-shadow",si,mi,di,ci,pi,gi,"px")}\n\n        ${ui?"--sb-block-bg-color: "+ui+";":""}\n\n        ${Q("block-margin",ua,ya,ba,ha,ra,sa,ma,la,da,pa,ga,ca,va)}\n\n        ${Q("block-padding",Ba,Ha,Na,_a,Ta,fa,La,Sa,Ma,Ea,ka,xa,Va)}\n\n        ${Q("featured-title-margin",tt,it,ot,at,Ke,qe,Ye,Ze,Xe,Qe,et,Je,nt)}\n\n        ${Q("side-post-title-margin",qt,Xt,Jt,Yt,$t,Ot,At,Wt,Gt,Kt,Zt,jt,Qt)}\n\n        ${ui?"--sb-block-bg-color: "+ui+";":""}\n\n\t\t${M?"--sb-header-color: "+M+";":""}\n\t\t${k?"--sb-header-short-border-color: "+k+";":""}\n\t\t${H?"--sb-header-long-border-color: "+H+";":""}\n\n\t\t${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n\t\t${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft)}\n\n        ${ie("side-post-title-typo",ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e)}\n\n        ${ie("post-metas-typo",Lt,Mt,xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt,Dt)}\n\n\t\t${ea?"--sb-category-background-color: "+ea+";":""}\n\t\t${ta?"--sb-category-text-color: "+ta+";":""}\n\t\t${aa?"--sb-category-background-hover-color: "+aa+";":""}\n\t\t${ia?"--sb-category-text-hover-color: "+ia+";":""}\n\t\t${oa?"--sb-title-color: "+oa+";":""}\n\n\t\t${na?"--sb-module-height: "+na+"px;":""}\n\t\t${It?"--sb-image-border-radius: "+It+"px;":""}\n\t}`;o({sbStyle:hi.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const yi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),bi={per_page:4,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};yi&&yi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),bi[t]=(a=e.value,b&&b[a]?b[a]:[])}));const vi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,bi)),[p,h,b,ve,Te,bi,y]),Ti=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Si=[];Ti&&Ti.map(((e,t)=>{Si.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const fi=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Li=l()("sb-block-title",`${L}`,X(N,w,z,D)),Mi=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title ":"mid"==t?"sb-mid-title":"",c="featured"==t?Oe:Le,p="featured"==t?Ae:Me,u="featured"==t?Ge:xe,h="featured"==t?We||"large":"mid"==t?Se||"large":fe||"large",y="featured"==t?je:Ee;return(0,i.createElement)("div",{className:"sb-thumb-inner sb-post-thumb",key:e.id},(0,i.createElement)("a",{href:e.link},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,a)=>((e,t,a)=>{if(a&&0!=t)return;const o=fi&&fi.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,a,"featured"!=t)))),(0,i.createElement)("div",{className:"sb-title-container"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Ut&&`${e.relative_dates.created}`,"default"==Ut&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Ut&&(0,ce.dateI18n)(Pt,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)))))},xi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),Ei=()=>{const e=[];return null==xi||xi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),rt&&"Default"!=rt&&(0,i.createElement)(xo,{family:rt,weight:lt.replace("italic","i")}),ke&&"Default"!=ke&&(0,i.createElement)(xo,{family:ke,weight:Be.replace("italic","i")}),Lt&&"Default"!=Lt&&(0,i.createElement)(xo,{family:Lt,weight:Mt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:"Style 1"},{value:"sb-title-style2",label:"Style 2"},{value:"sb-title-style3",label:"Style 3"},{value:"sb-title-style4",label:"Style 4"}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:Ei(),value:We,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Oe,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ae,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:je,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Large Image Size","smart-blocks"),options:Ei(),value:Se,onChange:e=>o({largeSideImageSize:e})}),(0,i.createElement)(_,{label:(0,g.__)("Small Image Size","smart-blocks"),options:Ei(),value:fe,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Le,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Me,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:xe,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ee,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:It,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:Ut,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==Ut&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:Pt,onChange:e=>o({customDateFormat:e})}),(0,i.createElement)(E,{label:(0,g.__)("Module Height(px)","smart-blocks"),value:na,setValue:e=>o({moduleHeight:e}),min:300,max:1e3})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({titleColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:rt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:lt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:st,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:mt,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:dt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:ct,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:pt,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:gt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:ut,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ht,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:yt,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:bt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:vt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:Tt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:St,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:ft,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:tt,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Xe,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:Ke,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:at,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Je,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ze,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:it,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:Qe,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:qe,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:ot,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:et,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:Ye,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:nt,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Side Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ke,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:Be,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:_e,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:He,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:Ne,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ve,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ce,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:we,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:Fe,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Re,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:ze,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:De,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ue,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Pe,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Ie,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:$e,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:qt,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:Gt,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:$t,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:Yt,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:jt,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:Wt,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:Xt,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:Kt,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:Ot,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:Jt,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:Zt,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:At,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:Qt,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Lt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Mt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:xt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Et,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:kt,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:Bt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:_t,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ht,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Nt,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Vt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Ct,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:wt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ft,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Rt,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:zt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Dt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ua,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:da,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ra,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ha,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:ca,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:la,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:ya,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:pa,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:sa,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:ba,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:ga,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ma,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:va,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ba,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Ma,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ta,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:_a,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:xa,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Sa,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Ha,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ea,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:fa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Na,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:ka,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:La,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Va,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Ca,setValue:e=>o({borderNormal:e})}),Ca&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Fa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:za,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Da,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ua,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Pa,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Ia,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ja,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:Ka,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Za,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:qa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Ya,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ai,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ii,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:oi,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:ni,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ri,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:li,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:wa,setValue:e=>o({borderHover:e})}),wa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Ra,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:$a,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:Wa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Oa,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Aa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ga,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Xa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ja,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Qa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:ei,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ti,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:si,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:mi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:di,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:ci,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:pi,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:gi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ui,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-tile-block-wrap"}),(0,i.createElement)("h2",{className:Li},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-tile-block sb-clearfix style1 space-10"},vi&&vi.length>0&&(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-thumb sb-left-col"},Mi(vi[Object.keys(vi)[0]],"featured")),(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-parent sb-right-col"},vi&&vi.length>1&&(0,i.createElement)("div",{className:"sb-width-100 sb-height-50 sb-thumb"},Mi(vi[Object.keys(vi)[1]],"mid")),vi&&vi.length>2&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-width-50 sb-height-50 sb-thumb"},Mi(vi[Object.keys(vi)[2]],"")),(0,i.createElement)("div",{className:"sb-width-50 sb-height-50 sb-thumb"},vi.length>3&&Mi(vi[Object.keys(vi)[3]],""))))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/tile-module-two",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 98.62"},(0,i.createElement)("path",{d:"M0 0h102.02v98.62H0zm105.42 51.01h47.61v47.61h-47.61zm51.01 0h47.61v47.61h-47.61z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M6.8 81.61h78.21v3.4H6.8z",fill:"#fff"}),(0,i.createElement)("path",{d:"M6.8 88.42h27.21v3.4H6.8z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M112.22 81.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M112.22 88.42h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M163.23 81.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M163.23 88.42h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M105.42 0h47.61v47.61h-47.61zm51.01 0h47.61v47.61h-47.61z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M112.22 30.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M112.22 37.41h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}),(0,i.createElement)("path",{d:"M163.23 30.61h34.01v3.4h-34.01z",fill:"#fff"}),(0,i.createElement)("path",{d:"M163.23 37.41h13.6v3.4h-13.6z",fill:"#fff",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("Tile Module 2","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,sideImageSize:Se,sidePostAuthor:fe,sidePostDate:Le,sidePostComments:Me,sidePostCategory:xe,sideTypographyFamily:Ee,sideTypographyWeight:ke,sideTypographyTextTransform:Be,sideTypographyTextDecoration:_e,sideTypographyFontSizeSm:He,sideTypographyFontSizeMd:Ne,sideTypographyFontSize:Ve,sideTypographyFontSizeUnit:Ce,sideTypographyLetterSpacingSm:we,sideTypographyLetterSpacingMd:Fe,sideTypographyLetterSpacing:Re,sideTypographyLetterSpacingUnit:ze,sideTypographyLineHeightSm:De,sideTypographyLineHeightMd:Ue,sideTypographyLineHeight:Pe,sideTypographyLineHeightUnit:Ie,featuredImageSize:$e,featuredPostAuthor:We,featuredPostDate:Oe,featuredPostComments:Ae,featuredPostCategory:Ge,featuredTitleMarginSmTop:je,featuredTitleMarginSmLeft:Ke,featuredTitleMarginSmRight:Ze,featuredTitleMarginSmBottom:qe,featuredTitleMarginMdTop:Ye,featuredTitleMarginMdLeft:Xe,featuredTitleMarginMdRight:Je,featuredTitleMarginMdBottom:Qe,featuredTitleMarginTop:et,featuredTitleMarginLeft:tt,featuredTitleMarginRight:at,featuredTitleMarginBottom:it,featuredTitleMarginUnit:ot,featuredTypographyFamily:nt,featuredTypographyWeight:rt,featuredTypographyTextTransform:lt,featuredTypographyTextDecoration:st,featuredTypographyFontSizeSm:mt,featuredTypographyFontSizeMd:dt,featuredTypographyFontSize:ct,featuredTypographyFontSizeUnit:pt,featuredTypographyLetterSpacingSm:gt,featuredTypographyLetterSpacingMd:ut,featuredTypographyLetterSpacing:ht,featuredTypographyLetterSpacingUnit:yt,featuredTypographyLineHeightSm:bt,featuredTypographyLineHeightMd:vt,featuredTypographyLineHeight:Tt,featuredTypographyLineHeightUnit:St,metasTypographyFamily:ft,metasTypographyWeight:Lt,metasTypographyTextTransform:Mt,metasTypographyTextDecoration:xt,metasTypographyFontSizeSm:Et,metasTypographyFontSizeMd:kt,metasTypographyFontSize:Bt,metasTypographyFontSizeUnit:_t,metasTypographyLetterSpacingSm:Ht,metasTypographyLetterSpacingMd:Nt,metasTypographyLetterSpacing:Vt,metasTypographyLetterSpacingUnit:Ct,metasTypographyLineHeightSm:wt,metasTypographyLineHeightMd:Ft,metasTypographyLineHeight:Rt,metasTypographyLineHeightUnit:zt,dateFormat:Dt,customDateFormat:Ut,imageBorderRadius:Pt,sideTitleMarginSmTop:It,sideTitleMarginSmLeft:$t,sideTitleMarginSmRight:Wt,sideTitleMarginSmBottom:Ot,sideTitleMarginMdTop:At,sideTitleMarginMdLeft:Gt,sideTitleMarginMdRight:jt,sideTitleMarginMdBottom:Kt,sideTitleMarginTop:Zt,sideTitleMarginLeft:qt,sideTitleMarginRight:Yt,sideTitleMarginBottom:Xt,sideTitleMarginUnit:Jt,categoryBackgroundColor:Qt,categoryTextColor:ea,categoryBackgroundHoverColor:ta,categoryTextHoverColor:aa,titleColor:ia,moduleHeight:oa,blockMarginSmTop:na,blockMarginSmLeft:ra,blockMarginSmRight:la,blockMarginSmBottom:sa,blockMarginMdTop:ma,blockMarginMdLeft:da,blockMarginMdRight:ca,blockMarginMdBottom:pa,blockMarginTop:ga,blockMarginLeft:ua,blockMarginRight:ha,blockMarginBottom:ya,blockMarginUnit:ba,blockPaddingSmTop:va,blockPaddingSmLeft:Ta,blockPaddingSmRight:Sa,blockPaddingSmBottom:fa,blockPaddingMdTop:La,blockPaddingMdLeft:Ma,blockPaddingMdRight:xa,blockPaddingMdBottom:Ea,blockPaddingTop:ka,blockPaddingLeft:Ba,blockPaddingRight:_a,blockPaddingBottom:Ha,blockPaddingUnit:Na,borderNormal:Va,borderHover:Ca,borderNormalColor:wa,borderHoverColor:Fa,borderNormalWidthTop:Ra,borderNormalWidthLeft:za,borderNormalWidthRight:Da,borderNormalWidthBottom:Ua,borderNormalWidthUnit:Pa,borderHoverWidthTop:Ia,borderHoverWidthLeft:$a,borderHoverWidthRight:Wa,borderHoverWidthBottom:Oa,borderHoverWidthUnit:Aa,borderNormalRadiusTop:Ga,borderNormalRadiusLeft:ja,borderNormalRadiusRight:Ka,borderNormalRadiusBottom:Za,borderNormalRadiusUnit:qa,borderHoverRadiusTop:Ya,borderHoverRadiusLeft:Xa,borderHoverRadiusRight:Ja,borderHoverRadiusBottom:Qa,borderHoverRadiusUnit:ei,borderNormalBoxShadowHorizontal:ti,borderNormalBoxShadowVertical:ai,borderNormalBoxShadowBlur:ii,borderNormalBoxShadowSpread:oi,borderNormalBoxShadowColor:ni,borderNormalBoxShadowInset:ri,borderHoverBoxShadowHorizontal:li,borderHoverBoxShadowVertical:si,borderHoverBoxShadowBlur:mi,borderHoverBoxShadowSpread:di,borderHoverBoxShadowColor:ci,borderHoverBoxShadowInset:pi,blockBgColor:gi}=a;o({id:(0,d.useBlockProps)().id});const ui=`#${s} {\n        ${Va?"--sb-border-normal: "+Va+";":""}\n        ${Ca?"--sb-border-hover: "+Va+";":""}\n        ${wa?"--sb-border-normal-color: "+wa+";":""}\n        ${Fa?"--sb-border-hover-color: "+Fa+";":""}\n\n        ${J("border-normal-width",Ra,Da,Ua,za,Pa)}\n        ${J("border-hover-width",Ia,Wa,Oa,$a,Aa)}\n        ${J("border-normal-radius",Ga,Ka,Za,ja,qa)}\n        ${J("border-hover-radius",Ya,Ja,Qa,Xa,ei)}\n\n        ${te("border-normal-box-shadow",ti,ai,ii,oi,ni,ri,"px")}\n        ${te("border-hover-box-shadow",li,si,mi,di,ci,pi,"px")}\n\n        ${gi?"--sb-block-bg-color: "+gi+";":""}\n\n        ${Q("block-margin",ga,ha,ya,ua,na,la,sa,ra,ma,ca,pa,da,ba)}\n\n        ${Q("block-padding",ka,_a,Ha,Ba,va,Sa,fa,Ta,La,xa,Ea,Ma,Na)}\n\n        ${Q("featured-title-margin",et,at,it,tt,je,Ze,qe,Ke,Ye,Je,Qe,Xe,ot)}\n\n        ${Q("side-post-title-margin",Zt,Yt,Xt,qt,It,Wt,Ot,$t,At,jt,Kt,Gt,Jt)}\n\n        ${gi?"--sb-block-bg-color: "+gi+";":""}\n\n        ${M?"--sb-header-color: "+M+";":""}\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("featured-title-typo",nt,rt,lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St)}\n\n        ${ie("side-post-title-typo",Ee,ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie)}\n\n        ${ie("post-metas-typo",ft,Lt,Mt,xt,Et,kt,Bt,_t,Ht,Nt,Vt,Ct,wt,Ft,Rt,zt)}\n\n        ${Qt?"--sb-category-background-color: "+Qt+";":""}\n        ${ea?"--sb-category-text-color: "+ea+";":""}\n        ${ta?"--sb-category-background-hover-color: "+ta+";":""}\n        ${aa?"--sb-category-text-hover-color: "+aa+";":""}\n        ${ia?"--sb-title-color: "+ia+";":""}\n\n        ${oa?"--sb-module-height: "+oa+"px;":""}\n        ${Pt?"--sb-image-border-radius: "+Pt+"px;":""}\n    }`;o({sbStyle:ui.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const hi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),yi={per_page:5,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};hi&&hi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),yi[t]=(a=e.value,b&&b[a]?b[a]:[])}));const bi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,yi)),[p,h,b,ve,Te,yi,y]),vi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Ti=[];vi&&vi.map(((e,t)=>{Ti.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Si=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),fi=l()("sb-block-title",`${L}`,X(N,w,z,D)),Li=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d="featured"==t?"sb-large-title "+X(nt,rt,lt,st):X(Ee,ke,Be,_e),c="featured"==t?We:fe,p="featured"==t?Oe:Le,u="featured"==t?Ae:Me,h="featured"==t?$e||"large":Se||"large",y="featured"==t?Ge:xe;return(0,i.createElement)("div",{className:"sb-thumb-inner sb-post-thumb",key:e.id},(0,i.createElement)("a",{href:e.link},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[h]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[h].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})),y&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,a)=>((e,t,a)=>{if(a&&0!=t)return;const o=Si&&Si.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,a,"featured"!=t)))),(0,i.createElement)("div",{className:"sb-title-container"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("h3",{className:`sb-post-title ${d}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(c||p||u)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&c&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&p&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Dt&&`${e.relative_dates.created}`,"default"==Dt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Dt&&(0,ce.dateI18n)(Ut,e.date_gmt)),u&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)))))},Mi=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),xi=()=>{const e=[];return null==Mi||Mi.forEach((t=>{e.push({value:t.slug,label:t.name})})),e};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),nt&&"Default"!=nt&&(0,i.createElement)(xo,{family:nt,weight:rt.replace("italic","i")}),Ee&&"Default"!=Ee&&(0,i.createElement)(xo,{family:Ee,weight:ke.replace("italic","i")}),ft&&"Default"!=ft&&(0,i.createElement)(xo,{family:ft,weight:Lt.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Featured Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:xi(),value:$e,onChange:e=>o({featuredImageSize:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:We,onChange:e=>o({featuredPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Oe,onChange:e=>o({featuredPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Ae,onChange:e=>o({featuredPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Ge,onChange:e=>o({featuredPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Side Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:xi(),value:Se,onChange:e=>o({sideImageSize:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:fe,onChange:e=>o({sidePostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Le,onChange:e=>o({sidePostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Me,onChange:e=>o({sidePostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:xe,onChange:e=>o({sidePostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:Pt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:Dt,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==Dt&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:Ut,onChange:e=>o({customDateFormat:e})}),(0,i.createElement)(E,{label:(0,g.__)("Module Height(px)","smart-blocks"),value:oa,setValue:e=>o({moduleHeight:e}),min:300,max:1e3})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Qt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ta,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:aa,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:ia,setValue:e=>o({titleColor:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Featured Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:nt,setValueFamily:e=>o({featuredTypographyFamily:e}),valueWeight:rt,setValueWeight:e=>o({featuredTypographyWeight:e}),valueTextTransform:lt,setValueTextTransform:e=>o({featuredTypographyTextTransform:e}),valueTextDecoration:st,setValueTextDecoration:e=>o({featuredTypographyTextDecoration:e}),valueFontSizeSm:mt,setValueFontSizeSm:e=>o({featuredTypographyFontSizeSm:e}),valueFontSizeMd:dt,setValueFontSizeMd:e=>o({featuredTypographyFontSizeMd:e}),valueFontSize:ct,setValueFontSize:e=>o({featuredTypographyFontSize:e}),valueFontSizeUnit:pt,setValueFontSizeUnit:e=>o({featuredTypographyFontSizeUnit:e}),valueLetterSpacingSm:gt,setValueLetterSpacingSm:e=>o({featuredTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ut,setValueLetterSpacingMd:e=>o({featuredTypographyLetterSpacingMd:e}),valueLetterSpacing:ht,setValueLetterSpacing:e=>o({featuredTypographyLetterSpacing:e}),valueLetterSpacingUnit:yt,setValueLetterSpacingUnit:e=>o({featuredTypographyLetterSpacingUnit:e}),valueLineHeightSm:bt,setValueLineHeightSm:e=>o({featuredTypographyLineHeightSm:e}),valueLineHeightMd:vt,setValueLineHeightMd:e=>o({featuredTypographyLineHeightMd:e}),valueLineHeight:Tt,setValueLineHeight:e=>o({featuredTypographyLineHeight:e}),valueLineHeightUnit:St,setValueLineHeightUnit:e=>o({featuredTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:et,setDimensionTop:e=>o({featuredTitleMarginTop:e}),dimensionMdTop:Ye,setDimensionMdTop:e=>o({featuredTitleMarginMdTop:e}),dimensionSmTop:je,setDimensionSmTop:e=>o({featuredTitleMarginSmTop:e}),dimensionLeft:tt,setDimensionLeft:e=>o({featuredTitleMarginLeft:e}),dimensionMdLeft:Xe,setDimensionMdLeft:e=>o({featuredTitleMarginMdLeft:e}),dimensionSmLeft:Ke,setDimensionSmLeft:e=>o({featuredTitleMarginSmLeft:e}),dimensionRight:at,setDimensionRight:e=>o({featuredTitleMarginRight:e}),dimensionMdRight:Je,setDimensionMdRight:e=>o({featuredTitleMarginMdRight:e}),dimensionSmRight:Ze,setDimensionSmRight:e=>o({featuredTitleMarginSmRight:e}),dimensionBottom:it,setDimensionBottom:e=>o({featuredTitleMarginBottom:e}),dimensionMdBottom:Qe,setDimensionMdBottom:e=>o({featuredTitleMarginMdBottom:e}),dimensionSmBottom:qe,setDimensionSmBottom:e=>o({featuredTitleMarginSmBottom:e}),unit:ot,setUnit:e=>o({featuredTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Side Post","smart-blocks")},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Ee,setValueFamily:e=>o({sideTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({sideTypographyWeight:e}),valueTextTransform:Be,setValueTextTransform:e=>o({sideTypographyTextTransform:e}),valueTextDecoration:_e,setValueTextDecoration:e=>o({sideTypographyTextDecoration:e}),valueFontSizeSm:He,setValueFontSizeSm:e=>o({sideTypographyFontSizeSm:e}),valueFontSizeMd:Ne,setValueFontSizeMd:e=>o({sideTypographyFontSizeMd:e}),valueFontSize:Ve,setValueFontSize:e=>o({sideTypographyFontSize:e}),valueFontSizeUnit:Ce,setValueFontSizeUnit:e=>o({sideTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({sideTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Fe,setValueLetterSpacingMd:e=>o({sideTypographyLetterSpacingMd:e}),valueLetterSpacing:Re,setValueLetterSpacing:e=>o({sideTypographyLetterSpacing:e}),valueLetterSpacingUnit:ze,setValueLetterSpacingUnit:e=>o({sideTypographyLetterSpacingUnit:e}),valueLineHeightSm:De,setValueLineHeightSm:e=>o({sideTypographyLineHeightSm:e}),valueLineHeightMd:Ue,setValueLineHeightMd:e=>o({sideTypographyLineHeightMd:e}),valueLineHeight:Pe,setValueLineHeight:e=>o({sideTypographyLineHeight:e}),valueLineHeightUnit:Ie,setValueLineHeightUnit:e=>o({sideTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:Zt,setDimensionTop:e=>o({sideTitleMarginTop:e}),dimensionMdTop:At,setDimensionMdTop:e=>o({sideTitleMarginMdTop:e}),dimensionSmTop:It,setDimensionSmTop:e=>o({sideTitleMarginSmTop:e}),dimensionLeft:qt,setDimensionLeft:e=>o({sideTitleMarginLeft:e}),dimensionMdLeft:Gt,setDimensionMdLeft:e=>o({sideTitleMarginMdLeft:e}),dimensionSmLeft:$t,setDimensionSmLeft:e=>o({sideTitleMarginSmLeft:e}),dimensionRight:Yt,setDimensionRight:e=>o({sideTitleMarginRight:e}),dimensionMdRight:jt,setDimensionMdRight:e=>o({sideTitleMarginMdRight:e}),dimensionSmRight:Wt,setDimensionSmRight:e=>o({sideTitleMarginSmRight:e}),dimensionBottom:Xt,setDimensionBottom:e=>o({sideTitleMarginBottom:e}),dimensionMdBottom:Kt,setDimensionMdBottom:e=>o({sideTitleMarginMdBottom:e}),dimensionSmBottom:Ot,setDimensionSmBottom:e=>o({sideTitleMarginSmBottom:e}),unit:Jt,setUnit:e=>o({sideTitleMarginUnit:e}),responsive:!0})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ft,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Lt,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Mt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:xt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Et,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:kt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Bt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:_t,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ht,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Nt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Vt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ct,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:wt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Ft,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:Rt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:zt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:ga,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:ma,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:na,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:ua,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:da,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ra,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:ha,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:ca,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:la,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:ya,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:pa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:sa,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:ba,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:ka,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:La,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:va,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Ba,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ma,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ta,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:_a,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:xa,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Sa,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ha,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Ea,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:fa,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Na,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Va,setValue:e=>o({borderNormal:e})}),Va&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:wa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Ra,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:za,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Da,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:Ua,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Pa,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Ga,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ja,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ka,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Za,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:qa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ti,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:ai,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ii,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:oi,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:ni,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ri,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Ca,setValue:e=>o({borderHover:e})}),Ca&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Fa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Ia,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:$a,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Wa,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Oa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Aa,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Ya,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Xa,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ja,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Qa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ei,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:li,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:si,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:mi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:di,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:ci,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:pi,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:gi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-tile-block-wrap"}),(0,i.createElement)("h2",{className:fi},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-tile-block sb-clearfix style2 space-10"},bi&&bi.length>0&&(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-thumb sb-left-col"},Li(bi[Object.keys(bi)[0]],"featured")),(0,i.createElement)("div",{className:"sb-width-50 sb-height-100 sb-parent sb-right-col"},bi&&bi.length>1&&(0,i.createElement)(i.Fragment,null,function(e,t){let a=[];for(;++t<e.length;)a.push((0,i.createElement)("div",{className:"sb-width-50 sb-height-50 sb-thumb"},Li(bi[Object.keys(bi)[t]],"side")));return a}(bi,0)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/tile-module-three",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200.64 71.41"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h47.61v71.41H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 54.41h34.01v3.4H6.8z"}),(0,i.createElement)("path",{fill:"#fff",d:"M6.8 61.21h13.6v3.4H6.8z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M51.01 0h47.61v71.41H51.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M57.81 54.41h34.01v3.4H57.81z"}),(0,i.createElement)("path",{fill:"#fff",d:"M57.81 61.21h13.6v3.4h-13.6z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M102.02 0h47.61v71.41h-47.61z"}),(0,i.createElement)("path",{fill:"#fff",d:"M108.82 54.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M108.82 61.21h13.6v3.4h-13.6z",opacity:".68"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M153.03 0h47.61v71.41h-47.61z"}),(0,i.createElement)("path",{fill:"#fff",d:"M159.83 54.41h34.01v3.4h-34.01z"}),(0,i.createElement)("path",{fill:"#fff",d:"M159.83 61.21h13.6v3.4h-13.6z",opacity:".68"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("Tile Module 3","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,headerTitle:v,headerStyle:L,headerColor:M,headerShortBorderColor:k,headerLongBorderColor:H,headerTitleTypographyFamily:N,headerTitleTypographyWeight:w,headerTitleTypographyTextTransform:z,headerTitleTypographyTextDecoration:D,headerTitleTypographyFontSizeSm:U,headerTitleTypographyFontSizeMd:P,headerTitleTypographyFontSize:I,headerTitleTypographyFontSizeUnit:$,headerTitleTypographyLetterSpacingSm:W,headerTitleTypographyLetterSpacingMd:O,headerTitleTypographyLetterSpacing:A,headerTitleTypographyLetterSpacingUnit:G,headerTitleTypographyLineHeightSm:j,headerTitleTypographyLineHeightMd:K,headerTitleTypographyLineHeight:Z,headerTitleTypographyLineHeightUnit:q,categoryTypographyFamily:Y,categoryTypographyWeight:ee,categoryTypographyTextTransform:ae,categoryTypographyTextDecoration:oe,categoryTypographyFontSizeSm:ne,categoryTypographyFontSizeMd:re,categoryTypographyFontSize:le,categoryTypographyFontSizeUnit:se,categoryTypographyLetterSpacingSm:me,categoryTypographyLetterSpacingMd:de,categoryTypographyLetterSpacing:pe,categoryTypographyLetterSpacingUnit:ge,categoryTypographyLineHeightSm:ue,categoryTypographyLineHeightMd:he,categoryTypographyLineHeight:ye,categoryTypographyLineHeightUnit:be,postsPostType:ve,offset:Te,postImageSize:Se,postPostAuthor:fe,postPostDate:Le,postPostComments:Me,postPostCategory:xe,postTypographyFamily:Ee,postTypographyWeight:ke,postTypographyTextTransform:Be,postTypographyTextDecoration:_e,postTypographyFontSizeSm:He,postTypographyFontSizeMd:Ne,postTypographyFontSize:Ve,postTypographyFontSizeUnit:Ce,postTypographyLetterSpacingSm:we,postTypographyLetterSpacingMd:Fe,postTypographyLetterSpacing:Re,postTypographyLetterSpacingUnit:ze,postTypographyLineHeightSm:De,postTypographyLineHeightMd:Ue,postTypographyLineHeight:Pe,postTypographyLineHeightUnit:Ie,metasTypographyFamily:$e,metasTypographyWeight:We,metasTypographyTextTransform:Oe,metasTypographyTextDecoration:Ae,metasTypographyFontSizeSm:Ge,metasTypographyFontSizeMd:je,metasTypographyFontSize:Ke,metasTypographyFontSizeUnit:Ze,metasTypographyLetterSpacingSm:qe,metasTypographyLetterSpacingMd:Ye,metasTypographyLetterSpacing:Xe,metasTypographyLetterSpacingUnit:Je,metasTypographyLineHeightSm:Qe,metasTypographyLineHeightMd:et,metasTypographyLineHeight:tt,metasTypographyLineHeightUnit:at,dateFormat:it,customDateFormat:ot,imageBorderRadius:nt,postTitleMarginSmTop:rt,postTitleMarginSmLeft:lt,postTitleMarginSmRight:st,postTitleMarginSmBottom:mt,postTitleMarginMdTop:dt,postTitleMarginMdLeft:ct,postTitleMarginMdRight:pt,postTitleMarginMdBottom:gt,postTitleMarginTop:ut,postTitleMarginLeft:ht,postTitleMarginRight:yt,postTitleMarginBottom:bt,postTitleMarginUnit:vt,categoryBackgroundColor:Tt,categoryTextColor:St,categoryBackgroundHoverColor:ft,categoryTextHoverColor:Lt,titleColor:Mt,moduleHeight:xt,blockMarginSmTop:Et,blockMarginSmLeft:kt,blockMarginSmRight:Bt,blockMarginSmBottom:_t,blockMarginMdTop:Ht,blockMarginMdLeft:Nt,blockMarginMdRight:Vt,blockMarginMdBottom:Ct,blockMarginTop:wt,blockMarginLeft:Ft,blockMarginRight:Rt,blockMarginBottom:zt,blockMarginUnit:Dt,blockPaddingSmTop:Ut,blockPaddingSmLeft:Pt,blockPaddingSmRight:It,blockPaddingSmBottom:$t,blockPaddingMdTop:Wt,blockPaddingMdLeft:Ot,blockPaddingMdRight:At,blockPaddingMdBottom:Gt,blockPaddingTop:jt,blockPaddingLeft:Kt,blockPaddingRight:Zt,blockPaddingBottom:qt,blockPaddingUnit:Yt,borderNormal:Xt,borderHover:Jt,borderNormalColor:Qt,borderHoverColor:ea,borderNormalWidthTop:ta,borderNormalWidthLeft:aa,borderNormalWidthRight:ia,borderNormalWidthBottom:oa,borderNormalWidthUnit:na,borderHoverWidthTop:ra,borderHoverWidthLeft:la,borderHoverWidthRight:sa,borderHoverWidthBottom:ma,borderHoverWidthUnit:da,borderNormalRadiusTop:ca,borderNormalRadiusLeft:pa,borderNormalRadiusRight:ga,borderNormalRadiusBottom:ua,borderNormalRadiusUnit:ha,borderHoverRadiusTop:ya,borderHoverRadiusLeft:ba,borderHoverRadiusRight:va,borderHoverRadiusBottom:Ta,borderHoverRadiusUnit:Sa,borderNormalBoxShadowHorizontal:fa,borderNormalBoxShadowVertical:La,borderNormalBoxShadowBlur:Ma,borderNormalBoxShadowSpread:xa,borderNormalBoxShadowColor:Ea,borderNormalBoxShadowInset:ka,borderHoverBoxShadowHorizontal:Ba,borderHoverBoxShadowVertical:_a,borderHoverBoxShadowBlur:Ha,borderHoverBoxShadowSpread:Na,borderHoverBoxShadowColor:Va,borderHoverBoxShadowInset:Ca,blockBgColor:wa}=a;o({id:(0,d.useBlockProps)().id});const Fa=`#${s} {\n        ${Xt?"--sb-border-normal: "+Xt+";":""}\n        ${Jt?"--sb-border-hover: "+Xt+";":""}\n        ${Qt?"--sb-border-normal-color: "+Qt+";":""}\n        ${ea?"--sb-border-hover-color: "+ea+";":""}\n\n        ${J("border-normal-width",ta,ia,oa,aa,na)}\n        ${J("border-hover-width",ra,sa,ma,la,da)}\n        ${J("border-normal-radius",ca,ga,ua,pa,ha)}\n        ${J("border-hover-radius",ya,va,Ta,ba,Sa)}\n\n        ${te("border-normal-box-shadow",fa,La,Ma,xa,Ea,ka,"px")}\n        ${te("border-hover-box-shadow",Ba,_a,Ha,Na,Va,Ca,"px")}\n\n        ${wa?"--sb-block-bg-color: "+wa+";":""}\n\n        ${Q("block-margin",wt,Rt,zt,Ft,Et,Bt,_t,kt,Ht,Vt,Ct,Nt,Dt)}\n\n        ${Q("block-padding",jt,Zt,qt,Kt,Ut,It,$t,Pt,Wt,At,Gt,Ot,Yt)}\n\n        ${Q("listing-post-title-margin",ut,yt,bt,ht,rt,st,mt,lt,dt,pt,gt,ct,vt)}\n\n        ${wa?"--sb-block-bg-color: "+wa+";":""}\n\n        ${M?"--sb-header-color: "+M+";":""}\n\n        ${k?"--sb-header-short-border-color: "+k+";":""}\n        ${H?"--sb-header-long-border-color: "+H+";":""}\n\n        ${ie("header-typo",N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z,q)}\n\n        ${ie("category-typo",Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be)}\n\n        ${ie("listing-post-title-typo",Ee,ke,Be,_e,He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie)}\n\n        ${ie("post-metas-typo",$e,We,Oe,Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at)}\n\n        ${Tt?"--sb-category-background-color: "+Tt+";":""}\n        ${St?"--sb-category-text-color: "+St+";":""}\n        ${ft?"--sb-category-background-hover-color: "+ft+";":""}\n        ${Lt?"--sb-category-text-hover-color: "+Lt+";":""}\n        ${Mt?"--sb-title-color: "+Mt+";":""}\n\n        ${xt?"--sb-module-height: "+xt+"px;":""}\n        ${nt?"--sb-image-border-radius: "+nt+"px;":""}\n    }`;o({sbStyle:Fa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ra=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==ve&&t.push({value:e.slug,label:e.name})})),t}),[ve]),za={per_page:4,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0),exclude:y};Ra&&Ra.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),za[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Da=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,za)),[p,h,b,ve,Te,za,y]),Ua=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",ve,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(Te||0)})),[p,h,b,ve,Te,y]);var Pa=[];Ua&&Ua.map(((e,t)=>{Pa.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Ia=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),$a=l()("sb-block-title",`${L}`,X(N,w,z,D)),Wa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),N&&"Default"!=N&&(0,i.createElement)(xo,{family:N,weight:w.replace("italic","i")}),Y&&"Default"!=Y&&(0,i.createElement)(xo,{family:Y,weight:ee.replace("italic","i")}),Ee&&"Default"!=Ee&&(0,i.createElement)(xo,{family:Ee,weight:ke.replace("italic","i")}),$e&&"Default"!=$e&&(0,i.createElement)(xo,{family:$e,weight:We.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:L,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Wa||Wa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Se,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:fe,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Le,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Me,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:xe,onChange:e=>o({postPostCategory:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:nt,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:it,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==it&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:ot,onChange:e=>o({customDateFormat:e})}),(0,i.createElement)(E,{label:(0,g.__)("Module Height(px)","smart-blocks"),value:xt,setValue:e=>o({moduleHeight:e}),min:300,max:1e3})))||"style"===n&&(0,i.createElement)(i.Fragment,null,v&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:M,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:k,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:N,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:w,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:z,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:D,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:U,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:P,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:I,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:$,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:W,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:O,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:A,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:G,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:j,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:K,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Z,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:q,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Y,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:ee,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ae,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:oe,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:ne,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:re,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:le,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:se,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:me,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:de,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:pe,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:ge,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ue,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:he,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ye,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:be,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Tt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:St,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ft,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Lt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Mt,setValue:e=>o({titleColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Ee,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:ke,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:Be,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:_e,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:He,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Ne,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Ve,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:Ce,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:we,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Fe,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:Re,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:ze,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:De,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:Ue,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Pe,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:Ie,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:ut,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:dt,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:rt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:ht,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:ct,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:lt,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:yt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:pt,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:st,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:bt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:gt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:mt,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:vt,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:$e,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:We,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:Oe,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Ae,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Ge,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:je,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ke,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:Ze,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:qe,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ye,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:Xe,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Je,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Qe,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:et,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:tt,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:at,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:wt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Ht,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Et,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Ft,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Nt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:kt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Rt,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Vt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Bt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:zt,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Ct,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:_t,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Dt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:jt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Wt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ut,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Kt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ot,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Pt,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Zt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:At,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:It,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:qt,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Gt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:$t,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Yt,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Xt,setValue:e=>o({borderNormal:e})}),Xt&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Qt,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ta,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:aa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ia,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:oa,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:na,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ca,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:pa,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ga,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ua,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ha,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:fa,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:La,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ma,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:xa,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Ea,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ka,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Jt,setValue:e=>o({borderHover:e})}),Jt&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ea,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ra,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:la,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:sa,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ma,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:da,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ya,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:va,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Sa,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ba,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:_a,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ha,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Na,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Va,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Ca,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:wa,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-tile-block-wrap"}),(0,i.createElement)("h2",{className:$a},(0,i.createElement)(d.RichText,{tagName:"span",value:v,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)("div",{className:"sb-tile-block sb-clearfix style3 space-10"},Da&&Da.map(((e,t)=>(e=>{var t,a,o,n;const r=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],l=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],s=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],m=fe,d=Le,c=Me,p=Se||"large",u=xe;return(0,i.createElement)("div",{className:"sb-width-25 sb-height-100 sb-thumb",key:e.id},(0,i.createElement)("div",{className:"sb-thumb-inner sb-post-thumb"},(0,i.createElement)("a",{href:e.link},r&&r.media_details&&(0,i.createElement)("img",{src:null!==(t=r.media_details.sizes)&&void 0!==t&&t[p]?null===(a=r.media_details.sizes)||void 0===a?void 0:a[p].source_url:null!==(o=r.media_details.sizes)&&void 0!==o&&o.full?null===(n=r.media_details.sizes)||void 0===n?void 0:n.full.source_url:r.source_url,alt:r.alt_text})),u&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Ia&&Ia.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t)))),(0,i.createElement)("div",{className:"sb-title-container"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("h3",{className:`sb-post-title ${X(Ee,ke,Be,_e)}`},(0,i.createElement)("span",null,e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(m||d||c)&&(0,i.createElement)("div",{className:"sb-post-meta"},l&&m&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),l.name),e.date_gmt&&d&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==it&&`${e.relative_dates.created}`,"default"==it&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==it&&(0,ce.dateI18n)(ot,e.date_gmt)),c&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),s?s.length:0))))))})(e)))))))},save:function(){return null}});var fn=a(568),Ln=a.n(fn);(0,o.registerBlockType)("smart-blocks/carousel-module-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 204.04 112.22"},(0,i.createElement)("path",{d:"M0 0h61.21v47.61H0z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M85.02 105.42h6.8v6.8h-6.8zm13.6 0h6.8v6.8h-6.8zm13.6 0h6.8v6.8h-6.8z",fill:"#8ca7b9"}),(0,i.createElement)("path",{d:"M3.4 64.61h54.41v3.4H3.4zm17-13.6h20.4v6.8H20.4zM6.8 71.41h47.61v3.4H6.8z",fill:"#7e97a7"}),(0,i.createElement)("path",{d:"M20.4 81.61h20.4v3.4H20.4z",fill:"#8ca8b9"}),(0,i.createElement)("path",{d:"M71.41 0h61.21v47.61H71.41z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M74.81 64.61h54.41v3.4H74.81zm17.01-13.6h20.4v6.8h-20.4zm-13.61 20.4h47.61v3.4H78.21z",fill:"#7e97a7"}),(0,i.createElement)("path",{d:"M91.82 81.61h20.4v3.4h-20.4z",fill:"#8ca8b9"}),(0,i.createElement)("path",{d:"M142.83 0h61.21v47.61h-61.21z",fill:"#687e8b"}),(0,i.createElement)("path",{d:"M146.23 64.61h54.41v3.4h-54.41zm17-13.6h20.4v6.8h-20.4zm-13.6 20.4h47.61v3.4h-47.61z",fill:"#7e97a7"}),(0,i.createElement)("path",{d:"M163.23 81.61h20.4v3.4h-20.4z",fill:"#8ca8b9"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("Carousel Module","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)(!0),[s,m]=(0,i.useState)("layout"),{id:p,sbStyle:h,order:y,orderBy:b,excludePosts:v,categories:L,headerTitle:M,headerStyle:k,headerColor:H,headerShortBorderColor:N,headerLongBorderColor:w,headerTitleTypographyFamily:z,headerTitleTypographyWeight:D,headerTitleTypographyTextTransform:U,headerTitleTypographyTextDecoration:P,headerTitleTypographyFontSizeSm:I,headerTitleTypographyFontSizeMd:$,headerTitleTypographyFontSize:W,headerTitleTypographyFontSizeUnit:O,headerTitleTypographyLetterSpacingSm:A,headerTitleTypographyLetterSpacingMd:G,headerTitleTypographyLetterSpacing:j,headerTitleTypographyLetterSpacingUnit:K,headerTitleTypographyLineHeightSm:Z,headerTitleTypographyLineHeightMd:q,headerTitleTypographyLineHeight:Y,headerTitleTypographyLineHeightUnit:ee,categoryTypographyFamily:ae,categoryTypographyWeight:oe,categoryTypographyTextTransform:ne,categoryTypographyTextDecoration:re,categoryTypographyFontSizeSm:le,categoryTypographyFontSizeMd:se,categoryTypographyFontSize:me,categoryTypographyFontSizeUnit:de,categoryTypographyLetterSpacingSm:pe,categoryTypographyLetterSpacingMd:ge,categoryTypographyLetterSpacing:ue,categoryTypographyLetterSpacingUnit:he,categoryTypographyLineHeightSm:ye,categoryTypographyLineHeightMd:be,categoryTypographyLineHeight:ve,categoryTypographyLineHeightUnit:Te,postsPostType:Se,offset:fe,postImageSize:Le,postImageHeight:Me,postPostAuthor:xe,postPostDate:Ee,postPostComments:ke,postPostCategory:Be,postExcerptLength:_e,postTypographyFamily:He,postTypographyWeight:Ne,postTypographyTextTransform:Ve,postTypographyTextDecoration:Ce,postTypographyFontSizeSm:we,postTypographyFontSizeMd:Fe,postTypographyFontSize:Re,postTypographyFontSizeUnit:ze,postTypographyLetterSpacingSm:De,postTypographyLetterSpacingMd:Ue,postTypographyLetterSpacing:Pe,postTypographyLetterSpacingUnit:Ie,postTypographyLineHeightSm:$e,postTypographyLineHeightMd:We,postTypographyLineHeight:Oe,postTypographyLineHeightUnit:Ae,excerptTypographyFamily:Ge,excerptTypographyWeight:je,excerptTypographyTextTransform:Ke,excerptTypographyTextDecoration:Ze,excerptTypographyFontSizeSm:qe,excerptTypographyFontSizeMd:Ye,excerptTypographyFontSize:Xe,excerptTypographyFontSizeUnit:Je,excerptTypographyLetterSpacingSm:Qe,excerptTypographyLetterSpacingMd:et,excerptTypographyLetterSpacing:tt,excerptTypographyLetterSpacingUnit:at,excerptTypographyLineHeightSm:it,excerptTypographyLineHeightMd:ot,excerptTypographyLineHeight:nt,excerptTypographyLineHeightUnit:rt,metasTypographyFamily:lt,metasTypographyWeight:st,metasTypographyTextTransform:mt,metasTypographyTextDecoration:dt,metasTypographyFontSizeSm:ct,metasTypographyFontSizeMd:pt,metasTypographyFontSize:gt,metasTypographyFontSizeUnit:ut,metasTypographyLetterSpacingSm:ht,metasTypographyLetterSpacingMd:yt,metasTypographyLetterSpacing:bt,metasTypographyLetterSpacingUnit:vt,metasTypographyLineHeightSm:Tt,metasTypographyLineHeightMd:St,metasTypographyLineHeight:ft,metasTypographyLineHeightUnit:Lt,dateFormat:Mt,customDateFormat:xt,imageBorderRadius:Et,postTitleMarginSmTop:kt,postTitleMarginSmLeft:Bt,postTitleMarginSmRight:_t,postTitleMarginSmBottom:Ht,postTitleMarginMdTop:Nt,postTitleMarginMdLeft:Vt,postTitleMarginMdRight:Ct,postTitleMarginMdBottom:wt,postTitleMarginTop:Ft,postTitleMarginLeft:Rt,postTitleMarginRight:zt,postTitleMarginBottom:Dt,postTitleMarginUnit:Ut,categoryBackgroundColor:Pt,categoryTextColor:It,categoryBackgroundHoverColor:$t,categoryTextHoverColor:Wt,titleColor:Ot,titleHoverColor:At,postMetasColor:Gt,autoplay:jt,pauseDuration:Kt,noOfSlides:Zt,noOfSlidesSm:qt,noOfSlidesMd:Yt,slidesMargin:Xt,slidesMarginSm:Jt,slidesMarginMd:Qt,slidesStagepadding:ea,slidesStagepaddingSm:ta,slidesStagepaddingMd:aa,nav:ia,dots:oa,noOfPosts:na,excerptColor:ra,navNormalBgColor:la,navIconNormalColor:sa,dotsBgColor:ma,navHoverBgColor:da,navIconHoverColor:ca,dotsBgColorHover:pa,blockMarginSmTop:ga,blockMarginSmLeft:ua,blockMarginSmRight:ha,blockMarginSmBottom:ya,blockMarginMdTop:ba,blockMarginMdLeft:va,blockMarginMdRight:Ta,blockMarginMdBottom:Sa,blockMarginTop:fa,blockMarginLeft:La,blockMarginRight:Ma,blockMarginBottom:xa,blockMarginUnit:Ea,blockPaddingSmTop:ka,blockPaddingSmLeft:Ba,blockPaddingSmRight:_a,blockPaddingSmBottom:Ha,blockPaddingMdTop:Na,blockPaddingMdLeft:Va,blockPaddingMdRight:Ca,blockPaddingMdBottom:wa,blockPaddingTop:Fa,blockPaddingLeft:Ra,blockPaddingRight:za,blockPaddingBottom:Da,blockPaddingUnit:Ua,borderNormal:Pa,borderHover:Ia,borderNormalColor:$a,borderHoverColor:Wa,borderNormalWidthTop:Oa,borderNormalWidthLeft:Aa,borderNormalWidthRight:Ga,borderNormalWidthBottom:ja,borderNormalWidthUnit:Ka,borderHoverWidthTop:Za,borderHoverWidthLeft:qa,borderHoverWidthRight:Ya,borderHoverWidthBottom:Xa,borderHoverWidthUnit:Ja,borderNormalRadiusTop:Qa,borderNormalRadiusLeft:ei,borderNormalRadiusRight:ti,borderNormalRadiusBottom:ai,borderNormalRadiusUnit:ii,borderHoverRadiusTop:oi,borderHoverRadiusLeft:ni,borderHoverRadiusRight:ri,borderHoverRadiusBottom:li,borderHoverRadiusUnit:si,borderNormalBoxShadowHorizontal:mi,borderNormalBoxShadowVertical:di,borderNormalBoxShadowBlur:ci,borderNormalBoxShadowSpread:pi,borderNormalBoxShadowColor:gi,borderNormalBoxShadowInset:ui,borderHoverBoxShadowHorizontal:hi,borderHoverBoxShadowVertical:yi,borderHoverBoxShadowBlur:bi,borderHoverBoxShadowSpread:vi,borderHoverBoxShadowColor:Ti,borderHoverBoxShadowInset:Si,blockBgColor:fi}=a;o({id:(0,d.useBlockProps)().id});const Li=`#${p} {\n        ${Pa?"--sb-border-normal: "+Pa+";":""}\n        ${Ia?"--sb-border-hover: "+Pa+";":""}\n        ${$a?"--sb-border-normal-color: "+$a+";":""}\n        ${Wa?"--sb-border-hover-color: "+Wa+";":""}\n\n        ${J("border-normal-width",Oa,Ga,ja,Aa,Ka)}\n        ${J("border-hover-width",Za,Ya,Xa,qa,Ja)}\n        ${J("border-normal-radius",Qa,ti,ai,ei,ii)}\n        ${J("border-hover-radius",oi,ri,li,ni,si)}\n\n        ${te("border-normal-box-shadow",mi,di,ci,pi,gi,ui,"px")}\n        ${te("border-hover-box-shadow",hi,yi,bi,vi,Ti,Si,"px")}\n\n        ${fi?"--sb-block-bg-color: "+fi+";":""}\n\n        ${Q("block-margin",fa,Ma,xa,La,ga,ha,ya,ua,ba,Ta,Sa,va,Ea)}\n\n        ${Q("block-padding",Fa,za,Da,Ra,ka,_a,Ha,Ba,Na,Ca,wa,Va,Ua)}\n\n        ${Q("listing-post-title-margin",Ft,zt,Dt,Rt,kt,_t,Ht,Bt,Nt,Ct,wt,Vt,Ut)}\n\n        ${Me?"--sb-listing-post-thumb-height: "+Me+"%;":""}\n        ${H?"--sb-header-color: "+H+";":""}\n        ${N?"--sb-header-short-border-color: "+N+";":""}\n        ${w?"--sb-header-long-border-color: "+w+";":""}\n\n        ${ie("header-typo",z,D,U,P,I,$,W,O,A,G,j,K,Z,q,Y,ee)}\n\n        ${ie("category-typo",ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be,ve,Te)}\n\n        ${ie("listing-post-title-typo",He,Ne,Ve,Ce,we,Fe,Re,ze,De,Ue,Pe,Ie,$e,We,Oe,Ae)}\n\n        ${ie("post-metas-typo",lt,st,mt,dt,ct,pt,gt,ut,ht,yt,bt,vt,Tt,St,ft,Lt)}\n\n        ${ie("excerpt-typo",Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et,tt,at,it,ot,nt,rt)}\n\n        ${Et?"--sb-image-border-radius: "+Et+"px;":""}\n        ${Pt?"--sb-category-background-color: "+Pt+";":""}\n        ${It?"--sb-category-text-color: "+It+";":""}\n        ${$t?"--sb-category-background-hover-color: "+$t+";":""}\n        ${Wt?"--sb-category-text-hover-color: "+Wt+";":""}\n        ${Ot?"--sb-title-color: "+Ot+";":""}\n        ${At?"--sb-title-hover-color: "+At+";":""}\n\n        ${Gt?"--sb-post-metas-color: "+Gt+";":""}\n\n        ${ra?"--sb-excerpt-color: "+ra+";":""}\n        ${la?"--sb-nav-normal-bg-color: "+la+";":""}\n        ${sa?"--sb-nav-icon-normal-color: "+sa+";":""}\n        ${ma?"--sb-dots-bg-color: "+ma+";":""}\n        ${da?"--sb-nav-hover-bg-color: "+da+";":""}\n        ${ca?"--sb-nav-icon-hover-color: "+ca+";":""}\n        ${pa?"--sb-dots-bg-color-hover: "+pa+";":""}\n    }`;o({sbStyle:Li.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}")});const Mi=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==Se&&t.push({value:e.slug,label:e.name})})),t}),[Se]),xi=()=>{r(!1),setTimeout((function(){r(!0)}),100)},Ei={per_page:na,_embed:!0,order:y,orderby:b,offset:parseInt(fe||0),exclude:v};Mi&&Mi.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Ei[t]=(a=e.value,L&&L[a]?L[a]:[])}));const ki=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",Se,Ei)),[y,b,L,Se,fe,Ei,v]),Bi=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",Se,{per_page:10,_embed:!0,order:y,orderby:b,offset:parseInt(fe||0)})),[y,b,L,Se,fe,v]);var _i=[];Bi&&Bi.map(((e,t)=>{_i.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]);const Hi=l()("sb-block-title",`${k}`,X(z,D,U,P)),Ni=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Vi={0:{items:parseInt(`${qt||1}`),margin:parseInt(`${Jt||1}`),stagePadding:parseInt(`${ta||1}`)},580:{items:parseInt(`${Yt||2}`),margin:parseInt(`${Qt||1}`),stagePadding:parseInt(`${aa||1}`)},860:{items:parseInt(`${Zt}`),margin:parseInt(`${Xt}`),stagePadding:parseInt(`${ea}`)}},Ci=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",h,t)),z&&"Default"!=z&&(0,i.createElement)(xo,{family:z,weight:D.replace("italic","i")}),ae&&"Default"!=ae&&(0,i.createElement)(xo,{family:ae,weight:oe.replace("italic","i")}),He&&"Default"!=He&&(0,i.createElement)(xo,{family:He,weight:Ne.replace("italic","i")}),lt&&"Default"!=lt&&(0,i.createElement)(xo,{family:lt,weight:st.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===s}),onClick:()=>m("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===s}),onClick:()=>m("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===s}),onClick:()=>m("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===s&&(0,i.createElement)(i.Fragment,null,M&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Style","smart-blocks"),value:k,onChange:e=>o({headerStyle:e}),options:[{value:"sb-title-style1",label:(0,g.__)("Style 1","smart-blocks")},{value:"sb-title-style2",label:(0,g.__)("Style 2","smart-blocks")},{value:"sb-title-style3",label:(0,g.__)("Style 3","smart-blocks")},{value:"sb-title-style4",label:(0,g.__)("Style 4","smart-blocks")}]})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o,optChange:xi}),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Ci||Ci.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:Le,onChange:e=>{o({postImageSize:e}),xi()}}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:Me,setValue:e=>{o({postImageHeight:e}),xi()},min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("No of Posts to Show","smart-blocks"),value:na,setValue:e=>{o({noOfPosts:e}),xi()},min:0,max:20}),(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:_e,setValue:e=>{o({postExcerptLength:e}),xi()},min:0,max:600}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:xe,onChange:e=>{o({postPostAuthor:e}),xi()}}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:Ee,onChange:e=>{o({postPostDate:e}),xi()}}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:ke,onChange:e=>{o({postPostComments:e}),xi()}}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Category","smart-blocks"),checked:Be,onChange:e=>{o({postPostCategory:e}),xi()}})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Carousel Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(F,{label:(0,g.__)("Autoplay","smart-blocks"),checked:jt,onChange:e=>o({autoplay:e})}),jt&&(0,i.createElement)(E,{label:(0,g.__)("Pause Duration","smart-blocks"),value:Kt,setValue:e=>o({pauseDuration:e}),min:1,max:20}),(0,i.createElement)(E,{label:(0,g.__)("No of Slides","smart-blocks"),value:Zt,setValue:e=>o({noOfSlides:e}),valueMd:Yt,setValueMd:e=>o({noOfSlidesMd:e}),valueSm:qt,setValueSm:e=>o({noOfSlidesSm:e}),min:1,max:10,responsive:!0}),(0,i.createElement)(E,{label:(0,g.__)("Spacing Between Slides","smart-blocks"),value:Xt,setValue:e=>o({slidesMargin:e}),valueMd:Qt,setValueMd:e=>o({slidesMarginMd:e}),valueSm:Jt,setValueSm:e=>o({slidesMarginSm:e}),min:1,max:100,responsive:!0}),(0,i.createElement)(E,{label:(0,g.__)("Stage Padding","smart-blocks"),value:ea,setValue:e=>o({slidesStagepadding:e}),valueMd:aa,setValueMd:e=>o({slidesStagepaddingMd:e}),valueSm:ta,setValueSm:e=>o({slidesStagepaddingSm:e}),min:0,max:300,responsive:!0}),(0,i.createElement)(F,{label:(0,g.__)("Nav Arrow","smart-blocks"),checked:ia,onChange:e=>o({nav:e})}),(0,i.createElement)(F,{label:(0,g.__)("Nav Dots","smart-blocks"),checked:oa,onChange:e=>o({dots:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Additional Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:Et,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:Mt,onChange:e=>{o({dateFormat:e}),xi()},options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==Mt&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:xt,onChange:e=>o({customDateFormat:e})})))||"style"===s&&(0,i.createElement)(i.Fragment,null,M&&(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Header Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:H,setValue:e=>o({headerColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Short Border Color","smart-blocks"),enableAlpha:!0,value:N,setValue:e=>o({headerShortBorderColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Long Border Color","smart-blocks"),enableAlpha:!0,value:w,setValue:e=>o({headerLongBorderColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:z,setValueFamily:e=>o({headerTitleTypographyFamily:e}),valueWeight:D,setValueWeight:e=>o({headerTitleTypographyWeight:e}),valueTextTransform:U,setValueTextTransform:e=>o({headerTitleTypographyTextTransform:e}),valueTextDecoration:P,setValueTextDecoration:e=>o({headerTitleTypographyTextDecoration:e}),valueFontSizeSm:I,setValueFontSizeSm:e=>o({headerTitleTypographyFontSizeSm:e}),valueFontSizeMd:$,setValueFontSizeMd:e=>o({headerTitleTypographyFontSizeMd:e}),valueFontSize:W,setValueFontSize:e=>o({headerTitleTypographyFontSize:e}),valueFontSizeUnit:O,setValueFontSizeUnit:e=>o({headerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:A,setValueLetterSpacingSm:e=>o({headerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:G,setValueLetterSpacingMd:e=>o({headerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:j,setValueLetterSpacing:e=>o({headerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:K,setValueLetterSpacingUnit:e=>o({headerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:Z,setValueLineHeightSm:e=>o({headerTitleTypographyLineHeightSm:e}),valueLineHeightMd:q,setValueLineHeightMd:e=>o({headerTitleTypographyLineHeightMd:e}),valueLineHeight:Y,setValueLineHeight:e=>o({headerTitleTypographyLineHeight:e}),valueLineHeightUnit:ee,setValueLineHeightUnit:e=>o({headerTitleTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Category","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ae,setValueFamily:e=>o({categoryTypographyFamily:e}),valueWeight:oe,setValueWeight:e=>o({categoryTypographyWeight:e}),valueTextTransform:ne,setValueTextTransform:e=>o({categoryTypographyTextTransform:e}),valueTextDecoration:re,setValueTextDecoration:e=>o({categoryTypographyTextDecoration:e}),valueFontSizeSm:le,setValueFontSizeSm:e=>o({categoryTypographyFontSizeSm:e}),valueFontSizeMd:se,setValueFontSizeMd:e=>o({categoryTypographyFontSizeMd:e}),valueFontSize:me,setValueFontSize:e=>o({categoryTypographyFontSize:e}),valueFontSizeUnit:de,setValueFontSizeUnit:e=>o({categoryTypographyFontSizeUnit:e}),valueLetterSpacingSm:pe,setValueLetterSpacingSm:e=>o({categoryTypographyLetterSpacingSm:e}),valueLetterSpacingMd:ge,setValueLetterSpacingMd:e=>o({categoryTypographyLetterSpacingMd:e}),valueLetterSpacing:ue,setValueLetterSpacing:e=>o({categoryTypographyLetterSpacing:e}),valueLetterSpacingUnit:he,setValueLetterSpacingUnit:e=>o({categoryTypographyLetterSpacingUnit:e}),valueLineHeightSm:ye,setValueLineHeightSm:e=>o({categoryTypographyLineHeightSm:e}),valueLineHeightMd:be,setValueLineHeightMd:e=>o({categoryTypographyLineHeightMd:e}),valueLineHeight:ve,setValueLineHeight:e=>o({categoryTypographyLineHeight:e}),valueLineHeightUnit:Te,setValueLineHeightUnit:e=>o({categoryTypographyLineHeightUnit:e})}),(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pt,setValue:e=>o({categoryBackgroundColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:It,setValue:e=>o({categoryTextColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:$t,setValue:e=>o({categoryBackgroundHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:Wt,setValue:e=>o({categoryTextHoverColor:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Title Color","smart-blocks"),enableAlpha:!0,value:Ot,setValue:e=>o({titleColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Title Color(Hover)","smart-blocks"),enableAlpha:!0,value:At,setValue:e=>o({titleHoverColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:He,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:Ne,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:Ve,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:Ce,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:we,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:Fe,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:Re,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:ze,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:De,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ue,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:Pe,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ie,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:$e,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:We,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:Oe,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:Ae,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:Ft,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:Nt,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:kt,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:Rt,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Vt,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:Bt,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:zt,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Ct,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:_t,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Dt,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:wt,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:Ht,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ut,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Metas","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Gt,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:lt,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:st,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:mt,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:dt,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:ct,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:pt,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:gt,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:ut,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:ht,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:yt,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:bt,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:vt,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Tt,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:St,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:ft,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Lt,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Ge,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:je,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:Ke,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:Ze,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:qe,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ye,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Xe,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:Je,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Qe,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:et,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:tt,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:at,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:it,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:ot,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:nt,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:rt,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Navigation","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:la,setValue:e=>o({navNormalBgColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Icon Color","smart-blocks"),enableAlpha:!0,value:sa,setValue:e=>o({navIconNormalColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Dots Color","smart-blocks"),enableAlpha:!0,value:ma,setValue:e=>o({dotsBgColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color (Hover)","smart-blocks"),enableAlpha:!0,value:da,setValue:e=>o({navHoverBgColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Icon Color (Hover)","smart-blocks"),enableAlpha:!0,value:ca,setValue:e=>o({navIconHoverColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Dots Color (Active)","smart-blocks"),enableAlpha:!0,value:pa,setValue:e=>o({dotsBgColorHover:e})})))))||"advanced"===s&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:fa,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:ba,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ga,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:La,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:va,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:ua,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:Ma,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ta,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:ha,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:xa,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Sa,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:ya,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ea,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Fa,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Na,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:ka,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Ra,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Va,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ba,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:za,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ca,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:_a,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Da,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:wa,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Ha,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Ua,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Pa,setValue:e=>o({borderNormal:e})}),Pa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:$a,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Oa,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:Aa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:Ga,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ja,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:Ka,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:Qa,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ei,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ti,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ai,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:ii,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:mi,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:di,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:ci,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:pi,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:gi,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:ui,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Ia,setValue:e=>o({borderHover:e})}),Ia&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:Wa,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:Za,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:qa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:Ya,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:Xa,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:Ja,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:oi,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:ni,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:ri,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:li,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:si,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:hi,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:yi,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:bi,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:vi,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ti,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Si,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:fi,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:p},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-carousel-block"}),(0,i.createElement)("h2",{className:Hi},(0,i.createElement)(d.RichText,{tagName:"span",value:M,onChange:e=>o({headerTitle:e}),placeholder:(0,g.__)("Heading...","smart-blocks")})),(0,i.createElement)(Ln(),{loop:n,autoplay:jt,autoplayTimeout:1e3*Kt,nav:ia,dots:oa,navText:['<i class="mdi-chevron-left"></i>','<i class="mdi-chevron-right"></i>'],responsive:Vi,className:"sb-carousel-block-wrap"},ki&&ki.map(((e,t)=>((e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Le||"large";return(0,i.createElement)("div",{className:"sb-post-item",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[d]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[d].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text}))),Be&&e.categories&&(0,i.createElement)("ul",{class:"post-categories"},e.categories&&e.categories.map(((e,t)=>((e,t,a)=>{if(0!=t)return;const o=Ni&&Ni.find((t=>t.id===e));return o&&(0,i.createElement)("li",{key:t},(0,i.createElement)("a",{class:`sb-primary-cat sb-category-${e}`,href:`${o.link}`},o.name))})(e,t))))),(0,i.createElement)("div",{class:"sb-post-content"},(0,i.createElement)("h3",{className:`sb-post-title ${X(He,Ne,Ve,Ce)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(xe||Ee||ke)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&xe&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&Ee&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Mt&&`${e.relative_dates.created}`,"default"==Mt&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Mt&&(0,ce.dateI18n)(xt,e.date_gmt)),ke&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=_e&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,_e),_e<e.content.rendered.length?"...":""))))})(e,t)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/single-news-one",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 176.83 173.43"},(0,i.createElement)("path",{fill:"#7e97a7",d:"M0 163.23h149.63v3.4H0zm0 6.8h136.02v3.4H0zm0-27.2h163.23v6.8H0z"}),(0,i.createElement)("path",{fill:"#8ca8b9",d:"M0 153.03h27.2v3.4H0z"}),(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h176.83v136.02H0z"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("Single News 1","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,postId:p,categories:h,offset:y,postImageSize:b,postImageHeight:v,postPostAuthor:L,postPostDate:M,postPostComments:k,postTypographyFamily:H,postTypographyWeight:N,postTypographyTextTransform:w,postTypographyTextDecoration:z,postTypographyFontSizeSm:D,postTypographyFontSizeMd:U,postTypographyFontSize:P,postTypographyFontSizeUnit:I,postTypographyLetterSpacingSm:$,postTypographyLetterSpacingMd:W,postTypographyLetterSpacing:O,postTypographyLetterSpacingUnit:A,postTypographyLineHeightSm:G,postTypographyLineHeightMd:j,postTypographyLineHeight:K,postTypographyLineHeightUnit:Z,metasTypographyFamily:q,metasTypographyWeight:Y,metasTypographyTextTransform:ee,metasTypographyTextDecoration:ae,metasTypographyFontSizeSm:oe,metasTypographyFontSizeMd:ne,metasTypographyFontSize:re,metasTypographyFontSizeUnit:le,metasTypographyLetterSpacingSm:se,metasTypographyLetterSpacingMd:me,metasTypographyLetterSpacing:de,metasTypographyLetterSpacingUnit:pe,metasTypographyLineHeightSm:ge,metasTypographyLineHeightMd:ue,metasTypographyLineHeight:he,metasTypographyLineHeightUnit:ye,dateFormat:be,customDateFormat:ve,imageBorderRadius:Te,postTitleMarginSmTop:Se,postTitleMarginSmLeft:fe,postTitleMarginSmRight:Le,postTitleMarginSmBottom:Me,postTitleMarginMdTop:xe,postTitleMarginMdLeft:Ee,postTitleMarginMdRight:ke,postTitleMarginMdBottom:Be,postTitleMarginTop:_e,postTitleMarginLeft:He,postTitleMarginRight:Ne,postTitleMarginBottom:Ve,postTitleMarginUnit:Ce,titleColor:we,titleHoverColor:Fe,postMetasColor:Re,contentAlignment:ze,postExcerptLength:De,excerptColor:Ue,excerptTypographyFamily:Pe,excerptTypographyWeight:Ie,excerptTypographyTextTransform:$e,excerptTypographyTextDecoration:We,excerptTypographyFontSizeSm:Oe,excerptTypographyFontSizeMd:Ae,excerptTypographyFontSize:Ge,excerptTypographyFontSizeUnit:je,excerptTypographyLetterSpacingSm:Ke,excerptTypographyLetterSpacingMd:Ze,excerptTypographyLetterSpacing:qe,excerptTypographyLetterSpacingUnit:Ye,excerptTypographyLineHeightSm:Xe,excerptTypographyLineHeightMd:Je,excerptTypographyLineHeight:Qe,excerptTypographyLineHeightUnit:et,contentBgColor:tt,contentPaddingSmTop:at,contentPaddingSmLeft:it,contentPaddingSmRight:ot,contentPaddingSmBottom:nt,contentPaddingMdTop:rt,contentPaddingMdLeft:lt,contentPaddingMdRight:st,contentPaddingMdBottom:mt,contentPaddingTop:dt,contentPaddingLeft:ct,contentPaddingRight:pt,contentPaddingBottom:gt,contentPaddingUnit:ut,contentMarginSmTop:ht,contentMarginSmLeft:yt,contentMarginSmRight:bt,contentMarginSmBottom:vt,contentMarginMdTop:Tt,contentMarginMdLeft:St,contentMarginMdRight:ft,contentMarginMdBottom:Lt,contentMarginTop:Mt,contentMarginLeft:xt,contentMarginRight:Et,contentMarginBottom:kt,contentMarginUnit:Bt,filterOption:_t,tags:Ht,blockMarginSmTop:Nt,blockMarginSmLeft:Vt,blockMarginSmRight:Ct,blockMarginSmBottom:wt,blockMarginMdTop:Ft,blockMarginMdLeft:Rt,blockMarginMdRight:zt,blockMarginMdBottom:Dt,blockMarginTop:Ut,blockMarginLeft:Pt,blockMarginRight:It,blockMarginBottom:$t,blockMarginUnit:Wt,blockPaddingSmTop:Ot,blockPaddingSmLeft:At,blockPaddingSmRight:Gt,blockPaddingSmBottom:jt,blockPaddingMdTop:Kt,blockPaddingMdLeft:Zt,blockPaddingMdRight:qt,blockPaddingMdBottom:Yt,blockPaddingTop:Xt,blockPaddingLeft:Jt,blockPaddingRight:Qt,blockPaddingBottom:ea,blockPaddingUnit:ta,borderNormal:aa,borderHover:ia,borderNormalColor:oa,borderHoverColor:na,borderNormalWidthTop:ra,borderNormalWidthLeft:la,borderNormalWidthRight:sa,borderNormalWidthBottom:ma,borderNormalWidthUnit:da,borderHoverWidthTop:ca,borderHoverWidthLeft:pa,borderHoverWidthRight:ga,borderHoverWidthBottom:ua,borderHoverWidthUnit:ha,borderNormalRadiusTop:ya,borderNormalRadiusLeft:ba,borderNormalRadiusRight:va,borderNormalRadiusBottom:Ta,borderNormalRadiusUnit:Sa,borderHoverRadiusTop:fa,borderHoverRadiusLeft:La,borderHoverRadiusRight:Ma,borderHoverRadiusBottom:xa,borderHoverRadiusUnit:Ea,borderNormalBoxShadowHorizontal:ka,borderNormalBoxShadowVertical:Ba,borderNormalBoxShadowBlur:_a,borderNormalBoxShadowSpread:Ha,borderNormalBoxShadowColor:Na,borderNormalBoxShadowInset:Va,borderHoverBoxShadowHorizontal:Ca,borderHoverBoxShadowVertical:wa,borderHoverBoxShadowBlur:Fa,borderHoverBoxShadowSpread:Ra,borderHoverBoxShadowColor:za,borderHoverBoxShadowInset:Da,blockBgColor:Ua}=a;o({id:(0,d.useBlockProps)().id});const Pa=`#${s} {\n        ${aa?"--sb-border-normal: "+aa+";":""}\n        ${ia?"--sb-border-hover: "+aa+";":""}\n        ${oa?"--sb-border-normal-color: "+oa+";":""}\n        ${na?"--sb-border-hover-color: "+na+";":""}\n\n        ${J("border-normal-width",ra,sa,ma,la,da)}\n        ${J("border-hover-width",ca,ga,ua,pa,ha)}\n        ${J("border-normal-radius",ya,va,Ta,ba,Sa)}\n        ${J("border-hover-radius",fa,Ma,xa,La,Ea)}\n\n        ${te("border-normal-box-shadow",ka,Ba,_a,Ha,Na,Va,"px")}\n        ${te("border-hover-box-shadow",Ca,wa,Fa,Ra,za,Da,"px")}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${Q("block-margin",Ut,It,$t,Pt,Nt,Ct,wt,Vt,Ft,zt,Dt,Rt,Wt)}\n\n        ${Q("block-padding",Xt,Qt,ea,Jt,Ot,Gt,jt,At,Kt,qt,Yt,Zt,ta)}\n\n        ${Q("listing-post-title-margin",_e,Ne,Ve,He,Se,Le,Me,fe,xe,ke,Be,Ee,Ce)}\n\n        ${Q("content-padding",dt,pt,gt,ct,at,ot,nt,it,rt,st,mt,lt,ut)}\n\n        ${Q("content-margin",Mt,Et,kt,xt,ht,bt,vt,yt,Tt,ft,Lt,St,Bt)}\n\n        ${Ua?"--sb-block-bg-color: "+Ua+";":""}\n\n        ${v?"--sb-listing-post-thumb-height: "+v+"%;":""}\n        ${we?"--sb-title-color: "+we+";":""}\n        ${Fe?"--sb-title-hover-color: "+Fe+";":""}\n\n        ${ie("listing-post-title-typo",H,N,w,z,D,U,P,I,$,W,O,A,G,j,K,Z)}\n\n        ${ie("post-metas-typo",q,Y,ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye)}\n\n        ${ie("excerpt-typo",Pe,Ie,$e,We,Oe,Ae,Ge,je,Ke,Ze,qe,Ye,Xe,Je,Qe,et)}\n\n        ${Re?"--sb-post-metas-color: "+Re+";":""}\n        ${Ue?"--sb-excerpt-color: "+Ue+";":""}\n        ${tt?"--sb-content-bg-color: "+tt+";":""}\n\n        ${Te?"--sb-image-border-radius: "+Te+"px;":""}\n    }`;o({sbStyle:Pa.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const Ia={per_page:1,_embed:!0,offset:parseInt(y||0)};"categories"==_t?Ia.categories=h:"tags"==_t&&(Ia.tags=Ht);const $a=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",Ia)),[h,Ht,Ia,p,y]),Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",{per_page:-1,_embed:!0})),[h,p,y]);var Oa=[];Wa&&Wa.map(((e,t)=>{Oa.push({value:e.id,label:e.title.rendered})}));const Aa=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),Ga=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;var i,o=[],n=[];if(t&&t.length)if(void 0!==t[0].parent){for(i=0;i<t.length;i++)t[i].parent==e&&(n=[...n,t[i]]);n.length&&(a++,n&&n.map((e=>{let n="";for(i=0;i<a;)n+="- ",i++;n+=e.name.replace("-"," "),o.push({value:e.id,label:n+" ("+e.count+")"});let r=Ga(e.id,t,a);r.length&&(o=[...o,...r])})))}else t.map((e=>{o.push({value:e.id,label:e.name+" ("+e.count+")"})}));return o},ja=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","post_tag",{per_page:-1})),[]),Ka=e=>{var t,a,o,n;const r=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],l=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],s=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],m=L,d=M,c=k,p=b||"large",u=De;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},r&&r.media_details&&(0,i.createElement)("img",{src:null!==(t=r.media_details.sizes)&&void 0!==t&&t[p]?null===(a=r.media_details.sizes)||void 0===a?void 0:a[p].source_url:null!==(o=r.media_details.sizes)&&void 0!==o&&o.full?null===(n=r.media_details.sizes)||void 0===n?void 0:n.full.source_url:r.source_url,alt:r.alt_text})))),(0,i.createElement)("div",{class:`sb-post-content sb-align-${ze}`},(0,i.createElement)("h3",{className:`sb-post-title ${X(H,N,w,z)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(m||d||c)&&(0,i.createElement)("div",{className:"sb-post-meta"},l&&m&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),l.name),e.date_gmt&&d&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==be&&`${e.relative_dates.created}`,"default"==be&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==be&&(0,ce.dateI18n)(ve,e.date_gmt)),c&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),s?s.length:0)),0!=u&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,u),u<e.content.rendered.length?"...":""))))},Za=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),H&&"Default"!=H&&(0,i.createElement)(xo,{family:H,weight:N.replace("italic","i")}),Pe&&"Default"!=Pe&&(0,i.createElement)(xo,{family:Pe,weight:Ie.replace("italic","i")}),q&&"Default"!=q&&(0,i.createElement)(xo,{family:q,weight:Y.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Content Filter","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Select Filter","smart-blocks"),value:_t,onChange:e=>o({filterOption:e}),options:[{value:"single-post",label:(0,g.__)("By Post Title","smart-blocks")},{value:"categories",label:(0,g.__)("By Categories","smart-blocks")},{value:"tags",label:(0,g.__)("By Tags","smart-blocks")}]}),(!_t||"single-post"==_t)&&(0,i.createElement)(_,{label:(0,g.__)("Select Post","smart-blocks"),options:Oa,value:p,onChange:e=>o({postId:e})}),"categories"==_t&&(0,i.createElement)(Tn,{label:(0,g.__)("Categories","smart-blocks"),options:(()=>{let e=[];return Aa&&(e=Ga(0,Aa)),e})(),value:h,setValue:e=>o({categories:e})}),"tags"==_t&&(0,i.createElement)(Tn,{label:(0,g.__)("Tags","smart-blocks"),options:(()=>{let e=[];return ja&&(e=Ga(0,ja)),e})(),value:Ht,setValue:e=>o({tags:e})}),"single-post"!=_t&&(0,i.createElement)(E,{label:(0,g.__)("Offset","smart-blocks"),value:y,setValue:e=>o({offset:e}),min:0,max:10})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Meta","smart-blocks"),initialOpen:!1},(0,i.createElement)(F,{label:(0,g.__)("Post Author","smart-blocks"),checked:L,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Post Date","smart-blocks"),checked:M,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Post Comments","smart-blocks"),checked:k,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:be,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==be&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:ve,onChange:e=>o({customDateFormat:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length (in Letters)","smart-blocks"),value:De,setValue:e=>o({postExcerptLength:e}),min:0,max:600})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Image Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==Za||Za.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:b,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:v,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:Te,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Content Alignment","smart-blocks"),value:ze,onChange:e=>o({contentAlignment:e}),options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]})))||"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background","smart-blocks"),enableAlpha:!0,value:tt,setValue:e=>o({contentBgColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Content Padding","smart-blocks"),dimensionTop:dt,setDimensionTop:e=>o({contentPaddingTop:e}),dimensionMdTop:rt,setDimensionMdTop:e=>o({contentPaddingMdTop:e}),dimensionSmTop:at,setDimensionSmTop:e=>o({contentPaddingSmTop:e}),dimensionLeft:ct,setDimensionLeft:e=>o({contentPaddingLeft:e}),dimensionMdLeft:lt,setDimensionMdLeft:e=>o({contentPaddingMdLeft:e}),dimensionSmLeft:it,setDimensionSmLeft:e=>o({contentPaddingSmLeft:e}),dimensionRight:pt,setDimensionRight:e=>o({contentPaddingRight:e}),dimensionMdRight:st,setDimensionMdRight:e=>o({contentPaddingMdRight:e}),dimensionSmRight:ot,setDimensionSmRight:e=>o({contentPaddingSmRight:e}),dimensionBottom:gt,setDimensionBottom:e=>o({contentPaddingBottom:e}),dimensionMdBottom:mt,setDimensionMdBottom:e=>o({contentPaddingMdBottom:e}),dimensionSmBottom:nt,setDimensionSmBottom:e=>o({contentPaddingSmBottom:e}),unit:ut,setUnit:e=>o({contentPaddingUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Content Margin","smart-blocks"),dimensionTop:Mt,setDimensionTop:e=>o({contentMarginTop:e}),dimensionMdTop:Tt,setDimensionMdTop:e=>o({contentMarginMdTop:e}),dimensionSmTop:ht,setDimensionSmTop:e=>o({contentMarginSmTop:e}),dimensionLeft:xt,setDimensionLeft:e=>o({contentMarginLeft:e}),dimensionMdLeft:St,setDimensionMdLeft:e=>o({contentMarginMdLeft:e}),dimensionSmLeft:yt,setDimensionSmLeft:e=>o({contentMarginSmLeft:e}),dimensionRight:Et,setDimensionRight:e=>o({contentMarginRight:e}),dimensionMdRight:ft,setDimensionMdRight:e=>o({contentMarginMdRight:e}),dimensionSmRight:bt,setDimensionSmRight:e=>o({contentMarginSmRight:e}),dimensionBottom:kt,setDimensionBottom:e=>o({contentMarginBottom:e}),dimensionMdBottom:Lt,setDimensionMdBottom:e=>o({contentMarginMdBottom:e}),dimensionSmBottom:vt,setDimensionSmBottom:e=>o({contentMarginSmBottom:e}),unit:Bt,setUnit:e=>o({contentMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:"Post Title",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:we,setValue:e=>o({titleColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:H,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:N,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:w,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:z,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:D,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:U,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:P,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:I,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:$,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:W,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:O,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:A,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:G,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:j,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:K,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:Z,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:_e,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:xe,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:Se,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:He,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Ee,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:fe,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:Ne,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:ke,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:Le,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:Ve,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:Be,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:Me,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ce,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:"Post Meta",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Re,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:q,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Y,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:ee,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:ae,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:oe,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:ne,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:re,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:le,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:se,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:me,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:de,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:pe,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:ge,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:ue,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:he,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:ye,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:"Post Excerpt",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Ue,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Pe,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:Ie,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:$e,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:We,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:Oe,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:Ae,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:Ge,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:je,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:Ke,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:Ze,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:qe,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ye,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:Xe,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:Je,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:Qe,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:et,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Ut,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Ft,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Nt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Pt,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Rt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Vt,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:It,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:zt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:Ct,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:$t,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Dt,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:wt,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Wt,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Xt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Kt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Ot,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Jt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Zt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:At,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:Qt,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:qt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:Gt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ea,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Yt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:jt,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:ta,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:aa,setValue:e=>o({borderNormal:e})}),aa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:oa,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ra,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:la,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:sa,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:ma,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:da,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ya,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:ba,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:va,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Ta,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:Sa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:ka,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Ba,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:_a,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Ha,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Na,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Va,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:ia,setValue:e=>o({borderHover:e})}),ia&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:ca,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:pa,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ga,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ua,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ha,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:fa,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:La,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Ma,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:xa,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:Ea,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ca,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:wa,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Fa,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Ra,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:za,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Da,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ua,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-single-post"}),(0,i.createElement)("div",{className:"sb-single-post-one"},"single-post"==_t&&Wa&&p?Ka(Wa.filter((e=>e.id==p))[0]):$a&&$a.map((e=>Ka(e)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/single-news-two",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 176.83 173.43"},(0,i.createElement)("path",{fill:"#687e8b",d:"M0 0h176.83v173.43H0z"}),(0,i.createElement)("path",{fill:"#fff",d:"M10.2 153.03h142.83v3.4H10.2zm0 6.8h136.02v3.4H10.2zm0-27.21h136.02v6.8H10.2z"}),(0,i.createElement)("path",{fill:"#fff",d:"M10.2 142.83h27.2v3.4H10.2z",opacity:".8"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("Single News 2","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,postId:p,categories:h,tags:y,excerptTypographyFamily:b,excerptTypographyWeight:v,excerptTypographyTextTransform:L,excerptTypographyTextDecoration:M,excerptTypographyFontSizeSm:k,excerptTypographyFontSizeMd:H,excerptTypographyFontSize:N,excerptTypographyFontSizeUnit:w,excerptTypographyLetterSpacingSm:z,excerptTypographyLetterSpacingMd:D,excerptTypographyLetterSpacing:U,excerptTypographyLetterSpacingUnit:P,excerptTypographyLineHeightSm:I,excerptTypographyLineHeightMd:$,excerptTypographyLineHeight:W,excerptTypographyLineHeightUnit:O,postsPostType:A,offset:G,postImageSize:j,postImageHeight:K,postPostAuthor:Z,postPostDate:q,postPostComments:Y,postTypographyFamily:ee,postTypographyWeight:ae,postTypographyTextTransform:oe,postTypographyTextDecoration:ne,postTypographyFontSizeSm:re,postTypographyFontSizeMd:le,postTypographyFontSize:se,postTypographyFontSizeUnit:me,postTypographyLetterSpacingSm:de,postTypographyLetterSpacingMd:pe,postTypographyLetterSpacing:ge,postTypographyLetterSpacingUnit:ue,postTypographyLineHeightSm:he,postTypographyLineHeightMd:ye,postTypographyLineHeight:be,postTypographyLineHeightUnit:ve,metasTypographyFamily:Te,metasTypographyWeight:Se,metasTypographyTextTransform:fe,metasTypographyTextDecoration:Le,metasTypographyFontSizeSm:Me,metasTypographyFontSizeMd:xe,metasTypographyFontSize:Ee,metasTypographyFontSizeUnit:ke,metasTypographyLetterSpacingSm:Be,metasTypographyLetterSpacingMd:_e,metasTypographyLetterSpacing:He,metasTypographyLetterSpacingUnit:Ne,metasTypographyLineHeightSm:Ve,metasTypographyLineHeightMd:Ce,metasTypographyLineHeight:we,metasTypographyLineHeightUnit:Fe,dateFormat:Re,customDateFormat:ze,imageBorderRadius:De,postTitleMarginSmTop:Ue,postTitleMarginSmLeft:Pe,postTitleMarginSmRight:Ie,postTitleMarginSmBottom:$e,postTitleMarginMdTop:We,postTitleMarginMdLeft:Oe,postTitleMarginMdRight:Ae,postTitleMarginMdBottom:Ge,postTitleMarginTop:je,postTitleMarginLeft:Ke,postTitleMarginRight:Ze,postTitleMarginBottom:qe,postTitleMarginUnit:Ye,titleColor:Xe,titleHoverColor:Je,postMetasColor:Qe,postExcerptLength:et,contentAlignment:tt,contentPaddingSmTop:at,contentPaddingSmLeft:it,contentPaddingSmRight:ot,contentPaddingSmBottom:nt,contentPaddingMdTop:rt,contentPaddingMdLeft:lt,contentPaddingMdRight:st,contentPaddingMdBottom:mt,contentPaddingTop:dt,contentPaddingLeft:ct,contentPaddingRight:pt,contentPaddingBottom:gt,contentPaddingUnit:ut,contentMarginSmTop:ht,contentMarginSmLeft:yt,contentMarginSmRight:bt,contentMarginSmBottom:vt,contentMarginMdTop:Tt,contentMarginMdLeft:St,contentMarginMdRight:ft,contentMarginMdBottom:Lt,contentMarginTop:Mt,contentMarginLeft:xt,contentMarginRight:Et,contentMarginBottom:kt,contentMarginUnit:Bt,excerptColor:_t,contentOverlayBackground:Ht,filterOption:Nt,blockMarginSmTop:Vt,blockMarginSmLeft:Ct,blockMarginSmRight:wt,blockMarginSmBottom:Ft,blockMarginMdTop:Rt,blockMarginMdLeft:zt,blockMarginMdRight:Dt,blockMarginMdBottom:Ut,blockMarginTop:Pt,blockMarginLeft:It,blockMarginRight:$t,blockMarginBottom:Wt,blockMarginUnit:Ot,blockPaddingSmTop:At,blockPaddingSmLeft:Gt,blockPaddingSmRight:jt,blockPaddingSmBottom:Kt,blockPaddingMdTop:Zt,blockPaddingMdLeft:qt,blockPaddingMdRight:Yt,blockPaddingMdBottom:Xt,blockPaddingTop:Jt,blockPaddingLeft:Qt,blockPaddingRight:ea,blockPaddingBottom:ta,blockPaddingUnit:aa,borderNormal:ia,borderHover:oa,borderNormalColor:na,borderHoverColor:ra,borderNormalWidthTop:la,borderNormalWidthLeft:sa,borderNormalWidthRight:ma,borderNormalWidthBottom:da,borderNormalWidthUnit:ca,borderHoverWidthTop:pa,borderHoverWidthLeft:ga,borderHoverWidthRight:ua,borderHoverWidthBottom:ha,borderHoverWidthUnit:ya,borderNormalRadiusTop:ba,borderNormalRadiusLeft:va,borderNormalRadiusRight:Ta,borderNormalRadiusBottom:Sa,borderNormalRadiusUnit:fa,borderHoverRadiusTop:La,borderHoverRadiusLeft:Ma,borderHoverRadiusRight:xa,borderHoverRadiusBottom:Ea,borderHoverRadiusUnit:ka,borderNormalBoxShadowHorizontal:Ba,borderNormalBoxShadowVertical:_a,borderNormalBoxShadowBlur:Ha,borderNormalBoxShadowSpread:Na,borderNormalBoxShadowColor:Va,borderNormalBoxShadowInset:Ca,borderHoverBoxShadowHorizontal:wa,borderHoverBoxShadowVertical:Fa,borderHoverBoxShadowBlur:Ra,borderHoverBoxShadowSpread:za,borderHoverBoxShadowColor:Da,borderHoverBoxShadowInset:Ua,blockBgColor:Pa}=a;o({id:(0,d.useBlockProps)().id});const Ia=`#${s} {\n        ${ia?"--sb-border-normal: "+ia+";":""}\n        ${oa?"--sb-border-hover: "+ia+";":""}\n        ${na?"--sb-border-normal-color: "+na+";":""}\n        ${ra?"--sb-border-hover-color: "+ra+";":""}\n\n        ${J("border-normal-width",la,ma,da,sa,ca)}\n        ${J("border-hover-width",pa,ua,ha,ga,ya)}\n        ${J("border-normal-radius",ba,Ta,Sa,va,fa)}\n        ${J("border-hover-radius",La,xa,Ea,Ma,ka)}\n\n        ${te("border-normal-box-shadow",Ba,_a,Ha,Na,Va,Ca,"px")}\n        ${te("border-hover-box-shadow",wa,Fa,Ra,za,Da,Ua,"px")}\n\n        ${Pa?"--sb-block-bg-color: "+Pa+";":""}\n\n        ${Q("block-margin",Pt,$t,Wt,It,Vt,wt,Ft,Ct,Rt,Dt,Ut,zt,Ot)}\n\n        ${Q("block-padding",Jt,ea,ta,Qt,At,jt,Kt,Gt,Zt,Yt,Xt,qt,aa)}\n\n        ${Q("listing-post-title-margin",je,Ze,qe,Ke,Ue,Ie,$e,Pe,We,Ae,Ge,Oe,Ye)}\n\n        ${Q("content-padding",dt,pt,gt,ct,at,ot,nt,it,rt,st,mt,lt,ut)}\n\n        ${Q("content-margin",Mt,Et,kt,xt,ht,bt,vt,yt,Tt,ft,Lt,St,Bt)}\n\n        ${Pa?"--sb-block-bg-color: "+Pa+";":""}\n\n        ${K?"--sb-listing-post-thumb-height: "+K+"%;":""}\n        ${_t?"--sb-excerpt-color: "+_t+";":""}\n\n        ${ie("excerpt-typo",b,v,L,M,k,H,N,w,z,D,U,P,I,$,W,O)}\n\n        ${Xe?"--sb-title-color: "+Xe+";":""}\n        ${Je?"--sb-title-hover-color: "+Je+";":""}\n\n        ${ie("listing-post-title-typo",ee,ae,oe,ne,re,le,se,me,de,pe,ge,ue,he,ye,be,ve)}\n\n        ${ie("post-metas-typo",Te,Se,fe,Le,Me,xe,Ee,ke,Be,_e,He,Ne,Ve,Ce,we,Fe)}\n\n        ${Qe?"--sb-post-metas-color: "+Qe+";":""}\n\n        ${Ht?"--sb-content-overlay-gradient: "+Ht+";":""}\n        ${De?"--sb-image-border-radius: "+De+"px;":""}\n    }`;o({sbStyle:Ia.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const $a={per_page:1,_embed:!0,offset:parseInt(G||0)};"categories"==Nt?$a.categories=h:"tags"==Nt&&($a.tags=y);const Wa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",$a)),[h,y,$a,p,G]),Oa=(0,e.useSelect)((e=>e("core").getEntityRecords("postType","post",{per_page:-1,_embed:!0})),[h,p,G]);var Aa=[];Oa&&Oa.map(((e,t)=>{Aa.push({value:e.id,label:e.title.rendered})}));const Ga=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),ja=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;var i,o=[],n=[];if(t&&t.length)if(void 0!==t[0].parent){for(i=0;i<t.length;i++)t[i].parent==e&&(n=[...n,t[i]]);n.length&&(a++,n&&n.map((e=>{let n="";for(i=0;i<a;)n+="- ",i++;n+=e.name.replace("-"," "),o.push({value:e.id,label:n+" ("+e.count+")"});let r=ja(e.id,t,a);r.length&&(o=[...o,...r])})))}else t.map((e=>{o.push({value:e.id,label:e.name+" ("+e.count+")"})}));return o},Ka=(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","post_tag",{per_page:-1})),[]),Za=(e,t)=>{var a,o,n,r;const l=e._embedded&&e._embedded["wp:featuredmedia"]&&e._embedded["wp:featuredmedia"].length>0&&e._embedded["wp:featuredmedia"][0],s=e._embedded&&e._embedded.author&&e._embedded.author.length>0&&e._embedded.author[0],m=e._embedded&&e._embedded.replies&&e._embedded.replies.length>0&&e._embedded.replies[0],d=Z,c=q,p=Y,u=j||"large",h=et;return(0,i.createElement)("div",{className:"sb-post-image sb-post-graident-title",key:t},(0,i.createElement)("div",{className:"sb-post-thumb"},(0,i.createElement)("a",{href:e.link},(0,i.createElement)("div",{className:"sb-thumb-container"},l&&l.media_details&&(0,i.createElement)("img",{src:null!==(a=l.media_details.sizes)&&void 0!==a&&a[u]?null===(o=l.media_details.sizes)||void 0===o?void 0:o[u].source_url:null!==(n=l.media_details.sizes)&&void 0!==n&&n.full?null===(r=l.media_details.sizes)||void 0===r?void 0:r.full.source_url:l.source_url,alt:l.alt_text})))),(0,i.createElement)("div",{class:`sb-post-content sb-align-${tt}`},(0,i.createElement)("h3",{className:`sb-post-title ${X(ee,ae,oe,ne)}`},(0,i.createElement)("a",{href:e.link},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks"))),(d||c||p)&&(0,i.createElement)("div",{className:"sb-post-meta"},s&&d&&(0,i.createElement)("span",{className:"sb-post-author"},(0,i.createElement)("i",{className:"mdi-account"}),s.name),e.date_gmt&&c&&(0,i.createElement)("span",{className:"sb-post-date"},(0,i.createElement)("i",{className:"mdi-clock-time-four-outline"}),"relative_format"==Re&&`${e.relative_dates.created}`,"default"==Re&&(0,ce.dateI18n)((0,ce.getSettings)().formats.date,e.date_gmt),"custom"==Re&&(0,ce.dateI18n)(ze,e.date_gmt)),p&&(0,i.createElement)("span",{className:"sb-post-comment"},(0,i.createElement)("i",{className:"mdi-comment-outline"}),m?m.length:0)),0!=h&&(0,i.createElement)("div",{className:"sb-excerpt"},e.content.rendered&&(0,i.createElement)(i.RawHTML,null,e.content.rendered.replace(/<[^>]+>/g,"").substring(0,h),h<e.content.rendered.length?"...":""))))},qa=(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),ee&&"Default"!=ee&&(0,i.createElement)(xo,{family:ee,weight:ae.replace("italic","i")}),b&&"Default"!=b&&(0,i.createElement)(xo,{family:b,weight:v.replace("italic","i")}),Te&&"Default"!=Te&&(0,i.createElement)(xo,{family:Te,weight:Se.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Content Filter","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Select Filter","smart-blocks"),value:Nt,onChange:e=>o({filterOption:e}),options:[{value:"single-post",label:(0,g.__)("By Post Title","smart-blocks")},{value:"categories",label:(0,g.__)("By Categories","smart-blocks")},{value:"tags",label:(0,g.__)("By Tags","smart-blocks")}]}),(!Nt||"single-post"==Nt)&&(0,i.createElement)(_,{label:(0,g.__)("Select Post","smart-blocks"),options:Aa,value:p,onChange:e=>o({postId:e})}),"categories"==Nt&&(0,i.createElement)(Tn,{label:(0,g.__)("Categories","smart-blocks"),options:(()=>{let e=[];return Ga&&(e=ja(0,Ga)),e})(),value:h,setValue:e=>o({categories:e})}),"tags"==Nt&&(0,i.createElement)(Tn,{label:(0,g.__)("Tags","smart-blocks"),options:(()=>{let e=[];return Ka&&(e=ja(0,Ka)),e})(),value:y,setValue:e=>o({tags:e})}),"single-post"!=Nt&&(0,i.createElement)(E,{label:(0,g.__)("Offset","smart-blocks"),value:G,setValue:e=>o({offset:e}),min:0,max:10})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Meta","smart-blocks"),initialOpen:!1},(0,i.createElement)(F,{label:(0,g.__)("Show Post Author","smart-blocks"),checked:Z,onChange:e=>o({postPostAuthor:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Date","smart-blocks"),checked:q,onChange:e=>o({postPostDate:e})}),(0,i.createElement)(F,{label:(0,g.__)("Show Post Comments","smart-blocks"),checked:Y,onChange:e=>o({postPostComments:e})}),(0,i.createElement)(_,{label:(0,g.__)("Date Format","smart-blocks"),value:Re,onChange:e=>o({dateFormat:e}),options:[{value:"relative_format",label:(0,g.__)("Relative Format (Ago)","smart-blocks")},{value:"default",label:(0,g.__)("WordPress Default Format","smart-blocks")},{value:"custom",label:(0,g.__)("Custom Format","smart-blocks")}]}),"custom"==Re&&(0,i.createElement)(u.TextControl,{label:(0,g.__)("Custom Date Format","smart-blocks"),value:ze,onChange:e=>o({customDateFormat:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Post Excerpt","smart-blocks"),initialOpen:!1},(0,i.createElement)(E,{label:(0,g.__)("Excerpt Length","smart-blocks"),value:et,setValue:e=>o({postExcerptLength:e}),min:0,max:600})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Image Settings","smart-blocks"),initialOpen:!1},(0,i.createElement)(_,{label:(0,g.__)("Image Size","smart-blocks"),options:(()=>{const e=[];return null==qa||qa.forEach((t=>{e.push({value:t.slug,label:t.name})})),e})(),value:j,onChange:e=>o({postImageSize:e})}),(0,i.createElement)(E,{label:(0,g.__)("Image Height (%)","smart-blocks"),value:K,setValue:e=>o({postImageHeight:e}),min:30,max:150}),(0,i.createElement)(E,{label:(0,g.__)("Image Border Radius(px)","smart-blocks"),value:De,setValue:e=>o({imageBorderRadius:e}),min:0,max:30}),(0,i.createElement)(_,{label:(0,g.__)("Content Alignment","smart-blocks"),value:tt,onChange:e=>o({contentAlignment:e}),options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]})))||"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(u.GradientPicker,{value:Ht,onChange:e=>o({contentOverlayBackground:e}),gradients:[{name:"JShine",gradient:"linear-gradient(0deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)",slug:"jshine"},{name:"Moonlit Asteroid",gradient:"linear-gradient(0deg,#0F2027 0%, #203A43 0%, #2c5364 100%)",slug:"moonlit-asteroid"},{name:"Rastafarie",gradient:"linear-gradient(0deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)",slug:"rastafari"}]}),(0,i.createElement)(x,{label:(0,g.__)("Content Padding","smart-blocks"),dimensionTop:dt,setDimensionTop:e=>o({contentPaddingTop:e}),dimensionMdTop:rt,setDimensionMdTop:e=>o({contentPaddingMdTop:e}),dimensionSmTop:at,setDimensionSmTop:e=>o({contentPaddingSmTop:e}),dimensionLeft:ct,setDimensionLeft:e=>o({contentPaddingLeft:e}),dimensionMdLeft:lt,setDimensionMdLeft:e=>o({contentPaddingMdLeft:e}),dimensionSmLeft:it,setDimensionSmLeft:e=>o({contentPaddingSmLeft:e}),dimensionRight:pt,setDimensionRight:e=>o({contentPaddingRight:e}),dimensionMdRight:st,setDimensionMdRight:e=>o({contentPaddingMdRight:e}),dimensionSmRight:ot,setDimensionSmRight:e=>o({contentPaddingSmRight:e}),dimensionBottom:gt,setDimensionBottom:e=>o({contentPaddingBottom:e}),dimensionMdBottom:mt,setDimensionMdBottom:e=>o({contentPaddingMdBottom:e}),dimensionSmBottom:nt,setDimensionSmBottom:e=>o({contentPaddingSmBottom:e}),unit:ut,setUnit:e=>o({contentPaddingUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Content Margin","smart-blocks"),dimensionTop:Mt,setDimensionTop:e=>o({contentMarginTop:e}),dimensionMdTop:Tt,setDimensionMdTop:e=>o({contentMarginMdTop:e}),dimensionSmTop:ht,setDimensionSmTop:e=>o({contentMarginSmTop:e}),dimensionLeft:xt,setDimensionLeft:e=>o({contentMarginLeft:e}),dimensionMdLeft:St,setDimensionMdLeft:e=>o({contentMarginMdLeft:e}),dimensionSmLeft:yt,setDimensionSmLeft:e=>o({contentMarginSmLeft:e}),dimensionRight:Et,setDimensionRight:e=>o({contentMarginRight:e}),dimensionMdRight:ft,setDimensionMdRight:e=>o({contentMarginMdRight:e}),dimensionSmRight:bt,setDimensionSmRight:e=>o({contentMarginSmRight:e}),dimensionBottom:kt,setDimensionBottom:e=>o({contentMarginBottom:e}),dimensionMdBottom:Lt,setDimensionMdBottom:e=>o({contentMarginMdBottom:e}),dimensionSmBottom:vt,setDimensionSmBottom:e=>o({contentMarginSmBottom:e}),unit:Bt,setUnit:e=>o({contentMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:"Post Title",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Xe,setValue:e=>o({titleColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:ee,setValueFamily:e=>o({postTypographyFamily:e}),valueWeight:ae,setValueWeight:e=>o({postTypographyWeight:e}),valueTextTransform:oe,setValueTextTransform:e=>o({postTypographyTextTransform:e}),valueTextDecoration:ne,setValueTextDecoration:e=>o({postTypographyTextDecoration:e}),valueFontSizeSm:re,setValueFontSizeSm:e=>o({postTypographyFontSizeSm:e}),valueFontSizeMd:le,setValueFontSizeMd:e=>o({postTypographyFontSizeMd:e}),valueFontSize:se,setValueFontSize:e=>o({postTypographyFontSize:e}),valueFontSizeUnit:me,setValueFontSizeUnit:e=>o({postTypographyFontSizeUnit:e}),valueLetterSpacingSm:de,setValueLetterSpacingSm:e=>o({postTypographyLetterSpacingSm:e}),valueLetterSpacingMd:pe,setValueLetterSpacingMd:e=>o({postTypographyLetterSpacingMd:e}),valueLetterSpacing:ge,setValueLetterSpacing:e=>o({postTypographyLetterSpacing:e}),valueLetterSpacingUnit:ue,setValueLetterSpacingUnit:e=>o({postTypographyLetterSpacingUnit:e}),valueLineHeightSm:he,setValueLineHeightSm:e=>o({postTypographyLineHeightSm:e}),valueLineHeightMd:ye,setValueLineHeightMd:e=>o({postTypographyLineHeightMd:e}),valueLineHeight:be,setValueLineHeight:e=>o({postTypographyLineHeight:e}),valueLineHeightUnit:ve,setValueLineHeightUnit:e=>o({postTypographyLineHeightUnit:e})}),(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),dimensionTop:je,setDimensionTop:e=>o({postTitleMarginTop:e}),dimensionMdTop:We,setDimensionMdTop:e=>o({postTitleMarginMdTop:e}),dimensionSmTop:Ue,setDimensionSmTop:e=>o({postTitleMarginSmTop:e}),dimensionLeft:Ke,setDimensionLeft:e=>o({postTitleMarginLeft:e}),dimensionMdLeft:Oe,setDimensionMdLeft:e=>o({postTitleMarginMdLeft:e}),dimensionSmLeft:Pe,setDimensionSmLeft:e=>o({postTitleMarginSmLeft:e}),dimensionRight:Ze,setDimensionRight:e=>o({postTitleMarginRight:e}),dimensionMdRight:Ae,setDimensionMdRight:e=>o({postTitleMarginMdRight:e}),dimensionSmRight:Ie,setDimensionSmRight:e=>o({postTitleMarginSmRight:e}),dimensionBottom:qe,setDimensionBottom:e=>o({postTitleMarginBottom:e}),dimensionMdBottom:Ge,setDimensionMdBottom:e=>o({postTitleMarginMdBottom:e}),dimensionSmBottom:$e,setDimensionSmBottom:e=>o({postTitleMarginSmBottom:e}),unit:Ye,setUnit:e=>o({postTitleMarginUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:"Post Metas",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:Qe,setValue:e=>o({postMetasColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:Te,setValueFamily:e=>o({metasTypographyFamily:e}),valueWeight:Se,setValueWeight:e=>o({metasTypographyWeight:e}),valueTextTransform:fe,setValueTextTransform:e=>o({metasTypographyTextTransform:e}),valueTextDecoration:Le,setValueTextDecoration:e=>o({metasTypographyTextDecoration:e}),valueFontSizeSm:Me,setValueFontSizeSm:e=>o({metasTypographyFontSizeSm:e}),valueFontSizeMd:xe,setValueFontSizeMd:e=>o({metasTypographyFontSizeMd:e}),valueFontSize:Ee,setValueFontSize:e=>o({metasTypographyFontSize:e}),valueFontSizeUnit:ke,setValueFontSizeUnit:e=>o({metasTypographyFontSizeUnit:e}),valueLetterSpacingSm:Be,setValueLetterSpacingSm:e=>o({metasTypographyLetterSpacingSm:e}),valueLetterSpacingMd:_e,setValueLetterSpacingMd:e=>o({metasTypographyLetterSpacingMd:e}),valueLetterSpacing:He,setValueLetterSpacing:e=>o({metasTypographyLetterSpacing:e}),valueLetterSpacingUnit:Ne,setValueLetterSpacingUnit:e=>o({metasTypographyLetterSpacingUnit:e}),valueLineHeightSm:Ve,setValueLineHeightSm:e=>o({metasTypographyLineHeightSm:e}),valueLineHeightMd:Ce,setValueLineHeightMd:e=>o({metasTypographyLineHeightMd:e}),valueLineHeight:we,setValueLineHeight:e=>o({metasTypographyLineHeight:e}),valueLineHeightUnit:Fe,setValueLineHeightUnit:e=>o({metasTypographyLineHeightUnit:e})})),(0,i.createElement)(u.PanelBody,{title:"Post Excerpt",initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Color","smart-blocks"),enableAlpha:!0,value:_t,setValue:e=>o({excerptColor:e})}),(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:b,setValueFamily:e=>o({excerptTypographyFamily:e}),valueWeight:v,setValueWeight:e=>o({excerptTypographyWeight:e}),valueTextTransform:L,setValueTextTransform:e=>o({excerptTypographyTextTransform:e}),valueTextDecoration:M,setValueTextDecoration:e=>o({excerptTypographyTextDecoration:e}),valueFontSizeSm:k,setValueFontSizeSm:e=>o({excerptTypographyFontSizeSm:e}),valueFontSizeMd:H,setValueFontSizeMd:e=>o({excerptTypographyFontSizeMd:e}),valueFontSize:N,setValueFontSize:e=>o({excerptTypographyFontSize:e}),valueFontSizeUnit:w,setValueFontSizeUnit:e=>o({excerptTypographyFontSizeUnit:e}),valueLetterSpacingSm:z,setValueLetterSpacingSm:e=>o({excerptTypographyLetterSpacingSm:e}),valueLetterSpacingMd:D,setValueLetterSpacingMd:e=>o({excerptTypographyLetterSpacingMd:e}),valueLetterSpacing:U,setValueLetterSpacing:e=>o({excerptTypographyLetterSpacing:e}),valueLetterSpacingUnit:P,setValueLetterSpacingUnit:e=>o({excerptTypographyLetterSpacingUnit:e}),valueLineHeightSm:I,setValueLineHeightSm:e=>o({excerptTypographyLineHeightSm:e}),valueLineHeightMd:$,setValueLineHeightMd:e=>o({excerptTypographyLineHeightMd:e}),valueLineHeight:W,setValueLineHeight:e=>o({excerptTypographyLineHeight:e}),valueLineHeightUnit:O,setValueLineHeightUnit:e=>o({excerptTypographyLineHeightUnit:e})})))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Pt,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Rt,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:Vt,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:It,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:zt,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Ct,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:$t,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Dt,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:wt,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:Wt,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:Ut,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:Ft,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ot,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Jt,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Zt,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:At,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Qt,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:qt,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Gt,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:ea,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Yt,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:jt,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:ta,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:Xt,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:Kt,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:aa,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:ia,setValue:e=>o({borderNormal:e})}),ia&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:na,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:la,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:sa,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ma,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:da,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:ca,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:ba,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:va,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:Ta,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:Sa,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:fa,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Ba,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:_a,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:Ha,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Na,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:Va,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Ca,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:oa,setValue:e=>o({borderHover:e})}),oa&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:ra,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:pa,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:ga,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:ua,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:ha,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ya,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:La,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:Ma,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:xa,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:Ea,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ka,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:wa,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Fa,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Ra,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:za,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Da,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:Ua,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Pa,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-single-post"}),(0,i.createElement)("div",{className:"sb-single-post-two"},"single-post"==Nt&&Oa&&p?Za(Oa.filter((e=>e.id==p))[0]):Wa&&Wa.map((e=>Za(e)))))))},save:function(){return null}}),(0,o.registerBlockType)("smart-blocks/ticker-module",{icon:(0,i.createElement)((()=>(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 600"},(0,i.createElement)("path",{fill:"#687e8b",stroke:"#fff",d:"M107 154.5h342.95v80H107z"}),(0,i.createElement)("path",{fill:"#8ca7b9",d:"M119.274 165.671v56.736h96.848l26.019-26.742-30.355-30.355-92.512.361z",opacity:"NaN"}))),null),supports:{html:!1},category:"smart-blocks-magazine-modules",title:(0,g.__)("Ticker Module","smart-blocks"),description:(0,g.__)("Smart Blocks News Modules","smart-blocks"),keywords:["posts"],edit:function(t){const{attributes:a,setAttributes:o}=t,[n,r]=(0,i.useState)("layout"),{id:s,sbStyle:m,order:p,orderBy:h,excludePosts:y,categories:b,tickerTitleTypographyFamily:v,tickerTitleTypographyWeight:L,tickerTitleTypographyTextTransform:M,tickerTitleTypographyTextDecoration:k,tickerTitleTypographyFontSizeSm:_,tickerTitleTypographyFontSizeMd:H,tickerTitleTypographyFontSize:N,tickerTitleTypographyFontSizeUnit:w,tickerTitleTypographyLetterSpacingSm:z,tickerTitleTypographyLetterSpacingMd:D,tickerTitleTypographyLetterSpacing:U,tickerTitleTypographyLetterSpacingUnit:P,tickerTitleTypographyLineHeightSm:I,tickerTitleTypographyLineHeightMd:$,tickerTitleTypographyLineHeight:W,tickerTitleTypographyLineHeightUnit:O,postsPostType:A,offset:G,autoplay:j,pause:K,noOfPosts:Z,tickerTitle:q,tickerTitleBgColor:Y,tickerTitleColor:X,tickerContent:ee,tickerContentBgColor:ae,tickerContentColor:oe,tickerContentHoverColor:ne,tickerContentTypographyFamily:re,tickerContentTypographyWeight:le,tickerContentTypographyTextTransform:se,tickerContentTypographyTextDecoration:me,tickerContentTypographyFontSizeSm:de,tickerContentTypographyFontSizeMd:ce,tickerContentTypographyFontSize:pe,tickerContentTypographyFontSizeUnit:ge,tickerContentTypographyLetterSpacingSm:ue,tickerContentTypographyLetterSpacingMd:he,tickerContentTypographyLetterSpacing:ye,tickerContentTypographyLetterSpacingUnit:be,tickerContentTypographyLineHeightSm:ve,tickerContentTypographyLineHeightMd:Te,tickerContentTypographyLineHeight:Se,tickerContentTypographyLineHeightUnit:fe,navNormalBgColor:Le,navIconNormalColor:Me,navHoverBgColor:xe,navIconHoverColor:Ee,blockMarginSmTop:ke,blockMarginSmLeft:Be,blockMarginSmRight:_e,blockMarginSmBottom:He,blockMarginMdTop:Ne,blockMarginMdLeft:Ve,blockMarginMdRight:Ce,blockMarginMdBottom:we,blockMarginTop:Fe,blockMarginLeft:Re,blockMarginRight:ze,blockMarginBottom:De,blockMarginUnit:Ue,blockPaddingSmTop:Pe,blockPaddingSmLeft:Ie,blockPaddingSmRight:$e,blockPaddingSmBottom:We,blockPaddingMdTop:Oe,blockPaddingMdLeft:Ae,blockPaddingMdRight:Ge,blockPaddingMdBottom:je,blockPaddingTop:Ke,blockPaddingLeft:Ze,blockPaddingRight:qe,blockPaddingBottom:Ye,blockPaddingUnit:Xe,borderNormal:Je,borderHover:Qe,borderNormalColor:et,borderHoverColor:tt,borderNormalWidthTop:at,borderNormalWidthLeft:it,borderNormalWidthRight:ot,borderNormalWidthBottom:nt,borderNormalWidthUnit:rt,borderHoverWidthTop:lt,borderHoverWidthLeft:st,borderHoverWidthRight:mt,borderHoverWidthBottom:dt,borderHoverWidthUnit:ct,borderNormalRadiusTop:pt,borderNormalRadiusLeft:gt,borderNormalRadiusRight:ut,borderNormalRadiusBottom:ht,borderNormalRadiusUnit:yt,borderHoverRadiusTop:bt,borderHoverRadiusLeft:vt,borderHoverRadiusRight:Tt,borderHoverRadiusBottom:St,borderHoverRadiusUnit:ft,borderNormalBoxShadowHorizontal:Lt,borderNormalBoxShadowVertical:Mt,borderNormalBoxShadowBlur:xt,borderNormalBoxShadowSpread:Et,borderNormalBoxShadowColor:kt,borderNormalBoxShadowInset:Bt,borderHoverBoxShadowHorizontal:_t,borderHoverBoxShadowVertical:Ht,borderHoverBoxShadowBlur:Nt,borderHoverBoxShadowSpread:Vt,borderHoverBoxShadowColor:Ct,borderHoverBoxShadowInset:wt,blockBgColor:Ft}=a;o({id:(0,d.useBlockProps)().id});const Rt=`#${s} {\n        ${Je?"--sb-border-normal: "+Je+";":""}\n        ${Qe?"--sb-border-hover: "+Je+";":""}\n        ${et?"--sb-border-normal-color: "+et+";":""}\n        ${tt?"--sb-border-hover-color: "+tt+";":""}\n\n        ${J("border-normal-width",at,ot,nt,it,rt)}\n        ${J("border-hover-width",lt,mt,dt,st,ct)}\n        ${J("border-normal-radius",pt,ut,ht,gt,yt)}\n        ${J("border-hover-radius",bt,Tt,St,vt,ft)}\n\n        ${te("border-normal-box-shadow",Lt,Mt,xt,Et,kt,Bt,"px")}\n        ${te("border-hover-box-shadow",_t,Ht,Nt,Vt,Ct,wt,"px")}\n\n        ${Ft?"--sb-block-bg-color: "+Ft+";":""}\n\n        ${Q("block-margin",Fe,ze,De,Re,ke,_e,He,Be,Ne,Ce,we,Ve,Ue)}\n\n        ${Q("block-padding",Ke,qe,Ye,Ze,Pe,$e,We,Ie,Oe,Ge,je,Ae,Xe)}\n\n        ${Ft?"--sb-block-bg-color: "+Ft+";":""}\n\n        ${ie("ticker-title-typo",v,L,M,k,_,H,N,w,z,D,U,P,I,$,W,O)}\n\n        ${ie("ticker-content-typo",re,le,se,me,de,ce,pe,ge,ue,he,ye,be,ve,Te,Se,fe)}\n\n        ${Y?"--sb-ticker-title-bg-color: "+Y+";":""}\n        ${X?"--sb-ticker-title-color: "+X+";":""}\n        ${ae?"--sb-ticker-content-bg-color: "+ae+";":""}\n        ${oe?"--sb-ticker-content-color: "+oe+";":""}\n        ${ne?"--sb-ticker-content-hover-color: "+ne+";":""}\n        ${Le?"--sb-nav-normal-bg-color: "+Le+";":""}\n        ${Me?"--sb-nav-icon-normal-color: "+Me+";":""}\n        ${xe?"--sb-nav-hover-bg-color: "+xe+";":""}\n        ${Ee?"--sb-nav-icon-hover-color: "+Ee+";":""}\n    }`;o({sbStyle:Rt.replace(/([^0-9a-zA-Z\.#])\s+/g,"$1").replace(/\s([^0-9a-zA-Z\.#]+)/g,"$1").replace(/;}/g,"}").replace(/\/\*.*?\*\//g,"")});const zt=(0,e.useSelect)((e=>{var t=[],a=e("core").getTaxonomies();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&e.types[0]==A&&t.push({value:e.slug,label:e.name})})),t}),[A]),Dt={per_page:Z,_embed:!0,order:p,orderby:h,offset:parseInt(G||0),exclude:y};zt&&zt.map((e=>{let t=e.value;var a;"category"==t&&(t="categories"),"post_tag"==t&&(t="tags"),Dt[t]=(a=e.value,b&&b[a]?b[a]:[])}));const Ut=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",A,Dt)),[p,h,b,A,G,Dt,y]),Pt=(0,e.useSelect)((e=>e("core").getEntityRecords("postType",A,{per_page:10,_embed:!0,order:p,orderby:h,offset:parseInt(G||0)})),[p,h,b,A,G,y]);var It=[];return Pt&&Pt.map(((e,t)=>{It.push({value:e.id,label:e.title.rendered})})),(0,e.useSelect)((e=>{let t=[],a=e("core").getPostTypes();return null==a||a.forEach((e=>{!0===e.visibility.show_in_nav_menus&&t.push({value:e.slug,label:e.name})})),t}),[]),(0,e.useSelect)((e=>e("core").getEntityRecords("taxonomy","category",{per_page:-1})),[]),(0,e.useSelect)((e=>e(d.store).getSettings().imageSizes),[]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("style",{jsx:!0},(0,c.applyFilters)("smartblocks.editorcss",m,t)),v&&"Default"!=v&&(0,i.createElement)(xo,{family:v,weight:L.replace("italic","i")}),re&&"Default"!=re&&(0,i.createElement)(xo,{family:re,weight:le.replace("italic","i")}),(0,i.createElement)(d.InspectorControls,null,(0,i.createElement)("div",{className:"sb-head-panel-tabs"},(0,i.createElement)("div",{className:"sb-panel-tabs-wrap"},(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"layout"===n}),onClick:()=>r("layout")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(T,null)),(0,g.__)("Layout","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"style"===n}),onClick:()=>r("style")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(S,null)),(0,g.__)("Style","smart-blocks")),(0,i.createElement)(u.Button,{className:l()("sb-panel-tab",{"active-tab":"advanced"===n}),onClick:()=>r("advanced")},(0,i.createElement)("span",{className:"dashicons"},(0,i.createElement)(f,null)),(0,g.__)("Advanced","smart-blocks"))),(0,i.createElement)("div",{className:"sb-panel-tab-fields"},"layout"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Ticker Block","smart-blocks"),initialOpen:!1},(0,i.createElement)(u.TextControl,{label:(0,g.__)("Title","smart-blocks"),value:q,onChange:e=>o({tickerTitle:e})}),(0,i.createElement)(F,{label:(0,g.__)("Autoplay","smart-blocks"),checked:j,onChange:e=>o({autoplay:e})}),j&&(0,i.createElement)(E,{label:(0,g.__)("Ticker Pause Duration","smart-blocks"),value:K,setValue:e=>o({pause:e}),min:1,max:20})),(0,i.createElement)(Sn,{attributes:a,setAttributes:o,usePostNumber:!0}))||"style"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Title","smart-blocks"),initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:v,setValueFamily:e=>o({tickerTitleTypographyFamily:e}),valueWeight:L,setValueWeight:e=>o({tickerTitleTypographyWeight:e}),valueTextTransform:M,setValueTextTransform:e=>o({tickerTitleTypographyTextTransform:e}),valueTextDecoration:k,setValueTextDecoration:e=>o({tickerTitleTypographyTextDecoration:e}),valueFontSizeSm:_,setValueFontSizeSm:e=>o({tickerTitleTypographyFontSizeSm:e}),valueFontSizeMd:H,setValueFontSizeMd:e=>o({tickerTitleTypographyFontSizeMd:e}),valueFontSize:N,setValueFontSize:e=>o({tickerTitleTypographyFontSize:e}),valueFontSizeUnit:w,setValueFontSizeUnit:e=>o({tickerTitleTypographyFontSizeUnit:e}),valueLetterSpacingSm:z,setValueLetterSpacingSm:e=>o({tickerTitleTypographyLetterSpacingSm:e}),valueLetterSpacingMd:D,setValueLetterSpacingMd:e=>o({tickerTitleTypographyLetterSpacingMd:e}),valueLetterSpacing:U,setValueLetterSpacing:e=>o({tickerTitleTypographyLetterSpacing:e}),valueLetterSpacingUnit:P,setValueLetterSpacingUnit:e=>o({tickerTitleTypographyLetterSpacingUnit:e}),valueLineHeightSm:I,setValueLineHeightSm:e=>o({tickerTitleTypographyLineHeightSm:e}),valueLineHeightMd:$,setValueLineHeightMd:e=>o({tickerTitleTypographyLineHeightMd:e}),valueLineHeight:W,setValueLineHeight:e=>o({tickerTitleTypographyLineHeight:e}),valueLineHeightUnit:O,setValueLineHeightUnit:e=>o({tickerTitleTypographyLineHeightUnit:e})}),(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Y,setValue:e=>o({tickerTitleBgColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:X,setValue:e=>o({tickerTitleColor:e})})),(0,i.createElement)(u.PanelBody,{title:"Content",initialOpen:!1},(0,i.createElement)(Mo,{label:(0,g.__)("Typography","smart-blocks"),valueFamily:re,setValueFamily:e=>o({tickerContentTypographyFamily:e}),valueWeight:le,setValueWeight:e=>o({tickerContentTypographyWeight:e}),valueTextTransform:se,setValueTextTransform:e=>o({tickerContentTypographyTextTransform:e}),valueTextDecoration:me,setValueTextDecoration:e=>o({tickerContentTypographyTextDecoration:e}),valueFontSizeSm:de,setValueFontSizeSm:e=>o({tickerContentTypographyFontSizeSm:e}),valueFontSizeMd:ce,setValueFontSizeMd:e=>o({tickerContentTypographyFontSizeMd:e}),valueFontSize:pe,setValueFontSize:e=>o({tickerContentTypographyFontSize:e}),valueFontSizeUnit:ge,setValueFontSizeUnit:e=>o({tickerContentTypographyFontSizeUnit:e}),valueLetterSpacingSm:ue,setValueLetterSpacingSm:e=>o({tickerContentTypographyLetterSpacingSm:e}),valueLetterSpacingMd:he,setValueLetterSpacingMd:e=>o({tickerContentTypographyLetterSpacingMd:e}),valueLetterSpacing:ye,setValueLetterSpacing:e=>o({tickerContentTypographyLetterSpacing:e}),valueLetterSpacingUnit:be,setValueLetterSpacingUnit:e=>o({tickerContentTypographyLetterSpacingUnit:e}),valueLineHeightSm:ve,setValueLineHeightSm:e=>o({tickerContentTypographyLineHeightSm:e}),valueLineHeightMd:Te,setValueLineHeightMd:e=>o({tickerContentTypographyLineHeightMd:e}),valueLineHeight:Se,setValueLineHeight:e=>o({tickerContentTypographyLineHeight:e}),valueLineHeightUnit:fe,setValueLineHeightUnit:e=>o({tickerContentTypographyLineHeightUnit:e})}),(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:ae,setValue:e=>o({tickerContentBgColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color","smart-blocks"),enableAlpha:!0,value:oe,setValue:e=>o({tickerContentColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color (Hover)","smart-blocks"),enableAlpha:!0,value:ne,setValue:e=>o({tickerContentHoverColor:e})})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Navigation","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Le,setValue:e=>o({navNormalBgColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Icon Color","smart-blocks"),enableAlpha:!0,value:Me,setValue:e=>o({navIconNormalColor:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(B,{label:(0,g.__)("Background Color(Hover)","smart-blocks"),enableAlpha:!0,value:xe,setValue:e=>o({navHoverBgColor:e})}),(0,i.createElement)(B,{label:(0,g.__)("Text Color(Hover)","smart-blocks"),enableAlpha:!0,value:Ee,setValue:e=>o({navIconHoverColor:e})})))))||"advanced"===n&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Spacing","smart-blocks"),initialOpen:!1},(0,i.createElement)(x,{label:(0,g.__)("Margin","smart-blocks"),min:"0",max:"100",dimensionTop:Fe,setDimensionTop:e=>o({blockMarginTop:e}),dimensionMdTop:Ne,setDimensionMdTop:e=>o({blockMarginMdTop:e}),dimensionSmTop:ke,setDimensionSmTop:e=>o({blockMarginSmTop:e}),dimensionLeft:Re,setDimensionLeft:e=>o({blockMarginLeft:e}),dimensionMdLeft:Ve,setDimensionMdLeft:e=>o({blockMarginMdLeft:e}),dimensionSmLeft:Be,setDimensionSmLeft:e=>o({blockMarginSmLeft:e}),dimensionRight:ze,setDimensionRight:e=>o({blockMarginRight:e}),dimensionMdRight:Ce,setDimensionMdRight:e=>o({blockMarginMdRight:e}),dimensionSmRight:_e,setDimensionSmRight:e=>o({blockMarginSmRight:e}),dimensionBottom:De,setDimensionBottom:e=>o({blockMarginBottom:e}),dimensionMdBottom:we,setDimensionMdBottom:e=>o({blockMarginMdBottom:e}),dimensionSmBottom:He,setDimensionSmBottom:e=>o({blockMarginSmBottom:e}),unit:Ue,setUnit:e=>o({blockMarginUnit:e}),responsive:!0}),(0,i.createElement)(x,{label:(0,g.__)("Padding","smart-blocks"),min:"0",max:"100",dimensionTop:Ke,setDimensionTop:e=>o({blockPaddingTop:e}),dimensionMdTop:Oe,setDimensionMdTop:e=>o({blockPaddingMdTop:e}),dimensionSmTop:Pe,setDimensionSmTop:e=>o({blockPaddingSmTop:e}),dimensionLeft:Ze,setDimensionLeft:e=>o({blockPaddingLeft:e}),dimensionMdLeft:Ae,setDimensionMdLeft:e=>o({blockPaddingMdLeft:e}),dimensionSmLeft:Ie,setDimensionSmLeft:e=>o({blockPaddingSmLeft:e}),dimensionRight:qe,setDimensionRight:e=>o({blockPaddingRight:e}),dimensionMdRight:Ge,setDimensionMdRight:e=>o({blockPaddingMdRight:e}),dimensionSmRight:$e,setDimensionSmRight:e=>o({blockPaddingSmRight:e}),dimensionBottom:Ye,setDimensionBottom:e=>o({blockPaddingBottom:e}),dimensionMdBottom:je,setDimensionMdBottom:e=>o({blockPaddingMdBottom:e}),dimensionSmBottom:We,setDimensionSmBottom:e=>o({blockPaddingSmBottom:e}),unit:Xe,setUnit:e=>o({blockPaddingUnit:e}),responsive:!0})),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Border","smart-blocks"),initialOpen:!1},(0,i.createElement)(R,null,(0,i.createElement)("div",{tabTitle:(0,g.__)("Normal","smart-blocks")},(0,i.createElement)(C,{value:Je,setValue:e=>o({borderNormal:e})}),Je&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:et,setValue:e=>o({borderNormalColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:at,setDimensionTop:e=>o({borderNormalWidthTop:e}),dimensionLeft:it,setDimensionLeft:e=>o({borderNormalWidthLeft:e}),dimensionRight:ot,setDimensionRight:e=>o({borderNormalWidthRight:e}),dimensionBottom:nt,setDimensionBottom:e=>o({borderNormalWidthBottom:e}),unit:rt,setUnit:e=>o({borderNormalWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:pt,setDimensionTop:e=>o({borderNormalRadiusTop:e}),dimensionLeft:gt,setDimensionLeft:e=>o({borderNormalRadiusLeft:e}),dimensionRight:ut,setDimensionRight:e=>o({borderNormalRadiusRight:e}),dimensionBottom:ht,setDimensionBottom:e=>o({borderNormalRadiusBottom:e}),unit:yt,setUnit:e=>o({borderNormalRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:Lt,setValueHorizontal:e=>o({borderNormalBoxShadowHorizontal:e}),valueVertical:Mt,setValueVertical:e=>o({borderNormalBoxShadowVertical:e}),valueBlur:xt,setValueBlur:e=>o({borderNormalBoxShadowBlur:e}),valueSpread:Et,setValueSpread:e=>o({borderNormalBoxShadowSpread:e}),valueColor:kt,setValueColor:e=>o({borderNormalBoxShadowColor:e}),valueInset:Bt,setValueInset:e=>o({borderNormalBoxShadowInset:e})})),(0,i.createElement)("div",{tabTitle:(0,g.__)("Hover","smart-blocks")},(0,i.createElement)(C,{value:Qe,setValue:e=>o({borderHover:e})}),Qe&&(0,i.createElement)(B,{label:(0,g.__)("Border Color","smart-blocks"),enableAlpha:!0,value:tt,setValue:e=>o({borderHoverColor:e})}),(0,i.createElement)(x,{label:(0,g.__)("Border Width","smart-blocks"),dimensionTop:lt,setDimensionTop:e=>o({borderHoverWidthTop:e}),dimensionLeft:st,setDimensionLeft:e=>o({borderHoverWidthLeft:e}),dimensionRight:mt,setDimensionRight:e=>o({borderHoverWidthRight:e}),dimensionBottom:dt,setDimensionBottom:e=>o({borderHoverWidthBottom:e}),unit:ct,setUnit:e=>o({borderHoverWidthUnit:e}),units:["px","em"]}),(0,i.createElement)(x,{label:(0,g.__)("Border Radius","smart-blocks"),dimensionTop:bt,setDimensionTop:e=>o({borderHoverRadiusTop:e}),dimensionLeft:vt,setDimensionLeft:e=>o({borderHoverRadiusLeft:e}),dimensionRight:Tt,setDimensionRight:e=>o({borderHoverRadiusRight:e}),dimensionBottom:St,setDimensionBottom:e=>o({borderHoverRadiusBottom:e}),unit:ft,setUnit:e=>o({borderHoverRadiusUnit:e})}),(0,i.createElement)(V,{valueHorizontal:_t,setValueHorizontal:e=>o({borderHoverBoxShadowHorizontal:e}),valueVertical:Ht,setValueVertical:e=>o({borderHoverBoxShadowVertical:e}),valueBlur:Nt,setValueBlur:e=>o({borderHoverBoxShadowBlur:e}),valueSpread:Vt,setValueSpread:e=>o({borderHoverBoxShadowSpread:e}),valueColor:Ct,setValueColor:e=>o({borderHoverBoxShadowColor:e}),valueInset:wt,setValueInset:e=>o({borderHoverBoxShadowInset:e})})))),(0,i.createElement)(u.PanelBody,{title:(0,g.__)("Background","smart-blocks"),initialOpen:!1},(0,i.createElement)(B,{label:(0,g.__)("Background Color","smart-blocks"),enableAlpha:!0,value:Ft,setValue:e=>o({blockBgColor:e})})),(0,c.applyFilters)("smartblocks.advancedBlocks","",t),(0,c.applyFilters)("smartblocks.blockTools","",t))))),(0,i.createElement)("div",{id:s},(0,i.createElement)("div",(0,d.useBlockProps)({className:"wp-block-smart-blocks sb-ticker"}),q&&(0,i.createElement)("span",{className:"sb-ticker-title"},q),(0,i.createElement)("div",{className:"sb-ticker-posts"},Ut&&(0,i.createElement)(Ln(),{items:1,margin:10,loop:!0,mouseDrag:!1,autoplay:!!j,autoplayTimeout:1e3*parseInt(K),nav:!0,dots:!1,navText:['<i class="mdi-chevron-left"></i>','<i class="mdi-chevron-right"></i>'],className:""},Ut.map(((e,t)=>(0,i.createElement)("a",{href:e.link,key:e.id},e.title.rendered?(0,i.createElement)(i.RawHTML,null,e.title.rendered):(0,g.__)("(No title)","smart-blocks")))))))))},save:function(){return null}})})()})();
  • smart-blocks/trunk/inc/generate-css.php

    r3130673 r3234546  
    4949                    if (str_contains($attrs, 'Family')) {
    5050                        $family = $value;
    51                     }
    52                     if (str_contains($attrs, 'Weight')) {
    53                         $weight = $value;
     51                        $weight = $blockAttrs[str_replace('Family', 'Weight', $attrs)];
    5452                    }
    5553                    if ($family && $family != 'inherit') {
     
    225223                        if (str_contains($attrs, 'Family')) {
    226224                            $family = $value;
    227                         }
    228                         if (str_contains($attrs, 'Weight')) {
    229                             $weight = $value;
     225                            $weight = $blockAttrs[str_replace('Family', 'Weight', $attrs)];
    230226                        }
    231227                        if ($family && $family != 'inherit') {
     
    255251                if (str_contains($attrs, 'Family')) {
    256252                    $family = $value;
    257                 }
    258                 if (str_contains($attrs, 'Weight')) {
    259                     $weight = $value;
     253                    $weight = $blockAttrs[str_replace('Family', 'Weight', $attrs)];
    260254                }
    261255                if ($family && $family != 'inherit') {
  • smart-blocks/trunk/readme.txt

    r3159635 r3234546  
    22Contributors:      hashthemes
    33Tags:              block, gutenberg, blocks, gutenberg blocks, wordpress blocks
    4 Tested up to:      6.6
    5 Stable tag:        2.1
    6 Requires at least: 5.0
    7 Requires PHP:      5.6
     4Tested up to:      6.7
     5Stable tag:        2.2
     6Requires at least: 6.0
     7Requires PHP:      7.0
    88License:           GPL-2.0-or-later
    99License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    2525
    2626== Changelog ==
     27= 2.2 - Feb 04, 2025 =
     28* Code fixes
     29
    2730= 2.1 - Sep 30, 2024 =
    2831* Proper escaping of output releated to Security bug - Fixed
  • smart-blocks/trunk/smart-blocks.php

    r3159635 r3234546  
    44  Plugin Name:       Smart Blocks - WordPress Gutenberg Blocks
    55  Description:       Collection of advanced blocks to be used with WordPress Gutenberg Pagebuilder
    6   Version:           2.1
     6  Version:           2.2
    77  Author:            HashThemes
    88  Author URI:        http://hashthemes.com
     
    1616define('SMART_BLOCKS_PATH', plugin_dir_path(SMART_BLOCKS_FILE));
    1717define('SMART_BLOCKS_URL', plugins_url('/', SMART_BLOCKS_FILE));
    18 define('SMART_BLOCKS_VERSION', '2.1');
     18define('SMART_BLOCKS_VERSION', '2.2');
    1919
    2020if (!class_exists('Smart_Blocks')) {
     
    4141
    4242            // Initialize Blocks
    43             add_action('init', array($this, 'create_block_init'));
     43            add_action('init', array($this, 'create_block_init'), 1000);
    4444
    4545            // Load necessary files.
     
    9595            wp_register_style('materialdesignicons', SMART_BLOCKS_URL . 'inc/assets/css/materialdesignicons.css', array(), SMART_BLOCKS_VERSION);
    9696            wp_register_style('smart-blocks-icons', SMART_BLOCKS_URL . 'inc/assets/css/smart-blocks-icons.css', array(), SMART_BLOCKS_VERSION);
    97             wp_register_style('sb-style', SMART_BLOCKS_URL . 'inc/assets/css/sb-style.css', array('materialdesignicons', 'owl-carousel'), SMART_BLOCKS_VERSION);
     97            wp_register_style('sb-style', SMART_BLOCKS_URL . 'inc/assets/css/sb-style.css', array(), SMART_BLOCKS_VERSION);
    9898            wp_register_style('sb-block-editor', SMART_BLOCKS_URL . 'inc/assets/css/editor.css', array('smart-blocks-icons'), SMART_BLOCKS_VERSION);
    9999
Note: See TracChangeset for help on using the changeset viewer.