Kadence Blocks – Gutenberg Page Builder Toolkit - Version 2.0.12

Version Description

Release Date: July 6th, 2021 * Fix: Update Issue.

Download this release

Release Info

Developer britner
Plugin Icon 128x128 Kadence Blocks – Gutenberg Page Builder Toolkit
Version 2.0.12
Comparing to
See all releases

Code changes from version 2.0.11 to 2.0.12

dist/build/blocks.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'a763e27740470f6f575ac9131c559120');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '73530e1a56238875a1032c2f9cec48a3');
dist/build/blocks.js CHANGED
@@ -27,7 +27,7 @@ Object(o.__)("column","kadence-blocks"),
27
  Object(o.__)("section","kadence-blocks")],supports:{inserter:!1,reusable:!1,html:!1,ktanimate:!0,ktanimateadd:!0,ktanimatepreview:!0,ktanimateswipe:!0,kbcss:!0,ktdynamic:!0,editorsKitBlockNavigator:!0},attributes:{id:{type:"number",default:1},topPadding:{type:"number",default:""},bottomPadding:{type:"number",default:""},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},leftMargin:{type:"number",default:""},rightMargin:{type:"number",default:""},leftMarginM:{type:"number",default:""},rightMarginM:{type:"number",default:""},zIndex:{type:"number",default:""},background:{type:"string",default:""},backgroundOpacity:{type:"number",default:1},border:{type:"string",default:""},borderOpacity:{type:"number",default:1},borderWidth:{type:"array",default:[0,0,0,0]},tabletBorderWidth:{type:"array",default:["","","",""]},mobileBorderWidth:{type:"array",default:["","","",""]},borderRadius:{type:"array",default:[0,0,0,0]},uniqueID:{type:"string",default:""},collapseOrder:{type:"number"},backgroundImg:{type:"array",default:[{bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat"}]},textAlign:{type:"array",default:["","",""]},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""},topPaddingT:{type:"number",default:""},bottomPaddingT:{type:"number",default:""},leftPaddingT:{type:"number",default:""},rightPaddingT:{type:"number",default:""},topMarginT:{type:"number",default:""},bottomMarginT:{type:"number",default:""},leftMarginT:{type:"number",default:""},rightMarginT:{type:"number",default:""},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0,inset:!1}]},noCustomDefaults:{type:"bool",default:!1},vsdesk:{type:"bool",default:!1},vstablet:{type:"bool",default:!1},vsmobile:{type:"bool",default:!1},paddingType:{type:"string",default:"px"},marginType:{type:"string",default:"px"},bgColorClass:{type:"string",default:""},templateLock:{type:"string"}},edit:Wn,save:function({attributes:e}){const{id:t,background:l,backgroundOpacity:o,backgroundImg:i,uniqueID:n,vsdesk:r,vstablet:c,vsmobile:s,bgColorClass:d}=e,b=i&&i[0]&&i[0].bgImg?i[0].bgImg:"",m=l&&""===b?Rt(l,o):void 0,p=al()({["inner-column-"+t]:t,["kadence-column"+n]:n,"kvs-lg-false":"undefined"!==r&&r,"kvs-md-false":"undefined"!==c&&c,"kvs-sm-false":"undefined"!==s&&s}),g=Object(ot.getColorClassName)("background-color",d);return al()("kt-inside-inner-col",{[g]:g}),Object(a.createElement)("div",{className:p},Object(a.createElement)("div",{className:"kt-inside-inner-col",style:{background:m}},Object(a.createElement)(ot.InnerBlocks.Content,null)))},deprecated:Dn});var Un={};Un.block=Object(a.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},Object(a.createElement)("path",{d:"M24,8.944c-8.26,0 -15.056,6.796 -15.056,15.056c0,8.26 6.796,15.056 15.056,15.056c8.26,0 15.056,-6.796 15.056,-15.056c0,-8.26 -6.796,-15.056 -15.056,-15.056Zm8.46,14.277l-2.813,2.743c-0.301,0.296 -0.437,0.723 -0.362,1.139l0.663,3.871c0.012,0.071 0.018,0.143 0.018,0.216c0,0.706 -0.581,1.287 -1.287,1.287c-0.208,0 -0.413,-0.051 -0.598,-0.148l-3.476,-1.812c-0.373,-0.199 -0.822,-0.199 -1.196,0l-3.476,1.812c-0.184,0.097 -0.39,0.148 -0.598,0.148c-0.706,0 -1.287,-0.581 -1.287,-1.287c0,-0.073 0.007,-0.145 0.019,-0.216l0.663,-3.871c0.074,-0.416 -0.061,-0.843 -0.362,-1.139l-2.813,-2.743c-0.237,-0.241 -0.37,-0.565 -0.37,-0.903c0,-0.633 0.468,-1.177 1.095,-1.272l3.885,-0.565c0.41,-0.074 0.76,-0.344 0.935,-0.722l1.74,-3.523c0.217,-0.437 0.665,-0.714 1.153,-0.714c0.488,0 0.935,0.277 1.152,0.714l1.755,3.523c0.186,0.38 0.549,0.643 0.967,0.703l3.886,0.566c0.626,0.095 1.094,0.639 1.094,1.272c0,0.347 -0.14,0.679 -0.387,0.921Z"}),Object(a.createElement)("path",{d:"M44.75,46.019c0.696,0 1.269,-0.573 1.269,-1.269l0,-41.5c0,-0.696 -0.573,-1.269 -1.269,-1.269l-41.5,0c-0.696,0 -1.269,0.573 -1.269,1.269l0,41.5c0,0.696 0.573,1.269 1.269,1.269l41.5,0Zm-40.232,-41.501l38.964,0l0,38.964l-38.964,0l0,-38.964Z"})));var Vn=Un,$n=wp.components,Gn=$n.Button,Zn=$n.Dashicon;function qn(e){var t=e.label,l=e.value,o=e.onChange,i=e.min,n=e.max,r=e.step,c=void 0===r?1:r;return[o&&Object(a.createElement)("div",{className:"components-base-control"},Object(a.createElement)("p",{className:"components-base-control__label"},t),Object(a.createElement)("div",{className:"components-base-control__field kb-flex-center kb-step-control"},Object(a.createElement)(Gn,{className:"kb-step-btn",isDefault:!0,onClick:function(){l>i&&o(l-c)}},Object(a.createElement)(Zn,{icon:"arrow-left"})),Object(a.createElement)("input",{className:"components-step-control__number",type:"number",onChange:function(e){return o(Number(e.target.value))},"aria-label":t,value:l,min:i,max:n,step:c}),Object(a.createElement)(Gn,{className:"kb-step-btn",isDefault:!0,onClick:function(){l<n&&o(l+c)}},Object(a.createElement)(Zn,{icon:"arrow-right"}))))]}const{InspectorControls:Jn,BlockControls:Kn,AlignmentToolbar:Qn,BlockAlignmentToolbar:Yn}=wp.blockEditor,{Component:Xn,Fragment:er}=wp.element,{PanelBody:tr,RangeControl:lr,TextControl:ar,SelectControl:or,Button:ir,Dashicon:nr,TabPanel:rr,ButtonGroup:cr,Tooltip:sr}=wp.components,dr=[];const{registerBlockType:br}=wp.blocks;br("kadence/icon",{title:Object(o.__)("Icon","kadence-blocks"),icon:{src:Vn.block},category:"kadence-blocks",keywords:[Object(o.__)("icon","kadence-blocks"),Object(o.__)("svg","kadence-blocks"),"KB"],supports:{ktdynamic:!0},attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default",marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,hColor:"",hBackground:"",hBorder:""}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"},tabletTextAlignment:{type:"string"},mobileTextAlignment:{type:"string"}},getEditWrapperProps({blockAlignment:e}){if("left"===e||"right"===e||"center"===e)return{"data-align":e}},edit:class extends Xn{constructor(){super(...arguments),this.saveArrayUpdate=this.saveArrayUpdate.bind(this),this.state={marginControl:"linked",user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin"}}componentDidMount(){this.props.attributes.uniqueID?dr.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),dr.push("_"+this.props.clientId.substr(2,9))):dr.push(this.props.attributes.uniqueID):(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),dr.push("_"+this.props.clientId.substr(2,9)))}saveArrayUpdate(e,t){const{attributes:l,setAttributes:a}=this.props,{icons:o}=l;a({icons:o.map((l,a)=>(t===a&&(l={...l,...e}),l))})}render(){const{attributes:{iconCount:e,icons:t,blockAlignment:l,textAlignment:i,tabletTextAlignment:r,mobileTextAlignment:c,uniqueID:s},className:b,setAttributes:m,clientId:p}=this.props,{marginControl:g}=this.state,u=[{key:"linked",name:Object(o.__)("Linked"),micon:n.linked},{key:"individual",name:Object(o.__)("Individual"),micon:n.individual}],h=Object(a.createElement)(rr,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(nr,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(nr,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(nr,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(Qn,{value:c,isCollapsed:!1,onChange:e=>{m({mobileTextAlignment:e})}}):"tablet"===e.name?Object(a.createElement)(Qn,{value:r,isCollapsed:!1,onChange:e=>{m({tabletTextAlignment:e})}}):Object(a.createElement)(Qn,{value:i,isCollapsed:!1,onChange:e=>{m({textAlignment:e})}})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),v=e=>Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Color"),colorValue:t[e].hColor?t[e].hColor:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({hColor:t},e)}}),Object(a.createElement)(or,{label:Object(o.__)("Icon Style"),value:t[e].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:t=>{this.saveArrayUpdate({style:t},e)}}),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background Color"),colorValue:t[e].hBackground?t[e].hBackground:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({hBackground:t},e)}})),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Border Color"),colorValue:t[e].hBorder?t[e].hBorder:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({hBorder:t},e)}}))),k=e=>Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color"),colorValue:t[e].color?t[e].color:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({color:t},e)}}),Object(a.createElement)(or,{label:Object(o.__)("Icon Style"),value:t[e].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:t=>{this.saveArrayUpdate({style:t},e)}}),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("background Color"),colorValue:t[e].background?t[e].background:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({background:t},e)}})),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:t[e].border?t[e].border:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({border:t},e)}}))),y=l=>Object(a.createElement)(tr,{title:Object(o.__)("Icon")+" "+(l+1)+" "+Object(o.__)("Settings"),initialOpen:1===e},Object(a.createElement)(Xe,{value:t[l].icon,onChange:e=>{this.saveArrayUpdate({icon:e},l)}}),Object(a.createElement)(lr,{label:Object(o.__)("Icon Size"),value:t[l].size,onChange:e=>{this.saveArrayUpdate({size:e},l)},min:5,max:250}),t[l].icon&&"fe"===t[l].icon.substring(0,2)&&Object(a.createElement)(lr,{label:Object(o.__)("Line Width"),value:t[l].width,onChange:e=>{this.saveArrayUpdate({width:e},l)},step:.5,min:.5,max:4}),Object(a.createElement)("h2",{className:"kt-tab-wrap-title kt-color-settings-title"},Object(o.__)("Color Settings","kadence-blocks")),Object(a.createElement)(rr,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal"+l,title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover"+l,title:Object(o.__)("Hover"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"+l===e.name?v(l):k(l)),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),"default"!==t[l].style&&Object(a.createElement)(lr,{label:Object(o.__)("Border Size (px)"),value:t[l].borderWidth,onChange:e=>{this.saveArrayUpdate({borderWidth:e},l)},min:0,max:20}),"default"!==t[l].style&&Object(a.createElement)(lr,{label:Object(o.__)("Border Radius (%)"),value:t[l].borderRadius,onChange:e=>{this.saveArrayUpdate({borderRadius:e},l)},min:0,max:50}),"default"!==t[l].style&&Object(a.createElement)(lr,{label:Object(o.__)("Padding (px)"),value:t[l].padding,onChange:e=>{this.saveArrayUpdate({padding:e},l)},min:0,max:180}),Object(a.createElement)(cr,{className:"kt-size-type-options kt-outline-control","aria-label":Object(o.__)("Margin Control Type")},d()(u,({name:e,key:t,micon:l})=>Object(a.createElement)(sr,{text:e},Object(a.createElement)(ir,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:g===t,"aria-pressed":g===t,onClick:()=>this.setState({marginControl:t})},l)))),g&&"individual"!==g&&Object(a.createElement)(lr,{label:Object(o.__)("Margin (px)"),value:t[l].marginTop?t[l].marginTop:0,onChange:e=>{this.saveArrayUpdate({marginTop:e,marginRight:e,marginBottom:e,marginLeft:e},l)},min:0,max:180,step:1}),g&&"individual"===g&&Object(a.createElement)(er,null,Object(a.createElement)("p",null,Object(o.__)("Margin (px)")),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlinetop,value:t[l].marginTop?t[l].marginTop:0,onChange:e=>{this.saveArrayUpdate({marginTop:e},l)},min:0,max:180,step:1}),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlineright,value:t[l].marginRight?t[l].marginRight:0,onChange:e=>{this.saveArrayUpdate({marginRight:e},l)},min:0,max:180,step:1}),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlinebottom,value:t[l].marginBottom?t[l].marginBottom:0,onChange:e=>{this.saveArrayUpdate({marginBottom:e},l)},min:0,max:180,step:1}),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlineleft,value:t[l].marginLeft?t[l].marginLeft:0,onChange:e=>{this.saveArrayUpdate({marginLeft:e},l)},min:0,max:180,step:1})),Object(a.createElement)(ka,Be()({label:Object(o.__)("Link","kadence-blocks"),url:t[l].link,onChangeUrl:e=>{this.saveArrayUpdate({link:e},l)},additionalControls:!0,opensInNewTab:!(!t[l].target||"_blank"!=t[l].target),onChangeTarget:e=>{e?this.saveArrayUpdate({target:"_blank"},l):this.saveArrayUpdate({target:"_self"},l)},dynamicAttribute:"icons:"+l+":link"},this.props)),Object(a.createElement)(ar,{label:Object(o.__)("Title for Accessibility"),value:t[l].title,onChange:e=>{this.saveArrayUpdate({title:e},l)}})),f=Object(a.createElement)("div",null,bl()(e,e=>y(e))),O=Object(a.createElement)("style",null,bl()(e,e=>{return`.kt-svg-icons-${s} .kt-svg-item-${l=e}:hover .kt-svg-icon {\n\t\t\t\t\t${void 0!==t[l].hColor&&t[l].hColor?"color:"+Rt(t[l].hColor)+"!important;":""}\n\t\t\t\t\t${void 0!==t[l].hBackground&&t[l].hBackground?"background:"+Rt(t[l].hBackground)+"!important;":""}\n\t\t\t\t\t${void 0!==t[l].hBorder&&t[l].hBorder?"border-color:"+Rt(t[l].hBorder)+"!important;":""}\n\t\t\t\t}`;var l}));return Object(a.createElement)("div",{className:b},O,Object(a.createElement)(Kn,null,Object(a.createElement)(Yn,{value:l,controls:["center","left","right"],onChange:e=>m({blockAlignment:e})}),Object(a.createElement)(Qn,{value:i,onChange:e=>m({textAlignment:e})})),Object(a.createElement)(Jn,null,Object(a.createElement)(tr,{title:Object(o.__)("Icon Count"),initialOpen:!0},Object(a.createElement)(qn,{label:Object(o.__)("Number of Icons"),value:e,onChange:e=>{const l=t;if(l.length<e){const a=Math.abs(e-l.length);bl()(a,e=>{l.push({icon:l[0].icon,link:l[0].link,target:l[0].target,size:l[0].size,width:l[0].width,title:l[0].title,color:l[0].color,background:l[0].background,border:l[0].border,borderRadius:l[0].borderRadius,borderWidth:l[0].borderWidth,padding:l[0].padding,style:l[0].style,marginTop:l[0].marginTop?l[0].marginTop:0,marginRight:l[0].marginRight?l[0].marginRight:0,marginBottom:l[0].marginBottom?l[0].marginBottom:0,marginLeft:l[0].marginLeft?l[0].marginLeft:0,hColor:l[0].hColor?l[0].hColor:"",hBackground:l[0].hBackground?l[0].hBackground:"",hBorder:l[0].hBorder?l[0].hBorder:""})}),m({icons:l}),this.saveArrayUpdate({title:t[0].title},0)}m({iconCount:e})},min:1,max:10}),Object(a.createElement)("div",{className:"kb-sidebar-alignment components-base-control"},Object(a.createElement)("p",{className:"kb-component-label kb-responsive-label"},Object(o.__)("Text Alignment","kadence-blocks")),h)),f),Object(a.createElement)("div",{className:`kt-svg-icons ${p} kt-svg-icons-${s}`,style:{textAlign:i||"center"}},bl()(e,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?Rt(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?Rt(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?Rt(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0,marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}}));var l})))}},save:e=>{const{attributes:{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0,style:{marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0,marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}}));var l}))},deprecated:[{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}));var l}))}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0},Object(a.createElement)("div",{style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0},className:"kt-svg-icon kt-svg-icon-"+t[l].icon})),t[l].icon&&!t[l].link&&Object(a.createElement)("div",{style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0},className:"kt-svg-icon kt-svg-icon-"+t[l].icon}));var l}))}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:t[l].target},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}));var l}))}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:t[l].target,rel:"noopener noreferrer"},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}));var l}))}}]});var mr={};mr.block=Object(a.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},Object(a.createElement)("path",{d:"M45.013,46.298c0.705,0 1.285,-0.58 1.285,-1.285l0,-42.026c0,-0.705 -0.58,-1.285 -1.285,-1.285l-42.026,0c-0.705,0 -1.285,0.58 -1.285,1.285l0,42.026c0,0.705 0.58,1.285 1.285,1.285l42.026,0Zm-40.741,-42.026l39.456,0l0,39.456l-39.456,0l0,-39.456Z"}),Object(a.createElement)("path",{d:"M11.221,8.736l7.36,0l0,12.117l10.838,0l0,-12.117l7.361,0l0,30.518l-7.361,0l0,-12.743l-10.838,0l0,12.743l-7.36,0l0,-30.518Z"})));var pr=mr;const{applyFilters:gr}=wp.hooks,{Component:ur,Fragment:hr}=wp.element,{Button:vr,ButtonGroup:kr,IconButton:yr,Dashicon:fr,Tooltip:Or,Dropdown:jr,ToggleControl:_r,SelectControl:Sr}=wp.components;var Er=class extends ur{constructor(){super(...arguments),this.state={controlSize:"desk",typographyOptions:[],typographySelectOptions:[],typographyWeights:[],typographyStyles:[],typographySubsets:""}}componentDidMount(){let e=[{type:"group",label:"Standard Fonts",options:[{label:"System Default",value:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',google:!1},{label:"Arial, Helvetica, sans-serif",value:"Arial, Helvetica, sans-serif",google:!1},{label:'"Arial Black", Gadget, sans-serif',value:'"Arial Black", Gadget, sans-serif',google:!1},{label:"Helvetica, sans-serif",value:"Helvetica, sans-serif",google:!1},{label:'"Comic Sans MS", cursive, sans-serif',value:'"Comic Sans MS", cursive, sans-serif',google:!1},{label:"Impact, Charcoal, sans-serif",value:"Impact, Charcoal, sans-serif",google:!1},{label:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',google:!1},{label:"Tahoma, Geneva, sans-serif",value:"Tahoma, Geneva, sans-serif",google:!1},{label:'"Trebuchet MS", Helvetica, sans-serif',value:'"Trebuchet MS", Helvetica, sans-serif',google:!1},{label:"Verdana, Geneva, sans-serif",value:"Verdana, Geneva, sans-serif",google:!1},{label:"Georgia, serif",value:"Georgia, serif",google:!1},{label:'"Palatino Linotype", "Book Antiqua", Palatino, serif',value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',google:!1},{label:'"Times New Roman", Times, serif',value:'"Times New Roman", Times, serif',google:!1},{label:"Courier, monospace",value:"Courier, monospace",google:!1},{label:'"Lucida Console", Monaco, monospace',value:'"Lucida Console", Monaco, monospace',google:!1}]},{type:"group",label:"Google Fonts",options:"undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_font_names?kadence_blocks_params.g_font_names.map(e=>({label:e,value:e,google:!0})):{}}];if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.c_fonts){const t=[];Object.keys(kadence_blocks_params.c_fonts).forEach((function(e){const l=kadence_blocks_params.c_fonts[e].name,a=[];Object.keys(kadence_blocks_params.c_fonts[e].weights).forEach((function(t){a.push({value:kadence_blocks_params.c_fonts[e].weights[t],label:kadence_blocks_params.c_fonts[e].weights[t]})}));const o=[];Object.keys(kadence_blocks_params.c_fonts[e].styles).forEach((function(t){o.push({value:kadence_blocks_params.c_fonts[e].weights[t],label:kadence_blocks_params.c_fonts[e].weights[t]})})),t.push({label:l,value:l,google:!1,weights:a,styles:o})})),e=[{type:"group",label:Object(o.__)("Custom Fonts","kadence-custom-fonts"),options:t}].concat(e)}let t=gr("kadence.typography_options",e),l=[].concat.apply([],t.map(e=>e.options));const a=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==a["kadence/typography"]&&"object"==typeof a["kadence/typography"]&&(void 0===a["kadence/typography"].showAll||a["kadence/typography"].showAll||(t=a["kadence/typography"].choiceArray,l=a["kadence/typography"].choiceArray)),this.setState({typographyOptions:t}),this.setState({typographySelectOptions:l}),this.setTypographyOptions(l)}componentDidUpdate(e){this.props.fontFamily!==e.fontFamily&&this.setTypographyOptions(this.state.typographySelectOptions)}setTypographyOptions(e){let t=[{value:"inherit",label:Object(o.__)("Inherit","kadence-blocks")},{value:"400",label:Object(o.__)("Normal","kadence-blocks")},{value:"bold",label:Object(o.__)("Bold","kadence-blocks")}];const l=[{value:"inherit",label:Object(o.__)("Inherit","kadence-blocks")},{value:"100",label:Object(o.__)("Thin 100","kadence-blocks")},{value:"200",label:Object(o.__)("Extra-Light 200","kadence-blocks")},{value:"300",label:Object(o.__)("Light 300","kadence-blocks")},{value:"400",label:Object(o.__)("Regular","kadence-blocks")},{value:"500",label:Object(o.__)("Medium 500","kadence-blocks")},{value:"600",label:Object(o.__)("Semi-Bold 600","kadence-blocks")},{value:"700",label:Object(o.__)("Bold 700","kadence-blocks")},{value:"800",label:Object(o.__)("Extra-Bold 800","kadence-blocks")},{value:"900",label:Object(o.__)("Ultra-Bold 900","kadence-blocks")}],a=[{value:"normal",label:Object(o.__)("Normal","kadence-blocks")},{value:"italic",label:Object(o.__)("Italic","kadence-blocks")}],i=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),n="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.headingWeights?kadence_blocks_params.headingWeights:[],c="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.buttonWeights?kadence_blocks_params.buttonWeights:[];i&&"heading"===this.props.fontGroup&&n&&Array.isArray(n)&&n.length&&(t=n),i&&"button"===this.props.fontGroup&&c&&Array.isArray(c)&&c.length&&(t=c);const s=e?e.filter(({value:e})=>e===this.props.fontFamily):"";let d=t,b=a,m="";s&&s[0]&&(void 0!==s[0].weights&&(d=s[0].weights),void 0!==s[0].styles&&(b=s[0].styles)),this.props.googleFont&&this.props.fontFamily&&"undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[this.props.fontFamily]&&(d=kadence_blocks_params.g_fonts[this.props.fontFamily].w.map(e=>({label:r(e),value:e})),b=kadence_blocks_params.g_fonts[this.props.fontFamily].i.map(e=>({label:r(e),value:e})),m=kadence_blocks_params.g_fonts[this.props.fontFamily].s.map(e=>({label:r(e),value:e}))),'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'===this.props.fontFamily&&(d=l),this.setState({typographyWeights:d}),this.setState({typographyStyles:b}),this.setState({typographySubsets:m}),this.setState({fontFamilyValue:s})}render(){const{uniqueID:e,lineHeight:t,lineHeightType:l,fontSize:i,fontSizeType:r,googleFont:s,loadGoogleFont:b,fontFamily:m,fontVariant:p,fontWeight:g,fontStyle:u,fontSubset:h,letterSpacing:v,onLineHeight:k,onFontSize:y,onFontFamily:f,onFontVariant:O,onFontWeight:j,onFontStyle:_,onFontSubset:S,onFontChange:E,onFontArrayChange:w,onLoadGoogleFont:x,onGoogleFont:C,onLetterSpacing:M,onFontSizeType:N,onLineHeightType:T,textTransform:z,onTextTransform:H,fontSizeArray:B,tabSize:I,tabLineHeight:R,onTabLineHeight:P,onTabSize:A,mobileSize:L,mobileLineHeight:F,onMobileLineHeight:W,onMobileSize:D}=this.props,{controlSize:U,typographySelectOptions:V,typographyOptions:$,typographySubsets:G,typographyStyles:Z,typographyWeights:q,fontFamilyValue:J}=this.state,K=e=>{this.setState({controlSize:e})},Q=[{key:"desk",name:Object(o.__)("Desktop"),icon:Object(a.createElement)(fr,{icon:"desktop"})},{key:"tablet",name:Object(o.__)("Tablet"),icon:Object(a.createElement)(fr,{icon:"tablet"})},{key:"mobile",name:Object(o.__)("Mobile"),icon:Object(a.createElement)(fr,{icon:"smartphone"})}],Y=e=>{const t=Number(e.target.value);y(""!==t?t>be?be:t<-.1?de:t:void 0)},X=e=>{const t=Number(e.target.value);A(""!==t?t>be?be:t<-.1?de:t:void 0)},ee=e=>{const t=Number(e.target.value);D(""!==t?t>be?be:t<-.1?de:t:void 0)},te=e=>{const t=Number(e.target.value);k(""!==t?t>ge?ge:t<-.1?pe:t:void 0)},le=e=>{const t=Number(e.target.value);P(""!==t?t>ge?ge:t<-.1?pe:t:void 0)},ae=e=>{const t=Number(e.target.value);W(""!==t?t>ge?ge:t<-.1?pe:t:void 0)},oe=e=>{const t=Number(e.target.value);M(""!==t?t>15?15:t<-5?-5:t:void 0)},ie=e=>{if(null===e)ne();else{let t,l,a;e.google?(t="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].v.includes("regular")?kadence_blocks_params.g_fonts[e.value].v[0]:"regular",l="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].w.includes("regular")?kadence_blocks_params.g_fonts[e.value].w[0]:"400",a="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[e.value].s.length>1?"latin":""):(a="",t="",l="400"),w?w({google:e.google,family:e.value,variant:t,weight:l,style:"normal",subset:a}):(E(e),O(t),j(l),_("normal"),S(a))}},ne=()=>{w?w({google:!1,family:"",variant:"",weight:"regular",style:"normal",subset:""}):(C(!1),f(""),O(""),j("regular"),_("normal"),S(""))},re=e=>{if(s){let t;t="italic"===u?"regular"===e?"italic":e+"italic":e,w?w({variant:t,weight:"regular"===e?"400":e}):(O(t),j("regular"===e?"400":e))}else w?w({variant:"",weight:"regular"===e?"400":e}):(O(""),j("regular"===e?"400":e))},ce=e=>{if(s){let t;t="italic"===e?g&&"regular"!==g?g+"italic":"italic":g||"regular",w?w({variant:t,style:e}):(O(t),_(e))}else w?w({variant:"",style:e}):(O(""),_(e))},se=[{value:"none",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],de="px"!==r?.2:5,be="px"!==r?12:200,me="px"!==r?.1:1,pe="px"!==l?.2:5,ge="px"!==l?12:200,ue="px"!==l?.1:1;return Object(a.createElement)(hr,null,Object(a.createElement)(jr,{className:"kt-popover-font-family-container components-dropdown-menu components-toolbar",contentClassName:"kt-popover-font-family",position:"top center",renderToggle:({isOpen:e,onToggle:t})=>Object(a.createElement)(hr,null,Object(a.createElement)(yr,{className:"components-dropdown-menu__toggle kt-font-family-icon",label:Object(o.__)("Typography Settings"),tooltip:Object(o.__)("Typography Settings"),icon:n.fontfamily,onClick:t,"aria-expanded":e},Object(a.createElement)("span",{className:"components-dropdown-menu__indicator"}))),renderContent:()=>Object(a.createElement)(hr,null,f&&Object(a.createElement)(hr,null,Object(a.createElement)("h2",{className:"kt-heading-fontfamily-title"},Object(o.__)("Font Family")),Object(a.createElement)("div",{className:"typography-family-select-form-row block-editor-block-toolbar"},Object(a.createElement)(c.a,{options:$,className:"kt-inline-typography-select",classNamePrefix:"kt-typography",value:J,isMulti:!1,isSearchable:!0,isClearable:!0,maxMenuHeight:200,placeholder:Object(o.__)("Default"),onChange:ie}))),Object(a.createElement)("div",{className:"typography-row-settings"},j&&Object(a.createElement)(Sr,{label:Object(o.__)("Weight"),value:"400"===g?"regular":g,options:q,onChange:re}),H&&Object(a.createElement)(Sr,{label:Object(o.__)("Transform"),value:z,options:se,onChange:e=>H(e)}),m&&_&&Object(a.createElement)(Sr,{label:Object(o.__)("Style"),value:u,options:Z,onChange:ce})),Object(a.createElement)("div",{className:"typography-row-settings"},M&&Object(a.createElement)("div",{className:"kt-type-input-wrap"},Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("label",{className:"components-base-control__label",htmlFor:"kt-inline-spacing"+e},Object(o.__)("Spacing")),Object(a.createElement)("input",{id:"kt-inline-spacing"+e,value:void 0!==v?v:"",onChange:oe,min:-5,max:15,step:.1,type:"number",className:"components-text-control__input"}))),Object(a.createElement)("span",{className:"kt-unit"},Object(o.__)("px"))),m&&s&&S&&Object(a.createElement)(Sr,{label:Object(o.__)("Subset"),value:h,options:G,onChange:e=>S(e)}),m&&s&&x&&Object(a.createElement)(_r,{label:Object(o.__)("Load Font"),checked:b,onChange:x})),Object(a.createElement)("div",{className:"typography-row-settings typography-size-row-settings"},y&&N&&!B&&Object(a.createElement)("div",{className:"kt-size-input-wrap"},Object(a.createElement)("div",{className:"kt-size-tite-device-wrap"},Object(a.createElement)("p",{className:"kt-inline-size-title"},Object(o.__)("Size")),Object(a.createElement)(kr,{className:"kt-typography-size-type-options","aria-label":Object(o.__)("Device Size Control Switch")},d()(Q,({name:e,key:t,icon:l})=>Object(a.createElement)(Or,{text:e},Object(a.createElement)(vr,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:U===t,"aria-pressed":U===t,onClick:()=>K(t)},l))))),y&&Object(a.createElement)("div",{className:"kt-type-size-input-wrap"},"mobile"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:L||"",onChange:ee,min:de,max:be,step:me,type:"number",className:"components-text-control__input"}))),"tablet"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:I||"",onChange:X,min:de,max:be,step:me,type:"number",className:"components-text-control__input"}))),"desk"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:i||"",onChange:Y,min:de,max:be,step:me,type:"number",className:"components-text-control__input"}))),Object(a.createElement)(Sr,{value:r,className:"kt-typography-size-type",options:[{value:"px",label:Object(o.__)("px")},{value:"em",label:Object(o.__)("em")},{value:"rem",label:Object(o.__)("rem")}],onChange:e=>N(e)}))),k&&T&&!B&&Object(a.createElement)("div",{className:"kt-size-input-wrap"},Object(a.createElement)("div",{className:"kt-size-tite-device-wrap"},Object(a.createElement)("p",{className:"kt-inline-size-title"},Object(o.__)("Height")),Object(a.createElement)(kr,{className:"kt-typography-size-type-options","aria-label":Object(o.__)("Device Size Control Switch")},d()(Q,({name:e,key:t,icon:l})=>Object(a.createElement)(Or,{text:e},Object(a.createElement)(vr,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:U===t,"aria-pressed":U===t,onClick:()=>K(t)},l))))),k&&Object(a.createElement)("div",{className:"kt-type-size-input-wrap"},"mobile"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:F||"",onChange:ae,min:pe,max:ge,step:ue,type:"number",className:"components-text-control__input"}))),"tablet"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:R||"",onChange:le,min:pe,max:ge,step:ue,type:"number",className:"components-text-control__input"}))),"desk"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:t||"",onChange:te,min:pe,max:ge,step:ue,type:"number",className:"components-text-control__input"}))),Object(a.createElement)(Sr,{value:l,className:"kt-typography-size-type",options:[{value:"px",label:Object(o.__)("px")},{value:"em",label:Object(o.__)("em")},{value:"rem",label:Object(o.__)("rem")}],onChange:e=>T(e)})))))}))}};const{Component:wr,Fragment:xr}=wp.element,{Button:Cr,IconButton:Mr,Tooltip:Nr,Dashicon:Tr,Dropdown:zr,ToolbarGroup:Hr,SVG:Br,Path:Ir}=wp.components,{DOWN:Rr}=wp.keycodes,Pr=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),Ar=()=>Object(a.createElement)(Br,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(a.createElement)(Ir,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}));var Lr=Object(A.withSelect)((e,t)=>{const l=e("core/block-editor").getSettings();return{colors:ce()(l,["colors"],[]),disableCustomColors:void 0===t.disableCustomColors?l.disableCustomColors:t.disableCustomColors}})(class extends wr{constructor(){super(...arguments),this.onChangeState=this.onChangeState.bind(this),this.onChangeComplete=this.onChangeComplete.bind(this),this.state={alpha:!1!==this.props.alpha,colors:[],classSat:"first",currentColor:"",currentOpacity:void 0!==this.props.opacityValue?this.props.opacityValue:1,isPalette:!!(Pr&&this.props.colorValue&&this.props.colorValue.startsWith("palette")||Pr&&this.props.colorDefault&&this.props.colorDefault.startsWith("palette"))}}render(){let e=this.state.isPalette&&this.props.colors&&this.props.colors[parseInt(this.props.colorValue.slice(-1),10)-1]?this.props.colors[parseInt(this.props.colorValue.slice(-1),10)-1].color:this.props.colorValue;return""===e&&(e=this.props.colorDefault),this.props.onOpacityChange&&!this.state.isPalette&&(e=ne(e,void 0!==this.props.opacityValue?this.props.opacityValue:1)),Object(a.createElement)(zr,{position:"top right",className:"kb-colors-selector components-dropdown-menu components-toolbar new-kadence-advanced-colors",contentClassName:"block-library-colors-selector__popover kt-popover-color new-kadence-advanced-colors-pop",renderToggle:({isOpen:t,onToggle:l})=>Object(a.createElement)(xr,null,Object(a.createElement)(Mr,{className:"components-toolbar__control components-dropdown-menu__toggle kb-colors-selector__toggle",label:this.props.label,tooltip:this.props.label,icon:Object(a.createElement)("div",{className:"kb-colors-selector__icon-container"},Object(a.createElement)("div",{className:"kb-colors-selector__state-selection",style:{color:e}},Object(a.createElement)(Ar,null))),onClick:l,"aria-expanded":t})),renderContent:()=>Object(a.createElement)("div",{className:"inline-color-popup-inner-wrap block-editor-block-toolbar"},"first"===this.state.classSat&&!this.props.disableCustomColors&&Object(a.createElement)(xt,{color:e,onChange:e=>this.onChangeState(e,""),onChangeComplete:e=>{this.onChangeComplete(e,""),this.props.onColorClassChange&&this.props.onColorClassChange("")}}),"first"!==this.state.classSat&&!this.props.disableCustomColors&&Object(a.createElement)(xt,{color:e,onChange:e=>this.onChangeState(e,""),onChangeComplete:e=>{this.onChangeComplete(e,""),this.props.onColorClassChange&&this.props.onColorClassChange("")}}),this.props.colors&&Object(a.createElement)("div",{className:"components-color-palette"},d()(this.props.colors,({color:e,slug:t,name:l})=>{const i={color:e},n=t.replace("theme-",""),r=Pr&&n===this.props.colorValue||!t.startsWith("theme-palette")&&this.props.colorValue===e;return Object(a.createElement)("div",{key:e,className:"components-color-palette__item-wrapper"},Object(a.createElement)(Nr,{text:l||// translators: %s: color hex code e.g: "#f00".
28
  Object(o.sprintf)(Object(o.__)("Color code: %s"),e)},Object(a.createElement)(Cr,{type:"button",className:"components-color-palette__item "+(r?"is-active":""),style:i,onClick:()=>{Pr&&t.startsWith("theme-palette")?this.onChangeComplete(e,n):this.onChangeComplete(e,!1),this.props.onColorClassChange&&this.props.onColorClassChange(t),"first"===this.state.classSat?this.setState({classSat:"second"}):this.setState({classSat:"first"})},"aria-label":l?// translators: %s: The name of the color e.g: "vivid red".
29
  Object(o.sprintf)(Object(o.__)("Color: %s"),l):// translators: %s: color hex code e.g: "#f00".
30
- Object(o.sprintf)(Object(o.__)("Color code: %s"),e),"aria-pressed":r})),Pr&&n===this.props.colorValue&&Object(a.createElement)(Tr,{icon:"admin-site"}),!t.startsWith("theme-palette")&&this.props.colorValue===e&&Object(a.createElement)(Tr,{icon:"saved"}))})))})}onChangeState(e,t){let l,a=1;t?l=t:void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?this.props.onOpacityChange?(l=e.hex,a=e.rgb.a):l="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":l=void 0!==e.hex?e.hex:e,this.setState({currentColor:l,currentOpacity:a,isPalette:!!t}),void 0!==this.props.onChange&&this.props.onChange(l)}onChangeComplete(e,t){let l,a=1;t?l=t:void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?this.props.onOpacityChange?(l=e.hex,a=e.rgb.a):l="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":l=void 0!==e.hex?e.hex:e,this.setState({currentColor:l,currentOpacity:a,isPalette:!!t}),this.props.onColorChange(l),void 0!==this.props.onOpacityChange&&this.props.onOpacityChange(a)}}),Fr=(wp.element.Component,wp.components.ToggleControl),Wr=function(e){var t=e.label,l=e.enable,i=void 0===l||l,n=e.color,r=e.colorDefault,c=e.blur,s=e.hOffset,d=e.vOffset,b=e.onColorChange,m=e.onBlurChange,p=e.onHOffsetChange,g=e.onVOffsetChange,u=e.onEnableChange;return Object(a.createElement)("div",{className:"kb-text-shadow-container components-base-control"},t&&Object(a.createElement)("div",{className:"kt-box-shadow-label"},Object(a.createElement)("h2",{className:"kt-beside-color-label"},t),u&&Object(a.createElement)(Fr,{checked:i,onChange:function(e){return u(e)}})),i&&Object(a.createElement)("div",{className:"kt-inner-sub-section"},Object(a.createElement)("div",{className:"kt-inner-sub-section-row"},Object(a.createElement)("div",{className:"kt-box-color-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},Object(o.__)("Color","kadence-blocks")),Object(a.createElement)(Bt,{colorValue:n||r,colorDefault:r,onColorChange:function(e){return b(e)}})),Object(a.createElement)("div",{className:"kt-box-x-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},"X"),Object(a.createElement)("div",{className:"components-base-control kt-boxshadow-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:void 0!==s?s:"",onChange:function(e){return p(Number(e.target.value))},min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})))),Object(a.createElement)("div",{className:"kt-box-y-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},"Y"),Object(a.createElement)("div",{className:"components-base-control kt-boxshadow-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:void 0!==d?d:"",onChange:function(e){return g(Number(e.target.value))},min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})))),Object(a.createElement)("div",{className:"kt-box-blur-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},"Blur"),Object(a.createElement)("div",{className:"components-base-control kt-boxshadow-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:void 0!==c?c:"",onChange:function(e){return m(Number(e.target.value))},min:0,max:200,step:1,type:"number",className:"components-text-control__input"})))))))},Dr=wp.components,Ur=Dr.Path,Vr=Dr.SVG;function $r(e){var t=e.level,l=e.isPressed,o=void 0!==l&&l,i={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"};return i.hasOwnProperty(t)?Object(a.createElement)(Vr,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:o},Object(a.createElement)(Ur,{d:i[t]})):null}var Gr=wp.element,Zr=Gr.Component,qr=Gr.Fragment,Jr=wp.components,Kr=Jr.DropdownMenu,Qr=Jr.MenuGroup,Yr=Jr.MenuItem,Xr=Jr.Toolbar,ec=(Jr.ToggleControl,Jr.SelectControl,window.localStorage),tc={className:"block-editor-block-settings-menu__popover",position:"bottom right"},lc=function(e){_e()(n,e);var t,l,i=(t=n,l=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,a=xe()(t);if(l){var o=xe()(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return Ee()(this,e)});function n(){var e;return ye()(this,n),(e=i.apply(this,arguments)).state={iconOptions:[],iconOptionsNames:[]},e}return Oe()(n,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.onPaste,l=e.blockAttributes,i=Object(a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 32 32",width:"20px",height:"20px"},Object(a.createElement)("path",{fillRule:"nonzero",d:"M26 8h-6V6l-6-6H0v24h12v8h20V14l-6-6zm0 2.828L29.172 14H26v-3.172zm-12-8L17.172 6H14V2.828zM2 2h10v6h6v14H2V2zm28 28H14v-6h6V10h4v6h6v14z"})),n=JSON.parse(ec.getItem("kadenceHeadingStyle")),r=function(){var e={};l.level&&(e.level=l.level),l.align&&(e.align=l.align),l.color&&(e.color=l.color),l.size&&(e.size=l.size),l.sizeType&&(e.sizeType=l.sizeType),l.lineHeight&&(e.lineHeight=l.lineHeight),l.lineType&&(e.lineType=l.lineType),l.tabSize&&(e.tabSize=l.tabSize),l.tabLineHeight&&(e.tabLineHeight=l.tabLineHeight),l.mobileSize&&(e.mobileSize=l.mobileSize),l.mobileLineHeight&&(e.mobileLineHeight=l.mobileLineHeight),l.letterSpacing&&(e.letterSpacing=l.letterSpacing),l.typography&&(e.typography=l.typography),l.googleFont&&(e.googleFont=l.googleFont),l.loadGoogleFont&&(e.loadGoogleFont=l.loadGoogleFont),l.fontSubset&&(e.fontSubset=l.fontSubset),l.fontVariant&&(e.fontVariant=l.fontVariant),l.fontWeight&&(e.fontWeight=l.fontWeight),l.fontStyle&&(e.fontStyle=l.fontStyle),l.topMargin&&(e.topMargin=l.topMargin),l.bottomMargin&&(e.bottomMargin=l.bottomMargin),l.marginType&&(e.marginType=l.marginType),l.markSize&&(e.markSize=l.markSize),l.markSizeType&&(e.markSizeType=l.markSizeType),l.markLineHeight&&(e.markLineHeight=l.markLineHeight),l.markLineType&&(e.markLineType=l.markLineType),l.marginType&&(e.marginType=l.marginType),l.markLetterSpacing&&(e.markLetterSpacing=l.markLetterSpacing),l.markTypography&&(e.markTypography=l.markTypography),l.markGoogleFont&&(e.markGoogleFont=l.markGoogleFont),l.markLoadGoogleFont&&(e.markLoadGoogleFont=l.markLoadGoogleFont),l.markFontSubset&&(e.markFontSubset=l.markFontSubset),l.markFontVariant&&(e.markFontVariant=l.markFontVariant),l.markFontWeight&&(e.markFontWeight=l.markFontWeight),l.markFontStyle&&(e.markFontStyle=l.markFontStyle),l.markColor&&(e.markColor=l.markColor),l.markBG&&(e.markBG=l.markBG),l.markBGOpacity&&(e.markBGOpacity=l.markBGOpacity),l.markPadding&&(e.markPadding=l.markPadding),l.markPaddingControl&&(e.markPaddingControl=l.markPaddingControl),l.markBorder&&(e.markBorder=l.markBorder),l.markBorderOpacity&&(e.markBorderOpacity=l.markBorderOpacity),l.markBorderWidth&&(e.markBorderWidth=l.markBorderWidth),l.markBorderStyle&&(e.markBorderStyle=l.markBorderStyle),l.textTransform&&(e.textTransform=l.textTransform),l.markTextTransform&&(e.markTextTransform=l.markTextTransform),l.anchor&&(e.anchor=l.anchor),l.colorClass&&(e.colorClass=l.colorClass),l.tabletAlign&&(e.tabletAlign=l.tabletAlign),l.mobileAlign&&(e.mobileAlign=l.mobileAlign),l.textShadow&&(e.textShadow=l.textShadow),ec.setItem("kadenceHeadingStyle",JSON.stringify(e))},c=function(){var e=JSON.parse(ec.getItem("kadenceHeadingStyle"));e&&t(e)};return Object(a.createElement)(Xr,null,Object(a.createElement)(Kr,{className:"block-editor-block-settings-menu",icon:i,label:Object(o.__)("Copy/Paste Styles","kadence-blocks"),popoverProps:tc},(function(e){var t=e.onClose;return Object(a.createElement)(qr,null,Object(a.createElement)(Qr,null,Object(a.createElement)(Yr,{icon:"clipboard",onClick:Ol()(t,r),label:Object(o.__)("Copy Styles","kadence-blocks")},Object(o.__)("Copy Styles","kadence-blocks")),Object(a.createElement)(Yr,{icon:"editor-paste-text",onClick:Ol()(t,c),disabled:!n,label:Object(o.__)("Paste Styles","kadence-blocks")},Object(o.__)("Paste Styles","kadence-blocks"))))})))}}]),n}(Zr),ac=wp.element.Fragment,oc=wp.richText,ic=oc.toggleFormat,nc=oc.registerFormatType,rc=wp.blockEditor,cc=rc.RichTextToolbarButton,sc=rc.RichTextShortcut,dc=Object(a.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"}));nc("kadence/mark",{title:Object(o.__)("Highlight"),tagName:"mark",className:"kt-highlight",edit:function(e){var t=e.isActive,l=e.value,i=e.onChange,n=function(){return i(ic(l,{type:"kadence/mark"}))};return Object(a.createElement)(ac,null,Object(a.createElement)(sc,{type:"primary",character:"m",onUse:n}),Object(a.createElement)(cc,{icon:dc,title:Object(o.__)("Highlight"),onClick:n,isActive:t,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("kadence/mark")}))}});const{createBlock:bc}=wp.blocks,{Component:mc,Fragment:pc}=wp.element,{PanelBody:gc,ButtonGroup:uc,Button:hc,ToolbarGroup:vc,Dashicon:kc,TabPanel:yc,Spinner:fc,SelectControl:Oc,TextControl:jc}=wp.components,{applyFilters:_c}=wp.hooks,Sc=/[\s#]/g,Ec=[];var wc=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{__experimentalGetPreviewDeviceType:l}=e("core/edit-post");return{getPreviewDevice:l?l():"Desktop"}})])(class extends mc{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.saveShadow=this.saveShadow.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={isVisible:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{},marginControl:"individual",paddingControl:"individual",markPaddingControls:"individual"}}componentDidMount(){if(this.props.attributes.uniqueID)Ec.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ec.push("_"+this.props.clientId.substr(2,9))):Ec.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/advancedheading"]&&"object"==typeof e["kadence/advancedheading"]&&Object.keys(e["kadence/advancedheading"]).map(t=>{this.props.attributes[t]=e["kadence/advancedheading"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ec.push("_"+this.props.clientId.substr(2,9))}const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/advancedheading"]&&"object"==typeof e["kadence/advancedheading"]&&this.setState({settings:e["kadence/advancedheading"]})}saveShadow(e){const{attributes:t,setAttributes:l}=this.props,{textShadow:a}=t;l({textShadow:a.map((t,l)=>(0===l&&(t={...t,...e}),t))})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a&&null!==a)return a;if(void 0!==l&&""!==l&&null!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l&&null!==l)return l;return t}render(){const{attributes:e,className:t,setAttributes:l,mergeBlocks:i,onReplace:n,clientId:r}=this.props,{uniqueID:c,align:s,level:d,content:b,color:m,colorClass:p,textShadow:g,mobileAlign:u,tabletAlign:h,size:v,sizeType:k,lineType:f,lineHeight:O,tabLineHeight:j,tabSize:_,mobileSize:S,mobileLineHeight:E,letterSpacing:w,typography:x,fontVariant:C,fontWeight:M,fontStyle:N,fontSubset:T,googleFont:z,loadGoogleFont:H,marginType:B,topMargin:I,bottomMargin:R,markSize:P,markSizeType:A,markLineHeight:L,markLineType:F,markLetterSpacing:W,markTypography:D,markGoogleFont:U,markLoadGoogleFont:V,markFontSubset:$,markFontVariant:G,markFontWeight:q,markFontStyle:J,markPadding:K,markPaddingControl:Q,markColor:Y,markBG:X,markBGOpacity:ee,markBorder:te,markBorderWidth:le,markBorderOpacity:ae,markBorderStyle:oe,anchor:ne,textTransform:re,markTextTransform:ce,kadenceAnimation:se,kadenceAOSOptions:de,htmlTag:be,leftMargin:me,rightMargin:pe,tabletMargin:ge,mobileMargin:ue,padding:he,tabletPadding:ve,mobilePadding:ke,paddingType:ye,markMobilePadding:fe,markTabPadding:Oe,loadItalic:je,kadenceDynamic:_e,link:Se,linkTarget:Ee,linkNoFollow:we,linkSponsored:xe}=e,Ce=X?Rt(X,ee):"",Me=te?Rt(te,ae):"",Ne=z?{google:{families:[x+(C?":"+C:"")]}}:"",Te=U?{google:{families:[D+(G?":"+G:"")]}}:"",ze=be&&"heading"!==be?be:"h"+d,He=ze,Ie="px"!==k?.2:5,Re="em"===B||"rem"===B?-2:-200,Pe="em"===B||"rem"===B?12:200,Ae="em"===B||"rem"===B?.1:1,Le="em"===ye||"rem"===ye?12:200,Fe="em"===ye||"rem"===ye?.1:1,We="px"!==k?12:200,De="px"!==k?.1:1,Ue="px"!==f?.2:5,Ve="px"!==f?12:200,$e="px"!==f?.1:1,Ge=this.getPreviewSize(this.props.getPreviewDevice,void 0!==I?I:"",void 0!==ge?ge[0]:"",void 0!==ue?ue[0]:""),Ze=this.getPreviewSize(this.props.getPreviewDevice,void 0!==pe?pe:"",void 0!==ge?ge[1]:"",void 0!==ue?ue[1]:""),qe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==R?R:"",void 0!==ge?ge[2]:"",void 0!==ue?ue[2]:""),Je=this.getPreviewSize(this.props.getPreviewDevice,void 0!==me?me:"",void 0!==ge?ge[3]:"",void 0!==ue?ue[3]:""),Ke=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[0]:"",void 0!==ve?ve[0]:"",void 0!==ke?ke[0]:""),Qe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[1]:"",void 0!==ve?ve[1]:"",void 0!==ke?ke[1]:""),Ye=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[2]:"",void 0!==ve?ve[2]:"",void 0!==ke?ke[2]:""),Xe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[3]:"",void 0!==ve?ve[3]:"",void 0!==ke?ke[3]:""),et=this.getPreviewSize(this.props.getPreviewDevice,void 0!==v?v:"",void 0!==_?_:"",void 0!==S?S:""),tt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==O?O:"",void 0!==j?j:"",void 0!==E?E:""),lt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==s?s:"",void 0!==h?h:"",void 0!==u?u:""),at=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[0]:0,void 0!==Oe?Oe[0]:"",void 0!==fe?fe[0]:""),it=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[1]:0,void 0!==Oe?Oe[1]:"",void 0!==fe?fe[1]:""),nt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[2]:0,void 0!==Oe?Oe[2]:"",void 0!==fe?fe[2]:""),rt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[3]:0,void 0!==Oe?Oe[3]:"",void 0!==fe?fe[3]:""),ct=this.getPreviewSize(this.props.getPreviewDevice,void 0!==P?P[0]:"",void 0!==P?P[1]:"",void 0!==P?P[2]:""),st=this.getPreviewSize(this.props.getPreviewDevice,void 0!==L?L[0]:"",void 0!==L?L[1]:"",void 0!==L?L[2]:""),dt=[[{icon:Object(a.createElement)($r,{level:1,isPressed:!(1!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 1","kadence-blocks"),isActive:!(1!==d||!be||"heading"!==be),onClick:()=>l({level:1,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:2,isPressed:!(2!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 2","kadence-blocks"),isActive:!(2!==d||!be||"heading"!==be),onClick:()=>l({level:2,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:3,isPressed:!(3!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 3","kadence-blocks"),isActive:!(3!==d||!be||"heading"!==be),onClick:()=>l({level:3,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:4,isPressed:!(4!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 4","kadence-blocks"),isActive:!(4!==d||!be||"heading"!==be),onClick:()=>l({level:4,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:5,isPressed:!(5!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 5","kadence-blocks"),isActive:!(5!==d||!be||"heading"!==be),onClick:()=>l({level:5,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:6,isPressed:!(6!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 6","kadence-blocks"),isActive:!(6!==d||!be||"heading"!==be),onClick:()=>l({level:6,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:"p",isPressed:!(!be||"p"!==be)}),title:Object(o.__)("Paragraph","kadence-blocks"),isActive:!(!be||"p"!==be),onClick:()=>l({htmlTag:"p"})}]],bt=al()({["kt-adv-heading"+c]:c,[t]:t,"kb-content-is-dynamic":void 0!==_e&&void 0!==_e.content&&void 0!==_e.content.enable&&_e.content.enable}),mt=Object(a.createElement)(He,{style:{textAlign:lt,color:m?Rt(m):void 0,fontWeight:M,fontStyle:N,fontSize:et?et+k:void 0,lineHeight:tt?tt+f:void 0,letterSpacing:void 0!==w&&""!==w?w+"px":void 0,textTransform:re||void 0,fontFamily:x||"",paddingTop:void 0!==Ke?Ke+ye:void 0,paddingRight:void 0!==Qe?Qe+ye:void 0,paddingBottom:void 0!==Ye?Ye+ye:void 0,paddingLeft:void 0!==Xe?Xe+ye:void 0,marginTop:void 0!==Ge?Ge+B:void 0,marginRight:void 0!==Ze?Ze+B:void 0,marginBottom:void 0!==qe?qe+B:void 0,marginLeft:void 0!==Je?Je+B:void 0,textShadow:void 0!==g&&void 0!==g[0]&&void 0!==g[0].enable&&g[0].enable?(void 0!==g[0].hOffset?g[0].hOffset:1)+"px "+(void 0!==g[0].vOffset?g[0].vOffset:1)+"px "+(void 0!==g[0].blur?g[0].blur:1)+"px "+(void 0!==g[0].color?Rt(g[0].color):"rgba(0,0,0,0.2)"):void 0},className:bt},_c("kadence.dynamicContent",Object(a.createElement)(fc,null),e,"content")),pt=Object(a.createElement)(ot.RichText,{tagName:ze,allowedFormats:Se?_c("kadence.whitelist_richtext_formats",["core/bold","core/italic","kadence/insert-dynamic","kadence/mark","core/strikethrough","core/superscript","core/superscript","toolset/inline-field"],"kadence/advancedheading"):void 0,value:b,onChange:e=>l({content:e}),onMerge:i,onSplit:t=>t?bc("kadence/advancedheading",{...e,content:t}):bc("core/paragraph"),onReplace:n,onRemove:()=>n([]),style:{textAlign:lt,color:m?Rt(m):void 0,fontWeight:M,fontStyle:N,fontSize:et?et+k:void 0,lineHeight:tt?tt+f:void 0,letterSpacing:void 0!==w&&""!==w?w+"px":void 0,textTransform:re||void 0,fontFamily:x||"",paddingTop:void 0!==Ke?Ke+ye:void 0,paddingRight:void 0!==Qe?Qe+ye:void 0,paddingBottom:void 0!==Ye?Ye+ye:void 0,paddingLeft:void 0!==Xe?Xe+ye:void 0,marginTop:void 0!==Ge?Ge+B:void 0,marginRight:void 0!==Ze?Ze+B:void 0,marginBottom:void 0!==qe?qe+B:void 0,marginLeft:void 0!==Je?Je+B:void 0,textShadow:void 0!==g&&void 0!==g[0]&&void 0!==g[0].enable&&g[0].enable?(void 0!==g[0].hOffset?g[0].hOffset:1)+"px "+(void 0!==g[0].vOffset?g[0].vOffset:1)+"px "+(void 0!==g[0].blur?g[0].blur:1)+"px "+(void 0!==g[0].color?Rt(g[0].color):"rgba(0,0,0,0.2)"):void 0},className:bt,placeholder:Object(o.__)("Write heading…","kadence-blocks")}),gt=Object(a.createElement)("a",{href:Se,className:"kb-advanced-heading-link",onClick:e=>{e.preventDefault()}},void 0!==_e&&void 0!==_e.content&&void 0!==_e.content.enable&&_e.content.enable?mt:pt);return Object(a.createElement)(pc,null,Object(a.createElement)("style",null,`.kt-adv-heading${c} mark, .kt-adv-heading${c}.rich-text:focus mark[data-rich-text-format-boundary] {\n\t\t\t\t\t\tcolor: ${Rt(Y)};\n\t\t\t\t\t\tbackground: ${X?Ce:"transparent"};\n\t\t\t\t\t\tfont-weight: ${D&&q?q:"inherit"};\n\t\t\t\t\t\tfont-style: ${D&&J?J:"inherit"};\n\t\t\t\t\t\tfont-size: ${ct?ct+A:"inherit"};\n\t\t\t\t\t\tline-height: ${st?st+F:"inherit"};\n\t\t\t\t\t\tletter-spacing: ${W?W+"px":"inherit"};\n\t\t\t\t\t\ttext-transform: ${ce||"inherit"};\n\t\t\t\t\t\tfont-family: ${D||"inherit"};\n\t\t\t\t\t\tborder-color: ${te?Me:"transparent"};\n\t\t\t\t\t\tborder-width: ${le?le+"px":"0"};\n\t\t\t\t\t\tborder-style: ${oe||"solid"};\n\t\t\t\t\t\tpadding-top: ${at?at+"px ":"0"};\n\t\t\t\t\t\tpadding-right: ${it?it+"px ":"0"};\n\t\t\t\t\t\tpadding-bottom: ${nt?nt+"px ":"0"};\n\t\t\t\t\t\tpadding-left: ${rt?rt+"px ":"0"};\n\t\t\t\t\t}`),Object(a.createElement)(ot.BlockControls,null,Object(a.createElement)(vc,{isCollapsed:!0,icon:Object(a.createElement)($r,{level:"p"===be?"p":d}),label:Object(o.__)("Change Heading Level","kadence-blocks"),controls:dt}),this.showSettings("allSettings")&&this.showSettings("toolbarTypography")&&Object(a.createElement)(Er,{uniqueID:c,fontGroup:"heading",letterSpacing:w,onLetterSpacing:e=>l({letterSpacing:e}),fontFamily:x,onFontFamily:e=>l({typography:e}),onFontChange:e=>{l({typography:e.value,googleFont:e.google})},googleFont:z,onGoogleFont:e=>l({googleFont:e}),loadGoogleFont:H,onLoadGoogleFont:e=>l({loadGoogleFont:e}),fontVariant:C,onFontVariant:e=>l({fontVariant:e}),fontWeight:M,onFontWeight:e=>l({fontWeight:e}),fontStyle:N,onFontStyle:e=>l({fontStyle:e}),fontSubset:T,onFontSubset:e=>l({fontSubset:e}),textTransform:re,onTextTransform:e=>l({textTransform:e}),fontSizeArray:!1,fontSize:v,onFontSize:e=>l({size:e}),fontSizeType:k,onFontSizeType:e=>l({sizeType:e}),lineHeight:O,onLineHeight:e=>l({lineHeight:e}),lineHeightType:f,onLineHeightType:e=>l({lineType:e}),tabSize:_,onTabSize:e=>l({tabSize:e}),tabLineHeight:j,onTabLineHeight:e=>l({tabLineHeight:e}),mobileSize:S,onMobileSize:e=>l({mobileSize:e}),mobileLineHeight:E,onMobileLineHeight:e=>l({mobileLineHeight:e})}),Object(a.createElement)(Lr,{label:Object(o.__)("Heading Color","kadence-blocks"),colorValue:m||"",colorDefault:"",onColorChange:e=>l({color:e}),onColorClassChange:e=>l({colorClass:e})}),Object(a.createElement)(ot.AlignmentToolbar,{value:s,onChange:e=>{l({align:e})}}),Object(a.createElement)(lc,{onPaste:e=>l(e),blockAttributes:this.props.attributes})),this.showSettings("allSettings")&&Object(a.createElement)(ot.InspectorControls,null,Object(a.createElement)(gc,{title:Object(o.__)("Heading Settings","kadence-blocks")},Object(a.createElement)("div",{className:"kb-tag-level-control components-base-control"},Object(a.createElement)("p",{className:"kb-component-label"},Object(o.__)("HTML Tag","kadence-blocks")),Object(a.createElement)(vc,{isCollapsed:!1,label:Object(o.__)("Change Heading Level","kadence-blocks"),controls:dt})),Object(a.createElement)(hn,{label:Object(o.__)("Text Alignment","kadence-blocks"),value:s||"",mobileValue:u||"",tabletValue:h||"",onChange:e=>l({align:e}),onChangeTablet:e=>l({tabletAlign:e}),onChangeMobile:e=>l({mobileAlign:e})}),this.showSettings("colorSettings")&&Object(a.createElement)(Bt,{label:Object(o.__)("Heading Color","kadence-blocks"),colorValue:m||"",colorDefault:"",onColorChange:e=>l({color:e}),onColorClassChange:e=>l({colorClass:e})}),this.showSettings("sizeSettings")&&Object(a.createElement)(pc,null,Object(a.createElement)(Z,{label:Object(o.__)("Font Size","kadence-blocks"),value:v||"",onChange:e=>l({size:e}),tabletValue:_||"",onChangeTablet:e=>l({tabSize:e}),mobileValue:S||"",onChangeMobile:e=>l({mobileSize:e}),min:Ie,max:We,step:De,unit:k,onUnit:e=>l({sizeType:e}),units:["px","em","rem","vw"]}),Object(a.createElement)(Z,{label:Object(o.__)("Line Height","kadence-blocks"),value:O||"",onChange:e=>l({lineHeight:e}),tabletValue:j||"",onChangeTablet:e=>l({tabLineHeight:e}),mobileValue:E||"",onChangeMobile:e=>l({mobileLineHeight:e}),min:Ue,max:Ve,step:$e,unit:f,onUnit:e=>l({lineType:e}),units:["px","em","rem"]}))),this.showSettings("advancedSettings")&&Object(a.createElement)(gc,{title:Object(o.__)("Advanced Typography Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ie,{fontGroup:"heading",letterSpacing:w,onLetterSpacing:e=>l({letterSpacing:e}),fontFamily:x,onFontFamily:e=>l({typography:e}),onFontChange:e=>{l({typography:e.value,googleFont:e.google})},googleFont:z,onGoogleFont:e=>l({googleFont:e}),loadGoogleFont:H,onLoadGoogleFont:e=>l({loadGoogleFont:e}),fontVariant:C,onFontVariant:e=>l({fontVariant:e}),fontWeight:M,onFontWeight:e=>l({fontWeight:e}),fontStyle:N,onFontStyle:e=>l({fontStyle:e}),fontSubset:T,onFontSubset:e=>l({fontSubset:e}),textTransform:re,onTextTransform:e=>l({textTransform:e}),loadItalic:je,onLoadItalic:e=>l({loadItalic:e})})),this.showSettings("highlightSettings","kadence-blocks")&&Object(a.createElement)(gc,{title:Object(o.__)("Highlight Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Bt,{label:Object(o.__)("Highlight Color","kadence-blocks"),colorValue:Y||"",colorDefault:"",onColorChange:e=>l({markColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Highlight Background","kadence-blocks"),colorValue:X||"",colorDefault:"",onColorChange:e=>l({markBG:e}),opacityValue:ee,onOpacityChange:e=>l({markBGOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Highlight Border Color","kadence-blocks"),colorValue:te||"",colorDefault:"",onColorChange:e=>l({markBorder:e}),opacityValue:ae,onOpacityChange:e=>l({markBorderOpacity:e})}),Object(a.createElement)(Oc,{label:Object(o.__)("Highlight Border Style","kadence-blocks"),value:oe,options:[{value:"solid",label:Object(o.__)("Solid","kadence-blocks")},{value:"dashed",label:Object(o.__)("Dashed","kadence-blocks")},{value:"dotted",label:Object(o.__)("Dotted","kadence-blocks")}],onChange:e=>l({markBorderStyle:e})}),Object(a.createElement)(y,{label:Object(o.__)("Highlight Border Width","kadence-blocks"),value:le,onChange:e=>l({markBorderWidth:e}),min:0,max:20,step:1}),Object(a.createElement)(Z,{label:Object(o.__)("Font Size","kadence-blocks"),value:P&&P[0]?P[0]:"",onChange:e=>l({markSize:[e,P&&P[1]?P[1]:"",P&&P[2]?P[2]:""]}),tabletValue:P&&P[1]?P[1]:"",onChangeTablet:e=>l({markSize:[P&&P[0]?P[0]:"",e,P&&P[2]?P[2]:""]}),mobileValue:P&&P[2]?P[2]:"",onChangeMobile:e=>l({markSize:[P&&P[0]?P[0]:"",P&&P[1]?P[1]:"",e]}),min:Ie,max:We,step:De,unit:A,onUnit:e=>l({markSizeType:e}),units:["px","em","rem"]}),Object(a.createElement)(Z,{label:Object(o.__)("Line Height","kadence-blocks"),value:L&&L[0]?L[0]:"",onChange:e=>l({markLineHeight:[e,L&&L[1]?L[1]:"",L&&L[2]?L[2]:""]}),tabletValue:L&&L[1]?L[1]:"",onChangeTablet:e=>l({markLineHeight:[L&&L[0]?L[0]:"",e,L&&L[2]?L[2]:""]}),mobileValue:L&&L[2]?L[2]:"",onChangeMobile:e=>l({markLineHeight:[L&&L[0]?L[0]:"",L&&L[1]?L[1]:"",e]}),min:Ue,max:Ve,step:$e,unit:f,onUnit:e=>l({lineType:e}),units:["px","em","rem"]}),Object(a.createElement)(ie,{fontGroup:"heading",fontSize:P,onFontSize:e=>l({markSize:e}),fontSizeType:A,onFontSizeType:e=>l({markSizeType:e}),lineHeight:L,onLineHeight:e=>l({markLineHeight:e}),lineHeightType:F,onLineHeightType:e=>l({markLineType:e}),letterSpacing:W,onLetterSpacing:e=>l({markLetterSpacing:e}),fontFamily:D,onFontFamily:e=>l({markTypography:e}),onFontChange:e=>{l({markTypography:e.value,markGoogleFont:e.google})},googleFont:U,onGoogleFont:e=>l({markGoogleFont:e}),loadGoogleFont:V,onLoadGoogleFont:e=>l({markLoadGoogleFont:e}),fontVariant:G,onFontVariant:e=>l({markFontVariant:e}),fontWeight:q,onFontWeight:e=>l({markFontWeight:e}),fontStyle:J,onFontStyle:e=>l({markFontStyle:e}),fontSubset:$,onFontSubset:e=>l({markFontSubset:e}),textTransform:ce,onTextTransform:e=>l({markTextTransform:e})}),Object(a.createElement)(Al,{label:Object(o.__)("Padding","kadence-blocks"),value:K,control:this.state.markPaddingControls,tabletValue:Oe,mobileValue:fe,onChange:e=>l({markPadding:e}),onChangeTablet:e=>l({markTabPadding:e}),onChangeMobile:e=>l({markMobilePadding:e}),onChangeControl:e=>this.setState({markPaddingControls:e}),min:0,max:100,step:1,unit:"px",units:["px"],showUnit:!0})),this.showSettings("linkSettings")&&Object(a.createElement)(gc,{title:Object(o.__)("Link Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ka,Be()({label:Object(o.__)("Heading Wrap Link","kadence-blocks"),url:Se,onChangeUrl:e=>l({link:e}),additionalControls:!0,opensInNewTab:void 0!==Ee&&Ee,onChangeTarget:e=>l({linkTarget:e}),linkNoFollow:void 0!==we&&we,onChangeFollow:e=>l({linkNoFollow:e}),linkSponsored:void 0!==xe&&xe,onChangeSponsored:e=>l({sponsored:e}),dynamicAttribute:"link",allowClear:!0},this.props))),this.showSettings("marginSettings")&&Object(a.createElement)(gc,{title:Object(o.__)("Spacing Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Padding","kadence-blocks"),value:he,control:this.state.paddingControl,tabletValue:ve,mobileValue:ke,onChange:e=>l({padding:e}),onChangeTablet:e=>l({tabletPadding:e}),onChangeMobile:e=>l({mobilePadding:e}),onChangeControl:e=>this.setState({paddingControl:e}),min:0,max:Le,step:Fe,unit:ye,units:["px","em","rem","%"],onUnit:e=>l({paddingType:e})}),Object(a.createElement)(Al,{label:Object(o.__)("Margin","kadence-blocks"),value:[void 0!==I?I:"",void 0!==pe?pe:"",void 0!==R?R:"",void 0!==me?me:""],control:this.state.marginControl,tabletValue:ge,mobileValue:ue,onChange:e=>{l({topMargin:e[0],rightMargin:e[1],bottomMargin:e[2],leftMargin:e[3]})},onChangeTablet:e=>l({tabletMargin:e}),onChangeMobile:e=>l({mobileMargin:e}),onChangeControl:e=>this.setState({marginControl:e}),min:Re,max:Pe,step:Ae,unit:B,units:["px","em","rem","%","vh"],onUnit:e=>l({marginType:e})})),Object(a.createElement)(gc,{title:Object(o.__)("Text Shadow Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Wr,{label:Object(o.__)("Text Shadow","kadence-blocks"),enable:void 0!==g&&void 0!==g[0]&&void 0!==g[0].enable&&g[0].enable,color:void 0!==g&&void 0!==g[0]&&void 0!==g[0].color?g[0].color:"rgba(0, 0, 0, 0.2)",colorDefault:"rgba(0, 0, 0, 0.2)",hOffset:void 0!==g&&void 0!==g[0]&&void 0!==g[0].hOffset?g[0].hOffset:1,vOffset:void 0!==g&&void 0!==g[0]&&void 0!==g[0].vOffset?g[0].vOffset:1,blur:void 0!==g&&void 0!==g[0]&&void 0!==g[0].blur?g[0].blur:1,onEnableChange:e=>{this.saveShadow({enable:e})},onColorChange:e=>{this.saveShadow({color:e})},onHOffsetChange:e=>{this.saveShadow({hOffset:e})},onVOffsetChange:e=>{this.saveShadow({vOffset:e})},onBlurChange:e=>{this.saveShadow({blur:e})}}))),Object(a.createElement)(ot.InspectorAdvancedControls,null,Object(a.createElement)(jc,{label:Object(o.__)("HTML Anchor","kadence-blocks"),help:Object(o.__)("Anchors lets you link directly to a section on a page.","kadence-blocks"),value:ne||"",onChange:e=>{e=e.replace(Sc,"-"),l({anchor:e})}})),se&&Object(a.createElement)("div",{className:"kt-animation-wrap-"+se},Object(a.createElement)("div",{id:"animate-id"+c,className:"aos-animate kt-animation-wrap","data-aos":se||void 0,"data-aos-duration":de&&de[0]&&de[0].duration?de[0].duration:void 0,"data-aos-easing":de&&de[0]&&de[0].easing?de[0].easing:void 0},Se?gt:pt)),!se&&(Se?gt:pt),z&&Object(a.createElement)(yl,{config:Ne}),U&&Object(a.createElement)(yl,{config:Te}))}});const{Fragment:xc}=wp.element,{getBlockDefaultClassName:Cc}=wp.blocks;var Mc=[{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,p"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},leftMargin:{type:"number",default:""},rightMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},tabletMargin:{type:"array",default:["","","",""]},mobileMargin:{type:"array",default:["","","",""]},tabletMarginType:{type:"string",default:"px"},mobileMarginType:{type:"string",default:"px"},paddingType:{type:"string",default:"px"},padding:{type:"array",default:["","","",""]},tabletPadding:{type:"array",default:["","","",""]},mobilePadding:{type:"array",default:["","","",""]},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markTabPadding:{type:"array",default:["","","",""]},markMobilePadding:{type:"array",default:["","","",""]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"},colorClass:{type:"string"},tabletAlign:{type:"string"},mobileAlign:{type:"string"},textShadow:{type:"array",default:[{enable:!1,color:"rgba(0, 0, 0, 0.2)",blur:1,hOffset:1,vOffset:1}]},htmlTag:{type:"string",default:"heading"},loadItalic:{type:"boolean",default:!1}},save:({attributes:e})=>{const{anchor:t,level:l,content:o,colorClass:i,color:n,textShadow:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,align:m,uniqueID:p,className:g,kadenceAnimation:u,kadenceAOSOptions:h,htmlTag:v}=e,k=v&&"heading"!==v?v:"h"+l,y=Object(ot.getColorClassName)("color",i),f=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),O=!!f,j=al()({["kt-adv-heading"+p]:p,[g]:!O&&g,[Cc("kadence/advancedheading")]:Cc("kadence/advancedheading"),[y]:y}),_=Object(a.createElement)(ot.RichText.Content,{tagName:k,id:t||void 0,className:j,"data-kb-block":"kb-adv-heading"+p,"data-aos":u||void 0,"data-aos-offset":h&&h[0]&&h[0].offset?h[0].offset:void 0,"data-aos-duration":h&&h[0]&&h[0].duration?h[0].duration:void 0,"data-aos-delay":h&&h[0]&&h[0].delay?h[0].delay:void 0,"data-aos-easing":h&&h[0]&&h[0].easing?h[0].easing:void 0,"data-aos-once":h&&h[0]&&void 0!==h[0].once&&""!==h[0].once?h[0].once:void 0,value:o});return Object(a.createElement)(xc,null,O&&Object(a.createElement)("div",{className:`kb-adv-heading-wrap${p} kadence-advanced-heading-wrapper${f?" kadence-heading-clip-animation":""}${g?" "+g:""}`},_),!O&&_)}},{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,p"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"},colorClass:{type:"string"},textShadow:{type:"array",default:[{enable:!1,color:"rgba(0, 0, 0, 0.2)",blur:1,hOffset:1,vOffset:1}]},htmlTag:{type:"string",default:"heading"},kadenceAnimation:{type:"string"},kadenceAOSOptions:{type:"array",default:[{duration:"",offset:"",easing:"",once:"",delay:"",delayOffset:""}]}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,colorClass:r,textShadow:c,uniqueID:s,letterSpacing:d,topMargin:b,bottomMargin:m,marginType:p,className:g,kadenceAnimation:u,kadenceAOSOptions:h,htmlTag:v}=e,k=v&&"heading"!==v?v:"h"+o,y=Object(ot.getColorClassName)("color",r),f=p||"px";let O=t||"kt-adv-heading"+s;const j=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),_=!(!t&&!j);O=j&&!t?"kt-adv-inner-heading"+s:O;const S=al()({["kt-adv-heading"+s]:s,[g]:!_&&g,[Cc("kadence/advancedheading")]:Cc("kadence/advancedheading"),[y]:y}),E=Object(a.createElement)(ot.RichText.Content,{tagName:k,id:O,className:S,"data-aos":u||void 0,"data-aos-offset":h&&h[0]&&h[0].offset?h[0].offset:void 0,"data-aos-duration":h&&h[0]&&h[0].duration?h[0].duration:void 0,"data-aos-delay":h&&h[0]&&h[0].delay?h[0].delay:void 0,"data-aos-easing":h&&h[0]&&h[0].easing?h[0].easing:void 0,"data-aos-once":h&&h[0]&&void 0!==h[0].once&&""!==h[0].once?h[0].once:void 0,style:{textAlign:l,color:!y&&n?tl(n):void 0,letterSpacing:d?d+"px":void 0,marginTop:void 0!==b&&""!==b?b+f:void 0,marginBottom:void 0!==m&&""!==m?m+f:void 0,textShadow:void 0!==c&&void 0!==c[0]&&void 0!==c[0].enable&&c[0].enable?(void 0!==c[0].hOffset?c[0].hOffset:1)+"px "+(void 0!==c[0].vOffset?c[0].vOffset:1)+"px "+(void 0!==c[0].blur?c[0].blur:1)+"px "+(void 0!==c[0].color?tl(c[0].color):"rgba(0,0,0,0.2)"):void 0},value:i});return Object(a.createElement)(xc,null,_&&Object(a.createElement)("div",{id:"kt-adv-heading"+s,className:`kadence-advanced-heading-wrapper${j?" kadence-heading-clip-animation":""}${g?" "+g:""}`},E),!_&&E)}},{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,uniqueID:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,className:m,kadenceAnimation:p,kadenceAOSOptions:g}=e,u="h"+o,h=b||"px";let v=t||"kt-adv-heading"+r;const k=!(!p||"reveal-left"!==p&&"reveal-right"!==p&&"reveal-up"!==p&&"reveal-down"!==p),y=!(!t&&!k);v=k&&!t?"kt-adv-inner-heading"+r:v;const f=m?`${m} ${Cc("kadence/advancedheading")}`:Cc("kadence/advancedheading"),O=Object(a.createElement)(ot.RichText.Content,{tagName:u,id:v,className:`kt-adv-heading${r} ${f}`,"data-aos":p||void 0,"data-aos-offset":g&&g[0]&&g[0].offset?g[0].offset:void 0,"data-aos-duration":g&&g[0]&&g[0].duration?g[0].duration:void 0,"data-aos-delay":g&&g[0]&&g[0].delay?g[0].delay:void 0,"data-aos-easing":g&&g[0]&&g[0].easing?g[0].easing:void 0,"data-aos-once":g&&g[0]&&void 0!==g[0].once&&""!==g[0].once?g[0].once:void 0,style:{textAlign:l,color:n,letterSpacing:c?c+"px":void 0,marginTop:void 0!==s&&""!==s?s+h:void 0,marginBottom:void 0!==d&&""!==d?d+h:void 0},value:i});return Object(a.createElement)(xc,null,y&&Object(a.createElement)("div",{id:"kt-adv-heading"+r,className:"kadence-advanced-heading-wrapper"+(k?" kadence-heading-clip-animation":"")},O),!y&&O)}},{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,uniqueID:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,className:m,kadenceAnimation:p,kadenceAOSOptions:g}=e,u="h"+o,h=b||"px";let v=t||"kt-adv-heading"+r;const k=!(!p||"reveal-left"!==p&&"reveal-right"!==p&&"reveal-up"!==p&&"reveal-down"!==p),y=!(!t&&!k);v=k&&!t?"kt-adv-inner-heading"+r:v;const f=m?`${m} ${Cc("kadence/advancedheading")}`:Cc("kadence/advancedheading"),O=Object(a.createElement)(ot.RichText.Content,{tagName:u,id:v,className:`kt-adv-heading${r} ${f}`,"data-aos":p||void 0,"data-aos-offset":g&&g[0]&&g[0].offset?g[0].offset:void 0,"data-aos-duration":g&&g[0]&&g[0].duration?g[0].duration:void 0,"data-aos-delay":g&&g[0]&&g[0].delay?g[0].delay:void 0,"data-aos-easing":g&&g[0]&&g[0].easing?g[0].easing:void 0,"data-aos-once":g&&g[0]&&void 0!==g[0].once&&""!==g[0].once?g[0].once:void 0,style:{textAlign:l,color:n,letterSpacing:c?c+"px":void 0,marginTop:s?s+h:void 0,marginBottom:d?d+h:void 0},value:i});return Object(a.createElement)(xc,null,y&&Object(a.createElement)("div",{id:"kt-adv-heading"+r,className:"kadence-advanced-heading-wrapper"+(k?" kadence-heading-clip-animation":"")},O),!y&&O)}},{attributes:{content:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},anchor:{type:"string"}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,uniqueID:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,className:m,kadenceAnimation:p,kadenceAOSOptions:g}=e,u="h"+o,h=b||"px";let v=t||"kt-adv-heading"+r;const k=!(!p||"reveal-left"!==p&&"reveal-right"!==p&&"reveal-up"!==p&&"reveal-down"!==p),y=!(!t&&!k);v=k&&!t?"kt-adv-inner-heading"+r:"kt-adv-heading"+r;const f=m?`${m} ${Cc("kadence/advancedheading")}`:Cc("kadence/advancedheading"),O=Object(a.createElement)(ot.RichText.Content,{tagName:u,id:v,className:`kt-adv-heading${r} ${f}`,"data-aos":p||void 0,"data-aos-offset":g&&g[0]&&g[0].offset?g[0].offset:void 0,"data-aos-duration":g&&g[0]&&g[0].duration?g[0].duration:void 0,"data-aos-delay":g&&g[0]&&g[0].delay?g[0].delay:void 0,"data-aos-easing":g&&g[0]&&g[0].easing?g[0].easing:void 0,"data-aos-once":g&&g[0]&&void 0!==g[0].once&&""!==g[0].once?g[0].once:void 0,style:{textAlign:l,color:n,letterSpacing:c?c+"px":void 0,marginTop:s?s+h:void 0,marginBottom:d?d+h:void 0},value:i});return Object(a.createElement)(xc,null,y&&Object(a.createElement)("div",{id:"kt-adv-heading"+r,className:"kadence-advanced-heading-wrapper"+(k?" kadence-heading-clip-animation":"")},O),!y&&O)}},{attributes:{content:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"}},save:({attributes:e})=>{const{align:t,level:l,content:o,color:i,uniqueID:n,letterSpacing:r,topMargin:c,bottomMargin:s,marginType:d}=e,b="h"+l,m=d||"px";return Object(a.createElement)(ot.RichText.Content,{tagName:b,id:"kt-adv-heading"+n,style:{textAlign:t,color:i,letterSpacing:r?r+"px":void 0,marginTop:c?c+m:void 0,marginBottom:s?s+m:void 0},value:o})}},{attributes:{content:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"}},save:({attributes:e})=>{const{align:t,level:l,content:o,color:i,uniqueID:n,letterSpacing:r}=e,c="h"+l;return Object(a.createElement)(ot.RichText.Content,{tagName:c,id:"kt-adv-heading"+n,style:{textAlign:t,color:i,letterSpacing:r?r+"px":void 0},value:o})}}];const{registerBlockType:Nc,createBlock:Tc,getBlockDefaultClassName:zc}=wp.blocks,{Fragment:Hc}=wp.element;Nc("kadence/advancedheading",{title:Object(o.__)("Advanced Heading","kadence-blocks"),description:Object(o.__)("Create a heading or paragraph and define sizes for desktop, tablet and mobile along with font family, colors, etc.","kadence-blocks"),icon:{src:pr.block},category:"kadence-blocks",keywords:[Object(o.__)("title","kadence-blocks"),Object(o.__)("heading","kadence-blocks"),"KB"],supports:{ktanimate:!0,ktanimatereveal:!0,ktanimatepreview:!0,ktdynamic:!0},attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,p"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},leftMargin:{type:"number",default:""},rightMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},tabletMargin:{type:"array",default:["","","",""]},mobileMargin:{type:"array",default:["","","",""]},tabletMarginType:{type:"string",default:"px"},mobileMarginType:{type:"string",default:"px"},paddingType:{type:"string",default:"px"},padding:{type:"array",default:["","","",""]},tabletPadding:{type:"array",default:["","","",""]},mobilePadding:{type:"array",default:["","","",""]},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markTabPadding:{type:"array",default:["","","",""]},markMobilePadding:{type:"array",default:["","","",""]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"},colorClass:{type:"string"},tabletAlign:{type:"string"},mobileAlign:{type:"string"},textShadow:{type:"array",default:[{enable:!1,color:"rgba(0, 0, 0, 0.2)",blur:1,hOffset:1,vOffset:1}]},htmlTag:{type:"string",default:"heading"},loadItalic:{type:"boolean",default:!1},link:{type:"string"},linkTarget:{type:"boolean",default:!1},linkNoFollow:{type:"boolean",default:!1},linkSponsored:{type:"boolean",default:!1}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>Tc("kadence/advancedheading",{content:e})},{type:"block",blocks:["core/heading"],transform:({content:e,level:t})=>Tc("kadence/advancedheading",{content:e,level:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>Tc("core/paragraph",{content:e})},{type:"block",blocks:["core/heading"],transform:({content:e,level:t})=>Tc("core/heading",{content:e,level:t})}]},edit:wc,save:e=>{const{attributes:{anchor:t,level:l,content:o,colorClass:i,color:n,textShadow:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,align:m,uniqueID:p,className:g,kadenceAnimation:u,kadenceAOSOptions:h,htmlTag:v,link:k,linkNoFollow:y,linkSponsored:f,linkTarget:O}}=e,j=v&&"heading"!==v?v:"h"+l,_=Object(ot.getColorClassName)("color",i),S=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),E=!!S,w=al()({["kt-adv-heading"+p]:p,[g]:!E&&g,[zc("kadence/advancedheading")]:zc("kadence/advancedheading"),[_]:_,"has-text-color":_});let x;O&&(x="noopener noreferrer"),void 0!==y&&!0===y&&(x=x?x.concat(" nofollow"):"nofollow"),void 0!==f&&!0===f&&(x=x?x.concat(" sponsored"):"sponsored");const C=Object(a.createElement)(ot.RichText.Content,{tagName:j,id:t||void 0,className:w,"data-kb-block":"kb-adv-heading"+p,"data-aos":u||void 0,"data-aos-offset":h&&h[0]&&h[0].offset?h[0].offset:void 0,"data-aos-duration":h&&h[0]&&h[0].duration?h[0].duration:void 0,"data-aos-delay":h&&h[0]&&h[0].delay?h[0].delay:void 0,"data-aos-easing":h&&h[0]&&h[0].easing?h[0].easing:void 0,"data-aos-once":h&&h[0]&&void 0!==h[0].once&&""!==h[0].once?h[0].once:void 0,value:o}),M=Object(a.createElement)("a",{href:k,className:"kb-advanced-heading-link",target:O?"_blank":void 0,relAttr:x||void 0},C),N=k?M:C;return Object(a.createElement)(Hc,null,E&&Object(a.createElement)("div",{className:`kb-adv-heading-wrap${p} kadence-advanced-heading-wrapper${S?" kadence-heading-clip-animation":""}${g?" "+g:""}`},N),!E&&N)},deprecated:Mc});var Bc={uniqueID:{type:"string",default:""},tabCount:{type:"number",default:3},layout:{type:"string",default:"tabs"},mobileLayout:{type:"string",default:"inherit"},tabletLayout:{type:"string",default:"inherit"},currentTab:{type:"number",default:1},minHeight:{type:"number",default:""},maxWidth:{type:"number",default:""},contentBgColor:{type:"string",default:""},contentBorderColor:{type:"string",default:""},contentBorder:{type:"array",default:[1,1,1,1]},contentBorderControl:{type:"string",default:"linked"},innerPadding:{type:"array",default:[20,20,20,20]},innerPaddingControl:{type:"string",default:"linked"},innerPaddingM:{type:"array"},tabAlignment:{type:"string",default:"left"},blockAlignment:{type:"string",default:"none"},titles:{type:"array",default:[{text:Object(o.__)("Tab 1","kadence-blocks"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""},{text:Object(o.__)("Tab 2","kadence-blocks"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""},{text:Object(o.__)("Tab 3","kadence-blocks"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""}]},iSize:{type:"number",default:14},titleColor:{type:"string"},titleColorHover:{type:"string"},titleColorActive:{type:"string"},titleBg:{type:"string"},titleBgHover:{type:"string"},titleBgActive:{type:"string",default:"#ffffff"},titleBorder:{type:"string"},titleBorderHover:{type:"string"},titleBorderActive:{type:"string"},titleBorderWidth:{type:"array"},titleBorderControl:{type:"string",default:"individual"},titleBorderRadius:{type:"array"},titleBorderRadiusControl:{type:"string",default:"individual"},titlePadding:{type:"array"},titlePaddingControl:{type:"string",default:"individual"},titleMargin:{type:"array"},titleMarginControl:{type:"string",default:"individual"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},startTab:{type:"number",default:""},showPresets:{type:"bool",default:!0},subtitleFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[0,0,0,0],marginControl:"linked"}]},enableSubtitle:{type:"bool",default:!1},widthType:{type:"string",default:"normal"},tabWidth:{type:"array",default:[4,"",""]},gutter:{type:"array",default:[10,"",""]}};const{createBlock:Ic}=wp.blocks,{Component:Rc,Fragment:Pc}=wp.element,{InnerBlocks:Ac,InspectorControls:Lc,RichText:Fc,BlockControls:Wc,AlignmentToolbar:Dc,BlockAlignmentToolbar:Uc}=wp.blockEditor,{Button:Vc,ButtonGroup:$c,Tooltip:Gc,TabPanel:Zc,IconButton:qc,Dashicon:Jc,PanelBody:Kc,RangeControl:Qc,ToggleControl:Yc,SelectControl:Xc,TextControl:es}=wp.components,{applyFilters:ts}=wp.hooks,ls=["kadence/tab"],as=/[\s#]/g,os=Aa()(e=>bl()(e,e=>["kadence/tab",{id:e+1}])),is=[];var ns=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{clientId:l}=t,{getBlock:a,getBlockOrder:o}=e("core/block-editor"),i=a(l);return{tabsBlock:i,realTabsCount:i.innerBlocks.length,tabsInner:o(l)}}),Object(A.withDispatch)((e,{clientId:t},{select:l})=>{const{getBlock:a}=l("core/block-editor"),{moveBlockToPosition:o,removeBlock:i,updateBlockAttributes:n,insertBlock:r}=e("core/block-editor"),c=a(t);return{resetOrder(){bl()(c.innerBlocks.length,e=>{n(c.innerBlocks[e].clientId,{id:e+1})})},moveTab(e,l){o(e,t,t,parseInt(l))},insertTab(e){r(e,parseInt(c.innerBlocks.length),t)},removeTab(e){i(e)}}})])(class extends Rc{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBack=this.onMoveBack.bind(this),this.state={hovered:"false",showPreset:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}componentDidMount(){if(this.props.attributes.uniqueID)is.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),is.push("_"+this.props.clientId.substr(2,9))):is.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.config["kadence/tabs"],t=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==t["kadence/tabs"]&&"object"==typeof t["kadence/tabs"]?Object.keys(t["kadence/tabs"]).map(e=>{this.props.attributes[e]=t["kadence/tabs"][e]}):void 0!==e&&"object"==typeof e&&Object.keys(e).map(t=>{this.props.attributes[t]=e[t]}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),is.push("_"+this.props.clientId.substr(2,9))}const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/tabs"]&&"object"==typeof e["kadence/tabs"]&&this.setState({settings:e["kadence/tabs"]})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}saveArrayUpdate(e,t){const{attributes:l,setAttributes:a}=this.props,{titles:o}=l;a({titles:o.map((l,a)=>(t===a&&(l={...l,...e}),l))})}onMove(e,t){const l=[...this.props.attributes.titles];l.splice(t,1,this.props.attributes.titles[e]),l.splice(e,1,this.props.attributes.titles[t]),this.props.setAttributes({titles:l,currentTab:parseInt(t+1)}),this.props.attributes.startTab===e+1?this.props.setAttributes({startTab:t+1}):this.props.attributes.startTab===t+1&&this.props.setAttributes({startTab:e+1}),this.props.moveTab(this.props.tabsBlock.innerBlocks[e].clientId,t),this.props.resetOrder(),this.props.setAttributes({currentTab:parseInt(t+1)})}onMoveForward(e){return()=>{e!==this.props.realTabsCount-1&&this.onMove(e,e+1)}}onMoveBack(e){return()=>{0!==e&&this.onMove(e,e-1)}}render(){const{attributes:{uniqueID:e,tabCount:t,blockAlignment:l,mobileLayout:i,currentTab:r,tabletLayout:c,layout:s,innerPadding:b,minHeight:m,maxWidth:p,titles:g,titleColor:u,titleColorHover:h,titleColorActive:v,titleBg:k,titleBgHover:y,titleBgActive:f,size:O,sizeType:j,lineType:_,lineHeight:S,tabLineHeight:E,tabSize:w,mobileSize:x,mobileLineHeight:C,letterSpacing:M,borderRadius:N,titleBorderWidth:T,titleBorderControl:z,titleBorder:H,titleBorderHover:B,titleBorderActive:I,typography:R,fontVariant:P,fontWeight:A,fontStyle:L,fontSubset:F,googleFont:W,loadGoogleFont:D,innerPaddingControl:U,contentBorder:V,contentBorderControl:$,contentBorderColor:G,titlePadding:Z,titlePaddingControl:q,titleMargin:J,titleMarginControl:K,contentBgColor:Q,tabAlignment:Y,titleBorderRadiusControl:X,titleBorderRadius:ee,iSize:te,startTab:le,enableSubtitle:ae,subtitleFont:oe,tabWidth:ne,gutter:re,widthType:ce},clientId:se,className:de,setAttributes:be}=this.props,me=s||"tabs",pe=[{key:"px",name:Object(o.__)("px")},{key:"em",name:Object(o.__)("em")}],ge={google:{families:[R+(P?":"+P:"")]}},ue={google:{families:[(oe&&oe[0]&&oe[0].family?oe[0].family:"")+(oe&&oe[0]&&oe[0].variant?":"+oe[0].variant:"")]}},he=oe&&oe[0]&&oe[0].google?ue:"",ve=e=>{let t;t=void 0===oe||void 0!==oe&&void 0===oe[0]?[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[0,0,0,0],marginControl:"linked"}]:oe;const l=t.map((t,l)=>(0===l&&(t={...t,...e}),t));be({subtitleFont:l})},ke=[{key:"skip",name:Object(o.__)("Skip"),icon:Object(o.__)("Skip")},{key:"simple",name:Object(o.__)("Simple"),icon:n.tabsSimple},{key:"boldbg",name:Object(o.__)("Boldbg"),icon:n.tabsBold},{key:"center",name:Object(o.__)("Center"),icon:n.tabsCenter},{key:"vertical",name:Object(o.__)("Vertical"),icon:n.tabsVertical}],ye=W?ge:"",fe="em"===j?.2:5,Oe="em"===j?12:200,je="em"===j?.1:1,_e="px"===_?5:.2,Se="px"===_?200:12,Ee="px"===_?1:.1,we=c||"inherit",xe=i||"inherit",Ce=al()(de,`kt-tabs-wrap kt-tabs-id${e} kt-tabs-has-${t}-tabs kt-active-tab-${r} kt-tabs-layout-${me} kt-tabs-block kt-tabs-tablet-layout-${we} kt-tabs-mobile-layout-${xe} kt-tab-alignment-${Y}`),Me=[{key:"tabs",name:Object(o.__)("Tabs"),icon:n.tabs},{key:"vtabs",name:Object(o.__)("Vertical Tabs"),icon:n.vtabs},{key:"accordion",name:Object(o.__)("Accordion"),icon:n.accordion}],Ne=[{key:"tabs",name:Object(o.__)("Tabs"),icon:n.tabs},{key:"vtabs",name:Object(o.__)("Vertical Tabs"),icon:n.vtabs}],Te=Object(a.createElement)("div",null,Object(a.createElement)(Kc,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Mobile Layout")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Mobile Layout")},d()(Me,({name:e,key:t,icon:l})=>Object(a.createElement)(Gc,{text:e},Object(a.createElement)(Vc,{key:t,className:"kt-layout-btn kt-tablayout",isSmall:!0,isPrimary:i===t,"aria-pressed":i===t,onClick:()=>be({mobileLayout:t})},l)))))),ze=Object(a.createElement)(Kc,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Tablet Layout")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Tablet Layout")},d()(Me,({name:e,key:t,icon:l})=>Object(a.createElement)(Gc,{text:e},Object(a.createElement)(Vc,{key:t,className:"kt-layout-btn kt-tablayout",isSmall:!0,isPrimary:c===t,"aria-pressed":c===t,onClick:()=>be({tabletLayout:t})},l))))),He=Object(a.createElement)(Pc,null,Object(a.createElement)(Kc,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Layout")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Layout")},d()(Ne,({name:e,key:t,icon:l})=>Object(a.createElement)(Gc,{text:e},Object(a.createElement)(Vc,{key:t,className:"kt-layout-btn kt-tablayout",isSmall:!0,isPrimary:s===t,"aria-pressed":s===t,onClick:()=>{be({layout:t})}},l)))),Object(a.createElement)("h2",null,Object(o.__)("Set initial Open Tab")),Object(a.createElement)($c,{"aria-label":Object(o.__)("initial Open Tab")},bl()(t,e=>Object(a.createElement)(Vc,{key:e+1,className:"kt-init-open-tab",isSmall:!0,isPrimary:le===e+1,"aria-pressed":le===e+1,onClick:()=>be({startTab:e+1})},Object(o.__)("Tab")+" "+(e+1)))))),Be=Object(a.createElement)(Zc,{className:"kt-inspect-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(Jc,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(Jc,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(Jc,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Te:"tablet"===e.name?ze:He),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Ie=e=>{const l=oe&&oe[0]&&void 0!==oe[0].sizeType?oe:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[0,0,0,0],marginControl:"linked"}];return Object(a.createElement)(Pc,null,Object(a.createElement)("li",{className:`kt-title-item kt-title-item-${e} kt-tabs-svg-show-${g[e]&&g[e].onlyIcon?"only":"always"} kt-tabs-icon-side-${g[e]&&g[e].iconSide?g[e].iconSide:"right"} kt-tabs-has-icon-${g[e]&&g[e].icon?"true":"false"} kt-tab-title-${1+e===r?"active":"inactive"}${ae?" kb-tabs-have-subtitle":""}`,style:{margin:J?J[0]+"px "+("tabs"===s&&"percent"===ce?"0px ":J[1]+"px ")+J[2]+"px "+("tabs"===s&&"percent"===ce?"0px ":J[3]+"px "):""}},Object(a.createElement)("div",{className:"kt-tab-title kt-tab-title-"+(1+e),style:{backgroundColor:dn(k),color:dn(u),fontSize:O+j,lineHeight:S+_,fontWeight:A,fontStyle:L,letterSpacing:M+"px",fontFamily:R||"",borderTopLeftRadius:N+"px",borderTopRightRadius:N+"px",borderWidth:T?T[0]+"px "+T[1]+"px "+T[2]+"px "+T[3]+"px":"",borderRadius:ee?ee[0]+"px "+ee[1]+"px "+ee[2]+"px "+ee[3]+"px":"",padding:Z?Z[0]+"px "+Z[1]+"px "+Z[2]+"px "+Z[3]+"px":"",borderColor:dn(H),marginRight:"tabs"===s&&"percent"===ce?re[0]+"px":void 0},onClick:()=>be({currentTab:1+e}),onKeyPress:()=>be({currentTab:1+e}),tabIndex:"0",role:"button"},g[e]&&g[e].icon&&"right"!==g[e].iconSide&&Object(a.createElement)(Je,{className:`kt-tab-svg-icon kt-tab-svg-icon-${g[e].icon} kt-title-svg-side-${g[e].iconSide}`,name:g[e].icon,size:te||"14",htmltag:"span"}),(void 0===ae||!ae)&&Object(a.createElement)(Fc,{tagName:"div",placeholder:Object(o.__)("Tab Title"),value:g[e]&&g[e].text?g[e].text:"",unstableOnFocus:()=>be({currentTab:1+e}),onChange:t=>{this.saveArrayUpdate({text:t},e)},allowedFormats:ts("kadence.whitelist_richtext_formats",["core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:"kt-title-text",style:{lineHeight:S+_},keepPlaceholderOnFocus:!0}),ae&&Object(a.createElement)("div",{className:"kb-tab-titles-wrap"},Object(a.createElement)(Fc,{tagName:"div",placeholder:Object(o.__)("Tab Title"),value:g[e]&&g[e].text?g[e].text:"",unstableOnFocus:()=>be({currentTab:1+e}),onChange:t=>{this.saveArrayUpdate({text:t},e)},allowedFormats:ts("kadence.whitelist_richtext_formats",["core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:"kt-title-text",style:{lineHeight:S+_},keepPlaceholderOnFocus:!0}),Object(a.createElement)(Fc,{tagName:"div",placeholder:Object(o.__)("Tab subtitle"),value:void 0!==g[e]&&void 0!==g[e].subText?g[e].subText:"",unstableOnFocus:()=>be({currentTab:1+e}),onChange:t=>{this.saveArrayUpdate({subText:t},e)},allowedFormats:ts("kadence.whitelist_richtext_formats",["core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:"kt-title-sub-text",style:{fontWeight:l[0].weight,fontStyle:l[0].style,fontSize:l[0].size[0]+l[0].sizeType,lineHeight:l[0].lineHeight&&l[0].lineHeight[0]?l[0].lineHeight[0]+l[0].lineType:void 0,letterSpacing:l[0].letterSpacing+"px",fontFamily:l[0].family?l[0].family:"",padding:l[0].padding?l[0].padding[0]+"px "+l[0].padding[1]+"px "+l[0].padding[2]+"px "+l[0].padding[3]+"px":"",margin:l[0].margin?l[0].margin[0]+"px "+l[0].margin[1]+"px "+l[0].margin[2]+"px "+l[0].margin[3]+"px":""},keepPlaceholderOnFocus:!0})),g[e]&&g[e].icon&&"right"===g[e].iconSide&&Object(a.createElement)(Je,{className:`kt-tab-svg-icon kt-tab-svg-icon-${g[e].icon} kt-title-svg-side-${g[e].iconSide}`,name:g[e].icon,size:te||"14",htmltag:"span"})),Object(a.createElement)("div",{className:"kadence-blocks-tab-item__control-menu"},0!==e&&Object(a.createElement)(qc,{icon:"vtabs"===s?"arrow-up":"arrow-left",onClick:0===e?void 0:this.onMoveBack(e),className:"kadence-blocks-tab-item__move-back",label:"vtabs"===s?Object(o.__)("Move Item Up"):Object(o.__)("Move Item Back"),"aria-disabled":0===e,disabled:0===e}),e+1!==t&&Object(a.createElement)(qc,{icon:"vtabs"===s?"arrow-down":"arrow-right",onClick:e+1===t?void 0:this.onMoveForward(e),className:"kadence-blocks-tab-item__move-forward",label:"vtabs"===s?Object(o.__)("Move Item Down"):Object(o.__)("Move Item Forward"),"aria-disabled":e+1===t,disabled:e+1===t}),t>1&&Object(a.createElement)(qc,{icon:"no-alt",onClick:()=>{const l=this.props.tabsBlock.innerBlocks[e].clientId,a=Hl()(this.props.attributes.titles,(t,l)=>e!==l);let o;o=le===e+1?"":le>e+1?le-1:le,be({titles:a,tabCount:t-1,currentTab:0===e?1:e,startTab:o}),this.props.removeTab(l),this.props.resetOrder()},className:"kadence-blocks-tab-item__remove",label:Object(o.__)("Remove Item"),disabled:!r===e+1}))))},Re=Object(a.createElement)(Pc,null,bl()(t,e=>Ie(e))),Pe=e=>Object(a.createElement)(Kc,{title:Object(o.__)("Tab")+" "+(e+1)+" "+Object(o.__)("Anchor"),initialOpen:!1},Object(a.createElement)(es,{label:Object(o.__)("HTML Anchor"),help:Object(o.__)("Anchors lets you link directly to a tab."),value:g[e]&&g[e].anchor?g[e].anchor:"",onChange:t=>{t=t.replace(as,"-"),this.saveArrayUpdate({anchor:t},e)}})),Ae=e=>Object(a.createElement)(Kc,{title:Object(o.__)("Tab")+" "+(e+1)+" "+Object(o.__)("Icon"),initialOpen:!1},Object(a.createElement)(Xe,{value:g[e]&&g[e].icon?g[e].icon:"",onChange:t=>{this.saveArrayUpdate({icon:t},e)}}),Object(a.createElement)(Xc,{label:Object(o.__)("Icon Location"),value:g[e]&&g[e].iconSide?g[e].iconSide:"right",options:[{value:"right",label:Object(o.__)("Right")},{value:"left",label:Object(o.__)("Left")},{value:"top",label:Object(o.__)("Top")}],onChange:t=>{this.saveArrayUpdate({iconSide:t},e)}}),Object(a.createElement)(Yc,{label:Object(o.__)("Show Only Icon?"),checked:!(!g[e]||!g[e].onlyIcon)&&g[e].onlyIcon,onChange:t=>{this.saveArrayUpdate({onlyIcon:t},e)}})),Le=Object(a.createElement)(Pc,null,Object(a.createElement)(Bt,{label:Object(o.__)("Title Color"),colorValue:u||"",colorDefault:"",onColorChange:e=>be({titleColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Title Background"),colorValue:k||"",colorDefault:"",onColorChange:e=>be({titleBg:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Title Border Color"),colorValue:H||"",colorDefault:"",onColorChange:e=>be({titleBorder:e})})),Fe=Object(a.createElement)(Pc,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color"),colorValue:h||"",colorDefault:"",onColorChange:e=>be({titleColorHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background"),colorValue:y||"",colorDefault:"",onColorChange:e=>be({titleBgHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Border Color"),colorValue:B||"",colorDefault:"",onColorChange:e=>be({titleBorderHover:e})})),We=Object(a.createElement)(Pc,null,Object(a.createElement)(Bt,{label:Object(o.__)("Active Color"),colorValue:v||"",colorDefault:"",onColorChange:e=>be({titleColorActive:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Active Background"),colorValue:f||"",colorDefault:"",onColorChange:e=>be({titleBgActive:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Active Border Color"),colorValue:I||"",colorDefault:"",onColorChange:e=>be({titleBorderActive:e})})),De=Object(a.createElement)(Kc,null,Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:j===t,"aria-pressed":j===t,onClick:()=>be({sizeType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Font Size"),value:O||"",onChange:e=>be({size:e}),min:fe,max:Oe,step:je}),Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:_===t,"aria-pressed":_===t,onClick:()=>be({lineType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Line Height"),value:S||"",onChange:e=>be({lineHeight:e}),min:_e,max:Se,step:Ee})),Ue=Object(a.createElement)(Kc,null,Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:j===t,"aria-pressed":j===t,onClick:()=>be({sizeType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Font Size"),value:w||"",onChange:e=>be({tabSize:e}),min:fe,max:Oe,step:je}),Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:_===t,"aria-pressed":_===t,onClick:()=>be({lineType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Line Height"),value:E||"",onChange:e=>be({tabLineHeight:e}),min:_e,max:Se,step:Ee})),Ve=Object(a.createElement)(Kc,null,Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:j===t,"aria-pressed":j===t,onClick:()=>be({sizeType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Font Size"),value:x||"",onChange:e=>be({mobileSize:e}),min:fe,max:Oe,step:je}),Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:_===t,"aria-pressed":_===t,onClick:()=>be({lineType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Line Height"),value:C||"",onChange:e=>be({mobileLineHeight:e}),min:_e,max:Se,step:Ee})),$e=Object(a.createElement)(Zc,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(Jc,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(Jc,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(Jc,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Ve:"tablet"===e.name?Ue:De),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Ge=Object(a.createElement)("style",null,`.kt-tabs-id${e} .kt-title-item:hover .kt-tab-title {\n\t\t\t\t\tcolor: ${dn(h)} !important;\n\t\t\t\t\tborder-color: ${dn(B)} !important;\n\t\t\t\t\tbackground-color: ${dn(y)} !important;\n\t\t\t\t}\n\t\t\t\t.kt-tabs-id${e} .kt-title-item.kt-tab-title-active .kt-tab-title, .kt-tabs-id${e} .kt-title-item.kt-tab-title-active:hover .kt-tab-title {\n\t\t\t\t\tcolor: ${dn(v)} !important;\n\t\t\t\t\tborder-color: ${dn(I)} !important;\n\t\t\t\t\tbackground-color: ${dn(f)} !important;\n\t\t\t\t}`);return Object(a.createElement)(Pc,null,Ge,Object(a.createElement)(Wc,null,Object(a.createElement)(Uc,{value:l,controls:["center","wide","full"],onChange:e=>be({blockAlignment:e})}),Object(a.createElement)(Dc,{value:Y,onChange:e=>{be({tabAlignment:e})}})),this.showSettings("allSettings")&&Object(a.createElement)(Lc,null,this.showSettings("tabLayout")&&Be,!this.showSettings("tabLayout")&&Object(a.createElement)(Kc,null,Object(a.createElement)("h2",null,Object(o.__)("Set Initial Open Tab")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Initial Open Tab")},bl()(t,e=>Object(a.createElement)(Vc,{key:e+1,className:"kt-init-open-tab",isSmall:!0,isPrimary:le===e+1,"aria-pressed":le===e+1,onClick:()=>be({startTab:e+1})},Object(o.__)("Tab")+" "+(e+1))))),this.showSettings("tabContent")&&Object(a.createElement)(Kc,{title:Object(o.__)("Content Settings"),initialOpen:!1},Object(a.createElement)(Bt,{label:Object(o.__)("Content Background"),colorValue:Q||"",colorDefault:"",onColorChange:e=>be({contentBgColor:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Inner Content Padding (px)"),measurement:b,control:U,onChange:e=>be({innerPadding:e}),onControl:e=>be({innerPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:G||"",colorDefault:"",onColorChange:e=>be({contentBorderColor:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Content Border Width (px)"),measurement:V,control:$,onChange:e=>be({contentBorder:e}),onControl:e=>be({contentBorderControl:e}),min:0,max:100,step:1})),this.showSettings("titleColor")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Color Settings"),initialOpen:!1},Object(a.createElement)(Zc,{className:"kt-inspect-tabs kt-no-ho-ac-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover"),className:"kt-hover-tab"},{name:"active",title:Object(o.__)("Active"),className:"kt-active-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Fe:"active"===e.name?We:Le),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),this.showSettings("titleSpacing")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Width/Spacing/Border"),initialOpen:!1},"tabs"===s&&Object(a.createElement)(Pc,null,Object(a.createElement)("h2",null,Object(o.__)("Tab Title Width")),Object(a.createElement)(Zc,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",initialTabName:ce,onSelect:e=>be({widthType:e}),tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"percent",title:Object(o.__)("% Width"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="percent"===e.name?Object(a.createElement)(Pc,null,Object(a.createElement)(Zc,{className:"kt-size-tabs kb-device-choice",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(Jc,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(Jc,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(Jc,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(Pc,null,Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Columns"),value:ne&&void 0!==ne[2]?ne[2]:"",onChange:e=>be({tabWidth:[ne[0],ne[1],e]}),min:1,max:8,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Gutter"),value:re&&void 0!==re[2]?re[2]:"",onChange:e=>be({gutter:[re[0],re[1],e]}),min:0,max:50,step:1})):"tablet"===e.name?Object(a.createElement)(Pc,null,Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Columns"),value:ne&&void 0!==ne[1]?ne[1]:"",onChange:e=>be({tabWidth:[ne[0],e,ne[2]]}),min:1,max:8,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Gutter"),value:re&&void 0!==re[1]?re[1]:"",onChange:e=>be({gutter:[re[0],e,re[2]]}),min:0,max:50,step:1})):Object(a.createElement)(Pc,null,Object(a.createElement)(Qc,{label:Object(o.__)("Columns"),value:ne&&void 0!==ne[0]?ne[0]:"",onChange:e=>be({tabWidth:[e,ne[1],ne[2]]}),min:1,max:8,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Gutter"),value:re&&void 0!==re[0]?re[0]:"",onChange:e=>be({gutter:[e,re[1],re[2]]}),min:0,max:50,step:1}))),Object(a.createElement)("div",null,t)}),Object(a.createElement)(sn,{label:Object(o.__)("Title Padding (px)"),measurement:Z,control:q,onChange:e=>be({titlePadding:e}),onControl:e=>be({titlePaddingControl:e}),min:0,max:50,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Top Margin (px)"),value:J&&void 0!==J[0]?J[0]:"",onChange:e=>be({titleMargin:[e,J[1],J[2],J[3]]}),min:-25,max:25,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Bottom Margin (px)"),value:J&&void 0!==J[2]?J[2]:"",onChange:e=>be({titleMargin:[J[0],J[1],e,J[3]]}),min:-25,max:25,step:1})):Object(a.createElement)(Pc,null,Object(a.createElement)(sn,{label:Object(o.__)("Title Padding (px)"),measurement:Z,control:q,onChange:e=>be({titlePadding:e}),onControl:e=>be({titlePaddingControl:e}),min:0,max:50,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Title Margin (px)"),measurement:J,control:K,onChange:e=>be({titleMargin:e}),onControl:e=>be({titleMarginControl:e}),min:-25,max:25,step:1}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),"tabs"!==s&&Object(a.createElement)(Pc,null,Object(a.createElement)(sn,{label:Object(o.__)("Title Padding (px)"),measurement:Z,control:q,onChange:e=>be({titlePadding:e}),onControl:e=>be({titlePaddingControl:e}),min:0,max:50,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Title Margin (px)"),measurement:J,control:K,onChange:e=>be({titleMargin:e}),onControl:e=>be({titleMarginControl:e}),min:-25,max:25,step:1})),Object(a.createElement)(sn,{label:Object(o.__)("Title Border Width (px)"),measurement:T,control:z,onChange:e=>be({titleBorderWidth:e}),onControl:e=>be({titleBorderControl:e}),min:0,max:20,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Title Border Radius (px)"),measurement:ee,control:X,onChange:e=>be({titleBorderRadius:e}),onControl:e=>be({titleBorderRadiusControl:e}),min:0,max:50,step:1,controlTypes:[{key:"linked",name:Object(o.__)("Linked"),icon:n.radiuslinked},{key:"individual",name:Object(o.__)("Individual"),icon:n.radiusindividual}],firstIcon:n.topleft,secondIcon:n.topright,thirdIcon:n.bottomright,fourthIcon:n.bottomleft})),this.showSettings("titleFont")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Font Settings"),initialOpen:!1},Object(a.createElement)(ie,{fontFamily:R,onFontFamily:e=>be({typography:e}),googleFont:W,onFontChange:e=>{be({typography:e.value,googleFont:e.google})},onGoogleFont:e=>be({googleFont:e}),loadGoogleFont:D,onLoadGoogleFont:e=>be({loadGoogleFont:e}),fontVariant:P,onFontVariant:e=>be({fontVariant:e}),fontWeight:A,onFontWeight:e=>be({fontWeight:e}),fontStyle:L,onFontStyle:e=>be({fontStyle:e}),fontSubset:F,onFontSubset:e=>be({fontSubset:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Size Controls")),$e,Object(a.createElement)(Qc,{label:Object(o.__)("Letter Spacing"),value:M||"",onChange:e=>be({letterSpacing:e}),min:-5,max:15,step:.1})),this.showSettings("titleIcon")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Icon Settings"),initialOpen:!1},Object(a.createElement)(Qc,{label:Object(o.__)("Icon Size"),value:te||"",onChange:e=>be({iSize:e}),min:2,max:120,step:1}),bl()(t,e=>Ae(e))),this.showSettings("subtitle")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Subtitle Settings"),initialOpen:!1},Object(a.createElement)(Yc,{label:Object(o.__)("Show Subtitles?"),checked:void 0!==ae&&ae,onChange:e=>{be({enableSubtitle:e})}}),ae&&Object(a.createElement)(ie,{fontSize:oe&&void 0!==oe[0]&&void 0!==oe[0].size?oe[0].size:["","",""],onFontSize:e=>ve({size:e}),fontSizeType:oe&&void 0!==oe[0]&&void 0!==oe[0].sizeType?oe[0].sizeType:"px",onFontSizeType:e=>ve({sizeType:e}),lineHeight:oe&&void 0!==oe[0]&&void 0!==oe[0].lineHeight?oe[0].lineHeight:["","",""],onLineHeight:e=>ve({lineHeight:e}),lineHeightType:oe&&void 0!==oe[0]&&void 0!==oe[0].lineType?oe[0].lineType:"px",onLineHeightType:e=>ve({lineType:e}),letterSpacing:oe&&void 0!==oe[0]&&void 0!==oe[0].letterSpacing?oe[0].letterSpacing:"",onLetterSpacing:e=>ve({letterSpacing:e}),fontFamily:oe&&void 0!==oe[0]&&void 0!==oe[0].family?oe[0].family:"",onFontFamily:e=>ve({family:e}),onFontChange:e=>{ve({family:e.value,google:e.google})},onFontArrayChange:e=>ve(e),googleFont:!(!oe||void 0===oe[0]||void 0===oe[0].google)&&oe[0].google,onGoogleFont:e=>ve({google:e}),loadGoogleFont:!oe||void 0===oe[0]||void 0===oe[0].loadGoogle||oe[0].loadGoogle,onLoadGoogleFont:e=>ve({loadGoogle:e}),fontVariant:oe&&void 0!==oe[0]&&void 0!==oe[0].variant?oe[0].variant:"",onFontVariant:e=>ve({variant:e}),fontWeight:oe&&void 0!==oe[0]&&void 0!==oe[0].weight?oe[0].weight:"",onFontWeight:e=>ve({weight:e}),fontStyle:oe&&void 0!==oe[0]&&void 0!==oe[0].style?oe[0].style:"",onFontStyle:e=>ve({style:e}),fontSubset:oe&&void 0!==oe[0]&&void 0!==oe[0].subset?oe[0].subset:"",onFontSubset:e=>ve({subset:e}),padding:oe&&void 0!==oe[0]&&void 0!==oe[0].padding?oe[0].padding:[0,0,0,0],onPadding:e=>ve({padding:e}),paddingControl:oe&&void 0!==oe[0]&&void 0!==oe[0].paddingControl?oe[0].paddingControl:"linked",onPaddingControl:e=>ve({paddingControl:e}),margin:oe&&void 0!==oe[0]&&void 0!==oe[0].margin?oe[0].margin:[0,0,0,0],onMargin:e=>ve({margin:e}),marginControl:oe&&void 0!==oe[0]&&void 0!==oe[0].marginControl?oe[0].marginControl:"linked",onMarginControl:e=>ve({marginControl:e})})),this.showSettings("titleAnchor")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Anchor Settings"),initialOpen:!1},bl()(t,e=>Pe(e))),this.showSettings("structure")&&Object(a.createElement)(Kc,{title:Object(o.__)("Structure Settings"),initialOpen:!1},Object(a.createElement)(Qc,{label:Object(o.__)("Content Minimium Height"),value:m,onChange:e=>{be({minHeight:e})},min:0,max:1e3}),Object(a.createElement)(Qc,{label:Object(o.__)("Max Width"),value:p,onChange:e=>{be({maxWidth:e})},min:0,max:2e3}))),Object(a.createElement)("div",{className:Ce},this.state.showPreset&&Object(a.createElement)("div",{className:"kt-select-starter-style-tabs"},Object(a.createElement)("div",{className:"kt-select-starter-style-tabs-title"},Object(o.__)("Select Initial Style")),Object(a.createElement)($c,{className:"kt-init-tabs-btn-group","aria-label":Object(o.__)("Initial Style")},d()(ke,({name:e,key:t,icon:l})=>Object(a.createElement)(Vc,{key:t,className:"kt-inital-tabs-style-btn",isSmall:!0,onClick:()=>{(e=>{"skip"===e||("simple"===e?be({layout:"tabs",tabAlignment:"left",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[1,1,0,1],titleBorderControl:"individual",titleBorderRadius:[4,4,0,0],titleBorderRadiusControl:"individual",titlePadding:[8,20,8,20],titlePaddingControl:"individual",titleMargin:[0,8,-1,0],titleMarginControl:"individual",titleColor:"#444444",titleColorHover:"#444444",titleColorActive:"#444444",titleBg:"#ffffff",titleBgHover:"#ffffff",titleBgActive:"#ffffff",titleBorder:"#eeeeee",titleBorderHover:"#e2e2e2",titleBorderActive:"#bcbcbc",contentBgColor:"#ffffff",contentBorderColor:"#bcbcbc",contentBorder:[1,1,1,1],contentBorderControl:"linked"}):"boldbg"===e?be({layout:"tabs",tabAlignment:"left",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[0,0,0,0],titleBorderControl:"linked",titleBorderRadius:[4,4,0,0],titleBorderRadiusControl:"individual",titlePadding:[8,20,8,20],titlePaddingControl:"individual",titleMargin:[0,8,0,0],titleMarginControl:"individual",titleColor:"#222222",titleColorHover:"#222222",titleColorActive:"#ffffff",titleBg:"#eeeeee",titleBgHover:"#e2e2e2",titleBgActive:"#0a6689",titleBorder:"#eeeeee",titleBorderHover:"#eeeeee",titleBorderActive:"#eeeeee",contentBgColor:"#ffffff",contentBorderColor:"#0a6689",contentBorder:[3,0,0,0],contentBorderControl:"individual"}):"center"===e?be({layout:"tabs",tabAlignment:"center",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[0,0,4,0],titleBorderControl:"individual",titleBorderRadius:[4,4,0,0],titleBorderRadiusControl:"individual",titlePadding:[8,20,8,20],titlePaddingControl:"individual",titleMargin:[0,8,0,0],titleMarginControl:"individual",titleColor:"#555555",titleColorHover:"#555555",titleColorActive:"#0a6689",titleBg:"#ffffff",titleBgHover:"#ffffff",titleBgActive:"#ffffff",titleBorder:"#ffffff",titleBorderHover:"#eeeeee",titleBorderActive:"#0a6689",contentBgColor:"#ffffff",contentBorderColor:"#eeeeee",contentBorder:[1,0,0,0],contentBorderControl:"individual"}):"vertical"===e&&be({layout:"vtabs",mobileLayout:"accordion",tabAlignment:"left",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[4,0,4,4],titleBorderControl:"individual",titleBorderRadius:[10,0,0,10],titleBorderRadiusControl:"individual",titlePadding:[12,8,12,20],titlePaddingControl:"individual",titleMargin:[0,-4,10,0],titleMarginControl:"individual",titleColor:"#444444",titleColorHover:"#444444",titleColorActive:"#444444",titleBg:"#eeeeee",titleBgHover:"#e9e9e9",titleBgActive:"#ffffff",titleBorder:"#eeeeee",titleBorderHover:"#e9e9e9",titleBorderActive:"#eeeeee",contentBgColor:"#ffffff",contentBorderColor:"#eeeeee",contentBorder:[4,4,4,4],contentBorderControl:"linked",minHeight:400}))})(t),this.setState({showPreset:!1})}},l)))),!this.state.showPreset&&Object(a.createElement)("div",{className:"kt-tabs-wrap",style:{maxWidth:p+"px"}},Object(a.createElement)("div",{className:"kb-add-new-tab-contain"},Object(a.createElement)(Vc,{className:"kt-tab-add",isPrimary:!0,onClick:()=>{const e=Ic("kadence/tab",{id:t+1});be({tabCount:t+1}),this.props.insertTab(e);const l=g;l.push({text:Object(o.sprintf)(Object(o.__)("Tab %d"),t+1),icon:g[0].icon,iconSide:g[0].iconSide,onlyIcon:g[0].onlyIcon,subText:""}),be({titles:l}),this.saveArrayUpdate({iconSide:g[0].iconSide},0)}},Object(a.createElement)(Jc,{icon:"plus"}),Object(o.__)("Add Tab"))),Object(a.createElement)("ul",{className:"kt-tabs-title-list"+("tabs"===s&&"percent"===ce?" kb-tabs-list-columns kb-tab-title-columns-"+ne[0]:"")},Re),W&&Object(a.createElement)(yl,{config:ye}),ae&&oe&&oe[0]&&oe[0].google&&Object(a.createElement)(yl,{config:he}),Object(a.createElement)("div",{className:"kt-tabs-content-wrap",style:{padding:b?b[0]+"px "+b[1]+"px "+b[2]+"px "+b[3]+"px":"",borderWidth:V?V[0]+"px "+V[1]+"px "+V[2]+"px "+V[3]+"px":"",minHeight:m+"px",backgroundColor:dn(Q),borderColor:dn(G)}},Object(a.createElement)(Ac,{template:os(t),templateLock:!1,allowedBlocks:ls})))))}});var rs=wp.element,cs=rs.Component,ss=rs.Fragment,ds=wp.blockEditor,bs=ds.InnerBlocks,ms=ds.RichText,ps=function(e){_e()(n,e);var t,l,i=(t=n,l=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,a=xe()(t);if(l){var o=xe()(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return Ee()(this,e)});function n(){return ye()(this,n),i.apply(this,arguments)}return Oe()(n,[{key:"stripStringRender",value:function(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}},{key:"render",value:function(){var e=this,t=this.props.attributes,l=t.tabCount,i=t.blockAlignment,n=t.currentTab,r=t.mobileLayout,c=t.layout,s=t.tabletLayout,d=t.uniqueID,b=t.titles,m=t.iSize,p=t.maxWidth,g=t.tabAlignment,u=t.startTab,h=t.enableSubtitle,v=t.widthType,k=t.tabWidth,y=c||"tabs",f=s||"inherit",O=r||"inherit",j=r&&"accordion"===r||s&&"accordion"===s?"kt-create-accordion":"",_=d||"notset",S=al()("align".concat(i)),E=u||n,w=al()("kt-tabs-wrap kt-tabs-id".concat(_," kt-tabs-has-").concat(l,"-tabs kt-active-tab-").concat(E," kt-tabs-layout-").concat(y," kt-tabs-tablet-layout-").concat(f," kt-tabs-mobile-layout-").concat(O," kt-tab-alignment-").concat(g," ").concat(j));return Object(a.createElement)("div",{className:S},Object(a.createElement)("div",{className:w,style:{maxWidth:p?p+"px":"none"}},Object(a.createElement)("ul",{className:"kt-tabs-title-list".concat("tabs"===c&&"percent"===v?" kb-tabs-list-columns kb-tab-title-columns-"+k[0]:"")},bl()(l,(function(t){return i="tab-".concat(b[l=t]&&b[l].text?e.stripStringRender(b[l].text.toString()):e.stripStringRender(Object(o.__)("Tab")+(1+l))),Object(a.createElement)(ss,null,Object(a.createElement)("li",{id:b[l]&&b[l].anchor?b[l].anchor:i,className:"kt-title-item kt-title-item-".concat(1+l," kt-tabs-svg-show-").concat(b[l]&&b[l].onlyIcon?"only":"always"," kt-tabs-icon-side-").concat(b[l]&&b[l].iconSide?b[l].iconSide:"right"," kt-tab-title-").concat(1+l===E?"active":"inactive").concat(h?" kb-tabs-have-subtitle":"")},Object(a.createElement)("a",{href:"#".concat(b[l]&&b[l].anchor?b[l].anchor:i),"data-tab":1+l,className:"kt-tab-title kt-tab-title-".concat(1+l," ")},b[l]&&b[l].icon&&"right"!==b[l].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[l].icon," kt-title-svg-side-").concat(b[l].iconSide),name:b[l].icon,size:m||"14",htmltag:"span"}),(!h||void 0!==b[l]&&void 0===b[l].subText||void 0!==b[l]&&void 0!==b[l].subText&&""===b[l].subText)&&Object(a.createElement)(ms.Content,{tagName:"span",value:b[l]&&b[l].text?b[l].text:Object(o.sprintf)(Object(o.__)("Tab %d"),1+l),className:"kt-title-text"}),h&&b[l]&&void 0!==b[l].subText&&""!==b[l].subText&&Object(a.createElement)("div",{className:"kb-tab-titles-wrap"},Object(a.createElement)(ms.Content,{tagName:"span",value:b[l]&&b[l].text?b[l].text:Object(o.sprintf)(Object(o.__)("Tab %d"),1+l),className:"kt-title-text"}),Object(a.createElement)(ms.Content,{tagName:"span",value:b[l].subText,className:"kt-title-sub-text"})),b[l]&&b[l].icon&&"right"===b[l].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[l].icon," kt-title-svg-side-").concat(b[l].iconSide),name:b[l].icon,size:m||"14",htmltag:"span"}))));var l,i}))),Object(a.createElement)("div",{className:"kt-tabs-content-wrap"},Object(a.createElement)(bs.Content,null))))}}]),n}(cs),gs=wp.element.Fragment,us=wp.blockEditor,hs=us.InnerBlocks,vs=us.RichText;function ks(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}(0,wp.blocks.registerBlockType)("kadence/tabs",{title:Object(o.__)("Tabs"),icon:{src:n.blocktabs},category:"kadence-blocks",keywords:[Object(o.__)("tabs"),Object(o.__)("tab"),Object(o.__)("KT")],supports:{anchor:!0},attributes:Bc,getEditWrapperProps:function(e){var t=e.blockAlignment;if("full"===t||"wide"===t||"center"===t)return{"data-align":t}},edit:ns,save:ps,deprecated:[{attributes:{uniqueID:{type:"string",default:""},tabCount:{type:"number",default:3},layout:{type:"string",default:"tabs"},mobileLayout:{type:"string",default:"inherit"},tabletLayout:{type:"string",default:"inherit"},currentTab:{type:"number",default:1},minHeight:{type:"number",default:""},maxWidth:{type:"number",default:""},contentBgColor:{type:"string",default:""},contentBorderColor:{type:"string",default:""},contentBorder:{type:"array",default:[1,1,1,1]},contentBorderControl:{type:"string",default:"linked"},innerPadding:{type:"array",default:[20,20,20,20]},innerPaddingControl:{type:"string",default:"linked"},innerPaddingM:{type:"array"},tabAlignment:{type:"string",default:"left"},blockAlignment:{type:"string",default:"none"},titles:{type:"array",default:[{text:Object(o.__)("Tab 1"),icon:"",iconSide:"right",onlyIcon:!1},{text:Object(o.__)("Tab 2"),icon:"",iconSide:"right",onlyIcon:!1},{text:Object(o.__)("Tab 3"),icon:"",iconSide:"right",onlyIcon:!1}]},iSize:{type:"number",default:14},titleColor:{type:"string"},titleColorHover:{type:"string"},titleColorActive:{type:"string"},titleBg:{type:"string"},titleBgHover:{type:"string"},titleBgActive:{type:"string",default:"#ffffff"},titleBorder:{type:"string"},titleBorderHover:{type:"string"},titleBorderActive:{type:"string"},titleBorderWidth:{type:"array"},titleBorderControl:{type:"string",default:"individual"},titleBorderRadius:{type:"array"},titleBorderRadiusControl:{type:"string",default:"individual"},titlePadding:{type:"array"},titlePaddingControl:{type:"string",default:"individual"},titleMargin:{type:"array"},titleMarginControl:{type:"string",default:"individual"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"}},save:function(e){var t=e.attributes,l=t.tabCount,i=t.blockAlignment,n=t.currentTab,r=t.mobileLayout,c=t.layout,s=t.tabletLayout,d=t.uniqueID,b=t.titles,m=t.iSize,p=t.maxWidth,g=t.tabAlignment,u=c||"tabs",h=s||"inherit",v=r||"inherit",k=r&&"accordion"===r||s&&"accordion"===s?"kt-create-accordion":"",y=d||"notset",f=al()("align".concat(i)),O=al()("kt-tabs-wrap kt-tabs-id".concat(y," kt-tabs-has-").concat(l,"-tabs kt-active-tab-").concat(n," kt-tabs-layout-").concat(u," kt-tabs-tablet-layout-").concat(h," kt-tabs-mobile-layout-").concat(v," kt-tab-alignment-").concat(g," ").concat(k));return Object(a.createElement)("div",{className:f},Object(a.createElement)("div",{className:O,style:{maxWidth:p?p+"px":"none"}},Object(a.createElement)("ul",{className:"kt-tabs-title-list"},bl()(l,(function(e){return t=e,Object(a.createElement)(gs,null,Object(a.createElement)("li",{id:"tab-".concat(b[t]&&b[t].text?ks(b[t].text.toString()):ks(Object(o.__)("Tab")+(1+t))),className:"kt-title-item kt-title-item-".concat(1+t," kt-tabs-svg-show-").concat(b[t]&&b[t].onlyIcon?"only":"always"," kt-tabs-icon-side-").concat(b[t]&&b[t].iconSide?b[t].iconSide:"right"," kt-tab-title-").concat(1+t===n?"active":"inactive")},Object(a.createElement)("a",{href:"#tab-".concat(b[t]&&b[t].text?ks(b[t].text.toString()):ks(Object(o.__)("Tab")+(1+t))),"data-tab":1+t,className:"kt-tab-title kt-tab-title-".concat(1+t," ")},b[t]&&b[t].icon&&"right"!==b[t].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[t].icon," kt-title-svg-side-").concat(b[t].iconSide),name:b[t].icon,size:m||"14"}),Object(a.createElement)(vs.Content,{tagName:"span",value:b[t]&&b[t].text?b[t].text:Object(o.sprintf)(Object(o.__)("Tab %d"),1+t),className:"kt-title-text"}),b[t]&&b[t].icon&&"right"===b[t].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[t].icon," kt-title-svg-side-").concat(b[t].iconSide),name:b[t].icon,size:m||"14"}))));var t}))),Object(a.createElement)("div",{className:"kt-tabs-content-wrap"},Object(a.createElement)(hs.Content,null))))}}]});var ys={};ys.block=Object(a.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("path",{d:"M47.612,40.008l-19.999,0l0,-32.016l13.566,0l6.433,0.023l0,31.993Z",fill:"#0073e6",fillRule:"nonzero"}),Object(a.createElement)("path",{d:"M20.383,40l-20.036,0l0,-32l20.036,0.019l0,31.981Z",fill:"#0058b0",fillRule:"nonzero"}));var fs=ys;var Os=wp.blockEditor.InnerBlocks,js=wp.element.Fragment,_s=wp.element.Component,Ss=[],Es=function(e){_e()(i,e);var t,l,o=(t=i,l=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,a=xe()(t);if(l){var o=xe()(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return Ee()(this,e)});function i(){return ye()(this,i),o.apply(this,arguments)}return Oe()(i,[{key:"componentDidMount",value:function(){this.props.attributes.uniqueID?Ss.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ss.push("_"+this.props.clientId.substr(2,9))):Ss.push(this.props.attributes.uniqueID):(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ss.push("_"+this.props.clientId.substr(2,9)))}},{key:"render",value:function(){var e=this.props,t=e.attributes,l=t.id,o=t.uniqueID,i=e.clientId,n=wp.data.select("core/block-editor").getBlockOrder(i).length>0;return Object(a.createElement)(js,null,Object(a.createElement)("div",{className:"kt-tab-inner-content kt-inner-tab-".concat(l," kt-inner-tab").concat(o)},Object(a.createElement)(Os,{templateLock:!1,renderAppender:n?void 0:function(){return Object(a.createElement)(Os.ButtonBlockAppender,null)}})))}}]),i}(_s),ws=wp.blockEditor.InnerBlocks;(0,wp.blocks.registerBlockType)("kadence/tab",{title:Object(o.__)("Tab","kadence-blocks"),icon:fs.block,category:"kadence-blocks",parent:["kadence/tabs"],attributes:{id:{type:"number",default:1},uniqueID:{type:"string",default:""}},supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){return{"data-tab":e.id}},edit:Es,save:function(e){var t=e.attributes,l=t.id,o=t.uniqueID;return Object(a.createElement)("div",{className:"kt-tab-inner-content kt-inner-tab-".concat(l," kt-inner-tab").concat(o)},Object(a.createElement)("div",{className:"kt-tab-inner-content-inner"},Object(a.createElement)(ws.Content,null)))},deprecated:[{attributes:{id:{type:"number",default:1}},save:function(e){var t=e.attributes.id;return Object(a.createElement)("div",{className:"kt-tab-inner-content kt-inner-tab-".concat(t)},Object(a.createElement)("div",{className:"kt-tab-inner-content-inner"},Object(a.createElement)(ws.Content,null)))}}]});var xs={uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a.info-box-link"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a.info-box-link",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},containerTabletPadding:{type:"array",default:["","","",""]},containerMobilePadding:{type:"array",default:["","","",""]},containerPaddingType:{type:"string",default:"px"},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder",paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},imageRatio:{type:"string",default:"inherit"}},Cs=l(131),Ms=l.n(Cs),Ns=l(132),Ts=l.n(Ns);const{Component:zs,Fragment:Hs}=wp.element;var Bs=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{getMedia:l}=e("core"),{id:a}=t,{getSettings:o}=e("core/block-editor"),{imageSizes:i}=o();return{image:a?l(a):null,imageSizes:i}})])(class extends zs{constructor(e,t,l,a,o,i=!0,n=!0){super(...arguments),this.getImageSizeOptions=this.getImageSizeOptions.bind(this),this.getSmallImageSizeOptions=this.getSmallImageSizeOptions.bind(this),this.state={isVisible:!1}}getImageSizeOptions(){const{image:e}=this.props;if(e){const t=void 0!==e.media_details.sizes?e.media_details.sizes:[],l=Object.keys(t).map(e=>({slug:e,name:e}));return Ts()(d()(l,({name:t,slug:l})=>{if("image/svg+xml"===ce()(e,["mime_type"]))return null;const a=ce()(e,["media_details","sizes",l,"source_url"]);if(!a)return null;const o=ce()(e,["media_details","sizes",l,"width"]);if(!o)return null;const i=ce()(e,["media_details","sizes",l,"height"]);return i?{value:a,label:t+" ("+o+"x"+i+")",slug:l,width:o,height:i}:null}))}return null}getSmallImageSizeOptions(){const{image:e}=this.props;if(e){const t=void 0!==e.media_details.sizes?e.media_details.sizes:[],l=[];for(let e=0;e<Object.keys(t).length;e++){const a=Object.keys(t)[e];"thumbnail"!==a&&"medium"!==a&&"medium_large"!==a&&"large"!==a&&"full"!==a||l.push({slug:a,name:a})}return Ts()(d()(l,({name:t,slug:l})=>{if("image/svg+xml"===ce()(e,["mime_type"]))return null;const a=ce()(e,["media_details","sizes",l,"source_url"]);if(!a)return null;const o=ce()(e,["media_details","sizes",l,"width"]);if(!o)return null;const i=ce()(e,["media_details","sizes",l,"height"]);return i?{value:a,label:t+("full"===l?"":" ("+o+"x"+i+")"),slug:l,width:o,height:i}:null}))}return null}render(){let e;return e=void 0===this.props.fullSelection||!0===this.props.fullSelection?this.getImageSizeOptions():this.getSmallImageSizeOptions(),Object(a.createElement)("div",{className:"kb-image-size-container"},!Ms()(e)&&(void 0===this.props.selectByValue||!0===this.props.selectByValue)&&Object(a.createElement)(Hs,null,Object(a.createElement)("h2",{className:"kb-image-size-title"},this.props.label),Object(a.createElement)("div",{className:"kb-image-size-select-form-row"},Object(a.createElement)(c.a,{options:e,value:e.filter(({value:e})=>e===this.props.url),isMulti:!1,maxMenuHeight:250,isClearable:!1,placeholder:"",onChange:this.props.onChange}))),!Ms()(e)&&!1===this.props.selectByValue&&Object(a.createElement)(Hs,null,Object(a.createElement)("h2",{className:"kb-image-size-title"},this.props.label),Object(a.createElement)("div",{className:"kb-image-size-select-form-row"},Object(a.createElement)(c.a,{options:e,value:e.filter(({slug:e})=>e===this.props.slug),isMulti:!1,maxMenuHeight:250,isClearable:!1,placeholder:"",onChange:this.props.onChange}))))}});const{Component:Is,Fragment:Rs}=wp.element,{DropdownMenu:Ps,MenuGroup:As,MenuItem:Ls,Toolbar:Fs,ToggleControl:Ws,SelectControl:Ds}=wp.components,{localStorage:Us}=window,Vs={className:"block-editor-block-settings-menu__popover",position:"bottom right"};var $s=class extends Is{constructor(){super(...arguments),this.state={iconOptions:[],iconOptionsNames:[]}}componentDidMount(){}render(){const{onPaste:e,onPasteMediaImage:t,onPasteMediaIcon:l,blockAttributes:i}=this.props,n=Object(a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 32 32",width:"20px",height:"20px"},Object(a.createElement)("path",{fillRule:"nonzero",d:"M26 8h-6V6l-6-6H0v24h12v8h20V14l-6-6zm0 2.828L29.172 14H26v-3.172zm-12-8L17.172 6H14V2.828zM2 2h10v6h6v14H2V2zm28 28H14v-6h6V10h4v6h6v14z"})),r=JSON.parse(Us.getItem("kadenceInfoboxStyle")),c=()=>{const e={};i.linkProperty&&(e.linkProperty=i.linkProperty),i.target&&(e.target=i.target),i.hAlign&&(e.hAlign=i.hAlign),i.hAlignTablet&&(e.hAlignTablet=i.hAlignTablet),i.hAlignMobile&&(e.hAlignMobile=i.hAlignMobile),i.containerBackground&&(e.containerBackground=i.containerBackground),i.containerBackgroundOpacity&&(e.containerBackgroundOpacity=i.containerBackgroundOpacity),i.containerHoverBackground&&(e.containerHoverBackground=i.containerHoverBackground),i.containerHoverBackgroundOpacity&&(e.containerHoverBackgroundOpacity=i.containerHoverBackgroundOpacity),i.containerBorder&&(e.containerBorder=i.containerBorder),i.containerBorderOpacity&&(e.containerBorderOpacity=i.containerBorderOpacity),i.containerHoverBorder&&(e.containerHoverBorder=i.containerHoverBorder),i.containerHoverBorderOpacity&&(e.containerHoverBorderOpacity=i.containerHoverBorderOpacity),i.containerBorderWidth&&(e.containerBorderWidth=i.containerBorderWidth),void 0===i.containerBorderRadius||isNaN(i.containerBorderRadius)||(e.containerBorderRadius=i.containerBorderRadius),i.containerPadding&&(e.containerPadding=i.containerPadding),i.containerTabletPadding&&(e.containerTabletPadding=i.containerTabletPadding),i.containerMobilePadding&&(e.containerMobilePadding=i.containerMobilePadding),i.containerPaddingType&&(e.containerPaddingType=i.containerPaddingType),i.mediaType&&(e.mediaType=i.mediaType),i.mediaAlign&&(e.mediaAlign=i.mediaAlign),i.mediaImage&&i.mediaImage[0]&&i.mediaImage[0].maxWidth&&(e.mediaImage=[{maxWidth:i.mediaImage[0].maxWidth}],i.mediaImage[0].hoverAnimation&&(e.mediaImage[0].hoverAnimation=i.mediaImage[0].hoverAnimation)),i.mediaIcon&&i.mediaIcon[0]&&(e.mediaIcon=[{hoverAnimation:"none"}],i.mediaIcon[0].size&&(e.mediaIcon[0].size=i.mediaIcon[0].size),i.mediaIcon[0].width&&(e.mediaIcon[0].width=i.mediaIcon[0].width),i.mediaIcon[0].color&&(e.mediaIcon[0].color=i.mediaIcon[0].color),i.mediaIcon[0].hoverColor&&(e.mediaIcon[0].hoverColor=i.mediaIcon[0].hoverColor),i.mediaIcon[0].hoverAnimation&&(e.mediaIcon[0].hoverAnimation=i.mediaIcon[0].hoverAnimation)),i.textSpacing&&i.textSpacing[0]&&i.textSpacing[0].padding&&(e.textSpacing=[{padding:i.textSpacing[0].padding}],i.textSpacing[0].paddingControl&&(e.textSpacing[0].paddingControl=i.textSpacing[0].paddingControl),i.textSpacing[0].margin&&(e.textSpacing[0].margin=i.textSpacing[0].margin),i.textSpacing[0].marginControl&&(e.textSpacing[0].marginControl=i.textSpacing[0].marginControl)),i.mediaStyle&&(e.mediaStyle=i.mediaStyle),i.displayTitle&&(e.displayTitle=i.displayTitle),i.titleColor&&(e.titleColor=i.titleColor),i.titleHoverColor&&(e.titleHoverColor=i.titleHoverColor),i.titleMinHeight&&(e.titleMinHeight=i.titleMinHeight),i.titleFont&&(e.titleFont=i.titleFont),i.displayText&&(e.displayText=i.displayText),i.textColor&&(e.textColor=i.textColor),i.textHoverColor&&(e.textHoverColor=i.textHoverColor),i.textMinHeight&&(e.textMinHeight=i.textMinHeight),i.textFont&&(e.textFont=i.textFont),i.displayLearnMore&&(e.displayLearnMore=i.displayLearnMore),i.learnMoreStyles&&(e.learnMoreStyles=i.learnMoreStyles),i.displayShadow&&(e.displayShadow=i.displayShadow),i.shadow&&(e.shadow=i.shadow),i.shadowHover&&(e.shadowHover=i.shadowHover),i.mediaVAlign&&(e.mediaVAlign=i.mediaVAlign),i.mediaAlignMobile&&(e.mediaAlignMobile=i.mediaAlignMobile),i.mediaAlignTablet&&(e.mediaAlignTablet=i.mediaAlignTablet),i.maxWidth&&(e.maxWidth=i.maxWidth),i.maxWidthUnit&&(e.maxWidthUnit=i.maxWidthUnit),i.containerMargin&&(e.containerMargin=i.containerMargin),i.containerMarginUnit&&(e.containerMarginUnit=i.containerMarginUnit),i.imageRatio&&(e.imageRatio=i.imageRatio),Us.setItem("kadenceInfoboxStyle",JSON.stringify(e))},s=()=>{const a=JSON.parse(Us.getItem("kadenceInfoboxStyle"));a&&(a.mediaImage&&(t(a.mediaImage[0]),delete a.mediaImage),a.mediaIcon&&(l(a.mediaIcon[0]),delete a.mediaIcon),e(a))};return Object(a.createElement)(Fs,null,Object(a.createElement)(Ps,{className:"block-editor-block-settings-menu",icon:n,label:Object(o.__)("Copy/Paste Styles","kadence-blocks"),popoverProps:Vs},({onClose:e})=>Object(a.createElement)(Rs,null,Object(a.createElement)(As,null,Object(a.createElement)(Ls,{icon:"clipboard",onClick:Ol()(e,c),label:Object(o.__)("Copy Styles","kadence-blocks")},Object(o.__)("Copy Styles","kadence-blocks")),Object(a.createElement)(Ls,{icon:"editor-paste-text",onClick:Ol()(e,s),disabled:!r,label:Object(o.__)("Paste Styles","kadence-blocks")},Object(o.__)("Paste Styles","kadence-blocks"))))))}},Gs=wp.element.Fragment,Zs=wp.components,qs=Zs.Dashicon,Js=Zs.TabPanel;function Ks(e){var t=e.label,l=e.onChange,o=e.onChangeTablet,i=e.onChangeMobile,n=e.mobileValue,r=e.tabletValue,c=e.value,s=e.step,d=void 0===s?1:s,b=e.max,m=void 0===b?100:b,p=e.min,g=void 0===p?0:p,u=e.allowEmpty,h=void 0===u||u?"":0;return[l&&o&&i&&Object(a.createElement)(Gs,null,Object(a.createElement)("h2",{className:"kt-heading-size-title"},t),Object(a.createElement)(Js,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(qs,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(qs,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(qs,{icon:"smartphone"}),className:"kt-mobile-tab"}]},(function(e){var t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(y,{value:n||h,onChange:function(e){return i(e)},min:g,max:m,step:d}):"tablet"===e.name?Object(a.createElement)(y,{value:r||h,onChange:function(e){return o(e)},min:g,max:m,step:d}):Object(a.createElement)(y,{value:c||h,onChange:function(e){return l(e)},min:g,max:m,step:d})),Object(a.createElement)("div",{className:e.className,key:e.className},t)})))]}class Qs extends a.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=Object(a.createRef)(),this.debouncedToggle=Gl()(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}render(){const{open:e}=this.state;return Object(a.createElement)("div",{className:"kb-dynamic-image-sidebar-wrap kb-dynamic-background-sidebar-wrap"},Object(a.createElement)(it.Button,{className:"kb-dynamic-image-sidebar kb-dynamic-background-sidebar",isTertiary:!0,icon:ca.dynamic,onClick:()=>this.debouncedToggle(),isPressed:e,"aria-haspopup":"true","aria-expanded":e,label:Object(o.__)("Dynamic Image","kadence-blocks"),showTooltip:!0}),e&&Object(a.createElement)(it.Popover,{className:"kb-dynamic-popover",position:"bottom left",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef},Object(a.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},Object(a.createElement)("div",{className:"kb-pro-notice"},Object(a.createElement)("h2",null,Object(o.__)("Dynamic Image","kadence-blocks")," "),Object(a.createElement)("p",null,Object(o.__)("Create dynamic sites by populating images from various sources.","kadence-blocks")," "),Object(a.createElement)(it.ExternalLink,{href:"https://www.kadenceblocks.com/pro/"},Object(o.__)("Upgrade to Pro","kadence-blocks"))))))}}var Ys=Object(it.withFilters)("kadence.ImageDynamicControl")(Qs);const Xs=["image"];class ed extends a.Component{constructor(){super(...arguments)}render(){const{label:e,hasImage:t,onSaveImage:l,onRemoveImage:i,disableMediaButtons:n,imageURL:r,imageID:c,dynamicAttribute:s=""}=this.props;return Object(a.createElement)("div",{className:"kadence-image-media-control kadence-image-background-control"},!t&&Object(a.createElement)(a.Fragment,null,e&&Object(a.createElement)("div",{class:"components-kadence-image-background__label"},e),Object(a.createElement)(uo,{labels:"",selectIcon:So.a,selectLabel:Object(o.__)("Select Image","kadence-blocks"),onSelect:e=>l(e),accept:"image/*",className:"kadence-image-upload",allowedTypes:Xs,disableMediaButtons:n,dynamicControl:s&&kadence_blocks_params.dynamic_enabled?Object(a.createElement)(Ys,this.props):void 0})),t&&Object(a.createElement)(a.Fragment,null,e&&Object(a.createElement)("div",{class:"components-kadence-image-background__label"},e),s&&kadence_blocks_params.dynamic_enabled&&this.props.attributes.kadenceDynamic&&this.props.attributes.kadenceDynamic[s]&&this.props.attributes.kadenceDynamic[s].enable?Object(a.createElement)("div",{className:"kb-dynamic-background-sidebar-top"},Object(a.createElement)(Ys,Be()({startOpen:!this.props.attributes.kadenceDynamic[s].field},this.props))):Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ot.MediaUpload,{onSelect:e=>l(e),type:"image",value:c||"",render:({open:e})=>Object(a.createElement)(it.Button,{className:"components-button components-icon-button kt-cta-upload-btn",onClick:e,icon:Eo.a},Object(o.__)("Edit Image","kadence-blocks"))}),Object(a.createElement)(it.Button,{icon:wo.a,label:Object(o.__)("Remove Image","kadence-blocks"),className:"components-button components-icon-button kt-remove-img kt-cta-upload-btn",onClick:()=>i()}),s&&kadence_blocks_params.dynamic_enabled&&Object(a.createElement)(Ys,this.props))))}}var td=ed,ld=l(428);const{Component:ad,Fragment:od}=wp.element,{MediaUpload:id,RichText:nd,AlignmentToolbar:rd,InspectorControls:cd,BlockControls:sd,MediaPlaceholder:dd}=wp.blockEditor,{Button:bd,IconButton:md,Dropdown:pd,ButtonGroup:gd,TabPanel:ud,Dashicon:hd,PanelBody:vd,Toolbar:kd,TextControl:yd,ToggleControl:fd,SelectControl:Od}=wp.components,{applyFilters:jd}=wp.hooks,_d=[];var Sd=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{__experimentalGetPreviewDeviceType:l}=e("core/edit-post");return{getPreviewDevice:l?l():"Desktop"}})])(class extends ad{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={containerPaddingControl:"linked",containerBorderControl:"linked",containerMarginControl:"linked",mediaBorderControl:"linked",mediaPaddingControl:"linked",mediaMarginControl:"linked",showPreset:!1,btnLink:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}componentDidMount(){if(this.props.attributes.uniqueID)_d.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),_d.push("_"+this.props.clientId.substr(2,9))):_d.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/infobox"]&&"object"==typeof e["kadence/infobox"]&&Object.keys(e["kadence/infobox"]).map(t=>{this.props.attributes[t]=e["kadence/infobox"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),_d.push("_"+this.props.clientId.substr(2,9))}this.props.attributes.kadenceDynamic&&this.props.attributes.kadenceDynamic["mediaImage:0:url"]&&this.props.attributes.kadenceDynamic["mediaImage:0:url"].enable&&jd("kadence.dynamicImage","",this.props.attributes,this.props.setAttributes,"mediaImage:0:url"),this.props.attributes.mediaStyle[0].borderWidth[0]===this.props.attributes.mediaStyle[0].borderWidth[1]&&this.props.attributes.mediaStyle[0].borderWidth[0]===this.props.attributes.mediaStyle[0].borderWidth[2]&&this.props.attributes.mediaStyle[0].borderWidth[0]===this.props.attributes.mediaStyle[0].borderWidth[3]?this.setState({mediaBorderControl:"linked"}):this.setState({mediaBorderControl:"individual"}),this.props.attributes.mediaStyle[0].padding[0]===this.props.attributes.mediaStyle[0].padding[1]&&this.props.attributes.mediaStyle[0].padding[0]===this.props.attributes.mediaStyle[0].padding[2]&&this.props.attributes.mediaStyle[0].padding[0]===this.props.attributes.mediaStyle[0].padding[3]?this.setState({mediaPaddingControl:"linked"}):this.setState({mediaPaddingControl:"individual"}),this.props.attributes.mediaStyle[0].margin[0]===this.props.attributes.mediaStyle[0].margin[1]&&this.props.attributes.mediaStyle[0].margin[0]===this.props.attributes.mediaStyle[0].margin[2]&&this.props.attributes.mediaStyle[0].margin[0]===this.props.attributes.mediaStyle[0].margin[3]?this.setState({mediaMarginControl:"linked"}):this.setState({mediaMarginControl:"individual"}),this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[1]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[2]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[3]?this.setState({containerBorderControl:"linked"}):this.setState({containerBorderControl:"individual"}),this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[1]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[2]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[3]?this.setState({containerPaddingControl:"linked"}):this.setState({containerPaddingControl:"individual"}),this.props.attributes.containerMargin&&this.props.attributes.containerMargin[0]&&this.props.attributes.containerMargin[0]===this.props.attributes.containerMargin[1]&&this.props.attributes.containerMargin[0]===this.props.attributes.containerMargin[2]&&this.props.attributes.containerMargin[0]===this.props.attributes.containerMargin[3]?this.setState({containerMarginControl:"linked"}):this.setState({containerMarginControl:"individual"});const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/infobox"]&&"object"==typeof e["kadence/infobox"]&&this.setState({settings:e["kadence/infobox"]})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a)return a;if(void 0!==l&&""!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l)return l;return t}render(){const{attributes:{uniqueID:e,link:t,linkProperty:l,target:i,hAlign:r,containerBackground:c,containerHoverBackground:s,containerBorder:b,containerHoverBorder:m,containerBorderWidth:p,containerBorderRadius:g,containerPadding:u,containerPaddingType:h,containerMobilePadding:v,containerTabletPadding:k,mediaType:f,mediaImage:O,mediaIcon:j,mediaStyle:_,mediaAlign:S,displayTitle:E,title:w,titleColor:x,titleHoverColor:C,titleFont:M,displayText:N,contentText:T,textColor:z,textHoverColor:H,textFont:B,textSpacing:I,displayLearnMore:R,learnMore:P,learnMoreStyles:A,displayShadow:L,shadow:F,shadowHover:W,containerHoverBackgroundOpacity:D,containerBackgroundOpacity:U,containerHoverBorderOpacity:V,containerBorderOpacity:$,textMinHeight:G,titleMinHeight:Z,maxWidthUnit:q,maxWidth:J,mediaVAlign:K,mediaAlignMobile:Q,mediaAlignTablet:Y,hAlignMobile:X,hAlignTablet:ee,containerMargin:te,containerMarginUnit:le,linkNoFollow:ae,linkSponsored:oe,number:ne,mediaNumber:re,imageRatio:se,kadenceDynamic:de},className:be,setAttributes:me,isSelected:pe}=this.props,{containerBorderControl:ge,mediaBorderControl:ue,mediaPaddingControl:he,mediaMarginControl:ve,containerPaddingControl:ke,containerMarginControl:ye}=this.state,fe="px"===q?2e3:100,Oe=void 0!==h?h:"px",je="em"===Oe||"rem"===Oe?12:200,_e="em"===Oe||"rem"===Oe?.1:1,Se=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[0]?u[0]:"",void 0!==k&&void 0!==k[0]?k[0]:"",void 0!==v&&void 0!==v[0]?v[0]:""),Ee=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[1]?u[1]:"",void 0!==k&&void 0!==k[1]?k[1]:"",void 0!==v&&void 0!==v[1]?v[1]:""),we=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[2]?u[2]:"",void 0!==k&&void 0!==k[2]?k[2]:"",void 0!==v&&void 0!==v[2]?v[2]:""),xe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[3]?u[3]:"",void 0!==k&&void 0!==k[3]?k[3]:"",void 0!==v&&void 0!==v[3]?v[3]:""),Ce="em"===le||"rem"===le?-12:-200,Me="em"===le||"rem"===le?24:200,Ne="em"===le||"rem"===le?.1:1,Te=(Object(o.__)("Skip","kadence-blocks"),Object(o.__)("Skip"),Object(o.__)("Simple","kadence-blocks"),n.infoSimple,Object(o.__)("Align Left","kadence-blocks"),n.infoLeft,Object(o.__)("Bold Background","kadence-blocks"),n.infoBackground,Object(o.__)("Circle Image","kadence-blocks"),n.infoImage,[{key:"simple",name:Object(o.__)("Basic","kadence-blocks"),icon:n.infoStart},{key:"basic",name:Object(o.__)("Basic","kadence-blocks"),icon:n.infoBasic},{key:"leftabove",name:Object(o.__)("Left Above","kadence-blocks"),icon:n.infoLeftAbove},{key:"left",name:Object(o.__)("Left","kadence-blocks"),icon:n.infoLeft},{key:"overlay",name:Object(o.__)("Overlay","kadence-blocks"),icon:n.infoTopOverlay},{key:"overlayleft",name:Object(o.__)("Overlay Left","kadence-blocks"),icon:n.infoLeftOverlay}]),ze={google:{families:[M[0].family+(M[0].variant?":"+M[0].variant:"")]}},He={google:{families:[B[0].family+(B[0].variant?":"+B[0].variant:"")]}},Ie={google:{families:[A[0].family+(A[0].variant?":"+A[0].variant:"")]}},Re={google:{families:[(re&&re[0]&&re[0].family?re[0].family:" ")+(re&&re[0]&&re[0].variant?":"+re[0].variant:"")]}},Pe=M[0].google?ze:"",Ae=B[0].google?He:"",Le=A[0].google?Ie:"",Fe=re&&re[0]&&re[0].google?Re:"",We="h"+M[0].level,De=["image"],Ue=e=>{let t,l;if(O[0]&&O[0].width&&O[0].height){const t=void 0!==e.sizes?e.sizes:[],a=Object.keys(t).map(e=>({slug:e,name:e}));d()(a,({name:t,slug:a})=>{if("image/svg+xml"===ce()(e,["mime_type"]))return null;if(!ce()(e,["sizes",a,"url"]))return null;const o=ce()(e,["sizes",a,"width"]);if(!o)return null;const i=ce()(e,["sizes",a,"height"]);return i?i===O[0].height&&o===O[0].width?(l=a,null):void 0:null})}const a=l&&""!==l?l:"full";"full"!==a&&(t=ce()(e,["sizes",a,"url"])||ce()(e,["media_details","sizes",a,"source_url"]));const o=ce()(e,["sizes",a,"width"])||ce()(e,["media_details","sizes",a,"width"])||ce()(e,["width"])||ce()(e,["media_details","width"]),i=ce()(e,["sizes",a,"height"])||ce()(e,["media_details","sizes",a,"height"])||ce()(e,["height"])||ce()(e,["media_details","height"]),n=O[0]&&O[0].maxWidth?O[0].maxWidth:e.width;$e({id:e.id,url:t||e.url,alt:e.alt,width:o,height:i,maxWidth:n||50,subtype:e.subtype})},Ve=pe?"is-selected":"not-selected",$e=e=>{const t=O.map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaImage:t})},Ge=e=>{const t=j.map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaIcon:t})},Ze=e=>{const t=_.map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaStyle:t})},qe=e=>{const t=(re||[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]).map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaNumber:t})},Ke=e=>{const t=M.map((t,l)=>(0===l&&(t={...t,...e}),t));me({titleFont:t})},Qe=e=>{const t=B.map((t,l)=>(0===l&&(t={...t,...e}),t));me({textFont:t})},Ye=e=>{let t;t=void 0===I||void 0!==I&&void 0===I[0]?[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]:I;const l=t.map((t,l)=>(0===l&&(t={...t,...e}),t));me({textSpacing:l})},et=e=>{const t=A.map((t,l)=>(0===l&&(t={...t,...e}),t));me({learnMoreStyles:t})},tt=e=>{const t=F.map((t,l)=>(0===l&&(t={...t,...e}),t));me({shadow:t})},lt=e=>{const t=W.map((t,l)=>(0===l&&(t={...t,...e}),t));me({shadowHover:t})},at="drawborder"===O[0].hoverAnimation||"grayscale-border-draw"===O[0].hoverAnimation,ot=Object(a.createElement)("style",null,j[0].hoverColor?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-info-svg-icon, .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-number { color: ${Rt(j[0].hoverColor)} !important; }`:"",_[0].borderRadius?`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media .kadence-info-box-image-intrisic:not(.kb-info-box-image-ratio) img, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media .kadence-info-box-image-intrisic:not(.kb-info-box-image-ratio) .editor-media-placeholder { border-radius: ${_[0].borderRadius}px; }`:"",C?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-title { color: ${Rt(C)} !important; }`:"",H?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-text { color: ${Rt(H)} !important; }`:"",A[0].colorHover?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore { color: ${Rt(A[0].colorHover)} !important; }`:"",A[0].borderHover?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore { border-color: ${Rt(A[0].borderHover)} !important; }`:"",A[0].backgroundHover?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore { background-color: ${Rt(A[0].backgroundHover)} !important; }`:"",s?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover { background: ${Rt(s||"#f2f2f2",void 0!==D?D:1)} !important; }`:"",m?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover { border-color: ${Rt(m||"#f2f2f2",void 0!==V?V:1)} !important; }`:"",L?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover { box-shadow: ${W[0].hOffset+"px "+W[0].vOffset+"px "+W[0].blur+"px "+W[0].spread+"px "+Rt(W[0].color,W[0].opacity)} !important; }`:"",_[0].hoverBackground?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { background: ${_[0].hoverBackground} !important; }`:"",_[0].hoverBorder&&"icon"===f&&"drawborder"!==j[0].hoverAnimation?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { border-color: ${Rt(_[0].hoverBorder)} !important; }`:"",_[0].hoverBorder&&"number"===f&&re[0].hoverAnimation&&"drawborder"!==re[0].hoverAnimation?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { border-color: ${Rt(_[0].hoverBorder)} !important; }`:"",_[0].hoverBorder&&"image"===f&&!0!==at?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { border-color: ${Rt(_[0].hoverBorder)} !important; }`:"","icon"===f&&"drawborder"===j[0].hoverAnimation&&`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media { border-width:0 !important; box-shadow: inset 0 0 0 ${_[0].borderWidth[0]}px ${_[0].border}; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-radius: ${_[0].borderRadius}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before { border-width: ${_[0].borderWidth[0]}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-width: 0; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:before { border-top-color: ${Rt(_[0].hoverBorder)} ; border-right-color: ${Rt(_[0].hoverBorder)}; border-bottom-color: ${Rt(_[0].hoverBorder)} }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:after{ border-right-color: ${Rt(_[0].hoverBorder)}; border-right-width: ${_[0].borderWidth[0]}px; border-bottom-width: ${_[0].borderWidth[0]}px; border-top-width: ${_[0].borderWidth[0]}px; }`,"number"===f&&re&&re[0]&&re[0].hoverAnimation&&"drawborder"===re[0].hoverAnimation&&`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media { border-width:0 !important; box-shadow: inset 0 0 0 ${_[0].borderWidth[0]}px ${_[0].border}; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-radius: ${_[0].borderRadius}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before { border-width: ${_[0].borderWidth[0]}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-width: 0; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:before { border-top-color: ${Rt(_[0].hoverBorder)} ; border-right-color: ${Rt(_[0].hoverBorder)}; border-bottom-color: ${Rt(_[0].hoverBorder)} }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:after{ border-right-color: ${Rt(_[0].hoverBorder)}; border-right-width: ${_[0].borderWidth[0]}px; border-bottom-width: ${_[0].borderWidth[0]}px; border-top-width: ${_[0].borderWidth[0]}px; }`,"image"===f&&!0===at&&`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media { border-width:0 !important; box-shadow: inset 0 0 0 ${_[0].borderWidth[0]}px ${_[0].border}; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-radius: ${_[0].borderRadius}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before { border-width: ${_[0].borderWidth[0]}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-width: 0; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:before { border-top-color: ${Rt(_[0].hoverBorder)} ; border-right-color: ${Rt(_[0].hoverBorder)}; border-bottom-color: ${Rt(_[0].hoverBorder)} }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:after{ border-right-color: ${Rt(_[0].hoverBorder)}; border-right-width: ${_[0].borderWidth[0]}px; border-bottom-width: ${_[0].borderWidth[0]}px; border-top-width: ${_[0].borderWidth[0]}px; }`);let it=isNaN(O[0].height)?void 0:O[0].height/O[0].width*100+"%",nt=isNaN(O[0].height)?void 0:0,rt=!1;if(se&&"inherit"!==se)switch(rt=!0,nt=0,se){case"land43":it="75%";break;case"land32":it="66.67%";break;case"land169":it="56.25%";break;case"land21":it="50%";break;case"land31":it="33%";break;case"land41":it="25%";break;case"port34":it="133.33%";break;case"port23":it="150%";break;default:it="100%"}let ct=!("image"!==f||!O[0].url);return ct&&de&&de["mediaImage:0:url"]&&de["mediaImage:0:url"].enable&&(ct=!1),Object(a.createElement)("div",{id:"kt-info-box"+e,className:be},ot,Object(a.createElement)(sd,{key:"controls"},ct&&Object(a.createElement)(kd,null,Object(a.createElement)(id,{onSelect:Ue,type:"image",value:O[0].id,allowedTypes:De,render:({open:e})=>Object(a.createElement)(bd,{className:"components-toolbar__control",label:Object(o.__)("Edit Media","kadence-blocks"),icon:Eo.a,onClick:e})})),"icon"===f&&Object(a.createElement)(pd,{className:"kb-popover-inline-icon-container components-dropdown-menu components-toolbar",contentClassName:"kb-popover-inline-icon",position:"top center",renderToggle:({isOpen:e,onToggle:t})=>Object(a.createElement)(bd,{className:"components-dropdown-menu__toggle kb-inline-icon-toolbar-icon",label:Object(o.__)("Icon Settings","kadence-blocks"),icon:ld.a,onClick:t,"aria-expanded":e}),renderContent:()=>Object(a.createElement)(od,null,Object(a.createElement)("div",{className:"kb-inline-icon-control"},Object(a.createElement)(Xe,{value:j[0].icon,onChange:e=>Ge({icon:e})}),Object(a.createElement)(y,{label:Object(o.__)("Icon Size","kadence-blocks"),value:j[0].size,onChange:e=>Ge({size:e}),min:5,max:250,step:1})))}),Object(a.createElement)(rd,{value:r,onChange:e=>me({hAlign:e})}),Object(a.createElement)($s,{onPaste:e=>me(e),onPasteMediaImage:e=>$e(e),onPasteMediaIcon:e=>Ge(e),blockAttributes:this.props.attributes})),this.showSettings("allSettings")&&Object(a.createElement)(cd,null,Object(a.createElement)(vd,null,Object(a.createElement)(od,null,Object(a.createElement)("h2",null,Object(o.__)("InfoBox Quick Layout Presets","kadence-blocks")),Object(a.createElement)(gd,{className:"kt-style-btn-group kb-info-layouts","aria-label":Object(o.__)("InfoBox Style","kadence-blocks")},d()(Te,({name:e,key:t,icon:l})=>Object(a.createElement)(bd,{key:t,className:"kt-style-btn",isSmall:!0,isPrimary:!1,"aria-pressed":!1,onClick:()=>{(e=>{"simple"===e?me({hAlign:"center",containerBackground:"#ffffff"===c?"#f2f2f2":c,containerHoverBackground:"#ffffff"===c?"#f2f2f2":c,containerBorderWidth:[0,0,0,0],containerBorderRadius:0,containerPadding:[20,20,20,20],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:j[0].background,hoverBackground:j[0].hoverBackground,border:j[0].border,hoverBorder:j[0].hoverBorder,borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"basic"===e?me({hAlign:"center",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:30,containerPadding:[20,20,20,20],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#eeeeee":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#eeeeee":j[0].hoverBackground,border:j[0].border,hoverBorder:j[0].hoverBorder,borderRadius:200,borderWidth:[0,0,0,0],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[0,15,10,15]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"leftabove"===e?me({hAlign:"left",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:0,containerPadding:[24,24,24,24],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#eeeeee":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#eeeeee":j[0].hoverBackground,border:j[0].border,hoverBorder:j[0].hoverBorder,borderRadius:0,borderWidth:[0,0,0,0],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[0,0,16,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"left"===e?me({hAlign:"left",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:20,containerPadding:[24,24,24,24],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"left",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#ffffff":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#ffffff":j[0].hoverBackground,border:void 0===j[0].border||"#444444"===j[0].border?"#eeeeee":j[0].border,hoverBorder:void 0===j[0].hoverBorder||"#444444"===j[0].hoverBorder?"#eeeeee":j[0].hoverBorder,borderRadius:200,borderWidth:"icon"===f||"number"===f?[5,5,5,5]:[0,0,0,0],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[0,20,0,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"overlay"===e?me({hAlign:"center",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:20,containerPadding:[24,24,24,24],containerMargin:[50,"","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#ffffff":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#ffffff":j[0].hoverBackground,border:void 0===j[0].border||"#444444"===j[0].border?"#eeeeee":j[0].border,hoverBorder:void 0===j[0].hoverBorder||"#444444"===j[0].hoverBorder?"#eeeeee":j[0].hoverBorder,borderRadius:200,borderWidth:[5,5,5,5],padding:"icon"===f?[20,20,20,20]:[0,0,0,0],margin:[-75,0,20,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"overlayleft"===e&&me({hAlign:"left",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:0,containerPadding:[24,24,24,24],containerMargin:[50,"","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#ffffff":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#ffffff":j[0].hoverBackground,border:void 0===j[0].border||"#444444"===j[0].border?"#eeeeee":j[0].border,hoverBorder:void 0===j[0].hoverBorder||"#444444"===j[0].hoverBorder?"#eeeeee":j[0].hoverBorder,borderRadius:0,borderWidth:[5,5,5,5],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[-75,0,20,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]})})(t)}},l)))),Object(a.createElement)(ka,Be()({label:Object(o.__)("Link","kadence-blocks"),url:t,onChangeUrl:e=>me({link:e}),additionalControls:!0,opensInNewTab:!(!i||"_blank"!=i),onChangeTarget:e=>{me(e?{target:"_blank"}:{target:"_self"})},linkNoFollow:void 0!==ae&&ae,onChangeFollow:e=>me({linkNoFollow:e}),linkSponsored:void 0!==oe&&oe,onChangeSponsored:e=>me({sponsored:e}),dynamicAttribute:"link"},this.props)),Object(a.createElement)(Od,{label:Object(o.__)("Link Content","kadence-blocks"),value:l,options:[{value:"box",label:Object(o.__)("Entire Box","kadence-blocks")},{value:"learnmore",label:Object(o.__)("Only Learn More Text","kadence-blocks")}],onChange:e=>me({linkProperty:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Content Align","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-size-tabs kb-sidebar-alignment",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(rd,{isCollapsed:!1,value:X,onChange:e=>me({hAlignMobile:e})}):"tablet"===e.name?Object(a.createElement)(rd,{isCollapsed:!1,value:ee,onChange:e=>me({hAlignTablet:e})}):Object(a.createElement)(rd,{isCollapsed:!1,value:r,onChange:e=>me({hAlign:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),this.showSettings("containerSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Container Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(sn,{label:Object(o.__)("Container Border Width (px)","kadence-blocks"),measurement:p,control:ge,onChange:e=>me({containerBorderWidth:e}),onControl:e=>this.setState({containerBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Container Border Radius (px)","kadence-blocks"),value:g,onChange:e=>me({containerBorderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background","kadence-blocks"),colorValue:s||"#f2f2f2",colorDefault:"#f2f2f2",opacityValue:D,onColorChange:e=>me({containerHoverBackground:e}),onOpacityChange:e=>me({containerHoverBackgroundOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Border","kadence-blocks"),colorValue:m||"#eeeeee",colorDefault:"#eeeeee",opacityValue:V,onColorChange:e=>me({containerHoverBorder:e}),onOpacityChange:e=>me({containerHoverBorderOpacity:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Container Background","kadence-blocks"),colorValue:c||"#f2f2f2",colorDefault:"#f2f2f2",opacityValue:U,onColorChange:e=>me({containerBackground:e}),onOpacityChange:e=>me({containerBackgroundOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Container Border","kadence-blocks"),colorValue:b||"#eeeeee",colorDefault:"#eeeeee",opacityValue:$,onColorChange:e=>me({containerBorder:e}),onOpacityChange:e=>me({containerBorderOpacity:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(Al,{label:Object(o.__)("Container Padding","kadence-blocks"),control:ke,tabletControl:ke,mobileControl:ke,value:u,tabletValue:k,mobileValue:v,onChange:e=>{me({containerPadding:e})},onChangeTablet:e=>{me({containerTabletPadding:e})},onChangeMobile:e=>{me({containerMobilePadding:e})},onChangeControl:e=>this.setState({containerPaddingControl:e}),onChangeTabletControl:e=>this.setState({containerPaddingControl:e}),onChangeMobileControl:e=>this.setState({containerPaddingControl:e}),allowEmpty:!0,min:0,max:je,step:_e,unit:h,units:["px","em","rem","%"],onUnit:e=>me({containerPaddingType:e})}),Object(a.createElement)(gd,{className:"kt-size-type-options kt-row-size-type-options kb-typo-when-linked-individual-avail","aria-label":Object(o.__)("Margin Type","kadence-blocks")},d()([{key:"px",name:"px"},{key:"em",name:"em"},{key:"%",name:"%"},{key:"vh",name:"vh"},{key:"rem",name:"rem"}],({name:e,key:t})=>Object(a.createElement)(bd,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:le===t,"aria-pressed":le===t,onClick:()=>me({containerMarginUnit:t})},e))),Object(a.createElement)(sn,{label:Object(o.__)("Margin","kadence-blocks"),measurement:te,onChange:e=>me({containerMargin:e}),control:ye,onControl:e=>this.setState({containerMarginControl:e}),min:Ce,max:Me,step:Ne,allowEmpty:!0}),Object(a.createElement)(gd,{className:"kt-size-type-options","aria-label":Object(o.__)("Max Width Type","kadence-blocks")},d()([{key:"px",name:"px"},{key:"%",name:"%"},{key:"vw",name:"vw"}],({name:e,key:t})=>Object(a.createElement)(bd,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:q===t,"aria-pressed":q===t,onClick:()=>me({maxWidthUnit:t})},e))),Object(a.createElement)(y,{label:Object(o.__)("Container Max Width","kadence-blocks"),value:J,onChange:e=>{me({maxWidth:e})},min:0,max:fe})),this.showSettings("mediaSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Media Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-spacer-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(Od,{label:Object(o.__)("Mobile Media Align","kadence-blocks"),value:Q||S,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")},{value:"right",label:Object(o.__)("Right","kadence-blocks")}],onChange:e=>me({mediaAlignMobile:e})}):"tablet"===e.name?Object(a.createElement)(Od,{label:Object(o.__)("Tablet Media Align","kadence-blocks"),value:Y||S,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")},{value:"right",label:Object(o.__)("Right","kadence-blocks")}],onChange:e=>me({mediaAlignTablet:e})}):Object(a.createElement)(Od,{label:Object(o.__)("Media Align","kadence-blocks"),value:S,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")},{value:"right",label:Object(o.__)("Right","kadence-blocks")}],onChange:e=>me({mediaAlign:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),"top"!==S&&Object(a.createElement)(od,null,Object(a.createElement)(Od,{label:Object(o.__)("Media Vertical Align","kadence-blocks"),value:K,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"middle",label:Object(o.__)("Middle","kadence-blocks")},{value:"bottom",label:Object(o.__)("Bottom","kadence-blocks")}],onChange:e=>me({mediaVAlign:e})})),Object(a.createElement)(Od,{label:Object(o.__)("Media Type","kadence-blocks"),value:f,options:[{value:"icon",label:Object(o.__)("Icon","kadence-blocks")},{value:"image",label:Object(o.__)("Image","kadence-blocks")},{value:"number",label:Object(o.__)("Number","kadence-blocks")},{value:"none",label:Object(o.__)("None","kadence-blocks")}],onChange:e=>me({mediaType:e})}),"image"===f&&Object(a.createElement)(od,null,Object(a.createElement)(td,Be()({label:Object(o.__)("Image","kadence-blocks"),hasImage:!!(O&&O[0]&&O[0].url),imageURL:O&&O[0]&&O[0].url?O[0].url:"",imageID:O&&O[0]&&O[0].id?O[0].id:"",onRemoveImage:()=>{$e({id:"",url:"",alt:"",width:"",height:"",maxWidth:"",subtype:""})},onSaveImage:Ue,disableMediaButtons:!!O[0].url,dynamicAttribute:"mediaImage:0:url"},this.props)),O[0].id&&"svg+xml"!==O[0].subtype&&Object(a.createElement)(Bs,{label:Object(o.__)("Image File Size","kadence-blocks"),id:O[0].id,url:O[0].url,onChange:e=>{$e({url:e.value,width:e.width,height:e.height})}}),Object(a.createElement)(y,{label:Object(o.__)("Max Image Width","kadence-blocks"),value:O[0].maxWidth,onChange:e=>$e({maxWidth:e}),min:5,max:800,step:1}),Object(a.createElement)(Od,{label:Object(o.__)("Image ratio","kadence-blocks"),options:[{label:Object(o.__)("Inherit","kadence-blocks"),value:"inherit"},{label:Object(o.__)("Landscape 4:3","kadence-blocks"),value:"land43"},{label:Object(o.__)("Landscape 3:2","kadence-blocks"),value:"land32"},{label:Object(o.__)("Landscape 16:9","kadence-blocks"),value:"land169"},{label:Object(o.__)("Landscape 2:1","kadence-blocks"),value:"land21"},{label:Object(o.__)("Landscape 3:1","kadence-blocks"),value:"land31"},{label:Object(o.__)("Landscape 4:1","kadence-blocks"),value:"land41"},{label:Object(o.__)("Portrait 3:4","kadence-blocks"),value:"port34"},{label:Object(o.__)("Portrait 2:3","kadence-blocks"),value:"port23"},{label:Object(o.__)("Square 1:1","kadence-blocks"),value:"square"}],value:se,onChange:e=>me({imageRatio:e})}),Object(a.createElement)(Od,{label:Object(o.__)("Image Hover Animation","kadence-blocks"),value:O[0].hoverAnimation,options:[{value:"none",label:Object(o.__)("None","kadence-blocks")},{value:"grayscale",label:Object(o.__)("Grayscale to Color","kadence-blocks")},{value:"drawborder",label:Object(o.__)("Border Spin In","kadence-blocks")},{value:"grayscale-border-draw",label:Object(o.__)("Grayscale to Color & Border Spin In","kadence-blocks")},{value:"flip",label:Object(o.__)("Flip to Another Image","kadence-blocks")}],onChange:e=>$e({hoverAnimation:e})}),"flip"===O[0].hoverAnimation&&Object(a.createElement)(od,null,Object(a.createElement)("h2",null,Object(o.__)("Flip Image (Use same size as start image","kadence-blocks")),Object(a.createElement)(td,Be()({label:Object(o.__)("Image","kadence-blocks"),hasImage:!!(O&&O[0]&&O[0].flipUrl),imageURL:O&&O[0]&&O[0].flipUrl?O[0].flipUrl:"",imageID:O&&O[0]&&O[0].flipId?O[0].flipId:"",onRemoveImage:()=>{$e({flipId:"",flipUrl:"",flipAlt:"",flipWidth:"",flipHeight:"",flipSubtype:""})},onSaveImage:e=>{const t=ce()(e,["width"])||ce()(e,["media_details","width"]),l=ce()(e,["height"])||ce()(e,["media_details","height"]);$e({flipId:e.id,flipUrl:e.url,flipAlt:e.alt,flipWidth:t,flipHeight:l,flipSubtype:e.subtype})},disableMediaButtons:!!(O&&O[0]&&O[0].flipUrl)},this.props)),O[0].flipId&&"svg+xml"!==O[0].flipSubtype&&Object(a.createElement)(Bs,{label:Object(o.__)("Image File Size","kadence-blocks"),id:O[0].flipId,url:O[0].flipUrl,onChange:e=>{$e({flipUrl:e.value,flipWidth:e.width,flipHeight:e.height})}})),Object(a.createElement)(sn,{label:Object(o.__)("Image Border","kadence-blocks"),measurement:_[0].borderWidth,control:ue,onChange:e=>Ze({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Image Border Radius (px)","kadence-blocks"),value:_[0].borderRadius,onChange:e=>Ze({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,O[0].subtype&&"svg+xml"===O[0].subtype&&Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("SVG Hover Color","kadence-blocks"),colorValue:j[0].hoverColor?j[0].hoverColor:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({hoverColor:e})}),Object(a.createElement)("small",null,Object(o.__)("*you must force inline svg for this to have effect.","kadence-blocks"))),Object(a.createElement)(Bt,{label:Object(o.__)("Image Hover Background","kadence-blocks"),colorValue:_[0].hoverBackground?_[0].hoverBackground:"",colorDefault:"transparent",onColorChange:e=>Ze({hoverBackground:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Image Hover Border","kadence-blocks"),colorValue:_[0].hoverBorder?_[0].hoverBorder:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({hoverBorder:e})})):Object(a.createElement)(od,null,O[0].subtype&&"svg+xml"===O[0].subtype&&Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("SVG Color","kadence-blocks"),colorValue:j[0].color?j[0].color:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({color:e})}),Object(a.createElement)("small",null,Object(o.__)("*you must force inline svg for this to have effect.","kadence-blocks"))),Object(a.createElement)(Bt,{label:Object(o.__)("Image Background","kadence-blocks"),colorValue:_[0].background?_[0].background:"",colorDefault:"transparent",onColorChange:e=>Ze({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Image Border","kadence-blocks"),colorValue:_[0].border?_[0].border:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),"icon"===f&&Object(a.createElement)(od,null,Object(a.createElement)(Xe,{value:j[0].icon,onChange:e=>Ge({icon:e})}),Object(a.createElement)(Ks,{label:Object(o.__)("Icon Size","kadence-blocks"),value:j[0].size,mobileValue:j[0].mobileSize?j[0].mobileSize:"",tabletValue:j[0].tabletSize?j[0].tabletSize:"",onChange:e=>Ge({size:e}),onChangeTablet:e=>Ge({tabletSize:e}),onChangeMobile:e=>Ge({mobileSize:e}),min:5,max:250,step:1}),j[0].icon&&"fe"===j[0].icon.substring(0,2)&&Object(a.createElement)(y,{label:Object(o.__)("Icon Line Width","kadence-blocks"),value:j[0].width,onChange:e=>Ge({width:e}),step:.5,min:.5,max:4}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Border","kadence-blocks"),measurement:_[0].borderWidth,control:ue,onChange:e=>Ze({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Icon Border Radius (px)","kadence-blocks"),value:_[0].borderRadius,onChange:e=>Ze({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Od,{label:Object(o.__)("Icon Hover Animation","kadence-blocks"),value:j[0].hoverAnimation,options:[{value:"none",label:Object(o.__)("None","kadence-blocks")},{value:"drawborder",label:Object(o.__)("Border Spin In","kadence-blocks")},{value:"flip",label:Object(o.__)("Flip to Another Icon","kadence-blocks")}],onChange:e=>Ge({hoverAnimation:e})}),"flip"===j[0].hoverAnimation&&Object(a.createElement)(Xe,{value:j[0].flipIcon,onChange:e=>Ge({flipIcon:e})}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Color","kadence-blocks"),colorValue:j[0].hoverColor?j[0].hoverColor:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({hoverColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Background","kadence-blocks"),colorValue:_[0].hoverBackground?_[0].hoverBackground:"",colorDefault:"transparent",onColorChange:e=>Ze({hoverBackground:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Border","kadence-blocks"),colorValue:_[0].hoverBorder?_[0].hoverBorder:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({hoverBorder:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color","kadence-blocks"),colorValue:j[0].color?j[0].color:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background","kadence-blocks"),colorValue:_[0].background?_[0].background:"",colorDefault:"transparent",onColorChange:e=>Ze({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Border Color","kadence-blocks"),colorValue:_[0].border?_[0].border:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(yd,{label:Object(o.__)("Icon Title for Accessibility","kadence-blocks"),value:j[0].title,onChange:e=>Ge({title:e})})),"number"===f&&Object(a.createElement)(od,null,Object(a.createElement)(Ks,{label:Object(o.__)("Size","kadence-blocks"),value:j[0].size,mobileValue:j[0].mobileSize?j[0].mobileSize:"",tabletValue:j[0].tabletSize?j[0].tabletSize:"",onChange:e=>Ge({size:e}),onChangeTablet:e=>Ge({tabletSize:e}),onChangeMobile:e=>Ge({mobileSize:e}),min:5,max:250,step:1}),Object(a.createElement)(ie,{fontFamily:re[0]&&re[0].family?re[0].family:"",onFontFamily:e=>qe({family:e}),onFontChange:e=>{qe({family:e.value,google:e.google})},onFontArrayChange:e=>qe(e),googleFont:void 0!==re[0].google&&re[0].google,onGoogleFont:e=>qe({google:e}),loadGoogleFont:void 0===re[0].loadGoogle||re[0].loadGoogle,onLoadGoogleFont:e=>qe({loadGoogle:e}),fontVariant:re[0].variant?re[0].variant:"",onFontVariant:e=>qe({variant:e}),fontWeight:re[0].weight?re[0].weight:"",onFontWeight:e=>qe({weight:e}),fontStyle:re[0].style?re[0].style:"",onFontStyle:e=>qe({style:e}),fontSubset:re[0].subset?re[0].subset:"",onFontSubset:e=>qe({subset:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Number Border","kadence-blocks"),measurement:_[0].borderWidth,control:ue,onChange:e=>Ze({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Number Border Radius (px)","kadence-blocks"),value:_[0].borderRadius,onChange:e=>Ze({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Od,{label:Object(o.__)("Number Hover Animation","kadence-blocks"),value:re[0].hoverAnimation?re[0].hoverAnimation:"none",options:[{value:"none",label:Object(o.__)("None","kadence-blocks")},{value:"drawborder",label:Object(o.__)("Border Spin In","kadence-blocks")}],onChange:e=>qe({hoverAnimation:e})}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Number Hover Color","kadence-blocks"),colorValue:j[0].hoverColor?j[0].hoverColor:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({hoverColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Hover Background","kadence-blocks"),colorValue:_[0].hoverBackground?_[0].hoverBackground:"",colorDefault:"transparent",onColorChange:e=>Ze({hoverBackground:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Hover Border","kadence-blocks"),colorValue:_[0].hoverBorder?_[0].hoverBorder:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({hoverBorder:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Number Color","kadence-blocks"),colorValue:j[0].color?j[0].color:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Background","kadence-blocks"),colorValue:_[0].background?_[0].background:"",colorDefault:"transparent",onColorChange:e=>Ze({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Border Color","kadence-blocks"),colorValue:_[0].border?_[0].border:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),Object(a.createElement)(sn,{label:Object(o.__)("Media Padding","kadence-blocks"),measurement:_[0].padding,control:he,onChange:e=>Ze({padding:e}),onControl:e=>this.setState({mediaPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Media Margin","kadence-blocks"),measurement:_[0].margin,control:ve,onChange:e=>Ze({margin:e}),onControl:e=>this.setState({mediaMarginControl:e}),min:-200,max:200,step:1})),this.showSettings("titleSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Title Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Show Title","kadence-blocks"),checked:E,onChange:e=>me({displayTitle:e})}),E&&Object(a.createElement)(od,null,Object(a.createElement)("h2",{className:"kt-tab-wrap-title"},Object(o.__)("Color Settings","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color","kadence-blocks"),colorValue:C||"",colorDefault:"",onColorChange:e=>me({titleHoverColor:e})}):Object(a.createElement)(Bt,{label:Object(o.__)("Title Color","kadence-blocks"),colorValue:x||"",colorDefault:"",onColorChange:e=>me({titleColor:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(ie,{fontGroup:"heading",tagLevel:M[0].level,onTagLevel:e=>Ke({level:e}),fontSize:M[0].size,onFontSize:e=>Ke({size:e}),fontSizeType:M[0].sizeType,onFontSizeType:e=>Ke({sizeType:e}),lineHeight:M[0].lineHeight,onLineHeight:e=>Ke({lineHeight:e}),lineHeightType:M[0].lineType,onLineHeightType:e=>Ke({lineType:e}),letterSpacing:M[0].letterSpacing,onLetterSpacing:e=>Ke({letterSpacing:e}),fontFamily:M[0].family,onFontFamily:e=>Ke({family:e}),onFontChange:e=>{Ke({family:e.value,google:e.google})},onFontArrayChange:e=>Ke(e),googleFont:M[0].google,onGoogleFont:e=>Ke({google:e}),loadGoogleFont:M[0].loadGoogle,onLoadGoogleFont:e=>Ke({loadGoogle:e}),fontVariant:M[0].variant,onFontVariant:e=>Ke({variant:e}),fontWeight:M[0].weight,onFontWeight:e=>Ke({weight:e}),fontStyle:M[0].style,onFontStyle:e=>Ke({style:e}),fontSubset:M[0].subset,onFontSubset:e=>Ke({subset:e}),padding:M[0].padding,onPadding:e=>Ke({padding:e}),paddingControl:M[0].paddingControl,onPaddingControl:e=>Ke({paddingControl:e}),margin:M[0].margin,onMargin:e=>Ke({margin:e}),marginControl:M[0].marginControl,onMarginControl:e=>Ke({marginControl:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Min Height","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(y,{value:void 0!==Z&&void 0!==Z[2]?Z[2]:"",onChange:e=>me({titleMinHeight:[void 0!==Z&&void 0!==Z[0]?Z[0]:"",void 0!==Z&&void 0!==Z[1]?Z[1]:"",e]}),step:1,min:0,max:600}):"tablet"===e.name?Object(a.createElement)(y,{value:void 0!==Z&&void 0!==Z[1]?Z[1]:"",onChange:e=>me({titleMinHeight:[void 0!==Z&&void 0!==Z[0]?Z[0]:"",e,void 0!==Z&&void 0!==Z[2]?Z[2]:""]}),step:1,min:0,max:600}):Object(a.createElement)(y,{value:void 0!==Z&&void 0!==Z[0]?Z[0]:"",onChange:e=>me({titleMinHeight:[e,void 0!==Z&&void 0!==Z[1]?Z[1]:"",void 0!==Z&&void 0!==Z[2]?Z[2]:""]}),step:1,min:0,max:600})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}))),this.showSettings("textSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Text Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Show Text","kadence-blocks"),checked:N,onChange:e=>me({displayText:e})}),N&&Object(a.createElement)(od,null,Object(a.createElement)("h2",{className:"kt-tab-wrap-title"},Object(o.__)("Color Settings")),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color","kadence-blocks"),colorValue:H||"",colorDefault:"",onColorChange:e=>me({textHoverColor:e})}):Object(a.createElement)(Bt,{label:Object(o.__)("Text Color","kadence-blocks"),colorValue:z||"",colorDefault:"",onColorChange:e=>me({textColor:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(ie,{fontSize:B[0].size,onFontSize:e=>Qe({size:e}),fontSizeType:B[0].sizeType,onFontSizeType:e=>Qe({sizeType:e}),lineHeight:B[0].lineHeight,onLineHeight:e=>Qe({lineHeight:e}),lineHeightType:B[0].lineType,onLineHeightType:e=>Qe({lineType:e}),letterSpacing:B[0].letterSpacing,onLetterSpacing:e=>Qe({letterSpacing:e}),fontFamily:B[0].family,onFontFamily:e=>Qe({family:e}),onFontChange:e=>{Qe({family:e.value,google:e.google})},onFontArrayChange:e=>Qe(e),googleFont:B[0].google,onGoogleFont:e=>Qe({google:e}),loadGoogleFont:B[0].loadGoogle,onLoadGoogleFont:e=>Qe({loadGoogle:e}),fontVariant:B[0].variant,onFontVariant:e=>Qe({variant:e}),fontWeight:B[0].weight,onFontWeight:e=>Qe({weight:e}),fontStyle:B[0].style,onFontStyle:e=>Qe({style:e}),fontSubset:B[0].subset,onFontSubset:e=>Qe({subset:e})}),Object(a.createElement)(ie,{padding:void 0!==I&&void 0!==I[0]&&I[0].padding?I[0].padding:["","","",""],onPadding:e=>Ye({padding:e}),paddingControl:void 0!==I&&void 0!==I[0]&&I[0].paddingControl?I[0].paddingControl:"linked",onPaddingControl:e=>Ye({paddingControl:e}),margin:void 0!==I&&void 0!==I[0]&&I[0].margin?I[0].margin:["","","",""],onMargin:e=>Ye({margin:e}),marginControl:void 0!==I&&void 0!==I[0]&&I[0].marginControl?I[0].marginControl:"linked",onMarginControl:e=>Ye({marginControl:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Min Height","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(y,{value:void 0!==G&&void 0!==G[2]?G[2]:"",onChange:e=>me({textMinHeight:[void 0!==G&&void 0!==G[0]?G[0]:"",void 0!==G&&void 0!==G[1]?G[1]:"",e]}),step:1,min:0,max:600}):"tablet"===e.name?Object(a.createElement)(y,{value:void 0!==G&&void 0!==G[1]?G[1]:"",onChange:e=>me({textMinHeight:[void 0!==G&&void 0!==G[0]?G[0]:"",e,void 0!==G&&void 0!==G[2]?G[2]:""]}),step:1,min:0,max:600}):Object(a.createElement)(y,{value:void 0!==G&&void 0!==G[0]?G[0]:"",onChange:e=>me({textMinHeight:[e,void 0!==G&&void 0!==G[1]?G[1]:"",void 0!==G&&void 0!==G[2]?G[2]:""]}),step:1,min:0,max:600})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}))),this.showSettings("learnMoreSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Learn More Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Show Learn More","kadence-blocks"),checked:R,onChange:e=>me({displayLearnMore:e})}),R&&Object(a.createElement)(od,null,Object(a.createElement)("h2",{className:"kt-tab-wrap-title"},Object(o.__)("Color Settings","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("HOVER: Text Color","kadence-blocks"),colorValue:A[0].colorHover?A[0].colorHover:"#ffffff",colorDefault:"#ffffff",onColorChange:e=>et({colorHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("HOVER: Background","kadence-blocks"),colorValue:A[0].backgroundHover?A[0].backgroundHover:"#444444",colorDefault:"#444444",onColorChange:e=>et({backgroundHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("HOVER: Border Color","kadence-blocks"),colorValue:A[0].borderHover?A[0].borderHover:"#444444",colorDefault:"#444444",onColorChange:e=>et({borderHover:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Text Color","kadence-blocks"),colorValue:A[0].color?A[0].color:"",colorDefault:"",onColorChange:e=>et({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Background","kadence-blocks"),colorValue:A[0].background?A[0].background:"",colorDefault:"transparent",onColorChange:e=>et({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Border Color","kadence-blocks"),colorValue:A[0].border?A[0].border:"#555555",colorDefault:"#555555",onColorChange:e=>et({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(sn,{label:Object(o.__)("Learn More Border Width (px)","kadence-blocks"),measurement:A[0].borderWidth,control:A[0].borderControl,onChange:e=>et({borderWidth:e}),onControl:e=>et({borderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Learn More Border Radius (px)","kadence-blocks"),value:A[0].borderRadius,onChange:e=>et({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(ie,{fontSize:A[0].size,onFontSize:e=>et({size:e}),fontSizeType:A[0].sizeType,onFontSizeType:e=>et({sizeType:e}),lineHeight:A[0].lineHeight,onLineHeight:e=>et({lineHeight:e}),lineHeightType:A[0].lineType,onLineHeightType:e=>et({lineType:e}),letterSpacing:A[0].letterSpacing,onLetterSpacing:e=>et({letterSpacing:e}),fontFamily:A[0].family,onFontFamily:e=>et({family:e}),onFontChange:e=>{et({family:e.value,google:e.google})},onFontArrayChange:e=>et(e),googleFont:A[0].google,onGoogleFont:e=>et({google:e}),loadGoogleFont:A[0].loadGoogle,onLoadGoogleFont:e=>et({loadGoogle:e}),fontVariant:A[0].variant,onFontVariant:e=>et({variant:e}),fontWeight:A[0].weight,onFontWeight:e=>et({weight:e}),fontStyle:A[0].style,onFontStyle:e=>et({style:e}),fontSubset:A[0].subset,onFontSubset:e=>et({subset:e}),padding:A[0].padding,onPadding:e=>et({padding:e}),paddingControl:A[0].paddingControl,onPaddingControl:e=>et({paddingControl:e}),margin:A[0].margin,onMargin:e=>et({margin:e}),marginControl:A[0].marginControl,onMarginControl:e=>et({marginControl:e})}))),this.showSettings("shadowSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Container Shadow","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Enable Shadow","kadence-blocks"),checked:L,onChange:e=>me({displayShadow:e})}),L&&Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Shadow Color","kadence-blocks"),colorValue:W[0].color?W[0].color:"",colorDefault:"",onColorChange:e=>lt({color:e}),opacityValue:W[0].opacity,onOpacityChange:e=>lt({opacity:e})}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Blur","kadence-blocks"),value:W[0].blur,onChange:e=>lt({blur:e}),min:0,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Spread","kadence-blocks"),value:W[0].spread,onChange:e=>lt({spread:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Vertical Offset","kadence-blocks"),value:W[0].vOffset,onChange:e=>lt({vOffset:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Horizontal Offset","kadence-blocks"),value:W[0].hOffset,onChange:e=>lt({hOffset:e}),min:-100,max:100,step:1})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Shadow Color","kadence-blocks"),colorValue:F[0].color?F[0].color:"",colorDefault:"",onColorChange:e=>tt({color:e}),opacityValue:F[0].opacity,onOpacityChange:e=>tt({opacity:e})}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Blur","kadence-blocks"),value:F[0].blur,onChange:e=>tt({blur:e}),min:0,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Spread","kadence-blocks"),value:F[0].spread,onChange:e=>tt({spread:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Vertical Offset","kadence-blocks"),value:F[0].vOffset,onChange:e=>tt({vOffset:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Horizontal Offset","kadence-blocks"),value:F[0].hOffset,onChange:e=>tt({hOffset:e}),min:-100,max:100,step:1}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}))),Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${S} ${Ve} kt-info-halign-${r} kb-info-box-vertical-media-align-${K}`,style:{boxShadow:L?F[0].hOffset+"px "+F[0].vOffset+"px "+F[0].blur+"px "+F[0].spread+"px "+Rt(F[0].color,F[0].opacity):void 0,borderColor:Rt(b||"#eeeeee",void 0!==$?$:1),background:Rt(c||"#f2f2f2",void 0!==U?U:1),borderRadius:g+"px",borderWidth:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",paddingTop:""!==Se?Se+Oe:void 0,paddingRight:""!==Ee?Ee+Oe:void 0,paddingBottom:""!==we?we+Oe:void 0,paddingLeft:""!==xe?xe+Oe:void 0,maxWidth:J?J+q:void 0,marginTop:te&&""!==te[0]?te[0]+le:void 0,marginRight:te&&""!==te[1]?te[1]+le:void 0,marginBottom:te&&""!==te[2]?te[2]+le:void 0,marginLeft:te&&""!==te[3]?te[3]+le:void 0}},"none"!==f&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container",style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===f?"kt-info-media-animate-"+re[0].hoverAnimation:""}${"image"===f?"kt-info-media-animate-"+O[0].hoverAnimation:""}${"icon"===f?"kt-info-media-animate-"+j[0].hoverAnimation:""}`,style:{borderColor:Rt(_[0].border),backgroundColor:Rt(_[0].background),borderRadius:_[0].borderRadius+"px",borderWidth:_[0].borderWidth?_[0].borderWidth[0]+"px "+_[0].borderWidth[1]+"px "+_[0].borderWidth[2]+"px "+_[0].borderWidth[3]+"px":"",padding:_[0].padding?_[0].padding[0]+"px "+_[0].padding[1]+"px "+_[0].padding[2]+"px "+_[0].padding[3]+"px":""}},!O[0].url&&"image"===f&&Object(a.createElement)(od,null,Object(a.createElement)(uo,{labels:"",selectIcon:So.a,selectLabel:Object(o.__)("Select Image","kadence-blocks"),onSelect:Ue,accept:"image/*",className:"kadence-image-upload",allowedTypes:De,disableMediaButtons:!1})),O[0].url&&"image"===f&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:O[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${O[0].hoverAnimation}${"svg+xml"===O[0].subtype?" kb-info-box-image-type-svg":""}${rt?" kb-info-box-image-ratio kb-info-box-image-ratio-"+se:""}`,style:{paddingBottom:it,height:nt,width:isNaN(O[0].width)?void 0:O[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:O[0].url,alt:O[0].alt,width:O[0].subtype&&"svg+xml"===O[0].subtype?O[0].maxWidth:O[0].width,height:O[0].height,className:`${O[0].id?"kt-info-box-image wp-image-"+O[0].id:"kt-info-box-image wp-image-offsite"} ${O[0].subtype&&"svg+xml"===O[0].subtype?" kt-info-svg-image":""}`}),O[0].flipUrl&&"flip"===O[0].hoverAnimation&&Object(a.createElement)("img",{src:O[0].flipUrl,alt:O[0].flipAlt,width:O[0].flipSubtype&&"svg+xml"===O[0].flipSubtype?O[0].maxWidth:O[0].flipWidth,height:O[0].flipHeight,className:`${O[0].flipId?"kt-info-box-image-flip wp-image-"+O[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${O[0].flipSubtype&&"svg+xml"===O[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===f&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+j[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+j[0].icon,name:j[0].icon,size:j[0].size?j[0].size:"14",htmltag:"span",strokeWidth:"fe"===j[0].icon.substring(0,2)?j[0].width:void 0,style:{display:"block",color:j[0].color?Rt(j[0].color):void 0}}),j[0].flipIcon&&"flip"===j[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+j[0].flipIcon,name:j[0].flipIcon,size:j[0].size?j[0].size:"14",htmltag:"span",strokeWidth:"fe"===j[0].flipIcon.substring(0,2)?j[0].width:void 0,style:{display:"block",color:j[0].hoverColor?Rt(j[0].hoverColor):void 0}}))),"number"===f&&Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(re&&re[0]&&re[0].hoverAnimation?re[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(nd,{className:"kt-blocks-info-box-number",allowedFormats:jd("kadence.whitelist_richtext_formats","learnmore"===l?["kadence/insert-dynamic","core/bold","core/italic","core/link","toolset/inline-field"]:["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),tagName:"div",placeholder:"1",onChange:e=>{me({number:e})},value:ne,style:{fontWeight:re[0].weight,fontStyle:re[0].style,color:j[0].color?Rt(j[0].color):void 0,fontSize:j[0].size+"px",fontFamily:re[0].family?re[0].family:void 0}})),re[0].google&&Object(a.createElement)(yl,{config:Fe})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},E&&M[0].google&&Object(a.createElement)(yl,{config:Pe}),E&&Object(a.createElement)(nd,{className:"kt-blocks-info-box-title",allowedFormats:jd("kadence.whitelist_richtext_formats","learnmore"===l?["kadence/insert-dynamic","core/bold","core/italic","core/link","toolset/inline-field"]:["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),tagName:We,placeholder:Object(o.__)("Title","kadence-blocks"),onChange:e=>{me({title:e})},value:w,style:{fontWeight:M[0].weight,fontStyle:M[0].style,color:Rt(x),fontSize:M[0].size[0]+M[0].sizeType,lineHeight:M[0].lineHeight&&M[0].lineHeight[0]?M[0].lineHeight[0]+M[0].lineType:void 0,letterSpacing:M[0].letterSpacing+"px",fontFamily:M[0].family?M[0].family:"",padding:M[0].padding?M[0].padding[0]+"px "+M[0].padding[1]+"px "+M[0].padding[2]+"px "+M[0].padding[3]+"px":"",margin:M[0].margin?M[0].margin[0]+"px "+M[0].margin[1]+"px "+M[0].margin[2]+"px "+M[0].margin[3]+"px":"",minHeight:void 0!==Z&&void 0!==Z[0]?Z[0]+"px":void 0},keepPlaceholderOnFocus:!0}),N&&B[0].google&&Object(a.createElement)(yl,{config:Ae}),N&&Object(a.createElement)(nd,{className:"kt-blocks-info-box-text",allowedFormats:jd("kadence.whitelist_richtext_formats","learnmore"===l?["kadence/insert-dynamic","core/bold","core/italic","core/link","toolset/inline-field"]:["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),tagName:"p",placeholder:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.","kadence-blocks"),onChange:e=>me({contentText:e}),value:T,style:{fontWeight:B[0].weight,fontStyle:B[0].style,color:Rt(z),fontSize:B[0].size[0]+B[0].sizeType,lineHeight:B[0].lineHeight&&B[0].lineHeight[0]?B[0].lineHeight[0]+B[0].lineType:void 0,letterSpacing:B[0].letterSpacing+"px",fontFamily:B[0].family?B[0].family:"",padding:void 0!==I&&void 0!==I[0]&&I[0].padding?I[0].padding[0]+"px "+I[0].padding[1]+"px "+I[0].padding[2]+"px "+I[0].padding[3]+"px":"",margin:void 0!==I&&void 0!==I[0]&&I[0].margin?I[0].margin[0]+"px "+I[0].margin[1]+"px "+I[0].margin[2]+"px "+I[0].margin[3]+"px":"",minHeight:void 0!==G&&void 0!==G[0]?G[0]+"px":void 0},keepPlaceholderOnFocus:!0}),R&&A[0].google&&Object(a.createElement)(yl,{config:Le}),R&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap",style:{margin:A[0].margin?A[0].margin[0]+"px "+A[0].margin[1]+"px "+A[0].margin[2]+"px "+A[0].margin[3]+"px":""}},Object(a.createElement)(nd,{allowedFormats:jd("kadence.whitelist_richtext_formats",["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),className:"kt-blocks-info-box-learnmore",tagName:"div",placeholder:Object(o.__)("Learn More","kadence-blocks"),onChange:e=>me({learnMore:e}),value:P,style:{fontWeight:A[0].weight,fontStyle:A[0].style,color:Rt(A[0].color),borderRadius:A[0].borderRadius+"px",background:Rt(A[0].background),borderColor:Rt(A[0].border),fontSize:A[0].size[0]+A[0].sizeType,lineHeight:A[0].lineHeight&&A[0].lineHeight[0]?A[0].lineHeight[0]+A[0].lineType:void 0,letterSpacing:A[0].letterSpacing+"px",fontFamily:A[0].family?A[0].family:"",borderWidth:A[0].borderWidth?A[0].borderWidth[0]+"px "+A[0].borderWidth[1]+"px "+A[0].borderWidth[2]+"px "+A[0].borderWidth[3]+"px":"",padding:A[0].padding?A[0].padding[0]+"px "+A[0].padding[1]+"px "+A[0].padding[2]+"px "+A[0].padding[3]+"px":""},keepPlaceholderOnFocus:!0})))))}});const{registerBlockType:Ed}=wp.blocks,{RichText:wd}=wp.blockEditor;Ed("kadence/infobox",{title:Object(o.__)("Info Box","kadence-blocks"),description:Object(o.__)("Create beautiful information boxes using icons or images.","kadence-blocks"),icon:{src:n.infobox},category:"kadence-blocks",keywords:[Object(o.__)("Info","kadence-blocks"),Object(o.__)("Icon","kadence-blocks"),"KB"],attributes:xs,edit:Sd,supports:{ktdynamic:!0},save:e=>{const{attributes:{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,linkNoFollow:O,linkSponsored:j,mediaNumber:_,number:S,kadenceDynamic:E,imageRatio:w},className:x}=e,C="h"+p[0].level;let M;"_blank"===i&&(M="noopener noreferrer"),void 0!==O&&!0===O&&(M=M?M.concat(" nofollow"):"nofollow"),void 0!==j&&!0===j&&(M=M?M.concat(" sponsored"):"sponsored");const N=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container"+(E&&E["mediaImage:0:url"]&&E["mediaImage:0:url"].enable?" kadence-info-dynamic-image":"")},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}${w&&"inherit"!==w?" kb-info-box-image-ratio kb-info-box-image-ratio-"+w:""}`},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"}${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),T=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),z=Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(_&&_[0]&&_[0].hoverAnimation?_[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-number",tagName:"div",value:S||""}))),H=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),B=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore info-box-link",tagName:"a",target:"_blank"===i?i:void 0,rel:M,value:v,href:l})),I=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:C,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&B,h&&"learnmore"!==o&&H);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:x},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap info-box-link kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:M,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&N,"icon"===r&&T,"number"===r&&z)),I),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&N,"icon"===r&&T,"number"===r&&z)),I))},deprecated:[{attributes:xs,save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,linkNoFollow:O,linkSponsored:j,mediaNumber:_,number:S,kadenceDynamic:E,className:w}=e,x="h"+p[0].level;let C;"_blank"===i&&(C="noopener noreferrer"),void 0!==O&&!0===O&&(C=C?C.concat(" nofollow"):"nofollow"),void 0!==j&&!0===j&&(C=C?C.concat(" sponsored"):"sponsored");const M=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container"+(E&&E["mediaImage:0:url"]&&E["mediaImage:0:url"].enable?" kadence-info-dynamic-image":""),style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",height:isNaN(c[0].height)?void 0:0,width:isNaN(c[0].width)||"svg+xml"===c[0].subtype?c[0].maxWidth+"px":c[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),N=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),T=Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(_&&_[0]&&_[0].hoverAnimation?_[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-number",tagName:"div",value:S||""}))),z=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),H=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore info-box-link",tagName:"a",target:"_blank"===i?i:void 0,rel:C,value:v,href:l})),B=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:x,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&H,h&&"learnmore"!==o&&z);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:w},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap info-box-link kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:C,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&M,"icon"===r&&N,"number"===r&&T)),B),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&M,"icon"===r&&N,"number"===r&&T)),B))}},{attributes:xs,save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,linkNoFollow:O,linkSponsored:j,mediaNumber:_,number:S,className:E}=e,w="h"+p[0].level;let x;"_blank"===i&&(x="noopener noreferrer"),void 0!==O&&!0===O&&(x=x?x.concat(" nofollow"):"nofollow"),void 0!==j&&!0===j&&(x=x?x.concat(" sponsored"):"sponsored");const C=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",height:isNaN(c[0].height)?void 0:0,width:isNaN(c[0].width)||"svg+xml"===c[0].subtype?c[0].maxWidth+"px":c[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),M=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),N=Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(_[0].hoverAnimation?_[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-number",tagName:"div",value:S||""}))),T=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),z=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:x,value:v,href:l})),H=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:w,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&z,h&&"learnmore"!==o&&T);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:E},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:x,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&C,"icon"===r&&M,"number"===r&&N)),H),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&C,"icon"===r&&M,"number"===r&&N)),H))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,className:O}=e,j="h"+p[0].level,_=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",height:isNaN(c[0].height)?void 0:0,width:isNaN(c[0].width)||"svg+xml"===c[0].subtype?c[0].maxWidth+"px":c[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),S=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),E=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),w=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})),x=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:j,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&w,h&&"learnmore"!==o&&E);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:O},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&_,"icon"===r&&S)),x),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&_,"icon"===r&&S)),x))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,className:y}=e,f="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:y},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",width:isNaN(c[0].height)?void 0:c[0].width+"px",maxWidth:isNaN(c[0].height)?void 0:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:f,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:f,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",width:isNaN(c[0].height)?void 0:c[0].width+"px",maxWidth:isNaN(c[0].height)?void 0:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},containerBackground:{type:"string",default:"#f2f2f2"},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerBorder:{type:"string",default:"#eeeeee"},containerHoverBorder:{type:"string",default:"#eeeeee"},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},containerBackground:{type:"string",default:"#f2f2f2"},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerBorder:{type:"string",default:"#eeeeee"},containerHoverBorder:{type:"string",default:"#eeeeee"},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:i,rel:"noopener noreferrer",href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:i,rel:"noopener noreferrer",value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},containerBackground:{type:"string",default:"#f2f2f2"},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerBorder:{type:"string",default:"#eeeeee"},containerHoverBorder:{type:"string",default:"#eeeeee"},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:i,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:i,value:v,href:l})))))}}]});const{Fragment:xd}=wp.element,{Button:Cd,ButtonGroup:Md,Tooltip:Nd}=wp.components;function Td({label:e,values:t,control:l,onChange:i,onControl:r,controlTypes:c=[{key:"linked",name:Object(o.__)("Linked"),icon:n.linked},{key:"individual",name:Object(o.__)("Individual"),icon:n.individual}],firstIcon:s=n.outlinetop,secondIcon:b=n.outlineright,thirdIcon:m=n.outlinebottom,fourthIcon:p=n.outlineleft}){return[i&&r&&Object(a.createElement)(xd,null,Object(a.createElement)(Md,{className:"kt-size-type-options kt-outline-control","aria-label":Object(o.__)("Color Control Type")},d()(c,({name:e,key:t,icon:o})=>Object(a.createElement)(Nd,{text:e},Object(a.createElement)(Cd,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:l===t,"aria-pressed":l===t,onClick:()=>r(t)},o)))),l&&"individual"!==l&&Object(a.createElement)(xd,null,Object(a.createElement)("p",{className:"kt-setting-label"},e),Object(a.createElement)(Bt,{label:n.linked,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([e,e,e,e])})),l&&"individual"===l&&Object(a.createElement)("div",{className:"kt-border-color-array-control"},Object(a.createElement)("p",{className:"kt-setting-label"},e),Object(a.createElement)(Bt,{label:s,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([e,t[1],t[2],t[3]])}),Object(a.createElement)(Bt,{label:b,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([t[0],e,t[2],t[3]])}),Object(a.createElement)(Bt,{label:m,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([t[0],t[1],e,t[3]])}),Object(a.createElement)(Bt,{label:p,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([t[0],t[1],t[2],e])})))]}const zd=[],{createBlock:Hd}=wp.blocks,{Component:Bd,Fragment:Id}=wp.element,{TabPanel:Rd,Button:Pd,ButtonGroup:Ad,PanelBody:Ld,Dashicon:Fd,RangeControl:Wd,ToggleControl:Dd,SelectControl:Ud,IconButton:Vd}=wp.components,$d=["kadence/pane"],Gd=Aa()(e=>bl()(e,e=>["kadence/pane",{id:e+1}]));var Zd=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{clientId:l}=t,{__experimentalGetPreviewDeviceType:a}=e("core/edit-post"),{getBlock:o}=e("core/block-editor"),i=o(l);return{accordionBlock:i,realPaneCount:i.innerBlocks.length,getPreviewDevice:a?a():"Desktop"}}),Object(A.withDispatch)((e,{clientId:t},{select:l})=>{const{getBlock:a}=l("core/block-editor"),{removeBlock:o,updateBlockAttributes:i,insertBlock:n}=e("core/block-editor"),r=a(t);return{updatePaneTag(e){bl()(r.innerBlocks.length,t=>{i(r.innerBlocks[t].clientId,{titleTag:e})})},updateFaqSchema(e){bl()(r.innerBlocks.length,t=>{i(r.innerBlocks[t].clientId,{faqSchema:e})})},insertPane(e){n(e,parseInt(r.innerBlocks.length),t)},removePane(e){o(e)}}})])(class extends Bd{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={contentPaddingControl:"linked",contentBorderRadiusControl:"linked",contentBorderControl:"linked",titleBorderControl:"linked",titlePaddingControl:"individual",titleBorderRadiusControl:"linked",titleBorderColorControl:"linked",titleBorderHoverColorControl:"linked",titleBorderActiveColorControl:"linked",titleTag:"div",showPreset:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a)return a;if(void 0!==l&&""!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l)return l;return t}componentDidMount(){if(this.props.attributes.uniqueID)zd.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),zd.push("_"+this.props.clientId.substr(2,9))):zd.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/accordion"]&&"object"==typeof e["kadence/accordion"]&&Object.keys(e["kadence/accordion"]).map(t=>{if("titleTag"===t){const l=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId),a=l[0]?l[0].innerBlocks.length:l.innerBlocks.length;l[0]?bl()(a,a=>{wp.data.dispatch("core/block-editor").updateBlockAttributes(l[0].innerBlocks[a].clientId,{titleTag:e["kadence/accordion"][t]})}):bl()(a,a=>{wp.data.dispatch("core/block-editor").updateBlockAttributes(l.innerBlocks[a].clientId,{titleTag:e["kadence/accordion"][t]})}),this.setState({titleTag:e["kadence/accordion"][t]})}else this.props.attributes[t]=e["kadence/accordion"][t]}),void 0!==e["kadence/pane"]&&"object"==typeof e["kadence/pane"]&&void 0!==e["kadence/pane"].titleTag&&this.setState({titleTag:e["kadence/pane"].titleTag}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),zd.push("_"+this.props.clientId.substr(2,9))}this.props.attributes.titleStyles[0].padding[0]===this.props.attributes.titleStyles[0].padding[1]&&this.props.attributes.titleStyles[0].padding[0]===this.props.attributes.titleStyles[0].padding[2]&&this.props.attributes.titleStyles[0].padding[0]===this.props.attributes.titleStyles[0].padding[3]?this.setState({titlePaddingControl:"linked"}):this.setState({titlePaddingControl:"individual"}),this.props.attributes.titleStyles[0].borderWidth[0]===this.props.attributes.titleStyles[0].borderWidth[1]&&this.props.attributes.titleStyles[0].borderWidth[0]===this.props.attributes.titleStyles[0].borderWidth[2]&&this.props.attributes.titleStyles[0].borderWidth[0]===this.props.attributes.titleStyles[0].borderWidth[3]?this.setState({titleBorderControl:"linked"}):this.setState({titleBorderControl:"individual"}),this.props.attributes.titleStyles[0].borderRadius[0]===this.props.attributes.titleStyles[0].borderRadius[1]&&this.props.attributes.titleStyles[0].borderRadius[0]===this.props.attributes.titleStyles[0].borderRadius[2]&&this.props.attributes.titleStyles[0].borderRadius[0]===this.props.attributes.titleStyles[0].borderRadius[3]?this.setState({titleBorderRadiusControl:"linked"}):this.setState({titleBorderRadiusControl:"individual"}),this.props.attributes.contentBorder[0]===this.props.attributes.contentBorder[1]&&this.props.attributes.contentBorder[0]===this.props.attributes.contentBorder[2]&&this.props.attributes.contentBorder[0]===this.props.attributes.contentBorder[3]?this.setState({contentBorderControl:"linked"}):this.setState({contentBorderControl:"individual"}),this.props.attributes.contentBorderRadius[0]===this.props.attributes.contentBorderRadius[1]&&this.props.attributes.contentBorderRadius[0]===this.props.attributes.contentBorderRadius[2]&&this.props.attributes.contentBorderRadius[0]===this.props.attributes.contentBorderRadius[3]?this.setState({contentBorderRadiusControl:"linked"}):this.setState({contentBorderRadiusControl:"individual"}),this.props.attributes.contentPadding[0]===this.props.attributes.contentPadding[1]&&this.props.attributes.contentPadding[0]===this.props.attributes.contentPadding[2]&&this.props.attributes.contentPadding[0]===this.props.attributes.contentPadding[3]?this.setState({contentPaddingControl:"linked"}):this.setState({contentPaddingControl:"individual"}),this.props.attributes.titleStyles[0].border[0]===this.props.attributes.titleStyles[0].border[1]&&this.props.attributes.titleStyles[0].border[0]===this.props.attributes.titleStyles[0].border[2]&&this.props.attributes.titleStyles[0].border[0]===this.props.attributes.titleStyles[0].border[3]?this.setState({titleBorderColorControl:"linked"}):this.setState({titleBorderColorControl:"individual"}),this.props.attributes.titleStyles[0].borderHover[0]===this.props.attributes.titleStyles[0].borderHover[1]&&this.props.attributes.titleStyles[0].borderHover[0]===this.props.attributes.titleStyles[0].borderHover[2]&&this.props.attributes.titleStyles[0].borderHover[0]===this.props.attributes.titleStyles[0].borderHover[3]?this.setState({titleBorderHoverColorControl:"linked"}):this.setState({titleBorderHoverColorControl:"individual"}),this.props.attributes.titleStyles[0].borderActive[0]===this.props.attributes.titleStyles[0].borderActive[1]&&this.props.attributes.titleStyles[0].borderActive[0]===this.props.attributes.titleStyles[0].borderActive[2]&&this.props.attributes.titleStyles[0].borderActive[0]===this.props.attributes.titleStyles[0].borderActive[3]?this.setState({titleBorderActiveColorControl:"linked"}):this.setState({titleBorderActiveColorControl:"individual"});const e=this.props.accordionBlock;e&&e[0]&&e[0].innerBlocks[0]&&e[0].innerBlocks[0].attributes&&e[0].innerBlocks[0].attributes.titleTag&&this.setState({titleTag:e[0].innerBlocks[0].attributes.titleTag}),e&&e.innerBlocks[0]&&e.innerBlocks[0].attributes&&e.innerBlocks[0].attributes.titleTag&&this.setState({titleTag:e.innerBlocks[0].attributes.titleTag});const t=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==t["kadence/accordion"]&&"object"==typeof t["kadence/accordion"]&&this.setState({settings:t["kadence/accordion"]})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}render(){const{attributes:{uniqueID:e,paneCount:t,blockAlignment:l,openPane:i,titleStyles:r,contentPadding:c,contentTabletPadding:s,contentMobilePadding:b,contentPaddingType:m,minHeight:p,maxWidth:g,contentBorder:u,contentBorderColor:h,contentBorderRadius:v,contentBgColor:k,titleAlignment:y,startCollapsed:f,faqSchema:O,linkPaneCollapse:j,showIcon:_,iconStyle:S,iconSide:E},className:w,setAttributes:x,clientId:C,realPaneCount:M,accordionBlock:N}=this.props,{titleBorderRadiusControl:T,titleBorderControl:z,titlePaddingControl:H,contentBorderControl:B,contentBorderRadiusControl:I,contentPaddingControl:R,titleBorderColorControl:P,titleBorderHoverColorControl:A,titleBorderActiveColorControl:L,titleTag:F}=this.state,W=[{key:"skip",name:Object(o.__)("Skip"),icon:Object(o.__)("Skip")},{key:"base",name:Object(o.__)("Base"),icon:n.accord01},{key:"highlight",name:Object(o.__)("Highlight"),icon:n.accord02},{key:"subtle",name:Object(o.__)("Subtle"),icon:n.accord03},{key:"bottom",name:Object(o.__)("Bottom Border"),icon:n.accord04}],D=void 0!==m?m:"px",U="em"===D||"rem"===D?12:200,V="em"===D||"rem"===D?.1:1,$=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[0]?c[0]:"",void 0!==s&&void 0!==s[0]?s[0]:"",void 0!==b&&void 0!==b[0]?b[0]:""),G=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[1]?c[1]:"",void 0!==s&&void 0!==s[1]?s[1]:"",void 0!==b&&void 0!==b[1]?b[1]:""),Z=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[2]?c[2]:"",void 0!==s&&void 0!==s[2]?s[2]:"",void 0!==b&&void 0!==b[2]?b[2]:""),q=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[3]?c[3]:"",void 0!==s&&void 0!==s[3]?s[3]:"",void 0!==b&&void 0!==b[3]?b[3]:""),J=void 0!==r[0].paddingType&&""!==r[0].paddingType?r[0].paddingType:"px",K="em"===J||"rem"===J?12:200,Q="em"===J||"rem"===J?.1:1,Y=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[0]?r[0].padding[0]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[0]?r[0].paddingTablet[0]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[0]?r[0].paddingMobile[0]:""),X=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[1]?r[0].padding[1]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[1]?r[0].paddingTablet[1]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[1]?r[0].paddingMobile[1]:""),ee=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[2]?r[0].padding[2]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[2]?r[0].paddingTablet[2]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[2]?r[0].paddingMobile[2]:""),te=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[3]?r[0].padding[3]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[3]?r[0].paddingTablet[3]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[3]?r[0].paddingMobile[3]:""),le=e=>{const t=r.map((t,l)=>(0===l&&(t={...t,...e}),t));x({titleStyles:t})},ae={google:{families:[r[0].family+(r[0].variant?":"+r[0].variant:"")]}},oe=r[0].google?ae:"",ne=al()(w,`kt-accordion-wrap kt-accordion-id${e} kt-accordion-has-${t}-panes kt-accordion-block kt-pane-header-alignment-${y}`),re=Object(a.createElement)(Id,null,Object(a.createElement)(Bt,{label:Object(o.__)("Title Color","kadence-blocks"),colorValue:r[0].color?r[0].color:"",colorDefault:"",onColorChange:e=>le({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Title Background","kadence-blocks"),colorValue:r[0].background?r[0].background:"",colorDefault:"",onColorChange:e=>le({background:e})}),Object(a.createElement)(Td,{label:Object(o.__)("Title Border Color"),values:r[0].border,control:P,onChange:e=>le({border:e}),onControl:e=>this.setState({titleBorderColorControl:e})})),ce=Object(a.createElement)(Id,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color","kadence-blocks"),colorValue:r[0].colorHover?r[0].colorHover:"",colorDefault:"",onColorChange:e=>le({colorHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background","kadence-blocks"),colorValue:r[0].backgroundHover?r[0].backgroundHover:"",colorDefault:"",onColorChange:e=>le({backgroundHover:e})}),Object(a.createElement)(Td,{label:Object(o.__)("Hover Border Color"),values:r[0].borderHover,control:A,onChange:e=>le({borderHover:e}),onControl:e=>this.setState({titleBorderHoverColorControl:e})})),se=Object(a.createElement)(Id,null,Object(a.createElement)(Bt,{label:Object(o.__)("Active Color","kadence-blocks"),colorValue:r[0].colorActive?r[0].colorActive:"",colorDefault:"",onColorChange:e=>le({colorActive:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Active Background","kadence-blocks"),colorValue:r[0].backgroundActive?r[0].backgroundActive:"",colorDefault:"",onColorChange:e=>le({backgroundActive:e})}),Object(a.createElement)(Td,{label:Object(o.__)("Active Border Color"),values:r[0].borderActive,control:L,onChange:e=>le({borderActive:e}),onControl:e=>this.setState({titleBorderActiveColorControl:e})})),de=[];de.basic=Object(a.createElement)(Id,null,Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#444"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"})),de.basiccircle=Object(a.createElement)(Id,null,Object(a.createElement)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#fff"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"})),de.xclose=Object(a.createElement)(Id,null,Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#444"}),Object(a.createElement)("path",{d:"M353.5,28.432l-9.887,-9.887l-53.023,53.023l9.887,9.887l53.023,-53.023Z",fill:"#444"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),Object(a.createElement)("path",{d:"M343.613,81.455l9.887,-9.887l-53.023,-53.023l-9.887,9.887l53.023,53.023Z",fill:"#444"})),de.xclosecircle=Object(a.createElement)(Id,null,Object(a.createElement)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#fff"}),Object(a.createElement)("path",{d:"M343.613,81.455l9.887,-9.887l-53.023,-53.023l-9.887,9.887l53.023,53.023Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M290.59,71.568l9.887,9.887l53.023,-53.023l-9.887,-9.887l-53.023,53.023Z",fill:"#fff"})),de.arrow=Object(a.createElement)(Id,null,Object(a.createElement)("g",{fill:"#444"},Object(a.createElement)("path",{d:"M122.2,37.371l-9.887,-9.886l-38.887,38.887l9.887,9.887l38.887,-38.888Z"}),Object(a.createElement)("path",{d:"M83.18,76.515l9.887,-9.886l-38.92,-38.921l-9.887,9.887l38.92,38.92Z"})),Object(a.createElement)("g",{fill:"#444"},Object(a.createElement)("path",{d:"M283.65,63.629l9.887,9.886l38.887,-38.887l-9.887,-9.887l-38.887,38.888Z"}),Object(a.createElement)("path",{d:"M322.67,24.485l-9.887,9.886l38.92,38.921l9.887,-9.887l-38.92,-38.92Z"}))),de.arrowcircle=Object(a.createElement)(Id,null,Object(a.createElement)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("g",{fill:"#fff"},Object(a.createElement)("path",{d:"M122.2,37.371l-9.887,-9.886l-38.887,38.887l9.887,9.887l38.887,-38.888Z"}),Object(a.createElement)("path",{d:"M83.18,76.515l9.887,-9.886l-38.92,-38.921l-9.887,9.887l38.92,38.92Z"})),Object(a.createElement)("g",{fill:"#fff"},Object(a.createElement)("path",{d:"M283.65,63.629l9.887,9.886l38.887,-38.887l-9.887,-9.887l-38.887,38.888Z"}),Object(a.createElement)("path",{d:"M322.67,24.485l-9.887,9.886l38.92,38.921l9.887,-9.887l-38.92,-38.92Z"})));const be=Object(a.createElement)("style",null,`\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header {\n\t\t\t\t\tcolor: ${dn(r[0].color)};\n\t\t\t\t\tborder-color: ${dn(r[0].border[0])} ${dn(r[0].border[1])} ${dn(r[0].border[2])} ${dn(r[0].border[3])};\n\t\t\t\t\tbackground-color: ${dn(r[0].background)};\n\t\t\t\t\t${""!==Y?`padding-top:${Y+J};`:""}\n\t\t\t\t\t${""!==X?`padding-right:${X+J};`:""}\n\t\t\t\t\t${""!==ee?`padding-bottom:${ee+J};`:""}\n\t\t\t\t\t${""!==te?`padding-left:${te+J};`:""}\n\t\t\t\t\tmargin-top:${r[0].marginTop>32?r[0].marginTop:0}px;\n\t\t\t\t\tborder-width:${r[0].borderWidth[0]}px ${r[0].borderWidth[1]}px ${r[0].borderWidth[2]}px ${r[0].borderWidth[3]}px;\n\t\t\t\t\tborder-radius:${r[0].borderRadius[0]}px ${r[0].borderRadius[1]}px ${r[0].borderRadius[2]}px ${r[0].borderRadius[3]}px;\n\t\t\t\t\tfont-size:${r[0].size[0]}${r[0].sizeType};\n\t\t\t\t\tline-height:${r[0].lineHeight[0]}${r[0].lineType};\n\t\t\t\t\tletter-spacing:${r[0].letterSpacing}px;\n\t\t\t\t\ttext-transform:${r[0].textTransform};\n\t\t\t\t\tfont-family:${r[0].family};\n\t\t\t\t\tfont-style:${r[0].style};\n\t\t\t\t\tfont-weight:${r[0].weight};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header .kt-blocks-accordion-title {\n\t\t\t\t\tline-height:${r[0].lineHeight[0]}${r[0].lineType};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header .kt-btn-svg-icon svg {\n\t\t\t\t\twidth:${r[0].size[0]}${r[0].sizeType};\n\t\t\t\t\theight:${r[0].size[0]}${r[0].sizeType};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-accordion-panel-inner {\n\t\t\t\t\t${""!==$?`padding-top:${$+D};`:""}\n\t\t\t\t\t${""!==G?`padding-right:${G+D};`:""}\n\t\t\t\t\t${""!==Z?`padding-bottom:${Z+D};`:""}\n\t\t\t\t\t${""!==q?`padding-left:${q+D};`:""}\n\t\t\t\t\tbackground-color: ${dn(k)};\n\t\t\t\t\tborder-color: ${dn(h)};\n\t\t\t\t\tborder-width:${u[0]}px ${u[1]}px ${u[2]}px ${u[3]}px;\n\t\t\t\t\tborder-radius:${v[0]}px ${v[1]}px ${v[2]}px ${v[3]}px;\n\t\t\t\t\tmin-height:${p?p+"px":"0"};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].color)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].background)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger {\n\t\t\t\t\tbackground-color: ${dn(r[0].color)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header:hover {\n\t\t\t\t\tcolor: ${dn(r[0].colorHover)};\n\t\t\t\t\tborder-color: ${dn(r[0].borderHover[0])} ${dn(r[0].borderHover[1])} ${dn(r[0].borderHover[2])} ${dn(r[0].borderHover[3])};\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1} .kt-accordion-pane-${i+1} .kt-blocks-accordion-header {\n\t\t\t\t\tcolor: ${dn(r[0].colorActive)};\n\t\t\t\t\tborder-color: ${dn(r[0].borderActive[0])} ${dn(r[0].borderActive[1])} ${dn(r[0].borderActive[2])} ${dn(r[0].borderActive[3])};\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundActive)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorActive)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundActive)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorActive)};\n\t\t\t\t}\n\t\t\t\t`);return Object(a.createElement)(Id,null,be,Object(a.createElement)(ot.BlockControls,null,Object(a.createElement)(ot.BlockAlignmentToolbar,{value:l,controls:["center","wide","full"],onChange:e=>x({blockAlignment:e})}),Object(a.createElement)(ot.AlignmentToolbar,{value:y,onChange:e=>{x({titleAlignment:e})}})),this.showSettings("allSettings")&&Object(a.createElement)(ot.InspectorControls,null,Object(a.createElement)(Ld,null,this.showSettings("paneControl")&&Object(a.createElement)(Id,null,Object(a.createElement)(Dd,{label:Object(o.__)("Panes close when another opens","kadence-blocks"),checked:j,onChange:e=>x({linkPaneCollapse:e})}),Object(a.createElement)(Dd,{label:Object(o.__)("Start with all panes collapsed","kadence-blocks"),checked:f,onChange:e=>x({startCollapsed:e})}),!f&&Object(a.createElement)(Id,null,Object(a.createElement)("h2",null,Object(o.__)("Initial Open Accordion","kadence-blocks")),Object(a.createElement)(Ad,{"aria-label":Object(o.__)("Initial Open Accordion","kadence-blocks")},N&&N[0]&&N[0].innerBlocks&&Object(a.createElement)(Id,null,d()(N[0].innerBlocks,({attributes:e})=>Object(a.createElement)(Pd,{key:e.id-1,className:"kt-init-open-pane",isSmall:!0,isPrimary:i===e.id-1,"aria-pressed":i===e.id-1,onClick:()=>x({openPane:e.id-1})},Object(o.__)("Accordion Pane","kadence-blocks")+" "+e.id))),N&&N.innerBlocks&&Object(a.createElement)(Id,null,d()(N.innerBlocks,({attributes:e})=>Object(a.createElement)(Pd,{key:e.id-1,className:"kt-init-open-pane",isSmall:!0,isPrimary:i===e.id-1,"aria-pressed":i===e.id-1,onClick:()=>x({openPane:e.id-1})},Object(o.__)("Accordion Pane","kadence-blocks")+" "+e.id))))))),this.showSettings("titleColors")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Color Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Rd,{className:"kt-inspect-tabs kt-no-ho-ac-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover"),className:"kt-hover-tab"},{name:"active",title:Object(o.__)("Active"),className:"kt-active-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?ce:"active"===e.name?se:re),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),this.showSettings("titleIcon")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Trigger Icon","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Dd,{label:Object(o.__)("Show Icon","kadence-blocks"),checked:_,onChange:e=>x({showIcon:e})}),Object(a.createElement)("h2",null,Object(o.__)("Icon Style","kadence-blocks")),Object(a.createElement)(ze.a,{icons:["basic","basiccircle","xclose","xclosecircle","arrow","arrowcircle"],value:S,onChange:e=>x({iconStyle:e}),appendTo:"body",renderFunc:e=>Object(a.createElement)("svg",{className:"accord-icon",viewBox:"0 0 400 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",style:{fill:"#000000"}},de[e]),theme:"accordion",showSearch:!1,noSelectedPlaceholder:Object(o.__)("Select Icon Set","kadence-blocks"),isMulti:!1}),Object(a.createElement)(Ud,{label:Object(o.__)("Icon Side","kadence-blocks"),value:E,options:[{value:"right",label:Object(o.__)("Right")},{value:"left",label:Object(o.__)("Left")}],onChange:e=>x({iconSide:e})})),this.showSettings("titleSpacing")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Spacing","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Pane Title Padding","kadence-blocks"),control:H,tabletControl:H,mobileControl:H,value:r[0].padding,tabletValue:void 0!==r[0].paddingTablet?r[0].paddingTablet:["","","",""],mobileValue:void 0!==r[0].paddingMobile?r[0].paddingMobile:["","","",""],onChange:e=>{le({padding:e})},onChangeTablet:e=>{le({paddingTablet:e})},onChangeMobile:e=>{le({paddingMobile:e})},onChangeControl:e=>this.setState({titlePaddingControl:e}),onChangeTabletControl:e=>this.setState({titlePaddingControl:e}),onChangeMobileControl:e=>this.setState({titlePaddingControl:e}),allowEmpty:!0,min:0,max:K,step:Q,unit:void 0!==r[0].paddingType?r[0].paddingType:"px",units:["px","em","rem","%"],onUnit:e=>{le({paddingType:e})}}),Object(a.createElement)(Wd,{label:Object(o.__)("Pane Spacer Between","kadence-blocks"),value:r[0].marginTop,onChange:e=>le({marginTop:e}),min:1,max:120})),this.showSettings("titleBorder")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Border","kadence-blocks"),initialOpen:!1},Object(a.createElement)(sn,{label:Object(o.__)("Pane Title Border Width (px)","kadence-blocks"),measurement:r[0].borderWidth,control:z,onChange:e=>le({borderWidth:e}),onControl:e=>this.setState({titleBorderControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Pane Title Border Radius (px)","kadence-blocks"),measurement:r[0].borderRadius,control:T,onChange:e=>le({borderRadius:e}),onControl:e=>this.setState({titleBorderRadiusControl:e}),min:0,max:100,step:1,controlTypes:[{key:"linked",name:Object(o.__)("Linked"),icon:n.radiuslinked},{key:"individual",name:Object(o.__)("Individual"),icon:n.radiusindividual}],firstIcon:n.topleft,secondIcon:n.topright,thirdIcon:n.bottomright,fourthIcon:n.bottomleft})),this.showSettings("titleFont")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Font Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ie,{fontSize:r[0].size,onFontSize:e=>le({size:e}),fontSizeType:r[0].sizeType,onFontSizeType:e=>le({sizeType:e}),lineHeight:r[0].lineHeight,onLineHeight:e=>le({lineHeight:e}),lineHeightType:r[0].lineType,onLineHeightType:e=>le({lineType:e}),letterSpacing:r[0].letterSpacing,onLetterSpacing:e=>le({letterSpacing:e}),textTransform:r[0].textTransform,onTextTransform:e=>le({textTransform:e}),fontFamily:r[0].family,onFontFamily:e=>le({family:e}),onFontChange:e=>{le({family:e.value,google:e.google})},onFontArrayChange:e=>le(e),googleFont:r[0].google,onGoogleFont:e=>le({google:e}),loadGoogleFont:r[0].loadGoogle,onLoadGoogleFont:e=>le({loadGoogle:e}),fontVariant:r[0].variant,onFontVariant:e=>le({variant:e}),fontWeight:r[0].weight,onFontWeight:e=>le({weight:e}),fontStyle:r[0].style,onFontStyle:e=>le({style:e}),fontSubset:r[0].subset,onFontSubset:e=>le({subset:e})})),this.showSettings("paneContent")&&Object(a.createElement)(Ld,{title:Object(o.__)("Inner Content Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Inner Content Padding","kadence-blocks"),control:R,tabletControl:R,mobileControl:R,value:c,tabletValue:s,mobileValue:b,onChange:e=>{x({contentPadding:e})},onChangeTablet:e=>{x({contentTabletPadding:e})},onChangeMobile:e=>{x({contentMobilePadding:e})},onChangeControl:e=>this.setState({contentPaddingControl:e}),onChangeTabletControl:e=>this.setState({contentPaddingControl:e}),onChangeMobileControl:e=>this.setState({contentPaddingControl:e}),allowEmpty:!0,min:0,max:U,step:V,unit:m,units:["px","em","rem","%"],onUnit:e=>x({contentPaddingType:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Inner Content Background","kadence-blocks"),colorValue:k||"",colorDefault:"",onColorChange:e=>x({contentBgColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Inner Content Border Color","kadence-blocks"),colorValue:h||"",colorDefault:"",onColorChange:e=>x({contentBorderColor:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Inner Content Border Width (px)","kadence-blocks"),measurement:u,control:B,onChange:e=>x({contentBorder:e}),onControl:e=>this.setState({contentBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Inner Content Border Radius (px)","kadence-blocks"),measurement:v,control:I,onChange:e=>x({contentBorderRadius:e}),onControl:e=>this.setState({contentBorderRadiusControl:e}),min:0,max:100,step:1,controlTypes:[{key:"linked",name:Object(o.__)("Linked","kadence-blocks"),icon:n.radiuslinked},{key:"individual",name:Object(o.__)("Individual","kadence-blocks"),icon:n.radiusindividual}],firstIcon:n.topleft,secondIcon:n.topright,thirdIcon:n.bottomright,fourthIcon:n.bottomleft})),this.showSettings("titleTag")&&Object(a.createElement)(Ld,{title:Object(o.__)("Title Tag Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Ud,{label:Object(o.__)("Title Tag","kadence-blocks"),value:this.state.titleTag,options:[{value:"div",label:Object(o.__)("div")},{value:"h2",label:Object(o.__)("h2")},{value:"h3",label:Object(o.__)("h3")},{value:"h4",label:Object(o.__)("h4")},{value:"h5",label:Object(o.__)("h5")},{value:"h6",label:Object(o.__)("h6")}],onChange:e=>{this.props.updatePaneTag(e),this.setState({titleTag:e})}})),this.showSettings("structure")&&Object(a.createElement)(Ld,{title:Object(o.__)("Structure Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Wd,{label:Object(o.__)("Content Minimum Height","kadence-blocks"),value:p,onChange:e=>{x({minHeight:e})},min:0,max:1e3}),Object(a.createElement)(Wd,{label:Object(o.__)("Max Width","kadence-blocks"),value:g,onChange:e=>{x({maxWidth:e})},min:0,max:2e3}),Object(a.createElement)(Dd,{label:Object(o.__)("Enable FAQ Schema","kadence-blocks"),checked:O,onChange:e=>{this.props.updateFaqSchema(e),x({faqSchema:e})}}))),Object(a.createElement)("div",{className:ne},this.state.showPreset&&Object(a.createElement)("div",{className:"kt-select-starter-style-tabs"},Object(a.createElement)("div",{className:"kt-select-starter-style-tabs-title"},Object(o.__)("Select Initial Style")),Object(a.createElement)(Ad,{className:"kt-init-tabs-btn-group","aria-label":Object(o.__)("Initial Style","kadence-blocks")},d()(W,({name:e,key:t,icon:l})=>Object(a.createElement)(Pd,{key:t,className:"kt-inital-tabs-style-btn",isSmall:!0,onClick:()=>{(e=>{"skip"===e||("base"===e?x({contentBorder:[0,0,0,0],titleAlignment:"left",showIcon:!0,iconStyle:"basic",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[10,14,10,14],marginTop:0,color:"#555555",background:"#f2f2f2",border:["#555555","#555555","#555555","#555555"],borderRadius:[0,0,0,0],borderWidth:[0,0,0,0],colorHover:"#444444",backgroundHover:"#eeeeee",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#ffffff",backgroundActive:"#444444",borderActive:["#444444","#444444","#444444","#444444"],textTransform:r[0].textTransform}]}):"highlight"===e?x({contentBorder:[0,0,0,0],contentBgColor:"#ffffff",titleAlignment:"left",showIcon:!0,iconStyle:"basic",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[14,16,14,16],marginTop:10,color:"#555555",background:"#f2f2f2",border:["#555555","#555555","#555555","#555555"],borderRadius:[6,6,6,6],borderWidth:[0,0,0,0],colorHover:"#444444",backgroundHover:"#eeeeee",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#ffffff",backgroundActive:"#f3690e",borderActive:["#f3690e","#f3690e","#f3690e","#f3690e"],textTransform:r[0].textTransform}]}):"subtle"===e?x({contentBorder:[0,1,1,1],contentBgColor:"#ffffff",titleAlignment:"left",showIcon:!0,iconStyle:"arrow",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[14,16,14,16],marginTop:10,color:"#444444",background:"#ffffff",border:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],borderRadius:[0,0,0,0],borderWidth:[1,1,1,2],colorHover:"#444444",backgroundHover:"#ffffff",borderHover:["#d4d4d4","#d4d4d4","#d4d4d4","#d4d4d4"],colorActive:"#444444",backgroundActive:"#ffffff",borderActive:["#eeeeee","#eeeeee","#eeeeee","#0e9cd1"],textTransform:r[0].textTransform}]}):"bottom"===e&&x({contentBorder:[0,0,0,0],contentBgColor:"#ffffff",titleAlignment:"left",showIcon:!1,iconStyle:"arrow",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[14,10,6,16],marginTop:8,color:"#444444",background:"#ffffff",border:["#f2f2f2","#f2f2f2","#f2f2f2","#f2f2f2"],borderRadius:[0,0,0,0],borderWidth:[0,0,4,0],colorHover:"#444444",backgroundHover:"#ffffff",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#333333",backgroundActive:"#ffffff",borderActive:["#0e9cd1","#0e9cd1","#0e9cd1","#0e9cd1"],textTransform:r[0].textTransform}]}))})(t),this.setState({showPreset:!1})}},l)))),!this.state.showPreset&&Object(a.createElement)(Id,null,Object(a.createElement)("div",{className:"kt-accordion-selecter"},Object(o.__)("Accordion","kadence-blocks")),Object(a.createElement)("div",{className:"kt-accordion-wrap",style:{maxWidth:g+"px"}},r[0].google&&Object(a.createElement)(yl,{config:oe}),Object(a.createElement)("div",{className:`kt-accordion-inner-wrap kt-accordion-${e} kt-start-active-pane-${i+1} kt-accodion-icon-style-${S&&_?S:"none"} kt-accodion-icon-side-${E||"right"}`},Object(a.createElement)(ot.InnerBlocks,{template:Gd(0===M?t:M),templateLock:!1,allowedBlocks:$d}))),Object(a.createElement)("div",{className:"kt-accordion-add-selecter"},Object(a.createElement)(Pd,{className:"kt-accordion-add",isPrimary:!0,onClick:()=>{const e=Hd("kadence/pane",{id:t+1,titleTag:F});x({paneCount:t+1}),this.props.insertPane(e)}},Object(a.createElement)(Fd,{icon:"plus"}),Object(o.__)("Add Accordion Item","kadence-blocks")),M>1&&Object(a.createElement)(Vd,{className:"kt-accordion-remove",label:Object(o.__)("Remove Accordion Item","kadence-blocks"),icon:"minus",onClick:()=>{const e=N[0]?N[0].innerBlocks[M-1].clientId:N.innerBlocks[M-1].clientId;this.props.removePane(e)}})))))}});const{Component:qd}=wp.element;(0,wp.blocks.registerBlockType)("kadence/accordion",{title:Object(o.__)("Accordion","kadence-blocks"),description:Object(o.__)("Create beautiful accordions! Each pane can contain any other block, customize title styles, content background, and borders.","kadence-blocks"),icon:{src:n.accordionBlock},category:"kadence-blocks",keywords:[Object(o.__)("accordion","kadence-blocks"),Object(o.__)("pane","kadence-blocks"),Object(o.__)("KB","kadence-blocks")],supports:{anchor:!0},attributes:{uniqueID:{type:"string",default:""},paneCount:{type:"number",default:2},showPresets:{type:"bool",default:!0},openPane:{type:"number",default:0},startCollapsed:{type:"bool",default:!1},linkPaneCollapse:{type:"bool",default:!0},minHeight:{type:"number",default:""},maxWidth:{type:"number",default:""},contentBgColor:{type:"string",default:""},contentBorderColor:{type:"string",default:"#eeeeee"},contentBorder:{type:"array",default:[0,1,1,1]},contentBorderRadius:{type:"array",default:[0,0,0,0]},contentPadding:{type:"array",default:[20,20,20,20]},contentTabletPadding:{type:"array",default:["","","",""]},contentMobilePadding:{type:"array",default:["","","",""]},contentPaddingType:{type:"string",default:"px"},titleAlignment:{type:"string",default:"left"},blockAlignment:{type:"string",default:"none"},titleStyles:{type:"array",default:[{size:[18,"",""],sizeType:"px",lineHeight:[24,"",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[10,14,10,14],marginTop:8,color:"#555555",background:"#f2f2f2",border:["#555555","#555555","#555555","#555555"],borderRadius:[0,0,0,0],borderWidth:[0,0,0,0],colorHover:"#444444",backgroundHover:"#eeeeee",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#ffffff",backgroundActive:"#444444",borderActive:["#444444","#444444","#444444","#444444"],textTransform:"",paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px"}]},showIcon:{type:"bool",default:!0},iconStyle:{type:"string",default:"basic"},iconSide:{type:"string",default:"right"},faqSchema:{type:"bool",default:!1}},getEditWrapperProps:function(e){var t=e.blockAlignment;if("full"===t||"wide"===t||"center"===t)return{"data-align":t}},edit:Zd,save:class extends qd{stripStringRender(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}render(){const{attributes:{uniqueID:e,paneCount:t,blockAlignment:l,maxWidth:o,titleAlignment:i,startCollapsed:n,linkPaneCollapse:r,showIcon:c,iconStyle:s,iconSide:d,openPane:b}}=this.props,m=al()("align"+(l||"none")),p=al()(`kt-accordion-wrap kt-accordion-wrap kt-accordion-id${e} kt-accordion-has-${t}-panes kt-active-pane-${b} kt-accordion-block kt-pane-header-alignment-${i} kt-accodion-icon-style-${s&&c?s:"none"} kt-accodion-icon-side-${d||"right"}`);return Object(a.createElement)("div",{className:m},Object(a.createElement)("div",{className:p,style:{maxWidth:o?o+"px":"none"}},Object(a.createElement)("div",{className:"kt-accordion-inner-wrap","data-allow-multiple-open":r?"false":"true","data-start-open":n?"none":b},Object(a.createElement)(ot.InnerBlocks.Content,null))))}}});const{RichText:Jd,InnerBlocks:Kd,InspectorControls:Qd}=wp.blockEditor,{Component:Yd}=wp.element,{PanelBody:Xd,ToggleControl:eb,SelectControl:tb}=wp.components,lb=[],ab=[];var ob=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{clientId:l}=t,{getBlockRootClientId:a,getBlocksByClientId:o}=e("core/block-editor"),i=a(l);return{accordionBlock:o(i),rootID:i}}),Object(A.withDispatch)((e,{clientId:t},{select:l})=>{const{getBlockRootClientId:a}=l("core/block-editor"),{updateBlockAttributes:o}=e("core/block-editor"),i=a(t);return{updatePaneCount(e){o(i,{paneCount:e})}}})])(class extends Yd{componentDidMount(){if(this.props.attributes.uniqueID?lb.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),lb.push("_"+this.props.clientId.substr(2,9))):lb.push(this.props.attributes.uniqueID):(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),lb.push("_"+this.props.clientId.substr(2,9))),this.props.attributes.id){if(void 0===ab[this.props.rootID])ab[this.props.rootID]=[this.props.attributes.id];else if(void 0!==ab[this.props.rootID])if(ab[this.props.rootID].includes(this.props.attributes.id)){const e=this.props.accordionBlock[0].attributes.paneCount+1;this.props.setAttributes({id:e}),this.props.updatePaneCount(e),ab[this.props.rootID].push(e)}else ab[this.props.rootID].push(this.props.attributes.id)}else{const e=this.props.accordionBlock[0].attributes.paneCount+1;this.props.setAttributes({id:e}),void 0===ab[this.props.rootID]?(ab.push(this.props.rootID),ab[this.props.rootID].push(e)):void 0!==ab[this.props.rootID]&&ab[this.props.rootID].push(e),this.props.updatePaneCount(e)}}render(){const{attributes:{id:e,uniqueID:t,title:l,icon:i,iconSide:n,hideLabel:r,titleTag:c},setAttributes:s}=this.props,d=c||"div";return Object(a.createElement)("div",{className:`kt-accordion-pane kt-accordion-pane-${e} kt-pane${t}`},Object(a.createElement)(Qd,null,Object(a.createElement)(Xd,{title:Object(o.__)("Title Icon Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Xe,{value:i,onChange:e=>s({icon:e})}),Object(a.createElement)(tb,{label:Object(o.__)("Icon Side","kadence-blocks"),value:n,options:[{value:"right",label:Object(o.__)("Right","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")}],onChange:e=>s({iconSide:e})}),Object(a.createElement)(eb,{label:Object(o.__)("Show only Icon","kadence-blocks"),checked:r,onChange:e=>s({hideLabel:e})}))),Object(a.createElement)(d,{className:"kt-accordion-header-wrap"},Object(a.createElement)("div",{className:"kt-blocks-accordion-header kt-acccordion-button-label-"+(r?"hide":"show")},Object(a.createElement)("div",{className:"kt-blocks-accordion-title-wrap"},i&&"left"===n&&Object(a.createElement)(Je,{className:`kt-btn-svg-icon kt-btn-svg-icon-${i} kt-btn-side-${n}`,name:i}),Object(a.createElement)(Jd,{className:"kt-blocks-accordion-title",tagName:"div",placeholder:Object(o.__)("Add Title","kadence-blocks"),onChange:e=>s({title:e}),value:l,keepPlaceholderOnFocus:!0}),i&&"right"===n&&Object(a.createElement)(Je,{className:`kt-btn-svg-icon kt-btn-svg-icon-${i} kt-btn-side-${n}`,name:i})),Object(a.createElement)("div",{className:"kt-blocks-accordion-icon-trigger"}))),Object(a.createElement)("div",{className:"kt-accordion-panel"},Object(a.createElement)("div",{className:"kt-accordion-panel-inner"},Object(a.createElement)(Kd,{templateLock:!1}))))}}),ib=wp.blockEditor,nb=ib.RichText,rb=ib.InnerBlocks;(0,wp.blocks.registerBlockType)("kadence/pane",{title:Object(o.__)("Pane","kadence-blocks"),icon:n.accordionBlock,category:"kadence-blocks",parent:["kadence/accordion"],attributes:{id:{type:"number",default:1},title:{type:"array",source:"children",selector:".kt-blocks-accordion-title",default:""},titleTag:{type:"string",default:"div"},hideLabel:{type:"bool",default:!1},icon:{type:"string",default:""},iconSide:{type:"string",default:"right"},uniqueID:{type:"string",default:""},faqSchema:{type:"bool",default:!1}},supports:{inserter:!1,reusable:!1,html:!1,anchor:!0},getEditWrapperProps:function(e){return{"data-pane":e.id}},edit:ob,save:function(e){var t=e.attributes,l=t.id,o=t.uniqueID,i=t.title,n=t.icon,r=t.iconSide,c=t.hideLabel,s=t.titleTag||"div";return Object(a.createElement)("div",{className:"kt-accordion-pane kt-accordion-pane-".concat(l," kt-pane").concat(o)},Object(a.createElement)(s,{className:"kt-accordion-header-wrap"},Object(a.createElement)("button",{className:"kt-blocks-accordion-header kt-acccordion-button-label-".concat(c?"hide":"show")},Object(a.createElement)("span",{className:"kt-blocks-accordion-title-wrap"},n&&"left"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n}),Object(a.createElement)(nb.Content,{className:"kt-blocks-accordion-title",tagName:"span",value:i}),n&&"right"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n})),Object(a.createElement)("span",{className:"kt-blocks-accordion-icon-trigger"}))),Object(a.createElement)("div",{className:"kt-accordion-panel"},Object(a.createElement)("div",{className:"kt-accordion-panel-inner"},Object(a.createElement)(rb.Content,null))))},deprecated:[{attributes:{id:{type:"number",default:1},title:{type:"array",source:"children",selector:".kt-blocks-accordion-title",default:""},titleTag:{type:"string",default:"div"},hideLabel:{type:"bool",default:!1},icon:{type:"string",default:""},iconSide:{type:"string",default:"right"},uniqueID:{type:"string",default:""}},save:function(e){var t=e.attributes,l=t.id,o=t.uniqueID,i=t.title,n=t.icon,r=t.iconSide,c=t.hideLabel,s=t.titleTag||"div";return Object(a.createElement)("div",{className:"kt-accordion-pane kt-accordion-pane-".concat(l," kt-pane").concat(o)},Object(a.createElement)(s,{className:"kt-accordion-header-wrap"},Object(a.createElement)("button",{className:"kt-blocks-accordion-header kt-acccordion-button-label-".concat(c?"hide":"show")},Object(a.createElement)("div",{className:"kt-blocks-accordion-title-wrap"},n&&"left"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n}),Object(a.createElement)(nb.Content,{className:"kt-blocks-accordion-title",tagName:"span",value:i}),n&&"right"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n})),Object(a.createElement)("div",{className:"kt-blocks-accordion-icon-trigger"}))),Object(a.createElement)("div",{className:"kt-accordion-panel"},Object(a.createElement)("div",{className:"kt-accordion-panel-inner"},Object(a.createElement)(rb.Content,null))))}}]});const{InspectorControls:cb,RichText:sb,BlockControls:db,BlockAlignmentToolbar:bb}=wp.blockEditor,{Component:mb,Fragment:pb,findDOMNode:gb}=wp.element,{PanelBody:ub,RangeControl:hb,ButtonGroup:vb,Tooltip:kb,IconButton:yb,Button:fb,SelectControl:Ob}=wp.components,jb=[];var _b=Object(v.compose)([Object(A.withDispatch)((e,{clientId:t,rootClientId:l})=>{const{removeBlock:a}=e("core/block-editor");return{onDelete:()=>{a(t,l)}}})])(class extends mb{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.saveListItem=this.saveListItem.bind(this),this.onSelectItem=this.onSelectItem.bind(this),this.onMove=this.onMove.bind(this),this.onMoveDown=this.onMoveDown.bind(this),this.onMoveUp=this.onMoveUp.bind(this),this.state={focusIndex:null,settings:{},marginControl:"individual",user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin"}}componentDidMount(){if(this.props.attributes.uniqueID)jb.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),jb.push("_"+this.props.clientId.substr(2,9))):jb.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/iconlist"]&&"object"==typeof e["kadence/iconlist"]&&Object.keys(e["kadence/iconlist"]).map(t=>{this.props.attributes[t]="items"===t?this.props.attributes[t].map((l,a)=>(l.icon=e["kadence/iconlist"][t][0].icon,l.size=e["kadence/iconlist"][t][0].size,l.color=e["kadence/iconlist"][t][0].color,l.background=e["kadence/iconlist"][t][0].background,l.border=e["kadence/iconlist"][t][0].border,l.borderRadius=e["kadence/iconlist"][t][0].borderRadius,l.padding=e["kadence/iconlist"][t][0].padding,l.borderWidth=e["kadence/iconlist"][t][0].borderWidth,l.style=e["kadence/iconlist"][t][0].style,l)):e["kadence/iconlist"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),jb.push("_"+this.props.clientId.substr(2,9))}void 0!==this.props.attributes.listMargin&&void 0!==this.props.attributes.listMargin[0]&&this.props.attributes.listMargin[0]===this.props.attributes.listMargin[1]&&this.props.attributes.listMargin[0]===this.props.attributes.listMargin[2]&&this.props.attributes.listMargin[0]===this.props.attributes.listMargin[3]?this.setState({marginControl:"linked"}):this.setState({marginControl:"individual"});const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/iconlist"]&&"object"==typeof e["kadence/iconlist"]&&this.setState({settings:e["kadence/iconlist"]})}componentDidUpdate(e){!this.props.isSelected&&e.isSelected&&this.setState({focusIndex:null})}onSelectItem(e){return()=>{this.state.focusIndex!==e&&this.setState({focusIndex:e})}}onMove(e,t){const l=[...this.props.attributes.items];l.splice(t,1,this.props.attributes.items[e]),l.splice(e,1,this.props.attributes.items[t]),this.setState({focusIndex:t}),this.props.setAttributes({items:l})}onMoveDown(e){return()=>{e!==this.props.attributes.items.length-1&&this.onMove(e,e+1)}}onMoveUp(e){return()=>{0!==e&&this.onMove(e,e-1)}}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}saveListItem(e,t){const l=this.props.attributes.items.map((l,a)=>(a===t&&(l={...l,...e}),l));this.props.setAttributes({items:l})}render(){const{attributes:{listCount:e,items:t,listStyles:l,columns:i,listLabelGap:r,listGap:c,blockAlignment:s,uniqueID:b,listMargin:m,iconAlign:p},attributes:g,className:u,setAttributes:h,isSelected:v}=this.props,{marginControl:k}=this.state,y={google:{families:[l[0].family+(l[0].variant?":"+l[0].variant:"")]}},f=l[0].google?y:"",O=e=>{const t=l.map((t,l)=>(0===l&&(t={...t,...e}),t));h({listStyles:t})},j=e=>{const l=t.map((t,l)=>({...t,...e}));h({items:l})},_=[{key:"top",name:Object(o.__)("Top","kadence-blocks"),icon:n.aligntop},{key:"middle",name:Object(o.__)("Middle","kadence-blocks"),icon:n.alignmiddle},{key:"bottom",name:Object(o.__)("Bottom","kadence-blocks"),icon:n.alignbottom}],S=(e,t)=>{e&&void 0!==e[0]&&void 0!==e[0].attributes&&e[0].attributes.content&&this.saveListItem({text:e[0].attributes.content},t)},E=(e,t)=>{const l=Math.abs(this.props.attributes.listCount);if(1===l)this.props.onDelete();else{const e=Math.abs(l-1),a=Hl()(this.props.attributes.items,(e,l)=>t!==l),o=Math.abs(t-1);this.setState({focusIndex:o}),h({items:a,listCount:e})}},w=(e,t,l)=>{const a=t.replace(e,""),o=Math.abs(1+this.props.attributes.listCount),i=this.props.attributes.items,n=[{icon:i[0].icon,link:i[0].link,target:i[0].target,size:i[0].size,text:i[0].text,width:i[0].width,color:i[0].color,background:i[0].background,border:i[0].border,borderRadius:i[0].borderRadius,borderWidth:i[0].borderWidth,padding:i[0].padding,style:i[0].style}],r=Math.abs(l+1);bl()(o,t=>{let o=t;0===t?0===l&&(n[0].text=a):t===r?n.push({icon:i[l].icon,link:i[l].link,target:i[l].target,size:i[l].size,text:e,width:i[l].width,color:i[l].color,background:i[l].background,border:i[l].border,borderRadius:i[l].borderRadius,borderWidth:i[l].borderWidth,padding:i[l].padding,style:i[l].style}):t===l?n.push({icon:i[l].icon,link:i[l].link,target:i[l].target,size:i[l].size,text:a,width:i[l].width,color:i[l].color,background:i[l].background,border:i[l].border,borderRadius:i[l].borderRadius,borderWidth:i[l].borderWidth,padding:i[l].padding,style:i[l].style}):(t>r&&(o=Math.abs(t-1)),n.push({icon:i[o].icon,link:i[o].link,target:i[o].target,size:i[o].size,text:i[o].text,width:i[o].width,color:i[o].color,background:i[o].background,border:i[o].border,borderRadius:i[o].borderRadius,borderWidth:i[o].borderWidth,padding:i[o].padding,style:i[o].style}))}),h({items:n}),h({listCount:o}),this.setState({focusIndex:r}),x(r)},x=e=>{setTimeout((function(){document.querySelector(`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-${e}`)&&document.querySelector(`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-${e}`).querySelector(".rich-text").focus()}),100)},C=e=>{if(v&&this.state.focusIndex===e&&kadence_blocks_params.dynamic_enabled)return Object(a.createElement)(ja,Be()({dynamicAttribute:"items:"+e+":text"},this.props))},M=l=>Object(a.createElement)(ub,{title:Object(o.__)("Item","kadence-blocks")+" "+(l+1)+" "+Object(o.__)("Settings","kadence-blocks"),initialOpen:1===e},Object(a.createElement)(ka,Be()({label:Object(o.__)("Link","kadence-blocks"),url:t[l].link,onChangeUrl:e=>{this.saveListItem({link:e},l)},additionalControls:!0,opensInNewTab:!(!t[l].target||"_blank"!=t[l].target),onChangeTarget:e=>{e?this.saveListItem({target:"_blank"},l):this.saveListItem({target:"_self"},l)},dynamicAttribute:"items:"+l+":link"},this.props)),Object(a.createElement)(Xe,{value:t[l].icon,onChange:e=>{this.saveListItem({icon:e},l)}}),Object(a.createElement)(hb,{label:Object(o.__)("Icon Size"),value:t[l].size,onChange:e=>{this.saveListItem({size:e},l)},min:5,max:250}),t[l].icon&&"fe"===t[l].icon.substring(0,2)&&Object(a.createElement)(hb,{label:Object(o.__)("Line Width"),value:t[l].width,onChange:e=>{this.saveListItem({width:e},l)},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color"),colorValue:t[l].color?t[l].color:"",colorDefault:"",onColorChange:e=>{this.saveListItem({color:e},l)}}),Object(a.createElement)(Ob,{label:Object(o.__)("Icon Style"),value:t[l].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:e=>{this.saveListItem({style:e},l)}}),"default"!==t[l].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background"),colorValue:t[l].background?t[l].background:"",colorDefault:"",onColorChange:e=>{this.saveListItem({background:e},l)}}),"default"!==t[l].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:t[l].border?t[l].border:"",colorDefault:"",onColorChange:e=>{this.saveListItem({border:e},l)}}),"default"!==t[l].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Size (px)"),value:t[l].borderWidth,onChange:e=>{this.saveListItem({borderWidth:e},l)},min:0,max:20}),"default"!==t[l].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Radius (%)"),value:t[l].borderRadius,onChange:e=>{this.saveListItem({borderRadius:e},l)},min:0,max:50}),"default"!==t[l].style&&Object(a.createElement)(hb,{label:Object(o.__)("Padding (px)"),value:t[l].padding,onChange:e=>{this.saveListItem({padding:e},l)},min:0,max:180})),N=Object(a.createElement)("div",null,bl()(e,e=>M(e))),T=(Object(a.createElement)("div",null,bl()(e,e=>C(e))),l=>Object(a.createElement)("div",{className:`kt-svg-icon-list-style-${t[l].style} kt-svg-icon-list-item-wrap kt-svg-icon-list-item-${l}`},t[l].icon&&Object(a.createElement)(Je,{className:"kt-svg-icon-list-single kt-svg-icon-list-single-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}),Object(a.createElement)(sb,{tagName:"div",value:t[l].text,onChange:e=>{this.saveListItem({text:e},l)},onSplit:e=>w(e||"",t[l].text,l),onRemove:e=>{E(0,l)},unstableOnFocus:this.onSelectItem(l),onReplace:e=>{S(e,l)},className:"kt-svg-icon-list-text"}),Object(a.createElement)("div",{className:"kadence-blocks-list-item__control-menu"},Object(a.createElement)(fb,{icon:"arrow-up",onClick:0===l?void 0:this.onMoveUp(l),className:"kadence-blocks-list-item__move-up",label:Object(o.__)("Move Item Up","kadence-blocks"),"aria-disabled":0===l,disabled:!this.state.focusIndex===l}),Object(a.createElement)(fb,{icon:"arrow-down",onClick:l+1===e?void 0:this.onMoveDown(l),className:"kadence-blocks-list-item__move-down",label:Object(o.__)("Move Item Down","kadence-blocks"),"aria-disabled":l+1===e,disabled:!this.state.focusIndex===l}),Object(a.createElement)(fb,{icon:"no-alt",onClick:()=>E(0,l),className:"kadence-blocks-list-item__remove",label:Object(o.__)("Remove Item","kadence-blocks"),disabled:!this.state.focusIndex===l}))));return Object(a.createElement)("div",{className:u},Object(a.createElement)(db,null,Object(a.createElement)(bb,{value:s,controls:["center","left","right"],onChange:e=>h({blockAlignment:e})})),this.showSettings("allSettings")&&Object(a.createElement)(cb,null,Object(a.createElement)(ub,{title:Object(o.__)("List Controls"),initialOpen:!0},Object(a.createElement)(qn,{label:Object(o.__)("Number of Items"),value:e,onChange:e=>{const l=t;if(l.length<e){const a=Math.abs(e-l.length);bl()(a,e=>{l.push({icon:l[0].icon,link:l[0].link,target:l[0].target,size:l[0].size,width:l[0].width,color:l[0].color,background:l[0].background,border:l[0].border,borderRadius:l[0].borderRadius,borderWidth:l[0].borderWidth,padding:l[0].padding,style:l[0].style})}),h({items:l}),this.saveListItem({size:t[0].size},0)}h({listCount:e})},min:1,max:40,step:1}),this.showSettings("column")&&Object(a.createElement)(hb,{label:Object(o.__)("List Columns"),value:i,onChange:e=>{h({columns:e})},min:1,max:3}),this.showSettings("spacing")&&Object(a.createElement)(pb,null,Object(a.createElement)(hb,{label:Object(o.__)("List Vertical Spacing"),value:c,onChange:e=>{h({listGap:e})},min:0,max:60}),Object(a.createElement)(hb,{label:Object(o.__)("List Horizontal Icon and Label Spacing"),value:r,onChange:e=>{h({listLabelGap:e})},min:0,max:60}),Object(a.createElement)("div",{className:"kt-btn-size-settings-container"},Object(a.createElement)("h2",{className:"kt-beside-btn-group"},Object(o.__)("Icon Align")),Object(a.createElement)(vb,{className:"kt-button-size-type-options","aria-label":Object(o.__)("Icon Align")},d()(_,({name:e,icon:t,key:l})=>Object(a.createElement)(kb,{text:e},Object(a.createElement)(fb,{key:l,className:"kt-btn-size-btn",isSmall:!0,isPrimary:p===l,"aria-pressed":p===l,onClick:()=>h({iconAlign:l})},t))))),Object(a.createElement)(sn,{label:Object(o.__)("List Margin"),measurement:void 0!==m?m:[0,0,10,0],control:k,onChange:e=>h({listMargin:e}),onControl:e=>this.setState({marginControl:e}),min:-200,max:200,step:1}))),this.showSettings("textStyle")&&Object(a.createElement)(ub,{title:Object(o.__)("List Text Styling"),initialOpen:!1},Object(a.createElement)(Bt,{label:Object(o.__)("Color Settings"),colorValue:l[0].color?l[0].color:"",colorDefault:"",onColorChange:e=>{O({color:e})}}),Object(a.createElement)(ie,{fontSize:l[0].size,onFontSize:e=>O({size:e}),fontSizeType:l[0].sizeType,onFontSizeType:e=>O({sizeType:e}),lineHeight:l[0].lineHeight,onLineHeight:e=>O({lineHeight:e}),lineHeightType:l[0].lineType,onLineHeightType:e=>O({lineType:e}),letterSpacing:l[0].letterSpacing,onLetterSpacing:e=>O({letterSpacing:e}),fontFamily:l[0].family,onFontFamily:e=>O({family:e}),onFontChange:e=>{O({family:e.value,google:e.google})},onFontArrayChange:e=>O(e),googleFont:l[0].google,onGoogleFont:e=>O({google:e}),loadGoogleFont:l[0].loadGoogle,onLoadGoogleFont:e=>O({loadGoogle:e}),fontVariant:l[0].variant,onFontVariant:e=>O({variant:e}),fontWeight:l[0].weight,onFontWeight:e=>O({weight:e}),fontStyle:l[0].style,onFontStyle:e=>O({style:e}),fontSubset:l[0].subset,onFontSubset:e=>O({subset:e}),textTransform:l[0].textTransform,onTextTransform:e=>O({textTransform:e})})),this.showSettings("joinedIcons")&&Object(a.createElement)(ub,{title:Object(o.__)("Edit All Icon Styles Together"),initialOpen:!1},Object(a.createElement)("p",null,Object(o.__)("PLEASE NOTE: This will override individual list item settings.")),Object(a.createElement)(Xe,{value:t[0].icon,onChange:e=>{e!==t[0].icon&&j({icon:e})}}),Object(a.createElement)(hb,{label:Object(o.__)("Icon Size"),value:t[0].size,onChange:e=>{j({size:e})},min:5,max:250}),t[0].icon&&"fe"===t[0].icon.substring(0,2)&&Object(a.createElement)(hb,{label:Object(o.__)("Line Width"),value:t[0].width,onChange:e=>{j({width:e})},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color"),colorValue:t[0].color?t[0].color:"",colorDefault:"",onColorChange:e=>{j({color:e})}}),Object(a.createElement)(Ob,{label:Object(o.__)("Icon Style"),value:t[0].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:e=>{j({style:e})}}),"default"!==t[0].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background"),colorValue:t[0].background?t[0].background:"",colorDefault:"",onColorChange:e=>{j({background:e})}}),"default"!==t[0].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:t[0].border?t[0].border:"",colorDefault:"",onColorChange:e=>{j({border:e})}}),"default"!==t[0].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Size (px)"),value:t[0].borderWidth,onChange:e=>{j({borderWidth:e})},min:0,max:20}),"default"!==t[0].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Radius (%)"),value:t[0].borderRadius,onChange:e=>{j({borderRadius:e})},min:0,max:50}),"default"!==t[0].style&&Object(a.createElement)(hb,{label:Object(o.__)("Padding (px)"),value:t[0].padding,onChange:e=>{j({padding:e})},min:0,max:180})),Object(a.createElement)("div",{className:"kt-sidebar-settings-spacer"}),this.showSettings("individualIcons")&&Object(a.createElement)(ub,{title:Object(o.__)("Individual list Item Settings","kadence-blocks"),initialOpen:!1},N)),Object(a.createElement)("style",null,`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-wrap:not(:last-child) { margin-bottom: ${c}px; }`,`body:not(.rtl) .kt-svg-icon-list-items${b} .kt-svg-icon-list-single { margin-right: ${r}px; }`,`body.rtl .kt-svg-icon-list-items${b} .kt-svg-icon-list-single { margin-left: ${r}px; }`,`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-wrap {\n\t\t\t\t\t\t\tfont-weight: ${l[0].weight?l[0].weight:""};\n\t\t\t\t\t\t\tfont-style: ${l[0].style?l[0].style:""};\n\t\t\t\t\t\t\tcolor: ${l[0].color?dn(l[0].color):""};\n\t\t\t\t\t\t\tfont-size: ${l[0].size&&l[0].size[0]?l[0].size[0]+l[0].sizeType:""};\n\t\t\t\t\t\t\tline-height: ${l[0].lineHeight&&l[0].lineHeight[0]?l[0].lineHeight[0]+l[0].lineType:""};\n\t\t\t\t\t\t\tletter-spacing: ${l[0].letterSpacing?l[0].letterSpacing+"px":""};\n\t\t\t\t\t\t\tfont-family: ${l[0].family?l[0].family:""};\n\t\t\t\t\t\t\ttext-transform: ${l[0].textTransform?l[0].textTransform:""};\n\t\t\t\t\t\t}`),l[0].google&&Object(a.createElement)(yl,{config:f}),Object(a.createElement)("div",{ref:this.container,className:`kt-svg-icon-list-container kt-svg-icon-list-items${b} kt-svg-icon-list-columns-${i}${void 0!==p&&"middle"!==p?" kt-list-icon-align"+p:""}`,style:{margin:m&&void 0!==m[0]&&null!==m[0]?m[0]+"px "+m[1]+"px "+m[2]+"px "+m[3]+"px":""}},bl()(e,e=>T(e)),v&&Object(a.createElement)(pb,null,Object(a.createElement)(fb,{isDefault:!0,icon:Ma.a,onClick:()=>{const l=t,a=e+1;if(l.length<a){const e=Math.abs(a-l.length);bl()(e,e=>{l.push({icon:l[0].icon,link:l[0].link,target:l[0].target,size:l[0].size,width:l[0].width,color:l[0].color,background:l[0].background,border:l[0].border,borderRadius:l[0].borderRadius,borderWidth:l[0].borderWidth,padding:l[0].padding,style:l[0].style})}),h({items:l}),this.saveListItem({size:t[0].size},0)}h({listCount:a})},label:Object(o.__)("Add List Item","kadence-blocks")}))))}});const{registerBlockType:Sb,createBlock:Eb,getBlockAttributes:wb}=wp.blocks,{RichText:xb}=wp.blockEditor,{replace:Cb,join:Mb,split:Nb,create:Tb,toHTMLString:zb,LINE_SEPARATOR:Hb,__UNSTABLE_LINE_SEPARATOR:Bb}=wp.richText,{Fragment:Ib}=wp.element,Rb=Hb||Bb;Sb("kadence/iconlist",{title:Object(o.__)("Icon List","kadence-blocks"),icon:{src:n.iconlistBlock},description:Object(o.__)("Create engaging lists with icons for bullets.","kadence-blocks"),category:"kadence-blocks",keywords:[Object(o.__)("icon","kadence-blocks"),Object(o.__)("list","kadence-blocks"),"KB"],supports:{ktdynamic:!0},attributes:{items:{type:"array",default:[{icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:"",color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"}]},listStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",textTransform:""}]},listCount:{type:"number",default:1},columns:{type:"number",default:1},listGap:{type:"number",default:5},listLabelGap:{type:"number",default:10},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"none"},listMargin:{type:"array",default:[0,0,10,0]},iconAlign:{type:"string",default:"middle"}},transforms:{from:[{type:"block",blocks:["core/list"],transform:({values:e})=>{const t=Nb(Tb({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),Rb),l=[{icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:zb({value:t[0]}),color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"}],a=Math.abs(t.length);return bl()(a,e=>{0!==e&&l.push({icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:zb({value:t[e]}),color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"})}),Eb("kadence/iconlist",{items:l,listCount:a})}}],to:[{type:"block",blocks:["core/list"],transform:e=>Eb("core/list",{values:zb({value:Mb(e.items.map(({text:e})=>Tb({html:e})),Rb),multilineTag:"li"})})}]},getEditWrapperProps({blockAlignment:e}){if("left"===e||"right"===e||"center"===e)return{"data-align":e}},edit:_b,save:e=>{const{attributes:{items:t,listCount:l,columns:o,blockAlignment:i,iconAlign:n,uniqueID:r}}=e;return Object(a.createElement)("div",{className:`kt-svg-icon-list-items kt-svg-icon-list-items${r} kt-svg-icon-list-columns-${o} align${i||"none"}${void 0!==n&&"middle"!==n?" kt-list-icon-align"+n:""}`},Object(a.createElement)("ul",{className:"kt-svg-icon-list"},bl()(l,e=>{return l=e,Object(a.createElement)("li",{className:`kt-svg-icon-list-style-${t[l].style} kt-svg-icon-list-item-wrap kt-svg-icon-list-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0},Object(a.createElement)(Je,{className:"kt-svg-icon-list-single kt-svg-icon-list-single-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}),Object(a.createElement)(xb.Content,{tagName:"span",value:t[l].text,className:"kt-svg-icon-list-text"})),t[l].icon&&!t[l].link&&Object(a.createElement)(Ib,null,Object(a.createElement)(Je,{className:"kt-svg-icon-list-single kt-svg-icon-list-single-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0,marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}}),Object(a.createElement)(xb.Content,{tagName:"span",value:t[l].text,className:"kt-svg-icon-list-text"})));var l})))}});var Pb={uniqueID:{type:"string",default:""},style:{type:"string",default:"basic"},layout:{type:"string",default:"grid"},columns:{type:"array",default:[1,1,1,1,1,1]},columnControl:{type:"string",default:"linked"},columnGap:{type:"number",default:30},autoPlay:{type:"bool",default:!1},autoSpeed:{type:"number",default:7e3},transSpeed:{type:"number",default:400},slidesScroll:{type:"string",default:"1"},arrowStyle:{type:"string",default:"whiteondark"},dotStyle:{type:"string",default:"dark"},hAlign:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:500},containerBackground:{type:"string",default:""},containerBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:["","","",""]},containerBorderRadius:{type:"number",default:""},containerPadding:{type:"array",default:[20,20,20,20]},testimonials:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",subtype:"",media:"image",icon:"fas_quote-left",isize:50,istroke:2,ititle:"",color:"#555555",title:"",content:"",name:"",occupation:"",rating:5}]},mediaStyles:{type:"array",default:[{width:60,backgroundSize:"cover",background:"",backgroundOpacity:1,border:"#555555",borderRadius:"",borderWidth:[0,0,0,0],padding:[0,0,0,0],margin:["","","",""],ratio:""}]},itemsCount:{type:"number",default:1},displayMedia:{type:"bool",default:!0},displayTitle:{type:"bool",default:!0},titleFont:{type:"array",default:[{color:"",level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],margin:[0,0,15,0]}]},displayContent:{type:"bool",default:!0},contentFont:{type:"array",default:[{color:"#333333",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayName:{type:"bool",default:!0},nameFont:{type:"array",default:[{color:"#333333",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayOccupation:{type:"bool",default:!0},occupationFont:{type:"array",default:[{color:"#555555",size:[15,"",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayRating:{type:"bool",default:!1},ratingStyles:{type:"array",default:[{color:"#ffd700",size:16,margin:[10,0,10,0],iconSpacing:"",icon:"fas_star",stroke:2}]},displayIcon:{type:"bool",default:!1},iconStyles:{type:"array",default:[{size:30,margin:["","","",""],padding:["","","",""],borderWidth:["","","",""],borderRadius:"",border:"",borderOpacity:1,color:"",background:"",backgroundOpacity:1,title:"",icon:"fas_quote-left",stroke:2}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},containerMinHeight:{type:"array",default:["","",""]},containerVAlign:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},contentMinHeight:{type:"array",default:["","",""]},showPresets:{type:"bool",default:!0},wrapperPaddingType:{type:"string",default:"px"},wrapperPadding:{type:"array",default:["","","",""]},wrapperTabletPadding:{type:"array",default:["","","",""]},wrapperMobilePadding:{type:"array",default:["","","",""]}};const{Component:Ab,Fragment:Lb}=wp.element,{Button:Fb,FormFileUpload:Wb,Placeholder:Db,DropZone:Ub}=wp.components,Vb=({src:e,onChange:t,onSubmit:l,onClose:i})=>Object(a.createElement)(ot.URLPopover,{onClose:i},Object(a.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:l},Object(a.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(o.__)("URL","kadence-blocks"),placeholder:Object(o.__)("Paste or type URL","kadence-blocks"),onChange:t,value:e}),Object(a.createElement)(Fb,{className:"block-editor-media-placeholder__url-input-submit-button",icon:aa.a,label:Object(o.__)("Apply","kadence-blocks"),type:"submit"})));var $b=Object(A.withSelect)(e=>{const{getSettings:t}=e("core/block-editor");return{mediaUpload:t().mediaUpload}})(class extends Ab{constructor(){super(...arguments),this.state={src:"",isURLInputVisible:!1},this.onChangeSrc=this.onChangeSrc.bind(this),this.onSubmitSrc=this.onSubmitSrc.bind(this),this.onUpload=this.onUpload.bind(this),this.onFilesUpload=this.onFilesUpload.bind(this),this.openURLInput=this.openURLInput.bind(this),this.closeURLInput=this.closeURLInput.bind(this)}onlyAllowsImages(){const{allowedTypes:e}=this.props;return!!e&&Qa()(e,e=>"image"===e||ao()(e,"image/"))}componentDidMount(){this.setState({src:ce()(this.props.value,["src"],"")})}componentDidUpdate(e){ce()(e.value,["src"],"")!==ce()(this.props.value,["src"],"")&&this.setState({src:ce()(this.props.value,["src"],"")})}onChangeSrc(e){this.setState({src:e.target.value})}onSubmitSrc(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}onUpload(e){this.onFilesUpload(e.target.files)}onFilesUpload(e){const{addToGallery:t,allowedTypes:l,mediaUpload:a,multiple:o,onError:i,onSelect:n,onFilesPreUpload:r=to.a}=this.props;let c;if(r(e),o)if(t){let e=[];c=t=>{const l=(this.props.value||[]).filter(t=>t.id?!e.some(({id:e})=>Number(e)===Number(t.id)):!e.some(({urlSlug:e})=>t.url.includes(e)));n(l.concat(t)),e=t.map(e=>{const t=e.url.lastIndexOf("."),l=e.url.slice(0,t);return{id:e.id,urlSlug:l}})}}else c=n;else c=([e])=>n(e);a({allowedTypes:l,filesList:e,onFileChange:c,onError:i})}openURLInput(){this.setState({isURLInputVisible:!0})}closeURLInput(){this.setState({isURLInputVisible:!1})}renderPlaceholder(e,t){const{allowedTypes:l=[],className:i,icon:n,isAppender:r,labels:c={},onDoubleClick:s,mediaPreview:d,notices:b,onSelectURL:m,mediaUpload:p,children:g}=this.props;let u=c.instructions,h=c.title;if(p||m||(u=Object(o.__)("To edit this block, you need permission to upload media.","kadence-blocks")),void 0===u||void 0===h){const e=1===l.length,t=e&&"audio"===l[0],a=e&&"image"===l[0],i=e&&"video"===l[0];void 0===u&&p&&(u=Object(o.__)("Upload a media file or pick one from your media library.","kadence-blocks"),t?u=Object(o.__)("Upload an audio file, pick one from your media library, or add one with a URL.","kadence-blocks"):a?u=Object(o.__)("Upload an image file, pick one from your media library, or add one with a URL.","kadence-blocks"):i&&(u=Object(o.__)("Upload a video file, pick one from your media library, or add one with a URL.","kadence-blocks"))),void 0===h&&(h=Object(o.__)("Media","kadence-blocks"),t?h=Object(o.__)("Audio","kadence-blocks"):a?h=Object(o.__)("Image","kadence-blocks"):i&&(h=Object(o.__)("Video","kadence-blocks")))}const v=al()("block-editor-media-placeholder",i,{"is-appender":r});return Object(a.createElement)(Db,{icon:n,label:h,instructions:u,className:v,notices:b,onClick:t,onDoubleClick:s,preview:d},e,g)}renderDropZone(){const{disableDropZone:e,onHTMLDrop:t=to.a}=this.props;return e?null:Object(a.createElement)(Ub,{onFilesDrop:this.onFilesUpload,onHTMLDrop:t})}renderCancelLink(){const{onCancel:e}=this.props;return e&&Object(a.createElement)(Fb,{className:"block-editor-media-placeholder__cancel-button",title:Object(o.__)("Cancel","kadence-blocks"),isLink:!0,onClick:e},Object(o.__)("Cancel","kadence-blocks"))}renderUrlSelectionUI(){const{onSelectURL:e}=this.props;if(!e)return null;const{isURLInputVisible:t,src:l}=this.state;return Object(a.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(a.createElement)(Fb,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(o.__)("Insert from URL","kadence-blocks")),t&&Object(a.createElement)(Vb,{src:l,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}renderMediaUploadChecked(){const{accept:e,addToGallery:t,allowedTypes:l=[],isAppender:i,mediaUpload:n,multiple:r=!1,onSelect:c,value:s={}}=this.props,d=Object(a.createElement)(ot.MediaUpload,{addToGallery:t,gallery:r&&this.onlyAllowsImages(),multiple:r,onSelect:c,allowedTypes:l,value:Xa()(s)?s.map(({id:e})=>e):s.id,render:({open:e})=>Object(a.createElement)(Fb,{isPrimary:!0,onClick:t=>{t.stopPropagation(),e()}},Object(o.__)("Select Image","kadence-blocks"))});if(n&&i)return Object(a.createElement)(Lb,null,this.renderDropZone(),Object(a.createElement)(Wb,{onChange:this.onUpload,accept:e,multiple:r,render:({openFileDialog:e})=>{const t=Object(a.createElement)(Lb,null,d,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(t,e)}}));if(n){const e=Object(a.createElement)(Lb,null,this.renderDropZone(),d,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(e)}return this.renderPlaceholder(d)}render(){const{disableMediaButtons:e,dropZoneUIOnly:t}=this.props;return t||e?Object(a.createElement)(ot.MediaUploadCheck,null,this.renderDropZone()):Object(a.createElement)(ot.MediaUploadCheck,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}});const{Component:Gb,Fragment:Zb}=wp.element,{MediaUpload:qb,RichText:Jb,AlignmentToolbar:Kb,InspectorControls:Qb,BlockControls:Yb}=wp.blockEditor,{Button:Xb,ButtonGroup:em,Dashicon:tm,PanelBody:lm,RangeControl:am,Toolbar:om,TextControl:im,ToggleControl:nm,SelectControl:rm,Tooltip:cm}=wp.components,sm=[];var dm=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{__experimentalGetPreviewDeviceType:l}=e("core/edit-post");return{getPreviewDevice:l?l():"Desktop"}})])(class extends Gb{constructor(){super(...arguments),this.onMove=this.onMove.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBackward=this.onMoveBackward.bind(this),this.showSettings=this.showSettings.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={containerPaddingControl:"linked",containerBorderControl:"linked",mediaBorderControl:"linked",mediaPaddingControl:"linked",mediaMarginControl:"linked",titlePaddingControl:"linked",titleMarginControl:"individual",ratingMarginControl:"individual",iconBorderControl:"linked",iconMarginControl:"linked",iconPaddingControl:"linked",showPreset:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}componentDidMount(){if(this.props.attributes.uniqueID)sm.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),sm.push("_"+this.props.clientId.substr(2,9))):sm.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/testimonials"]&&"object"==typeof e["kadence/testimonials"]&&Object.keys(e["kadence/testimonials"]).map(t=>{this.props.attributes[t]=e["kadence/testimonials"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),sm.push("_"+this.props.clientId.substr(2,9))}this.props.attributes.mediaStyles[0].borderWidth[0]===this.props.attributes.mediaStyles[0].borderWidth[1]&&this.props.attributes.mediaStyles[0].borderWidth[0]===this.props.attributes.mediaStyles[0].borderWidth[2]&&this.props.attributes.mediaStyles[0].borderWidth[0]===this.props.attributes.mediaStyles[0].borderWidth[3]?this.setState({mediaBorderControl:"linked"}):this.setState({mediaBorderControl:"individual"}),this.props.attributes.mediaStyles[0].padding[0]===this.props.attributes.mediaStyles[0].padding[1]&&this.props.attributes.mediaStyles[0].padding[0]===this.props.attributes.mediaStyles[0].padding[2]&&this.props.attributes.mediaStyles[0].padding[0]===this.props.attributes.mediaStyles[0].padding[3]?this.setState({mediaPaddingControl:"linked"}):this.setState({mediaPaddingControl:"individual"}),this.props.attributes.mediaStyles[0].margin[0]===this.props.attributes.mediaStyles[0].margin[1]&&this.props.attributes.mediaStyles[0].margin[0]===this.props.attributes.mediaStyles[0].margin[2]&&this.props.attributes.mediaStyles[0].margin[0]===this.props.attributes.mediaStyles[0].margin[3]?this.setState({mediaMarginControl:"linked"}):this.setState({mediaMarginControl:"individual"}),this.props.attributes.titleFont[0].padding[0]===this.props.attributes.titleFont[0].padding[1]&&this.props.attributes.titleFont[0].padding[0]===this.props.attributes.titleFont[0].padding[2]&&this.props.attributes.titleFont[0].padding[0]===this.props.attributes.titleFont[0].padding[3]?this.setState({titlePaddingControl:"linked"}):this.setState({titlePaddingControl:"individual"}),this.props.attributes.titleFont[0].margin[0]===this.props.attributes.titleFont[0].margin[1]&&this.props.attributes.titleFont[0].margin[0]===this.props.attributes.titleFont[0].margin[2]&&this.props.attributes.titleFont[0].margin[0]===this.props.attributes.titleFont[0].margin[3]?this.setState({titleMarginControl:"linked"}):this.setState({titleMarginControl:"individual"}),this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[1]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[2]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[3]?this.setState({containerBorderControl:"linked"}):this.setState({containerBorderControl:"individual"}),this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[1]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[2]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[3]?this.setState({containerPaddingControl:"linked"}):this.setState({containerPaddingControl:"individual"}),this.props.attributes.ratingStyles[0]&&this.props.attributes.ratingStyles[0].margin&&this.props.attributes.ratingStyles[0].margin[0]===this.props.attributes.ratingStyles[0].margin[1]&&this.props.attributes.ratingStyles[0].margin[0]===this.props.attributes.ratingStyles[0].margin[2]&&this.props.attributes.ratingStyles[0].margin[0]===this.props.attributes.ratingStyles[0].margin[3]?this.setState({ratingMarginControl:"linked"}):this.setState({ratingMarginControl:"individual"}),void 0!==this.props.attributes.iconStyles[0].borderWidth&&void 0!==this.props.attributes.iconStyles[0].borderWidth[0]&&this.props.attributes.iconStyles[0].borderWidth[0]===this.props.attributes.iconStyles[0].borderWidth[1]&&this.props.attributes.iconStyles[0].borderWidth[0]===this.props.attributes.iconStyles[0].borderWidth[2]&&this.props.attributes.iconStyles[0].borderWidth[0]===this.props.attributes.iconStyles[0].borderWidth[3]?this.setState({iconBorderControl:"linked"}):this.setState({iconBorderControl:"individual"}),void 0!==this.props.attributes.iconStyles[0].padding&&void 0!==this.props.attributes.iconStyles[0].padding[0]&&this.props.attributes.iconStyles[0].padding[0]===this.props.attributes.iconStyles[0].padding[1]&&this.props.attributes.iconStyles[0].padding[0]===this.props.attributes.iconStyles[0].padding[2]&&this.props.attributes.iconStyles[0].padding[0]===this.props.attributes.iconStyles[0].padding[3]?this.setState({iconPaddingControl:"linked"}):this.setState({iconPaddingControl:"individual"}),this.props.attributes.iconStyles[0].margin[0]===this.props.attributes.iconStyles[0].margin[1]&&this.props.attributes.iconStyles[0].margin[0]===this.props.attributes.iconStyles[0].margin[2]&&this.props.attributes.iconStyles[0].margin[0]===this.props.attributes.iconStyles[0].margin[3]?this.setState({iconMarginControl:"linked"}):this.setState({iconMarginControl:"individual"});const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/testimonials"]&&"object"==typeof e["kadence/testimonials"]&&this.setState({settings:e["kadence/testimonials"]})}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a)return a;if(void 0!==l&&""!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l)return l;return t}onMove(e,t){const l=[...this.props.attributes.testimonials];l.splice(t,1,this.props.attributes.testimonials[e]),l.splice(e,1,this.props.attributes.testimonials[t]),this.props.setAttributes({testimonials:l})}onMoveForward(e){return()=>{e!==this.props.attributes.testimonials.length-1&&this.onMove(e,e+1)}}onMoveBackward(e){return()=>{0!==e&&this.onMove(e,e-1)}}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}render(){const{attributes:{uniqueID:e,testimonials:t,style:l,hAlign:i,layout:r,itemsCount:c,containerBackground:s,containerBorder:b,containerBorderWidth:m,containerBorderRadius:p,containerPadding:g,mediaStyles:u,displayTitle:h,titleFont:v,titleMinHeight:k,containerMinHeight:y,containerVAlign:f,contentMinHeight:O,displayContent:j,contentFont:_,displayName:S,displayMedia:E,nameFont:w,displayShadow:x,shadow:C,displayRating:M,ratingStyles:N,displayOccupation:T,occupationFont:z,containerBackgroundOpacity:H,containerBorderOpacity:B,containerMaxWidth:I,columnGap:R,autoPlay:P,autoSpeed:A,transSpeed:L,slidesScroll:F,arrowStyle:W,dotStyle:D,columns:U,columnControl:V,displayIcon:$,iconStyles:G,wrapperPaddingType:q,wrapperPadding:J,wrapperTabletPadding:K,wrapperMobilePadding:Q},setAttributes:Y,isSelected:X}=this.props,{containerBorderControl:ee,mediaBorderControl:te,mediaPaddingControl:le,mediaMarginControl:ae,containerPaddingControl:oe,titlePaddingControl:ne,titleMarginControl:re,ratingMarginControl:ce,iconBorderControl:se,iconPaddingControl:de,iconMarginControl:be}=this.state,me=[{key:"basic",name:Object(o.__)("Basic","kadence-blocks"),icon:n.testimonialBasic},{key:"card",name:Object(o.__)("Card","kadence-blocks"),icon:n.testimonialCard},{key:"bubble",name:Object(o.__)("Bubble","kadence-blocks"),icon:n.testimonialBubble},{key:"inlineimage",name:Object(o.__)("Image In Content","kadence-blocks"),icon:n.testimonialInline}],pe=[{key:"skip",name:Object(o.__)("Skip","kadence-blocks"),icon:Object(o.__)("Skip")},{key:"basic",name:Object(o.__)("Basic","kadence-blocks"),icon:n.testimonialBasic},{key:"card",name:Object(o.__)("Card","kadence-blocks"),icon:n.testimonialCard},{key:"bubble",name:Object(o.__)("Bubble","kadence-blocks"),icon:n.testimonialBubble},{key:"inlineimage",name:Object(o.__)("Image In Content","kadence-blocks"),icon:n.testimonialInline}],ge=[{key:"linked",name:Object(o.__)("Linked","kadence-blocks"),icon:Object(o.__)("Linked","kadence-blocks")},{key:"individual",name:Object(o.__)("Individual","kadence-blocks"),icon:Object(o.__)("Individual","kadence-blocks")}],ue=[{key:"top",name:Object(o.__)("Top","kadence-blocks"),icon:n.aligntop},{key:"middle",name:Object(o.__)("Middle","kadence-blocks"),icon:n.alignmiddle},{key:"bottom",name:Object(o.__)("Bottom","kadence-blocks"),icon:n.alignbottom}],he="em"===q||"rem"===q?12:200,ve="em"===q||"rem"===q?.1:1,ke=this.getPreviewSize(this.props.getPreviewDevice,void 0!==y&&void 0!==y[0]?y[0]:"",void 0!==y&&void 0!==y[1]?y[1]:"",void 0!==y&&void 0!==y[2]?y[2]:""),ye=this.getPreviewSize(this.props.getPreviewDevice,void 0!==k&&void 0!==k[0]?k[0]:"",void 0!==k&&void 0!==k[1]?k[1]:"",void 0!==k&&void 0!==k[2]?k[2]:""),fe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==O&&void 0!==O[0]?O[0]:"",void 0!==O&&void 0!==O[1]?O[1]:"",void 0!==O&&void 0!==O[2]?O[2]:""),Oe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[0]?J[0]:"",void 0!==K&&void 0!==K[0]?K[0]:"",void 0!==Q&&void 0!==Q[0]?Q[0]:""),je=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[1]?J[1]:"",void 0!==K&&void 0!==K[1]?K[1]:"",void 0!==Q&&void 0!==Q[1]?Q[1]:""),_e=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[2]?J[2]:"",void 0!==K&&void 0!==K[2]?K[2]:"",void 0!==Q&&void 0!==Q[2]?Q[2]:""),Se=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[3]?J[3]:"",void 0!==K&&void 0!==K[3]?K[3]:"",void 0!==Q&&void 0!==Q[3]?Q[3]:""),Ee=Object(a.createElement)(Zb,null,Object(a.createElement)(em,{className:"kt-size-type-options kt-outline-control","aria-label":Object(o.__)("Column Control Type","kadence-blocks")},d()(ge,({name:e,key:t,icon:l})=>Object(a.createElement)(cm,{text:e},Object(a.createElement)(Xb,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:V===t,"aria-pressed":V===t,onClick:()=>Y({columnControl:t})},l)))),V&&"individual"!==V&&Object(a.createElement)(am,{label:Object(o.__)("Columns","kadence-blocks"),value:U[2],onChange:e=>{let t=[];1===e?t=[1,1,1,1,1,1]:2===e?t=[2,2,2,2,1,1]:3===e?t=[3,3,3,2,1,1]:4===e?t=[4,4,4,3,2,2]:5===e&&(t=[5,5,5,4,4,3]),Y({columns:t})},min:1,max:5}),V&&"individual"===V&&Object(a.createElement)(Zb,null,Object(a.createElement)("h4",null,Object(o.__)("Columns","kadence-blocks")),Object(a.createElement)(am,{label:Object(o.__)("Screen Above 1500px","kadence-blocks"),value:U[0],onChange:e=>Y({columns:[e,U[1],U[2],U[3],U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 1200px - 1499px","kadence-blocks"),value:U[1],onChange:e=>Y({columns:[U[0],e,U[2],U[3],U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 992px - 1199px","kadence-blocks"),value:U[2],onChange:e=>Y({columns:[U[0],U[1],e,U[3],U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 768px - 991px","kadence-blocks"),value:U[3],onChange:e=>Y({columns:[U[0],U[1],U[2],e,U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 544px - 767px","kadence-blocks"),value:U[4],onChange:e=>Y({columns:[U[0],U[1],U[2],U[3],e,U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen Below 543px","kadence-blocks"),value:U[5],onChange:e=>Y({columns:[U[0],U[1],U[2],U[3],U[4],e]}),min:1,max:5}))),we={google:{families:[v[0].family+(v[0].variant?":"+v[0].variant:"")]}},xe={google:{families:[_[0].family+(_[0].variant?":"+_[0].variant:"")]}},Ce={google:{families:[w[0].family+(w[0].variant?":"+w[0].variant:"")]}},Me={google:{families:[z[0].family+(z[0].variant?":"+z[0].variant:"")]}},Ne=v[0].google?we:"",Te=_[0].google?xe:"",ze=w[0].google?Ce:"",He=z[0].google?Me:"",Ie=(e,l)=>{const a=t.map((t,a)=>(a===l&&(t={...t,...e}),t));Y({testimonials:a})},Re=["image"],Pe={dots:"none"!==D,arrows:"none"!==W,infinite:!0,speed:L,draggable:!1,autoplaySpeed:A,autoplay:P,slidesToShow:U[0],slidesToScroll:"all"===F?U[0]:1,nextArrow:Object(a.createElement)((function(e){const{className:t,style:l,onClick:o}=e;return Object(a.createElement)("button",{className:t,style:{...l,display:"block"},onClick:o},Object(a.createElement)(tm,{icon:"arrow-right-alt2"}))}),null),prevArrow:Object(a.createElement)((function(e){const{className:t,style:l,onClick:o}=e;return Object(a.createElement)("button",{className:t,style:{...l,display:"block"},onClick:o},Object(a.createElement)(tm,{icon:"arrow-left-alt2"}))}),null)},Ae=e=>{const t=u.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({mediaStyles:t})},Le=e=>{const t=G.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({iconStyles:t})},Fe=e=>{const t=v.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({titleFont:t})},We=e=>{const t=_.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({contentFont:t})},De=e=>{const t=w.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({nameFont:t})},Ue=e=>{const t=z.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({occupationFont:t})},Ve=e=>{const t=C.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({shadow:t})},$e=e=>{const t=N.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({ratingStyles:t})},Ge=Object(a.createElement)("div",null,bl()(c,e=>{return l=e,Object(a.createElement)(lm,{title:Object(o.__)("Testimonial","kadence-blocks")+" "+(l+1)+" "+Object(o.__)("Settings","kadence-blocks"),initialOpen:1===c},Object(a.createElement)(rm,{label:Object(o.__)("Media Type","kadence-blocks"),value:t[l].media,options:[{value:"image",label:Object(o.__)("Image","kadence-blocks")},{value:"icon",label:Object(o.__)("Icon","kadence-blocks")}],onChange:e=>Ie({media:e},l)}),"icon"===t[l].media&&Object(a.createElement)(Zb,null,Object(a.createElement)(Xe,{value:t[l].icon,onChange:e=>{Ie({icon:e},l)}}),Object(a.createElement)(am,{label:Object(o.__)("Icon Size","kadence-blocks"),value:t[l].isize,onChange:e=>{Ie({isize:e},l)},min:5,max:250}),t[l].icon&&"fe"===t[l].icon.substring(0,2)&&Object(a.createElement)(am,{label:Object(o.__)("Line Width","kadence-blocks"),value:t[l].istroke,onChange:e=>{Ie({istroke:e},l)},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color","kadence-blocks"),colorValue:t[l].color?t[l].color:"#555555",colorDefault:"#555555",onColorChange:e=>Ie({color:e},l)})),Object(a.createElement)(am,{label:Object(o.__)("Rating","kadence-blocks"),value:t[l].rating,onChange:e=>{Ie({rating:e},l)},step:1,min:1,max:5}));var l})),Ze=e=>Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:G[0].margin?G[0].margin[0]+"px "+G[0].margin[1]+"px "+G[0].margin[2]+"px "+G[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-"+G[0].icon,name:G[0].icon,size:G[0].size,title:G[0].title?G[0].title:"",strokeWidth:"fe"===G[0].icon.substring(0,2)?G[0].stroke:void 0,style:{color:G[0].color?Rt(G[0].color):void 0,borderRadius:G[0].borderRadius+"px",borderTopWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[0]?G[0].borderWidth[0]+"px":void 0,borderRightWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[1]?G[0].borderWidth[1]+"px":void 0,borderBottomWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[2]?G[0].borderWidth[2]+"px":void 0,borderLeftWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[3]?G[0].borderWidth[3]+"px":void 0,background:G[0].background?Rt(G[0].background,void 0!==G[0].backgroundOpacity?G[0].backgroundOpacity:1):void 0,borderColor:G[0].border?Rt(G[0].border,void 0!==G[0].borderOpacity?G[0].borderOpacity:1):void 0,padding:G[0].padding?G[0].padding[0]+"px "+G[0].padding[1]+"px "+G[0].padding[2]+"px "+G[0].padding[3]+"px":""}})),qe=e=>{let i=t[e].url;return t[e].sizes&&void 0!==t[e].sizes.thumbnail&&("card"===l&&I>500||u[0].width>600?i=t[e].url:"card"===l&&I<=500&&I>100?t[e].sizes.large&&t[e].sizes.large.width>1e3&&(i=t[e].sizes.large.url):"card"===l&&I<=100?t[e].sizes.medium&&t[e].sizes.medium.width>200?i=t[e].sizes.medium.url:t[e].sizes.large&&t[e].sizes.large.width>200&&(i=t[e].sizes.large.url):u[0].width<=600&&u[0].width>100?t[e].sizes.large&&t[e].sizes.large.width>1e3&&(i=t[e].sizes.large.url):u[0].width<=100&&u[0].width>75?t[e].sizes.medium&&t[e].sizes.medium.width>200?i=t[e].sizes.medium.url:t[e].sizes.large&&t[e].sizes.large.width>200&&(i=t[e].sizes.large.url):u[0].width<=75&&(t[e].sizes.thumbnail&&t[e].sizes.thumbnail.width>140?i=t[e].sizes.thumbnail.url:t[e].sizes.medium&&t[e].sizes.medium.width>140?i=t[e].sizes.medium.url:t[e].sizes.large&&t[e].sizes.large.width>200&&(i=t[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==l?u[0].width+"px":void 0,borderColor:Rt(u[0].border),backgroundColor:u[0].background?Rt(u[0].background,void 0!==u[0].backgroundOpacity?u[0].backgroundOpacity:1):void 0,borderRadius:u[0].borderRadius+"px",borderWidth:u[0].borderWidth?u[0].borderWidth[0]+"px "+u[0].borderWidth[1]+"px "+u[0].borderWidth[2]+"px "+u[0].borderWidth[3]+"px":"",padding:u[0].padding?u[0].padding[0]+"px "+u[0].padding[1]+"px "+u[0].padding[2]+"px "+u[0].padding[3]+"px":"",marginTop:u[0].margin&&void 0!==u[0].margin[0]?u[0].margin[0]+"px":void 0,marginRight:u[0].margin&&void 0!==u[0].margin[1]?u[0].margin[1]+"px":void 0,marginBottom:u[0].margin&&void 0!==u[0].margin[2]?u[0].margin[2]+"px":void 0,marginLeft:u[0].margin&&void 0!==u[0].margin[3]?u[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==l||void 0===u[0].ratio&&""===u[0].ratio?void 0:u[0].ratio+"%"}},"icon"===t[e].media&&t[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-"+t[e].icon,name:t[e].icon,size:t[e].isize,title:t[e].ititle?t[e].ititle:"",strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].istroke:void 0,style:{display:"flex",color:t[e].color?Rt(t[e].color):void 0}}),"icon"!==t[e].media&&t[e].url&&Object(a.createElement)(Zb,null,Object(a.createElement)(qb,{onSelect:t=>{Ie({id:t.id,url:t.url,alt:t.alt,subtype:t.subtype,sizes:t.sizes},e)},type:"image",value:t[e].id?t[e].id:"",allowedTypes:Re,render:({open:e})=>Object(a.createElement)(cm,{text:Object(o.__)("Edit Image","kadence-blocks")},Object(a.createElement)(Xb,{style:{backgroundImage:'url("'+i+'")',backgroundSize:"card"===l?u[0].backgroundSize:void 0,borderRadius:u[0].borderRadius+"px"},className:"kt-testimonial-image",onClick:e}))}),Object(a.createElement)(Xb,{label:Object(o.__)("Remove Image","kadence-blocks"),className:"kt-remove-img kt-testimonial-remove-image",onClick:()=>{Ie({id:null,url:null,alt:null,subtype:null,sizes:null},e)},icon:wo.a,showTooltip:!0})),"icon"!==t[e].media&&!t[e].url&&Object(a.createElement)(Zb,null,"card"===l&&Object(a.createElement)($b,{onSelect:t=>{Ie({id:t.id,url:t.url,alt:t.alt,sizes:t.sizes,subtype:t.subtype},e)},value:"",allowedTypes:Re,onSelectURL:l=>{l!==t[e].url&&Ie({id:null,url:l,alt:null,sizes:null,subtype:null},e)},accept:"image/*",className:"kadence-image-upload"}),"card"!==l&&Object(a.createElement)(qb,{onSelect:t=>{Ie({id:t.id,url:t.url,alt:t.alt,sizes:t.sizes,subtype:t.subtype},e)},type:"image",value:"",allowedTypes:Re,render:({open:e})=>Object(a.createElement)(Xb,{className:"kt-testimonial-image-placeholder","aria-label":Object(o.__)("Add Image","kadence-blocks"),icon:Eo.a,style:{borderRadius:u[0].borderRadius+"px"},onClick:e})})))))},Ke={boxShadow:x?C[0].hOffset+"px "+C[0].vOffset+"px "+C[0].blur+"px "+C[0].spread+"px "+Rt(void 0!==C[0].color&&""!==C[0].color?C[0].color:"#000000",C[0].opacity?C[0].opacity:.2):void 0,borderColor:Rt(b||"#eeeeee",void 0!==B?B:1),background:s?Rt(s,void 0!==H?H:1):void 0,borderRadius:isNaN(p)?void 0:p+"px",borderTopWidth:m&&void 0!==m[0]?m[0]+"px":void 0,borderRightWidth:m&&void 0!==m[1]?m[1]+"px":void 0,borderBottomWidth:m&&void 0!==m[2]?m[2]+"px":void 0,borderLeftWidth:m&&void 0!==m[3]?m[3]+"px":void 0,padding:g?g[0]+"px "+g[1]+"px "+g[2]+"px "+g[3]+"px":"",maxWidth:"bubble"===l||"inlineimage"===l?void 0:I+"px",minHeight:"bubble"!==l&&"inlineimage"!==l&&ke?ke+"px":void 0,marginTop:r&&"carousel"===r&&Oe?Oe+(q||"px"):void 0,marginBottom:r&&"carousel"===r&&_e?_e+(q||"px"):void 0},Qe=(e,i=!1)=>Object(a.createElement)("div",{className:`kt-testimonial-item-wrap kt-testimonial-item-${e}${f?" testimonial-valign-"+f:""}`,style:"bubble"!==l&&"inlineimage"!==l?Ke:{maxWidth:I+"px",minHeight:ke?ke+"px":void 0,paddingTop:$&&G[0].icon&&G[0].margin&&G[0].margin[0]&&G[0].margin[0]<0?Math.abs(G[0].margin[0])+"px":void 0,marginTop:i&&Oe?Oe+(q||"px"):void 0,marginBottom:i&&_e?_e+(q||"px"):void 0}},c>1&&Object(a.createElement)("div",{className:"kt-testimonial-item__move-menu"},Object(a.createElement)(Xb,{icon:"arrow-left",onClick:0===e?void 0:this.onMoveBackward(e),className:"kt-testimonial-item__move-backward","aria-label":Object(o.__)("Move Testimonial Backward","kadence-blocks"),"aria-disabled":0===e}),Object(a.createElement)(Xb,{icon:"arrow-right",onClick:c===e+1?void 0:this.onMoveForward(e),className:"kt-testimonial-item__move-forward","aria-label":Object(o.__)("Move Testimonial Forward","kadence-blocks"),"aria-disabled":c===e+1})),Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===l||"inlineimage"===l?Ke:void 0},$&&G[0].icon&&"card"!==l&&Ze(),E&&("card"===l||"inlineimage"===l)&&qe(e),$&&G[0].icon&&"card"===l&&Ze(),h&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap",style:{minHeight:ye?ye+"px":void 0}},Object(a.createElement)(Jb,{tagName:"h"+v[0].level,value:t[e].title,onChange:t=>{Ie({title:t},e)},placeholder:Object(o.__)("Best product I have ever used!","kadence-blocks"),style:{fontWeight:v[0].weight,fontStyle:v[0].style,color:Rt(v[0].color),fontSize:v[0].size[0]+v[0].sizeType,lineHeight:v[0].lineHeight&&v[0].lineHeight[0]?v[0].lineHeight[0]+v[0].lineType:void 0,letterSpacing:v[0].letterSpacing+"px",textTransform:v[0].textTransform?v[0].textTransform:void 0,fontFamily:v[0].family?v[0].family:"",padding:v[0].padding?v[0].padding[0]+"px "+v[0].padding[1]+"px "+v[0].padding[2]+"px "+v[0].padding[3]+"px":"",margin:v[0].margin?v[0].margin[0]+"px "+v[0].margin[1]+"px "+v[0].margin[2]+"px "+v[0].margin[3]+"px":""},className:"kt-testimonial-title"})),M&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-"+t[e].rating,style:{margin:N[0].margin?N[0].margin[0]+"px "+N[0].margin[1]+"px "+N[0].margin[2]+"px "+N[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}})),j&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap",style:{minHeight:fe?fe+"px":void 0}},Object(a.createElement)(Jb,{tagName:"div",placeholder:Object(o.__)("I have been looking for a product like this for years. I have tried everything and nothing did what I wanted until using this product. I am so glad I found it!","kadence-blocks"),value:t[e].content,onChange:t=>{Ie({content:t},e)},style:{fontWeight:_[0].weight,fontStyle:_[0].style,color:Rt(_[0].color),fontSize:_[0].size[0]+_[0].sizeType,lineHeight:_[0].lineHeight&&_[0].lineHeight[0]?_[0].lineHeight[0]+_[0].lineType:void 0,textTransform:_[0].textTransform?_[0].textTransform:void 0,letterSpacing:_[0].letterSpacing+"px",fontFamily:_[0].family?_[0].family:""},className:"kt-testimonial-content"}))),(E&&"card"!==l&&"inlineimage"!==l||T||S)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},E&&"card"!==l&&"inlineimage"!==l&&qe(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},S&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(Jb,{tagName:"div",placeholder:Object(o.__)("Sophia Reily","kadence-blocks"),value:t[e].name,onChange:t=>{Ie({name:t},e)},style:{fontWeight:w[0].weight,fontStyle:w[0].style,color:Rt(w[0].color),fontSize:w[0].size[0]+w[0].sizeType,lineHeight:w[0].lineHeight&&w[0].lineHeight[0]?w[0].lineHeight[0]+w[0].lineType:void 0,textTransform:w[0].textTransform?w[0].textTransform:void 0,letterSpacing:w[0].letterSpacing+"px",fontFamily:w[0].family?w[0].family:""},className:"kt-testimonial-name"})),T&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(Jb,{tagName:"div",placeholder:Object(o.__)("CEO of Company","kadence-blocks"),value:t[e].occupation,onChange:t=>{Ie({occupation:t},e)},style:{fontWeight:z[0].weight,fontStyle:z[0].style,color:Rt(z[0].color),fontSize:z[0].size[0]+z[0].sizeType,lineHeight:z[0].lineHeight&&z[0].lineHeight[0]?z[0].lineHeight[0]+z[0].lineType:void 0,textTransform:z[0].textTransform?z[0].textTransform:void 0,letterSpacing:z[0].letterSpacing+"px",fontFamily:z[0].family?z[0].family:""},className:"kt-testimonial-occupation"})))));return Object(a.createElement)("div",{id:"kt-blocks-testimonials-wrap"+e,className:`wp-block-kadence-testimonials kt-testimonial-halign-${i} kt-testimonial-style-${l} kt-testimonials-media-${E?"on":"off"} kt-testimonials-icon-${$?"on":"off"} kt-testimonial-columns-${U[0]}`},Object(a.createElement)("style",null,"carousel"===r?`#kt-blocks-testimonials-wrap${e} .slick-slide { padding: 0 ${R/2}px; }`:"","carousel"===r?`#kt-blocks-testimonials-wrap${e} .kt-blocks-carousel .slick-slider { margin: 0 -${R/2}px; }`:"","carousel"===r?`#kt-blocks-testimonials-wrap${e} .kt-blocks-carousel .slick-prev { left: ${R/2}px; }`:"","carousel"===r?`#kt-blocks-testimonials-wrap${e} .kt-blocks-carousel .slick-next { right: ${R/2}px; }`:"","bubble"===l||"inlineimage"===l?`#kt-blocks-testimonials-wrap${e} .kt-testimonial-text-wrap:after { margin-top: ${m&&void 0!==m[2]?m[2]:"1"}px; }`:"","bubble"===l||"inlineimage"===l?`#kt-blocks-testimonials-wrap${e} .kt-testimonial-text-wrap:after { border-top-color: ${Rt(b||"#eeeeee",void 0!==B?B:1)} }`:""),this.showSettings("allSettings")&&Object(a.createElement)(Zb,null,Object(a.createElement)(Yb,{key:"controls"},Object(a.createElement)(Kb,{value:i,onChange:e=>Y({hAlign:e})})),Object(a.createElement)(Qb,null,Object(a.createElement)(lm,null,this.showSettings("layoutSettings")&&Object(a.createElement)(rm,{label:Object(o.__)("Layout","kadence-blocks"),value:r,options:[{value:"grid",label:Object(o.__)("Grid","kadence-blocks")},{value:"carousel",label:Object(o.__)("Carousel","kadence-blocks")}],onChange:e=>Y({layout:e})}),this.showSettings("styleSettings")&&Object(a.createElement)(Zb,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Testimonial Style","kadence-blocks")),Object(a.createElement)(em,{className:"kt-style-btn-group","aria-label":Object(o.__)("Testimonial Style","kadence-blocks")},d()(me,({name:e,key:t,icon:o})=>Object(a.createElement)(cm,{text:e},Object(a.createElement)(Xb,{key:t,className:"kt-style-btn",isSmall:!0,isPrimary:l===t,"aria-pressed":l===t,onClick:()=>Y({style:t})},o))))),Object(a.createElement)(am,{label:Object(o.__)("Testimonial Items","kadence-blocks"),value:c,onChange:e=>{const l=this.props.attributes.testimonials;if(l.length<e){const a=Math.abs(e-l.length);bl()(a,e=>{l.push({url:l[0].url,id:l[0].id,alt:l[0].alt,width:l[0].width,height:l[0].height,maxWidth:l[0].maxWidth,subtype:l[0].subtype,media:l[0].media,icon:l[0].icon,isize:l[0].isize,istroke:l[0].istroke,ititle:l[0].ititle,color:l[0].color,title:"",content:"",name:"",occupation:"",rating:l[0].rating})}),Y({testimonials:l}),Ie({ititle:t[0].ititle},0)}Y({itemsCount:e})},min:1,max:40}),this.showSettings("columnSettings")&&Object(a.createElement)(Zb,null,Ee,Object(a.createElement)(am,{label:Object(o.__)("Column Gap","kadence-blocks"),value:R,onChange:e=>Y({columnGap:e}),min:0,max:80}))),r&&"carousel"===r&&Object(a.createElement)(Zb,null,this.showSettings("carouselSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Carousel Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Carousel Auto Play","kadence-blocks"),checked:P,onChange:e=>Y({autoPlay:e})}),P&&Object(a.createElement)(am,{label:Object(o.__)("Autoplay Speed","kadence-blocks"),value:A,onChange:e=>Y({autoSpeed:e}),min:500,max:15e3,step:10}),Object(a.createElement)(am,{label:Object(o.__)("Carousel Slide Transition Speed","kadence-blocks"),value:L,onChange:e=>Y({transSpeed:e}),min:100,max:2e3,step:10}),Object(a.createElement)(rm,{label:Object(o.__)("Slides to Scroll","kadence-blocks"),options:[{label:Object(o.__)("One"),value:"1"},{label:Object(o.__)("All"),value:"all"}],value:F,onChange:e=>Y({slidesScroll:e})}),Object(a.createElement)(rm,{label:Object(o.__)("Arrow Style","kadence-blocks"),options:[{label:Object(o.__)("White on Dark","kadence-blocks"),value:"whiteondark"},{label:Object(o.__)("Black on Light","kadence-blocks"),value:"blackonlight"},{label:Object(o.__)("Outline Black","kadence-blocks"),value:"outlineblack"},{label:Object(o.__)("Outline White","kadence-blocks"),value:"outlinewhite"},{label:Object(o.__)("None","kadence-blocks"),value:"none"}],value:W,onChange:e=>Y({arrowStyle:e})}),Object(a.createElement)(rm,{label:Object(o.__)("Dot Style","kadence-blocks"),options:[{label:Object(o.__)("Dark","kadence-blocks"),value:"dark"},{label:Object(o.__)("Light","kadence-blocks"),value:"light"},{label:Object(o.__)("Outline Dark","kadence-blocks"),value:"outlinedark"},{label:Object(o.__)("Outline Light","kadence-blocks"),value:"outlinelight"},{label:Object(o.__)("None","kadence-blocks"),value:"none"}],value:D,onChange:e=>Y({dotStyle:e})}))),this.showSettings("containerSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Container Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Container Border Width (px)","kadence-blocks"),measurement:m,control:ee,onChange:e=>Y({containerBorderWidth:e}),onControl:e=>this.setState({containerBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Container Border Radius (px)","kadence-blocks"),value:p,onChange:e=>Y({containerBorderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Bt,{label:Object(o.__)("Container Background","kadence-blocks"),colorValue:s||"",colorDefault:"",onColorChange:e=>Y({containerBackground:e}),opacityValue:H,onOpacityChange:e=>Y({containerBackgroundOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Container Border","kadence-blocks"),colorValue:b||"",colorDefault:"",onColorChange:e=>Y({containerBorder:e}),opacityValue:B,onOpacityChange:e=>Y({containerBorderOpacity:e})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Container Padding","kadence-blocks"),measurement:g,control:oe,onChange:e=>Y({containerPadding:e}),onControl:e=>this.setState({containerPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Container Max Width (px)","kadence-blocks"),value:I,onChange:e=>Y({containerMaxWidth:e}),step:5,min:50,max:2e3}),Object(a.createElement)(Z,{label:Object(o.__)("Container Min Height","kadence-blocks"),value:y&&void 0!==y[0]?y[0]:"",onChange:e=>Y({containerMinHeight:[e,y&&void 0!==y[1]?y[1]:"",y&&void 0!==y[2]?y[2]:""]}),tabletValue:y&&void 0!==y[1]?y[1]:"",onChangeTablet:e=>Y({containerMinHeight:[y&&void 0!==y[0]?y[0]:"",e,y&&void 0!==y[2]?y[2]:""]}),mobileValue:y&&void 0!==y[2]?y[2]:"",onChangeMobile:e=>Y({containerMinHeight:[y&&void 0!==y[0]?y[0]:"",y&&void 0!==y[1]?y[1]:"",e]}),min:0,max:600,step:1,unit:"px",showUnit:!0,units:["px"]}),y&&(y[0]||y[1]||y[2])&&Object(a.createElement)("div",{className:"kt-btn-size-settings-container"},Object(a.createElement)("h2",{className:"kt-beside-btn-group"},Object(o.__)("Inner Content Align","kadence-blocks")),Object(a.createElement)(em,{className:"kt-button-size-type-options","aria-label":Object(o.__)("Inner Content Align","kadence-blocks")},d()(ue,({name:e,icon:t,key:l})=>Object(a.createElement)(cm,{text:e},Object(a.createElement)(Xb,{key:l,className:"kt-btn-size-btn",isSmall:!0,isPrimary:f===l,"aria-pressed":f===l,onClick:()=>Y({containerVAlign:l})},t)))))),this.showSettings("iconSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Icon Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Top Icon","kadence-blocks"),checked:$,onChange:e=>Y({displayIcon:e})}),$&&Object(a.createElement)(Zb,null,Object(a.createElement)(Xe,{value:G[0].icon,onChange:e=>{Le({icon:e})}}),Object(a.createElement)(am,{label:Object(o.__)("Icon Size","kadence-blocks"),value:G[0].size,onChange:e=>Le({size:e}),step:1,min:1,max:120}),G[0].icon&&"fe"===G[0].icon.substring(0,2)&&Object(a.createElement)(am,{label:Object(o.__)("Line Width","kadence-blocks"),value:G[0].stroke,onChange:e=>{Le({stroke:e})},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:G[0].color?G[0].color:"",colorDefault:"",onColorChange:e=>Le({color:e})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Border Width (px)","kadence-blocks"),measurement:G[0].borderWidth,control:se,onChange:e=>Le({borderWidth:e}),onControl:e=>this.setState({iconBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Icon Border Radius (px)","kadence-blocks"),value:G[0].borderRadius,onChange:e=>Le({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background","kadence-blocks"),colorValue:G[0].background?G[0].background:"",colorDefault:"",onColorChange:e=>Le({background:e}),opacityValue:G[0].backgroundOpacity,onOpacityChange:e=>Le({backgroundOpacity:e}),onArrayChange:(e,t)=>Le({background:e,backgroundOpacity:t})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Border Color","kadence-blocks"),colorValue:G[0].border?G[0].border:"",colorDefault:"",onColorChange:e=>Le({border:e}),opacityValue:G[0].borderOpacity,onOpacityChange:e=>Le({borderOpacity:e}),onArrayChange:(e,t)=>Le({border:e,borderOpacity:t})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Padding","kadence-blocks"),measurement:G[0].padding,control:de,onChange:e=>Le({padding:e}),onControl:e=>this.setState({iconPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Margin","kadence-blocks"),measurement:G[0].margin,control:be,onChange:e=>Le({margin:e}),onControl:e=>this.setState({iconMarginControl:e}),min:-100,max:100,step:1}))),this.showSettings("titleSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Title Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Title","kadence-blocks"),checked:h,onChange:e=>Y({displayTitle:e})}),h&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color Settings","kadence-blocks"),colorValue:v[0].color?v[0].color:"",colorDefault:"",onColorChange:e=>Fe({color:e})}),Object(a.createElement)(ie,{fontGroup:"heading",tagLevel:v[0].level,tagLowLevel:2,onTagLevel:e=>Fe({level:e}),fontSize:v[0].size,onFontSize:e=>Fe({size:e}),fontSizeType:v[0].sizeType,onFontSizeType:e=>Fe({sizeType:e}),lineHeight:v[0].lineHeight,onLineHeight:e=>Fe({lineHeight:e}),lineHeightType:v[0].lineType,onLineHeightType:e=>Fe({lineType:e}),letterSpacing:v[0].letterSpacing,onLetterSpacing:e=>Fe({letterSpacing:e}),textTransform:v[0].textTransform,onTextTransform:e=>Fe({textTransform:e}),fontFamily:v[0].family,onFontFamily:e=>Fe({family:e}),onFontChange:e=>{Fe({family:e.value,google:e.google})},onFontArrayChange:e=>Fe(e),googleFont:v[0].google,onGoogleFont:e=>Fe({google:e}),loadGoogleFont:v[0].loadGoogle,onLoadGoogleFont:e=>Fe({loadGoogle:e}),fontVariant:v[0].variant,onFontVariant:e=>Fe({variant:e}),fontWeight:v[0].weight,onFontWeight:e=>Fe({weight:e}),fontStyle:v[0].style,onFontStyle:e=>Fe({style:e}),fontSubset:v[0].subset,onFontSubset:e=>Fe({subset:e}),padding:v[0].padding,onPadding:e=>Fe({padding:e}),paddingControl:ne,onPaddingControl:e=>this.setState({titlePaddingControl:e}),margin:v[0].margin,onMargin:e=>Fe({margin:e}),marginControl:re,onMarginControl:e=>this.setState({titleMarginControl:e})}),Object(a.createElement)(Z,{label:Object(o.__)("Title Min Height","kadence-blocks"),value:k&&void 0!==k[0]?k[0]:"",onChange:e=>Y({titleMinHeight:[e,k&&void 0!==k[1]?k[1]:"",k&&void 0!==k[2]?k[2]:""]}),tabletValue:k&&void 0!==k[1]?k[1]:"",onChangeTablet:e=>Y({titleMinHeight:[k&&void 0!==k[0]?k[0]:"",e,k&&void 0!==k[2]?k[2]:""]}),mobileValue:k&&void 0!==k[2]?k[2]:"",onChangeMobile:e=>Y({titleMinHeight:[k&&void 0!==k[0]?k[0]:"",k&&void 0!==k[1]?k[1]:"",e]}),min:0,max:200,step:1,unit:"px",showUnit:!0,units:["px"]}))),this.showSettings("ratingSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Rating Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Rating","kadence-blocks"),checked:M,onChange:e=>Y({displayRating:e})}),M&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:N[0].color?N[0].color:"",colorDefault:"",onColorChange:e=>$e({color:e})}),Object(a.createElement)(am,{label:Object(o.__)("Icon Size","kadence-blocks"),value:N[0].size,onChange:e=>$e({size:e}),step:1,min:1,max:120}),Object(a.createElement)(sn,{label:Object(o.__)("Rating Margin","kadence-blocks"),measurement:N[0].margin,control:ce,onChange:e=>$e({margin:e}),onControl:e=>this.setState({ratingMarginControl:e}),min:0,max:100,step:1}))),this.showSettings("contentSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Content Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Content","kadence-blocks"),checked:j,onChange:e=>Y({displayContent:e})}),j&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:_[0].color?_[0].color:"",colorDefault:"",onColorChange:e=>We({color:e})}),Object(a.createElement)(ie,{fontSize:_[0].size,onFontSize:e=>We({size:e}),fontSizeType:_[0].sizeType,onFontSizeType:e=>We({sizeType:e}),lineHeight:_[0].lineHeight,onLineHeight:e=>We({lineHeight:e}),lineHeightType:_[0].lineType,onLineHeightType:e=>We({lineType:e}),letterSpacing:_[0].letterSpacing,onLetterSpacing:e=>We({letterSpacing:e}),textTransform:_[0].textTransform,onTextTransform:e=>We({textTransform:e}),fontFamily:_[0].family,onFontFamily:e=>We({family:e}),onFontChange:e=>{We({family:e.value,google:e.google})},onFontArrayChange:e=>We(e),googleFont:_[0].google,onGoogleFont:e=>We({google:e}),loadGoogleFont:_[0].loadGoogle,onLoadGoogleFont:e=>We({loadGoogle:e}),fontVariant:_[0].variant,onFontVariant:e=>We({variant:e}),fontWeight:_[0].weight,onFontWeight:e=>We({weight:e}),fontStyle:_[0].style,onFontStyle:e=>We({style:e}),fontSubset:_[0].subset,onFontSubset:e=>We({subset:e})}),Object(a.createElement)(Z,{label:Object(o.__)("Content Min Height","kadence-blocks"),value:O&&void 0!==O[0]?O[0]:"",onChange:e=>Y({contentMinHeight:[e,O&&void 0!==O[1]?O[1]:"",O&&void 0!==O[2]?O[2]:""]}),tabletValue:O&&void 0!==O[1]?O[1]:"",onChangeTablet:e=>Y({contentMinHeight:[O&&void 0!==O[0]?O[0]:"",e,O&&void 0!==O[2]?O[2]:""]}),mobileValue:O&&void 0!==O[2]?O[2]:"",onChangeMobile:e=>Y({contentMinHeight:[O&&void 0!==O[0]?O[0]:"",O&&void 0!==O[1]?O[1]:"",e]}),min:0,max:400,step:1,unit:"px",showUnit:!0,units:["px"]}))),this.showSettings("mediaSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Media Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Media","kadence-blocks"),checked:E,onChange:e=>Y({displayMedia:e})}),E&&Object(a.createElement)(Zb,null,"card"!==l&&Object(a.createElement)(am,{label:Object(o.__)("Media Max Size","kadence-blocks"),value:u[0].width,onChange:e=>Ae({width:e}),step:1,min:2,max:800}),Object(a.createElement)(sn,{label:Object(o.__)("Media Border Width (px)","kadence-blocks"),measurement:u[0].borderWidth,control:te,onChange:e=>Ae({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Media Border Radius (px)","kadence-blocks"),value:u[0].borderRadius,onChange:e=>Ae({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Bt,{label:Object(o.__)("Media Background","kadence-blocks"),colorValue:u[0].background?u[0].background:"",colorDefault:"",onColorChange:e=>Ae({background:e}),opacityValue:u[0].backgroundOpacity,onOpacityChange:e=>Ae({backgroundOpacity:e}),onArrayChange:(e,t)=>Ae({background:e,backgroundOpacity:t})}),Object(a.createElement)(Bt,{label:Object(o.__)("Media Border Color","kadence-blocks"),colorValue:u[0].border?u[0].border:"",colorDefault:"",onColorChange:e=>Ae({border:e}),opacityValue:u[0].borderOpacity,onOpacityChange:e=>Ae({borderOpacity:e}),onArrayChange:(e,t)=>Ae({border:e,borderOpacity:t})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Media Padding","kadence-blocks"),measurement:u[0].padding,control:le,onChange:e=>Ae({padding:e}),onControl:e=>this.setState({mediaPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Media Margin","kadence-blocks"),measurement:u[0].margin,control:ae,onChange:e=>Ae({margin:e}),onControl:e=>this.setState({mediaMarginControl:e}),min:-100,max:100,step:1}),"card"===l&&Object(a.createElement)(Zb,null,Object(a.createElement)(rm,{label:Object(o.__)("Image Size","kadence-blocks"),options:[{label:Object(o.__)("Cover","kadence-blocks"),value:"cover"},{label:Object(o.__)("Contain","kadence-blocks"),value:"Contain"},{label:Object(o.__)("Auto","kadence-blocks"),value:"auto"}],value:u[0].backgroundSize,onChange:e=>Ae({backgroundSize:e})}),Object(a.createElement)(rm,{label:Object(o.__)("Image Ratio","kadence-blocks"),options:[{label:Object(o.__)("Landscape 4:2","kadence-blocks"),value:"50"},{label:Object(o.__)("Landscape 3:2","kadence-blocks"),value:"66.67"},{label:Object(o.__)("Landscape 4:3","kadence-blocks"),value:"75"},{label:Object(o.__)("Portrait 3:4","kadence-blocks"),value:"133.33"},{label:Object(o.__)("Portrait 2:3","kadence-blocks"),value:"150"},{label:Object(o.__)("Square 1:1","kadence-blocks"),value:"100"}],value:void 0===u[0].ratio||""===u[0].ratio?"50":u[0].ratio,onChange:e=>Ae({ratio:e})})))),this.showSettings("nameSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Name Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Name","kadence-blocks"),checked:S,onChange:e=>Y({displayName:e})}),S&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:w[0].color?w[0].color:"",colorDefault:"",onColorChange:e=>De({color:e})}),Object(a.createElement)(ie,{fontSize:w[0].size,onFontSize:e=>De({size:e}),fontSizeType:w[0].sizeType,onFontSizeType:e=>De({sizeType:e}),lineHeight:w[0].lineHeight,onLineHeight:e=>De({lineHeight:e}),lineHeightType:w[0].lineType,onLineHeightType:e=>De({lineType:e}),letterSpacing:w[0].letterSpacing,onLetterSpacing:e=>De({letterSpacing:e}),textTransform:w[0].textTransform,onTextTransform:e=>De({textTransform:e}),fontFamily:w[0].family,onFontFamily:e=>De({family:e}),onFontChange:e=>{De({family:e.value,google:e.google})},onFontArrayChange:e=>De(e),googleFont:w[0].google,onGoogleFont:e=>De({google:e}),loadGoogleFont:w[0].loadGoogle,onLoadGoogleFont:e=>De({loadGoogle:e}),fontVariant:w[0].variant,onFontVariant:e=>De({variant:e}),fontWeight:w[0].weight,onFontWeight:e=>De({weight:e}),fontStyle:w[0].style,onFontStyle:e=>De({style:e}),fontSubset:w[0].subset,onFontSubset:e=>De({subset:e})}))),this.showSettings("occupationSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Occupation Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Occupation","kadence-blocks"),checked:T,onChange:e=>Y({displayOccupation:e})}),T&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:z[0].color?z[0].color:"",colorDefault:"",onColorChange:e=>Ue({color:e})}),Object(a.createElement)(ie,{fontSize:z[0].size,onFontSize:e=>Ue({size:e}),fontSizeType:z[0].sizeType,onFontSizeType:e=>Ue({sizeType:e}),lineHeight:z[0].lineHeight,onLineHeight:e=>Ue({lineHeight:e}),lineHeightType:z[0].lineType,onLineHeightType:e=>Ue({lineType:e}),textTransform:z[0].textTransform,onTextTransform:e=>Ue({textTransform:e}),letterSpacing:z[0].letterSpacing,onLetterSpacing:e=>Ue({letterSpacing:e}),fontFamily:z[0].family,onFontFamily:e=>Ue({family:e}),onFontChange:e=>{Ue({family:e.value,google:e.google})},onFontArrayChange:e=>Ue(e),googleFont:z[0].google,onGoogleFont:e=>Ue({google:e}),loadGoogleFont:z[0].loadGoogle,onLoadGoogleFont:e=>Ue({loadGoogle:e}),fontVariant:z[0].variant,onFontVariant:e=>Ue({variant:e}),fontWeight:z[0].weight,onFontWeight:e=>Ue({weight:e}),fontStyle:z[0].style,onFontStyle:e=>Ue({style:e}),fontSubset:z[0].subset,onFontSubset:e=>Ue({subset:e})}))),this.showSettings("shadowSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Container Shadow","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Enable Shadow","kadence-blocks"),checked:x,onChange:e=>Y({displayShadow:e})}),x&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Shadow Color","kadence-blocks"),colorValue:C[0].color?C[0].color:"",colorDefault:"",onColorChange:e=>Ve({color:e}),opacityValue:C[0].opacity,onOpacityChange:e=>Ve({opacity:e}),onArrayChange:(e,t)=>Ve({color:e,opacity:t})}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Blur","kadence-blocks"),value:C[0].blur,onChange:e=>Ve({blur:e}),min:0,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Spread","kadence-blocks"),value:C[0].spread,onChange:e=>Ve({spread:e}),min:-100,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Vertical Offset","kadence-blocks"),value:C[0].vOffset,onChange:e=>Ve({vOffset:e}),min:-100,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Horizontal Offset","kadence-blocks"),value:C[0].hOffset,onChange:e=>Ve({hOffset:e}),min:-100,max:100,step:1}))),this.showSettings("wrapperSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Wrapper Padding","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Wrapper Padding","kadence-blocks"),value:J,control:this.state.wrapperPaddingControls,tabletValue:K,mobileValue:Q,onChange:e=>Y({wrapperPadding:e}),onChangeTablet:e=>Y({wrapperTabletPadding:e}),onChangeMobile:e=>Y({wrapperMobilePadding:e}),onChangeControl:e=>this.setState({wrapperPaddingControls:e}),min:0,max:he,step:ve,unit:q,units:["px","em","rem","%"],onUnit:e=>Y({wrapperPaddingType:e})})),Object(a.createElement)("div",{className:"kt-sidebar-settings-spacer"}),this.showSettings("individualSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Individual Settings","kadence-blocks"),initialOpen:!1},Ge))),this.state.showPreset&&Object(a.createElement)("div",{className:"kt-select-starter-style-tabs kt-select-starter-style-infobox"},Object(a.createElement)("div",{className:"kt-select-starter-style-tabs-title"},Object(o.__)("Select Initial Style","kadence-blocks")),Object(a.createElement)(em,{className:"kt-init-tabs-btn-group","aria-label":Object(o.__)("Initial Style","kadence-blocks")},d()(pe,({name:e,key:t,icon:l})=>Object(a.createElement)(Xb,{key:t,className:"kt-inital-tabs-style-btn",isSmall:!0,onClick:()=>{(e=>{"skip"===e||("basic"===e?Y({style:"basic"}):"card"===e?Y({style:"card"}):"bubble"===e?Y({style:"bubble"}):"inlineimage"===e&&Y({style:"inlineimage"}))})(t),this.setState({showPreset:!1})}},l)))),!this.state.showPreset&&Object(a.createElement)(Zb,null,r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-"+D,style:{paddingRight:je?je+(q||"px"):void 0,paddingLeft:Se?Se+(q||"px"):void 0}},1!==c&&Object(a.createElement)(Ni.a,Be()({className:`kt-carousel-arrowstyle-${W} kt-carousel-dotstyle-${D}`},Pe),bl()(c,e=>Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item",key:e},Qe(e,!0)))),1===c&&bl()(c,e=>Qe(e,!0))),r&&"grid"===r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":R+"px","grid-column-gap":R+"px",paddingTop:Oe?Oe+(q||"px"):void 0,paddingRight:je?je+(q||"px"):void 0,paddingBottom:_e?_e+(q||"px"):void 0,paddingLeft:Se?Se+(q||"px"):void 0}},bl()(c,e=>Qe(e))),h&&v[0].google&&Object(a.createElement)(yl,{config:Ne}),j&&_[0].google&&Object(a.createElement)(yl,{config:Te}),S&&w[0].google&&Object(a.createElement)(yl,{config:ze}),T&&z[0].google&&Object(a.createElement)(yl,{config:He})))}}),bm=wp.blockEditor.RichText,mm=[{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A=t.containerVAlign,L={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+tl(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:d?tl(d,void 0!==w?w:1):It("#eeeeee",void 0!==w?w:1),background:s?tl(s,void 0!==E?E:1):void 0,borderRadius:void 0===m||""===m||isNaN(m)?void 0:m+"px",borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},F=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?tl(P[0].color):void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?tl(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?tl(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},W=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:tl(g[0].border),backgroundColor:g[0].background?tl(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?tl(o[e].color):void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:"url('"+t+"')",backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},D=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e).concat(A?" testimonial-valign-"+A:""),style:"bubble"!==i&&"inlineimage"!==i?L:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?L:void 0},R&&P[0].icon&&"card"!==i&&F(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),R&&P[0].icon&&"card"===i&&F(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},D(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return D(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A=t.containerVAlign,L={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+tl(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:d?tl(d,void 0!==w?w:1):It("#eeeeee",void 0!==w?w:1),background:s?tl(s,void 0!==E?E:1):void 0,borderRadius:isNaN(m)?void 0:m+"px",borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},F=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?tl(P[0].color):void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?tl(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?tl(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},W=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:tl(g[0].border),backgroundColor:g[0].background?tl(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?tl(o[e].color):void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:"url('"+t+"')",backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},D=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e).concat(A?" testimonial-valign-"+A:""),style:"bubble"!==i&&"inlineimage"!==i?L:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?L:void 0},R&&P[0].icon&&"card"!==i&&F(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),R&&P[0].icon&&"card"===i&&F(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},D(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return D(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+tl(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:d?tl(d,void 0!==w?w:1):It("#eeeeee",void 0!==w?w:1),background:s?tl(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?tl(P[0].color):void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?tl(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?tl(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:tl(g[0].border),backgroundColor:g[0].background?tl(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?tl(o[e].color):void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:"url('"+t+"')",backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingLeft:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingRight:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m+"px",borderTopWidth:b&&void 0!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m+"px",borderTopWidth:b&&void 0!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m+"px",borderTopWidth:b&&void 0!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:void 0===g[0].ratio||""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m+"px",borderTopWidth:b&&void 0!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic"},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},F=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&""!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&""!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&""!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&""!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}})),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&L(e),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&L(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item",key:e},F(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return F(e)}))))}}],pm=wp.blocks.registerBlockType,gm=wp.blockEditor.RichText;pm("kadence/testimonials",{title:Object(o.__)("Testimonials","kadence-blocks"),icon:{src:n.testimonialBlock},category:"kadence-blocks",keywords:[Object(o.__)("testimonials","kadence-blocks"),Object(o.__)("rating","kadence-blocks"),"KB"],attributes:Pb,edit:dm,supports:{anchor:!0},save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A=t.containerVAlign,L={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+Rt(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:Rt(d||"#eeeeee",void 0!==w?w:1),background:s?Rt(s,void 0!==E?E:1):void 0,borderRadius:void 0===m||""===m||isNaN(m)?void 0:m+"px",borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},F=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?Rt(P[0].color):void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?Rt(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?Rt(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},W=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:Rt(g[0].border),backgroundColor:g[0].background?Rt(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?Rt(o[e].color):void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:"url('"+t+"')",backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},D=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e).concat(A?" testimonial-valign-"+A:""),style:"bubble"!==i&&"inlineimage"!==i?L:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?L:void 0},R&&P[0].icon&&"card"!==i&&F(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),R&&P[0].icon&&"card"===i&&F(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(gm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:Rt(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:Rt(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:Rt(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:Rt(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:Rt(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(gm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(gm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(gm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},D(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return D(e)}))))},deprecated:mm});var um=l(89),hm=l.n(um);const{Component:vm,Fragment:km}=wp.element,{IconButton:ym,Spinner:fm,ToggleControl:Om}=wp.components,{BACKSPACE:jm,DELETE:_m}=wp.keycodes,{RichText:Sm,URLPopover:Em,URLInput:wm}=wp.blockEditor,{isBlobURL:xm}=wp.blob;var Cm=Object(A.withSelect)((e,t)=>{const{getMedia:l}=e("core"),{id:a}=t;return{image:a?l(a):null}})(class extends vm{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onSelectCaption=this.onSelectCaption.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.toggleSettingsVisibility=this.toggleSettingsVisibility.bind(this),this.state={captionSelected:!1,showSettings:!1}}toggleSettingsVisibility(){this.setState({showSettings:!this.state.showSettings})}bindContainer(e){this.container=e}onSelectCaption(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected||this.setState({captionSelected:!0})}onSelectImage(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}onRemoveImage(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[jm,_m].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}componentDidUpdate(e){const{isSelected:t,image:l,url:a}=this.props;l&&!a&&this.props.setAttributes({url:l.source_url,alt:l.alt_text}),this.state.captionSelected&&!t&&e.isSelected&&this.setState({captionSelected:!1})}render(){const{url:e,width:t,height:l,imageRatio:i,lightUrl:n,thumbUrl:r,customLink:c,linkTarget:s,alt:d,id:b,linkTo:m,link:p,isFirstItem:g,isLastItem:u,isSelected:h,showCaption:v,caption:k,captionStyle:y,captionStyles:f,onRemove:O,onMoveForward:j,onMoveBackward:_,setAttributes:S,setLinkAttributes:E,"aria-label":w,type:x,thumbnail:C}=this.props;let M;switch(m){case"media":M=e;break;case"custom":M=c||e;break;case"attachment":M=p}const N=al()({"kb-gallery-image-contain":!0,"kadence-blocks-gallery-intrinsic":"grid"===x&&"inherit"!==i||("carousel"===x||"slider"===x||"thumbslider"===x)&&i||"fluidcarousel"!==x&&"tiles"!==x&&t&&l,["kb-gallery-image-ratio-"+i]:i&&("grid"===x||"carousel"===x||"slider"===x||"thumbslider"===x)}),T=Object(a.createElement)("button",{className:N,onClick:this.onSelectImage,unstableOnFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":w,ref:this.bindContainer,style:{paddingBottom:"masonry"===x&&t&&l||"grid"===x&&"inherit"===i&&t&&l?l/t*100+"%":void 0}},Object(a.createElement)("img",{src:r||e,alt:d,width:t,height:l,"data-id":b,"data-full-image":e,"data-light-image":n,"data-link":p,"data-custom-link":c,"data-custom-link-target":s}),xm(e)&&Object(a.createElement)(fm,null)),z=Object(a.createElement)("div",{className:N,style:{paddingBottom:"masonry"===x&&t&&l||"grid"===x&&"inherit"===i&&t&&l?l/t*100+"%":void 0}},Object(a.createElement)("img",{src:r||e,alt:d,width:t,height:l,"data-id":b,"data-full-image":e,"data-light-image":n,"data-link":p,"data-custom-link":c,"data-custom-link-target":s}),xm(e)&&Object(a.createElement)(fm,null)),H=Object(a.createElement)(Sm,{tagName:"figcaption",className:"kadence-blocks-gallery-item__caption"+(this.state.captionSelected?" editing-caption":""),placeholder:h?Object(o.__)("Write caption…","kadence-blocks"):null,value:k,isSelected:this.state.captionSelected,onChange:e=>S({caption:e}),unstableOnFocus:this.onSelectCaption,inlineToolbar:!!this.state.captionSelected,keepPlaceholderOnFocus:!0,style:{fontWeight:""!==f[0].weight?f[0].weight:void 0,fontStyle:""!==f[0].style?f[0].style:void 0,fontSize:void 0!==f[0].size&&""!==f[0].size[0]?f[0].size[0]+f[0].sizeType:void 0,lineHeight:f[0].lineHeight&&f[0].lineHeight[0]?f[0].lineHeight[0]+f[0].lineType:void 0,textTransform:""!==f[0].textTransform?f[0].textTransform:void 0,letterSpacing:""!==f[0].letterSpacing?f[0].letterSpacing+"px":void 0,fontFamily:""!==f[0].family?f[0].family:""}}),B=al()({"kb-gallery-figure":!0,"is-selected":!C&&h,"is-transient":xm(r||e),"kadence-blocks-gallery-item-has-caption":v&&k,"kadence-blocks-gallery-item-hide-caption":!v,["kb-has-image-ratio-"+i]:i&&("grid"===x||"carousel"===x||"slider"===x||"thumbslider"===x)});return Object(a.createElement)(km,null,Object(a.createElement)("figure",{className:B},Object(a.createElement)("div",{className:"kb-gal-image-radius",style:{maxWidth:"masonry"===x&&t&&l?t+"px":void 0}},!C&&T,C&&z,!C&&("below"!==y||!v)&&H),!C&&Object(a.createElement)(km,null,"below"===y&&v&&H,Object(a.createElement)("div",{className:"kadence-blocks-library-gallery-item__move-menu"},Object(a.createElement)(ym,{icon:"arrow-left",onClick:g?void 0:_,className:"kadence-blocks-gallery-item__move-backward",label:Object(o.__)("Move Image Backward","kadence-blocks"),"aria-disabled":g,disabled:!h}),Object(a.createElement)(ym,{icon:"arrow-right",onClick:u?void 0:j,className:"kadence-blocks-gallery-item__move-forward",label:Object(o.__)("Move Image Forward","kadence-blocks"),"aria-disabled":u,disabled:!h})),Object(a.createElement)("div",{className:"kadence-blocks-library-gallery-item__inline-menu"},Object(a.createElement)(ym,{icon:"no-alt",onClick:O,className:"kadence-blocks-gallery-item__remove",label:Object(o.__)("Remove Image","kadence-blocks"),disabled:!h})))),!C&&"custom"===m&&h&&Object(a.createElement)(km,null,Object(a.createElement)("div",{className:"kb-gallery-custom-link block-editor-url-popover__row"},Object(a.createElement)(wm,{"aria-label":Object(o.__)("URL","kadence-blocks"),placeholder:Object(o.__)("Paste or type URL","kadence-blocks"),className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",value:c,onChange:e=>E({customLink:e})}),Object(a.createElement)(ym,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(o.__)("Link Settings","kadence-blocks"),onClick:this.toggleSettingsVisibility,"aria-expanded":this.state.showSettings})),this.state.showSettings&&Object(a.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},Object(a.createElement)(Om,{label:Object(o.__)("Open in New Tab","kadence-blocks"),checked:"_blank"===s,onChange:e=>E({linkTarget:e?"_blank":""})}))))}}),Mm=wp.components,Nm=Mm.G,Tm=Mm.Path,zm=Mm.SVG,Hm=Object(a.createElement)(zm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(Tm,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(Nm,null,Object(a.createElement)(Tm,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),Bm=l(94),Im=l.n(Bm);const Rm=(e,t,l,a)=>{const o=Im()(e,["alt","id","link","caption"]);if(e.id&&!e.sizes&&!e.media_details){const t=wp.data.select("core").getMedia(e.id);t&&t.source_url===e.url&&(e=t)}if(e.id&&"object"==typeof a&&null!==a)for(let t in a)parseInt(a[t].id)===e.id&&(a[t].customLink&&(o.customLink=a[t].customLink),a[t].linkTarget&&(o.linkTarget=a[t].linkTarget));return o.url=e.url||e.source_url,o.thumbUrl=ce()(e,["sizes",l,"url"])||ce()(e,["media_details","sizes",l,"source_url"])||e.url||e.source_url,o.lightUrl=ce()(e,["sizes",t,"url"])||ce()(e,["media_details","sizes",t,"source_url"])||e.url||e.source_url,o.width=ce()(e,["sizes",l,"width"])||ce()(e,["media_details","sizes",l,"width"])||ce()(e,["sizes","full","width"])||ce()(e,["media_details","width"])||void 0,o.height=ce()(e,["sizes",l,"height"])||ce()(e,["media_details","sizes",l,"height"])||ce()(e,["sizes","full","height"])||ce()(e,["media_details","height"])||void 0,o},Pm=(e,t,l)=>{let a=wp.data.select("core").getMedia(e.id);a||(a=e);const o=Im()(a,["id","link"]);return o.alt=ce()(a,["alt_text"])||ce()(a,["alt"])||void 0,o.caption=ce()(a,["caption","raw"])||ce()(a,["caption"])||void 0,o.url=a.source_url||e.url,o.customLink=e.customLink,o.linkTarget=e.linkTarget,o.thumbUrl=ce()(a,["sizes",l,"url"])||ce()(a,["media_details","sizes",l,"source_url"])||a.source_url||e.url,o.lightUrl=ce()(a,["sizes",t,"url"])||ce()(a,["media_details","sizes",t,"source_url"])||a.source_url||e.url,o.width=ce()(a,["sizes",l,"width"])||ce()(a,["media_details","sizes",l,"width"])||ce()(a,["media_details","width"])||void 0,o.height=ce()(a,["sizes",l,"height"])||ce()(a,["media_details","sizes",l,"height"])||ce()(a,["media_details","height"])||void 0,o},Am=e=>{let t=[];return 1===e?t=[1,1,1,1,1,1]:2===e?t=[2,2,2,2,1,1]:3===e?t=[3,3,3,2,1,1]:4===e?t=[4,4,4,3,2,2]:5===e?t=[5,5,5,4,4,3]:6===e?t=[6,6,6,4,4,3]:7===e?t=[7,7,7,5,5,4]:8===e&&(t=[8,4,4,6,4,4]),t},{applyFilters:Lm}=wp.hooks,{apiFetch:Fm}=wp,{IconButton:Wm,Button:Dm,ButtonGroup:Um,PanelBody:Vm,Tooltip:$m,RangeControl:Gm,SelectControl:Zm,ToggleControl:qm,Toolbar:Jm,TabPanel:Km,Dashicon:Qm,withNotices:Ym}=wp.components,{Component:Xm,Fragment:ep}=wp.element,{getBlobByURL:tp,isBlobURL:lp,revokeBlobURL:ap}=wp.blob,op=[{value:"attachment",label:Object(o.__)("Attachment Page","kadence-blocks")},{value:"media",label:Object(o.__)("Media File","kadence-blocks")},{value:"custom",label:Object(o.__)("Custom","kadence-blocks")},{value:"none",label:Object(o.__)("None","kadence-blocks")}],ip=[{value:"masonry",label:Object(o.__)("Masonry","kadence-blocks"),icon:n.galMasonry,isDisabled:!1},{value:"grid",label:Object(o.__)("Grid","kadence-blocks"),icon:n.galGrid,isDisabled:!1},{value:"carousel",label:Object(o.__)("Carousel","kadence-blocks"),icon:n.galCarousel,isDisabled:!1},{value:"fluidcarousel",label:Object(o.__)("Fluid Carousel","kadence-blocks"),icon:n.galFluid,isDisabled:!1},{value:"slider",label:Object(o.__)("Slider","kadence-blocks"),icon:n.galSlider,isDisabled:!1},{value:"thumbslider",label:Object(o.__)("Thumbnail Slider (Pro addon)","kadence-blocks"),icon:n.thumbslider,isDisabled:!0},{value:"tiles",label:Object(o.__)("Tiles (Pro addon)","kadence-blocks"),icon:n.galtiles,isDisabled:!0}],np=[],rp=["image"];var cp=Object(v.compose)([Object(A.withSelect)(e=>{const{getSettings:t}=e("core/block-editor"),{__experimentalMediaUpload:l,mediaUpload:a}=t();return{mediaUpload:a||l}}),Ym])(class extends Xm{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onSelectImages=this.onSelectImages.bind(this),this.setLinkTo=this.setLinkTo.bind(this),this.changeImageThumbSize=this.changeImageThumbSize.bind(this),this.changeImageLightSize=this.changeImageLightSize.bind(this),this.showSettings=this.showSettings.bind(this),this.setColumnsNumber=this.setColumnsNumber.bind(this),this.setCaptions=this.setCaptions.bind(this),this.toggleImageCrop=this.toggleImageCrop.bind(this),this.onMove=this.onMove.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBackward=this.onMoveBackward.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.onUploadError=this.onUploadError.bind(this),this.setImageAttributes=this.setImageAttributes.bind(this),this.setAttributes=this.setAttributes.bind(this),this.saveImageAttributes=Gl()(this.saveImageAttributes.bind(this),1e3),this.carouselSizeTrigger=Gl()(this.carouselSizeTrigger.bind(this),250),this.bindSlider=this.bindSlider.bind(this),this.bindThumbs=this.bindThumbs.bind(this),this.state={selectedImage:null,imageAttributes:{},settings:{},marginDeskControl:"linked",marginTabletControl:"linked",marginMobileControl:"linked",radiusControl:"linked",user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin"}}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}setAttributes(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e={...e,ids:d()(e.images,"id")}),this.props.setAttributes(e)}bindSlider(e){this.sliderSlides=e}bindThumbs(e){this.sliderThumbs=e}onSelectImage(e){return()=>{this.state.selectedImage!==e&&this.setState({selectedImage:e})}}onMove(e,t){const l=[...this.props.attributes.images];l.splice(t,1,this.props.attributes.images[e]),l.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:l})}onMoveForward(e){return()=>{e!==this.props.attributes.images.length-1&&this.onMove(e,e+1)}}onMoveBackward(e){return()=>{0!==e&&this.onMove(e,e-1)}}onRemoveImage(e){return()=>{const t=Hl()(this.props.attributes.images,(t,l)=>e!==l);this.setState({selectedImage:null}),this.setAttributes({images:t})}}onSelectImages(e){const{lightSize:t,thumbSize:l,images:a}=this.props.attributes;this.setAttributes({images:e.map(e=>Rm(e,t,l,a))})}onUploadError(e){const{noticeOperations:t}=this.props;t.removeAllNotices(),t.createErrorNotice(e)}setCaptions(e){if(this.setAttributes({showCaption:e}),e){const{lightSize:e,thumbSize:t,images:l}=this.props.attributes;l&&this.setAttributes({images:l.map(l=>Pm(l,e,t))})}}changeImageThumbSize(e){const{lightSize:t,images:l}=this.props.attributes;this.setAttributes({thumbSize:e.slug}),this.setAttributes({images:l.map(l=>Pm(l,t,e.slug))})}changeImageLightSize(e){const{thumbSize:t,images:l}=this.props.attributes;this.setAttributes({lightSize:e.slug}),this.setAttributes({images:l.map(l=>Pm(l,e.slug,t))})}setLinkTo(e){this.setAttributes({linkTo:e})}setColumnsNumber(e){this.setAttributes({columns:e})}toggleImageCrop(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}getImageCropHelp(e){return e?Object(o.__)("Thumbnails are cropped to align.","kadence-blocks"):Object(o.__)("Thumbnails are not cropped.","kadence-blocks")}saveImageAttributes(e,t){const l=new window.FormData;hm()(t,(e,t)=>l.append(t,e)),Fm({path:"/wp/v2/media/"+e,body:l,method:"POST"})}setImageAttributes(e,t){const{attributes:{images:l}}=this.props,{setAttributes:a}=this;l[e]&&(l[e].id&&this.saveImageAttributes(l[e].id,t),a({images:[...l.slice(0,e),{...l[e],...t},...l.slice(e+1)]}))}setLinkAttributes(e,t){const{attributes:{images:l}}=this.props,{setAttributes:a}=this;l[e]&&a({images:[...l.slice(0,e),{...l[e],...t},...l.slice(e+1)]})}componentDidMount(){const{attributes:e,mediaUpload:t}=this.props,{images:l,uniqueID:a}=e;if(a)np.includes(a)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),np.push("_"+this.props.clientId.substr(2,9))):np.push(a);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/advancedgallery"]&&"object"==typeof e["kadence/advancedgallery"]&&Object.keys(e["kadence/advancedgallery"]).map(t=>{this.props.attributes[t]=e["kadence/advancedgallery"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),np.push("_"+this.props.clientId.substr(2,9))}if(Qa()(l,({url:e})=>lp(e))){const e=d()(l,({url:e})=>tp(e));hm()(l,({url:e})=>ap(e)),t({filesList:e,onFileChange:this.onSelectImages,allowedTypes:["image"]})}const o=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==o["kadence/advancedgallery"]&&"object"==typeof o["kadence/advancedgallery"]&&this.setState({settings:o["kadence/advancedgallery"]})}componentDidUpdate(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}carouselSizeTrigger(){const e=document.getElementById("kb-gallery-id-"+this.props.attributes.uniqueID);if(e){const t=Math.floor(.8*e.offsetWidth);e.querySelectorAll(".slick-slide").forEach((function(e){e.style.maxWidth=t+"px"}))}}render(){const{attributes:e,isSelected:t,className:l,noticeUI:i,setAttributes:r}=this.props,{uniqueID:c,images:s,columns:b,linkTo:m,ids:p,columnControl:g,showCaption:u,captionStyles:h,lightbox:v,lightSize:k,type:f,imageRatio:O,captionStyle:j,gutter:_,thumbSize:S,autoPlay:E,autoSpeed:w,transSpeed:x,slidesScroll:C,arrowStyle:M,dotStyle:N,imageRadius:T,margin:z,marginUnit:H,displayShadow:B,shadow:I,shadowHover:R,carouselHeight:P,imageFilter:A,lightboxCaption:L,carouselAlign:F,thumbnailColumns:W,thumbnailControl:D,thumbnailRatio:U,mobileForceHover:V}=e,$=Lm("kadence.galleryTypes",ip),G=!!s.length,Z=e=>{const t=I.map((t,l)=>(0===l&&(t={...t,...e}),t));r({shadow:t})},q=e=>{const t=R.map((t,l)=>(0===l&&(t={...t,...e}),t));r({shadowHover:t})},J=e=>{const t=z.map((t,l)=>(0===l&&(t={...t,...e}),t));r({margin:t})},K="em"===H||"rem"===H?-12:-200,Q="em"===H||"rem"===H?24:200,Y="em"===H||"rem"===H?.1:1,X={google:{families:[h[0].family+(h[0].variant?":"+h[0].variant:"")]}},ee=h[0].google?X:"",te=e=>{const t=h.map((t,l)=>(0===l&&(t={...t,...e}),t));r({captionStyles:t})};function le(e){const{className:t,style:l,onClick:o}=e;return Object(a.createElement)("button",{className:t,style:{...l,display:"block"},onClick:o},Object(a.createElement)(Qm,{icon:"arrow-right-alt2"}))}function ae(e){const{className:t,style:l,onClick:o}=e;return Object(a.createElement)("button",{className:t,style:{...l,display:"block"},onClick:o},Object(a.createElement)(Qm,{icon:"arrow-left-alt2"}))}const oe={dots:"none"!==N,arrows:"none"!==M,infinite:!0,speed:x,draggable:!1,autoplaySpeed:w,autoplay:E,slidesToShow:b[0],slidesToScroll:"all"===C?b[0]:1,nextArrow:Object(a.createElement)(le,null),prevArrow:Object(a.createElement)(ae,null)},ne={dots:"none"!==N,arrows:"none"!==M,infinite:!0,speed:x,draggable:!1,autoplaySpeed:w,autoplay:E,centerMode:!1!==F,variableWidth:!0,slidesToShow:1,slidesToScroll:1,nextArrow:Object(a.createElement)(le,null),prevArrow:Object(a.createElement)(ae,null),onInit:this.carouselSizeTrigger,onReInit:this.carouselSizeTrigger},re={dots:"none"!==N,arrows:"none"!==M,infinite:!0,fade:!0,speed:x,draggable:!1,autoplaySpeed:w,autoplay:E,slidesToShow:1,slidesToScroll:1,nextArrow:Object(a.createElement)(le,null),prevArrow:Object(a.createElement)(ae,null)},ce={dots:!1,arrows:"none"!==M,infinite:!0,fade:!0,speed:x,draggable:!1,autoplaySpeed:w,autoplay:E,slidesToShow:1,slidesToScroll:1,onInit:this.onSelectImage(0),nextArrow:Object(a.createElement)(le,null),prevArrow:Object(a.createElement)(ae,null)},se={dots:!1,arrows:"none"!==M,infinite:!0,fade:!1,speed:x,draggable:!1,autoplaySpeed:w,autoplay:E,slidesToShow:W[0],slidesToScroll:1,nextArrow:Object(a.createElement)(le,null),prevArrow:Object(a.createElement)(ae,null),swipeToSlide:!0,focusOnSelect:!0},de=Object(a.createElement)(ot.BlockControls,null,G&&Object(a.createElement)(Jm,null,Object(a.createElement)(ot.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:rp,multiple:!0,gallery:!0,value:s.map(e=>e.id),render:({open:e})=>Object(a.createElement)(Wm,{className:"components-toolbar__control",label:Object(o.__)("Edit gallery","kadence-blocks"),icon:"edit",onClick:e})}))),be=Object(a.createElement)(ot.MediaPlaceholder,{addToGallery:G,isAppender:G,className:l,dropZoneUIOnly:G&&!t,icon:!G&&Object(a.createElement)(ot.BlockIcon,{icon:Hm}),labels:{title:!G&&Object(o.__)("Gallery","kadence-blocks"),instructions:!G&&Object(o.__)("Drag images, upload new ones or select files from your library.","kadence-blocks")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:rp,multiple:!0,value:G?s:void 0,onError:this.onUploadError,notices:G?void 0:i}),me=Object(a.createElement)("style",null,`\n\t\t\t\t\t.wp-block[data-type="kadence/advancedgallery"] ul.kb-gallery-main-contain.kb-gallery-id-${c} {\n\t\t\t\t\t\t${_&&void 0!==_[0]&&""!==_[0]?"margin: -"+_[0]/2+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-id-${c} .kadence-blocks-gallery-item {\n\t\t\t\t\t\t${_&&void 0!==_[0]&&""!==_[0]?"padding:"+_[0]/2+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-carousel.kb-gallery-id-${c} .kt-blocks-carousel .slick-slider,\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-thumbslider.kb-gallery-id-${c} .kt-blocks-carousel-thumbnails.slick-slider {\n\t\t\t\t\t\t${_&&void 0!==_[0]&&""!==_[0]?"margin: 0 -"+_[0]/2+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-carousel.kb-gallery-id-${c} .kt-blocks-carousel .slick-slider .slick-slide,\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-fluidcarousel.kb-gallery-id-${c} .kt-blocks-carousel .slick-slider .slick-slide,\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-thumbslider.kb-gallery-id-${c} .kt-blocks-carousel-thumbnails.slick-slider .slick-slide {\n\t\t\t\t\t\t${_&&void 0!==_[0]&&""!==_[0]?"padding: 4px "+_[0]/2+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-fluidcarousel.kb-gallery-id-${c} .kt-blocks-carousel.kb-carousel-mode-align-left .slick-slider .slick-slide {\n\t\t\t\t\t\t${_&&void 0!==_[0]&&""!==_[0]?"padding: 4px "+_[0]+"px 4px 0;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-carousel.kb-gallery-id-${c} .kt-blocks-carousel .slick-prev,\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-thumbslider.kb-gallery-id-${c} .kt-blocks-carousel-thumbnails .slick-prev {\n\t\t\t\t\t\t${_&&void 0!==_[0]&&""!==_[0]?"left:"+_[0]/2+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-carousel.kb-gallery-id-${c} .kt-blocks-carousel .slick-next,\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-thumbslider.kb-gallery-id-${c} .kt-blocks-carousel-thumbnails .slick-next {\n\t\t\t\t\t\t${_&&void 0!==_[0]&&""!==_[0]?"right:"+_[0]/2+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t${h&&void 0!==h[0]&&void 0!==h[0].background?`.kb-gallery-id-${c}.kb-gallery-main-contain .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption { background: linear-gradient( 0deg, `+dn(h[0].background?h[0].background:"#000000",""!==h[0].backgroundOpacity?h[0].backgroundOpacity:.5)+" 0, "+dn(h[0].background?h[0].background:"#000000",0)+" 100% );}":""}\n\t\t\t\t\t${h&&void 0!==h[0]&&void 0!==h[0].background?`.kb-gallery-id-${c}.kb-gallery-caption-style-cover-hover.kb-gallery-main-contain .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption, .kb-gallery-id-${c}.kb-gallery-caption-style-below.kb-gallery-main-contain .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption { background:`+dn(h[0].background?h[0].background:"#000000",""!==h[0].backgroundOpacity?h[0].backgroundOpacity:.5)+";}":""}\n\t\t\t\t\t${h&&void 0!==h[0]&&void 0!==h[0].color?`.kb-gallery-id-${c} .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figcaption { color:`+dn(h[0].color)+";}":""}\n\t\t\t\t\t.kb-gallery-id-${c} .kadence-blocks-gallery-item .kb-gal-image-radius { box-shadow:${B?I[0].hOffset+"px "+I[0].vOffset+"px "+I[0].blur+"px "+I[0].spread+"px "+dn(I[0].color,I[0].opacity):"none"}; }\n\t\t\t\t\t.kb-gallery-id-${c} .kadence-blocks-gallery-item:hover .kb-gal-image-radius { box-shadow:${B?R[0].hOffset+"px "+R[0].vOffset+"px "+R[0].blur+"px "+R[0].spread+"px "+dn(R[0].color,R[0].opacity):"none"}; }\n\t\t\t\t\t.kb-gallery-id-${c} .kadence-blocks-gallery-item .kb-gal-image-radius {\n\t\t\t\t\t\t${T&&void 0!==T[0]&&""!==T[0]?"border-radius:"+T[0]+"px "+T[1]+"px "+T[2]+"px "+T[3]+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kb-gallery-main-contain.kb-gallery-type-fluidcarousel.kb-gallery-id-${c} .kt-blocks-carousel .slick-list figure .kb-gal-image-radius, .kb-gallery-main-contain.kb-gallery-type-fluidcarousel.kb-gallery-id-${c} .kt-blocks-carousel .slick-list figure .kb-gal-image-radius img {\n\t\t\t\t\t\t${P&&void 0!==P[0]&&""!==P[0]?"height:"+P[0]+"px;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.wp-block-kadence-advancedgallery .kb-gallery-type-tiles.kb-gallery-id-${c} > .kadence-blocks-gallery-item, .wp-block-kadence-advancedgallery .kb-gallery-type-tiles.kb-gallery-id-${c} .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner img {\n\t\t\t\t\t\t${P&&void 0!==P[0]&&""!==P[0]?"height:"+P[0]+"px;":""}\n\t\t\t\t\t}\n\t\t\t`);if(!G)return Object(a.createElement)(ep,null,de,be);const pe=[{key:"linked",name:Object(o.__)("Linked","kadence-blocks"),icon:Object(o.__)("Linked","kadence-blocks")},{key:"individual",name:Object(o.__)("Individual","kadence-blocks"),icon:Object(o.__)("Individual","kadence-blocks")}],ge=al()("kb-gallery-main-contain",{["kb-gallery-type-"+f]:f,["kb-gallery-id-"+c]:c,["kb-gallery-caption-style-"+j]:j,["kb-gallery-filter-"+A]:A}),ue=(e,l,i=!1)=>{const n=Object(o.sprintf)(
27
  Object(o.__)("section","kadence-blocks")],supports:{inserter:!1,reusable:!1,html:!1,ktanimate:!0,ktanimateadd:!0,ktanimatepreview:!0,ktanimateswipe:!0,kbcss:!0,ktdynamic:!0,editorsKitBlockNavigator:!0},attributes:{id:{type:"number",default:1},topPadding:{type:"number",default:""},bottomPadding:{type:"number",default:""},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},leftMargin:{type:"number",default:""},rightMargin:{type:"number",default:""},leftMarginM:{type:"number",default:""},rightMarginM:{type:"number",default:""},zIndex:{type:"number",default:""},background:{type:"string",default:""},backgroundOpacity:{type:"number",default:1},border:{type:"string",default:""},borderOpacity:{type:"number",default:1},borderWidth:{type:"array",default:[0,0,0,0]},tabletBorderWidth:{type:"array",default:["","","",""]},mobileBorderWidth:{type:"array",default:["","","",""]},borderRadius:{type:"array",default:[0,0,0,0]},uniqueID:{type:"string",default:""},collapseOrder:{type:"number"},backgroundImg:{type:"array",default:[{bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat"}]},textAlign:{type:"array",default:["","",""]},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""},topPaddingT:{type:"number",default:""},bottomPaddingT:{type:"number",default:""},leftPaddingT:{type:"number",default:""},rightPaddingT:{type:"number",default:""},topMarginT:{type:"number",default:""},bottomMarginT:{type:"number",default:""},leftMarginT:{type:"number",default:""},rightMarginT:{type:"number",default:""},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0,inset:!1}]},noCustomDefaults:{type:"bool",default:!1},vsdesk:{type:"bool",default:!1},vstablet:{type:"bool",default:!1},vsmobile:{type:"bool",default:!1},paddingType:{type:"string",default:"px"},marginType:{type:"string",default:"px"},bgColorClass:{type:"string",default:""},templateLock:{type:"string"}},edit:Wn,save:function({attributes:e}){const{id:t,background:l,backgroundOpacity:o,backgroundImg:i,uniqueID:n,vsdesk:r,vstablet:c,vsmobile:s,bgColorClass:d}=e,b=i&&i[0]&&i[0].bgImg?i[0].bgImg:"",m=l&&""===b?Rt(l,o):void 0,p=al()({["inner-column-"+t]:t,["kadence-column"+n]:n,"kvs-lg-false":"undefined"!==r&&r,"kvs-md-false":"undefined"!==c&&c,"kvs-sm-false":"undefined"!==s&&s}),g=Object(ot.getColorClassName)("background-color",d);return al()("kt-inside-inner-col",{[g]:g}),Object(a.createElement)("div",{className:p},Object(a.createElement)("div",{className:"kt-inside-inner-col",style:{background:m}},Object(a.createElement)(ot.InnerBlocks.Content,null)))},deprecated:Dn});var Un={};Un.block=Object(a.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},Object(a.createElement)("path",{d:"M24,8.944c-8.26,0 -15.056,6.796 -15.056,15.056c0,8.26 6.796,15.056 15.056,15.056c8.26,0 15.056,-6.796 15.056,-15.056c0,-8.26 -6.796,-15.056 -15.056,-15.056Zm8.46,14.277l-2.813,2.743c-0.301,0.296 -0.437,0.723 -0.362,1.139l0.663,3.871c0.012,0.071 0.018,0.143 0.018,0.216c0,0.706 -0.581,1.287 -1.287,1.287c-0.208,0 -0.413,-0.051 -0.598,-0.148l-3.476,-1.812c-0.373,-0.199 -0.822,-0.199 -1.196,0l-3.476,1.812c-0.184,0.097 -0.39,0.148 -0.598,0.148c-0.706,0 -1.287,-0.581 -1.287,-1.287c0,-0.073 0.007,-0.145 0.019,-0.216l0.663,-3.871c0.074,-0.416 -0.061,-0.843 -0.362,-1.139l-2.813,-2.743c-0.237,-0.241 -0.37,-0.565 -0.37,-0.903c0,-0.633 0.468,-1.177 1.095,-1.272l3.885,-0.565c0.41,-0.074 0.76,-0.344 0.935,-0.722l1.74,-3.523c0.217,-0.437 0.665,-0.714 1.153,-0.714c0.488,0 0.935,0.277 1.152,0.714l1.755,3.523c0.186,0.38 0.549,0.643 0.967,0.703l3.886,0.566c0.626,0.095 1.094,0.639 1.094,1.272c0,0.347 -0.14,0.679 -0.387,0.921Z"}),Object(a.createElement)("path",{d:"M44.75,46.019c0.696,0 1.269,-0.573 1.269,-1.269l0,-41.5c0,-0.696 -0.573,-1.269 -1.269,-1.269l-41.5,0c-0.696,0 -1.269,0.573 -1.269,1.269l0,41.5c0,0.696 0.573,1.269 1.269,1.269l41.5,0Zm-40.232,-41.501l38.964,0l0,38.964l-38.964,0l0,-38.964Z"})));var Vn=Un,$n=wp.components,Gn=$n.Button,Zn=$n.Dashicon;function qn(e){var t=e.label,l=e.value,o=e.onChange,i=e.min,n=e.max,r=e.step,c=void 0===r?1:r;return[o&&Object(a.createElement)("div",{className:"components-base-control"},Object(a.createElement)("p",{className:"components-base-control__label"},t),Object(a.createElement)("div",{className:"components-base-control__field kb-flex-center kb-step-control"},Object(a.createElement)(Gn,{className:"kb-step-btn",isDefault:!0,onClick:function(){l>i&&o(l-c)}},Object(a.createElement)(Zn,{icon:"arrow-left"})),Object(a.createElement)("input",{className:"components-step-control__number",type:"number",onChange:function(e){return o(Number(e.target.value))},"aria-label":t,value:l,min:i,max:n,step:c}),Object(a.createElement)(Gn,{className:"kb-step-btn",isDefault:!0,onClick:function(){l<n&&o(l+c)}},Object(a.createElement)(Zn,{icon:"arrow-right"}))))]}const{InspectorControls:Jn,BlockControls:Kn,AlignmentToolbar:Qn,BlockAlignmentToolbar:Yn}=wp.blockEditor,{Component:Xn,Fragment:er}=wp.element,{PanelBody:tr,RangeControl:lr,TextControl:ar,SelectControl:or,Button:ir,Dashicon:nr,TabPanel:rr,ButtonGroup:cr,Tooltip:sr}=wp.components,dr=[];const{registerBlockType:br}=wp.blocks;br("kadence/icon",{title:Object(o.__)("Icon","kadence-blocks"),icon:{src:Vn.block},category:"kadence-blocks",keywords:[Object(o.__)("icon","kadence-blocks"),Object(o.__)("svg","kadence-blocks"),"KB"],supports:{ktdynamic:!0},attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default",marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,hColor:"",hBackground:"",hBorder:""}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"},tabletTextAlignment:{type:"string"},mobileTextAlignment:{type:"string"}},getEditWrapperProps({blockAlignment:e}){if("left"===e||"right"===e||"center"===e)return{"data-align":e}},edit:class extends Xn{constructor(){super(...arguments),this.saveArrayUpdate=this.saveArrayUpdate.bind(this),this.state={marginControl:"linked",user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin"}}componentDidMount(){this.props.attributes.uniqueID?dr.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),dr.push("_"+this.props.clientId.substr(2,9))):dr.push(this.props.attributes.uniqueID):(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),dr.push("_"+this.props.clientId.substr(2,9)))}saveArrayUpdate(e,t){const{attributes:l,setAttributes:a}=this.props,{icons:o}=l;a({icons:o.map((l,a)=>(t===a&&(l={...l,...e}),l))})}render(){const{attributes:{iconCount:e,icons:t,blockAlignment:l,textAlignment:i,tabletTextAlignment:r,mobileTextAlignment:c,uniqueID:s},className:b,setAttributes:m,clientId:p}=this.props,{marginControl:g}=this.state,u=[{key:"linked",name:Object(o.__)("Linked"),micon:n.linked},{key:"individual",name:Object(o.__)("Individual"),micon:n.individual}],h=Object(a.createElement)(rr,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(nr,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(nr,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(nr,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(Qn,{value:c,isCollapsed:!1,onChange:e=>{m({mobileTextAlignment:e})}}):"tablet"===e.name?Object(a.createElement)(Qn,{value:r,isCollapsed:!1,onChange:e=>{m({tabletTextAlignment:e})}}):Object(a.createElement)(Qn,{value:i,isCollapsed:!1,onChange:e=>{m({textAlignment:e})}})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),v=e=>Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Color"),colorValue:t[e].hColor?t[e].hColor:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({hColor:t},e)}}),Object(a.createElement)(or,{label:Object(o.__)("Icon Style"),value:t[e].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:t=>{this.saveArrayUpdate({style:t},e)}}),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background Color"),colorValue:t[e].hBackground?t[e].hBackground:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({hBackground:t},e)}})),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Border Color"),colorValue:t[e].hBorder?t[e].hBorder:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({hBorder:t},e)}}))),k=e=>Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color"),colorValue:t[e].color?t[e].color:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({color:t},e)}}),Object(a.createElement)(or,{label:Object(o.__)("Icon Style"),value:t[e].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:t=>{this.saveArrayUpdate({style:t},e)}}),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("background Color"),colorValue:t[e].background?t[e].background:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({background:t},e)}})),"default"!==t[e].style&&Object(a.createElement)(er,null,Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:t[e].border?t[e].border:"",colorDefault:"",onColorChange:t=>{this.saveArrayUpdate({border:t},e)}}))),y=l=>Object(a.createElement)(tr,{title:Object(o.__)("Icon")+" "+(l+1)+" "+Object(o.__)("Settings"),initialOpen:1===e},Object(a.createElement)(Xe,{value:t[l].icon,onChange:e=>{this.saveArrayUpdate({icon:e},l)}}),Object(a.createElement)(lr,{label:Object(o.__)("Icon Size"),value:t[l].size,onChange:e=>{this.saveArrayUpdate({size:e},l)},min:5,max:250}),t[l].icon&&"fe"===t[l].icon.substring(0,2)&&Object(a.createElement)(lr,{label:Object(o.__)("Line Width"),value:t[l].width,onChange:e=>{this.saveArrayUpdate({width:e},l)},step:.5,min:.5,max:4}),Object(a.createElement)("h2",{className:"kt-tab-wrap-title kt-color-settings-title"},Object(o.__)("Color Settings","kadence-blocks")),Object(a.createElement)(rr,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal"+l,title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover"+l,title:Object(o.__)("Hover"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"+l===e.name?v(l):k(l)),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),"default"!==t[l].style&&Object(a.createElement)(lr,{label:Object(o.__)("Border Size (px)"),value:t[l].borderWidth,onChange:e=>{this.saveArrayUpdate({borderWidth:e},l)},min:0,max:20}),"default"!==t[l].style&&Object(a.createElement)(lr,{label:Object(o.__)("Border Radius (%)"),value:t[l].borderRadius,onChange:e=>{this.saveArrayUpdate({borderRadius:e},l)},min:0,max:50}),"default"!==t[l].style&&Object(a.createElement)(lr,{label:Object(o.__)("Padding (px)"),value:t[l].padding,onChange:e=>{this.saveArrayUpdate({padding:e},l)},min:0,max:180}),Object(a.createElement)(cr,{className:"kt-size-type-options kt-outline-control","aria-label":Object(o.__)("Margin Control Type")},d()(u,({name:e,key:t,micon:l})=>Object(a.createElement)(sr,{text:e},Object(a.createElement)(ir,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:g===t,"aria-pressed":g===t,onClick:()=>this.setState({marginControl:t})},l)))),g&&"individual"!==g&&Object(a.createElement)(lr,{label:Object(o.__)("Margin (px)"),value:t[l].marginTop?t[l].marginTop:0,onChange:e=>{this.saveArrayUpdate({marginTop:e,marginRight:e,marginBottom:e,marginLeft:e},l)},min:0,max:180,step:1}),g&&"individual"===g&&Object(a.createElement)(er,null,Object(a.createElement)("p",null,Object(o.__)("Margin (px)")),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlinetop,value:t[l].marginTop?t[l].marginTop:0,onChange:e=>{this.saveArrayUpdate({marginTop:e},l)},min:0,max:180,step:1}),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlineright,value:t[l].marginRight?t[l].marginRight:0,onChange:e=>{this.saveArrayUpdate({marginRight:e},l)},min:0,max:180,step:1}),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlinebottom,value:t[l].marginBottom?t[l].marginBottom:0,onChange:e=>{this.saveArrayUpdate({marginBottom:e},l)},min:0,max:180,step:1}),Object(a.createElement)(lr,{className:"kt-icon-rangecontrol",label:n.outlineleft,value:t[l].marginLeft?t[l].marginLeft:0,onChange:e=>{this.saveArrayUpdate({marginLeft:e},l)},min:0,max:180,step:1})),Object(a.createElement)(ka,Be()({label:Object(o.__)("Link","kadence-blocks"),url:t[l].link,onChangeUrl:e=>{this.saveArrayUpdate({link:e},l)},additionalControls:!0,opensInNewTab:!(!t[l].target||"_blank"!=t[l].target),onChangeTarget:e=>{e?this.saveArrayUpdate({target:"_blank"},l):this.saveArrayUpdate({target:"_self"},l)},dynamicAttribute:"icons:"+l+":link"},this.props)),Object(a.createElement)(ar,{label:Object(o.__)("Title for Accessibility"),value:t[l].title,onChange:e=>{this.saveArrayUpdate({title:e},l)}})),f=Object(a.createElement)("div",null,bl()(e,e=>y(e))),O=Object(a.createElement)("style",null,bl()(e,e=>{return`.kt-svg-icons-${s} .kt-svg-item-${l=e}:hover .kt-svg-icon {\n\t\t\t\t\t${void 0!==t[l].hColor&&t[l].hColor?"color:"+Rt(t[l].hColor)+"!important;":""}\n\t\t\t\t\t${void 0!==t[l].hBackground&&t[l].hBackground?"background:"+Rt(t[l].hBackground)+"!important;":""}\n\t\t\t\t\t${void 0!==t[l].hBorder&&t[l].hBorder?"border-color:"+Rt(t[l].hBorder)+"!important;":""}\n\t\t\t\t}`;var l}));return Object(a.createElement)("div",{className:b},O,Object(a.createElement)(Kn,null,Object(a.createElement)(Yn,{value:l,controls:["center","left","right"],onChange:e=>m({blockAlignment:e})}),Object(a.createElement)(Qn,{value:i,onChange:e=>m({textAlignment:e})})),Object(a.createElement)(Jn,null,Object(a.createElement)(tr,{title:Object(o.__)("Icon Count"),initialOpen:!0},Object(a.createElement)(qn,{label:Object(o.__)("Number of Icons"),value:e,onChange:e=>{const l=t;if(l.length<e){const a=Math.abs(e-l.length);bl()(a,e=>{l.push({icon:l[0].icon,link:l[0].link,target:l[0].target,size:l[0].size,width:l[0].width,title:l[0].title,color:l[0].color,background:l[0].background,border:l[0].border,borderRadius:l[0].borderRadius,borderWidth:l[0].borderWidth,padding:l[0].padding,style:l[0].style,marginTop:l[0].marginTop?l[0].marginTop:0,marginRight:l[0].marginRight?l[0].marginRight:0,marginBottom:l[0].marginBottom?l[0].marginBottom:0,marginLeft:l[0].marginLeft?l[0].marginLeft:0,hColor:l[0].hColor?l[0].hColor:"",hBackground:l[0].hBackground?l[0].hBackground:"",hBorder:l[0].hBorder?l[0].hBorder:""})}),m({icons:l}),this.saveArrayUpdate({title:t[0].title},0)}m({iconCount:e})},min:1,max:10}),Object(a.createElement)("div",{className:"kb-sidebar-alignment components-base-control"},Object(a.createElement)("p",{className:"kb-component-label kb-responsive-label"},Object(o.__)("Text Alignment","kadence-blocks")),h)),f),Object(a.createElement)("div",{className:`kt-svg-icons ${p} kt-svg-icons-${s}`,style:{textAlign:i||"center"}},bl()(e,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?Rt(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?Rt(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?Rt(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0,marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}}));var l})))}},save:e=>{const{attributes:{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0,style:{marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0,marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}}));var l}))},deprecated:[{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}));var l}))}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0},Object(a.createElement)("div",{style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0},className:"kt-svg-icon kt-svg-icon-"+t[l].icon})),t[l].icon&&!t[l].link&&Object(a.createElement)("div",{style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0},className:"kt-svg-icon kt-svg-icon-"+t[l].icon}));var l}))}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:t[l].target},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}));var l}))}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},save:({attributes:e})=>{const{icons:t,iconCount:l,blockAlignment:o,textAlignment:i,uniqueID:n}=e;return Object(a.createElement)("div",{className:`kt-svg-icons kt-svg-icons${n} align${o||"center"}`,style:{textAlign:i||"center"}},bl()(l,e=>{return l=e,Object(a.createElement)("div",{className:`kt-svg-style-${t[l].style} kt-svg-icon-wrap kt-svg-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:t[l].target,rel:"noopener noreferrer"},Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}})),t[l].icon&&!t[l].link&&Object(a.createElement)(Je,{className:"kt-svg-icon kt-svg-icon-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,title:t[l].title?t[l].title:"",style:{color:t[l].color?t[l].color:void 0,backgroundColor:t[l].background&&"default"!==t[l].style?t[l].background:void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?t[l].border:void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}));var l}))}}]});var mr={};mr.block=Object(a.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},Object(a.createElement)("path",{d:"M45.013,46.298c0.705,0 1.285,-0.58 1.285,-1.285l0,-42.026c0,-0.705 -0.58,-1.285 -1.285,-1.285l-42.026,0c-0.705,0 -1.285,0.58 -1.285,1.285l0,42.026c0,0.705 0.58,1.285 1.285,1.285l42.026,0Zm-40.741,-42.026l39.456,0l0,39.456l-39.456,0l0,-39.456Z"}),Object(a.createElement)("path",{d:"M11.221,8.736l7.36,0l0,12.117l10.838,0l0,-12.117l7.361,0l0,30.518l-7.361,0l0,-12.743l-10.838,0l0,12.743l-7.36,0l0,-30.518Z"})));var pr=mr;const{applyFilters:gr}=wp.hooks,{Component:ur,Fragment:hr}=wp.element,{Button:vr,ButtonGroup:kr,IconButton:yr,Dashicon:fr,Tooltip:Or,Dropdown:jr,ToggleControl:_r,SelectControl:Sr}=wp.components;var Er=class extends ur{constructor(){super(...arguments),this.state={controlSize:"desk",typographyOptions:[],typographySelectOptions:[],typographyWeights:[],typographyStyles:[],typographySubsets:""}}componentDidMount(){let e=[{type:"group",label:"Standard Fonts",options:[{label:"System Default",value:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',google:!1},{label:"Arial, Helvetica, sans-serif",value:"Arial, Helvetica, sans-serif",google:!1},{label:'"Arial Black", Gadget, sans-serif',value:'"Arial Black", Gadget, sans-serif',google:!1},{label:"Helvetica, sans-serif",value:"Helvetica, sans-serif",google:!1},{label:'"Comic Sans MS", cursive, sans-serif',value:'"Comic Sans MS", cursive, sans-serif',google:!1},{label:"Impact, Charcoal, sans-serif",value:"Impact, Charcoal, sans-serif",google:!1},{label:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',google:!1},{label:"Tahoma, Geneva, sans-serif",value:"Tahoma, Geneva, sans-serif",google:!1},{label:'"Trebuchet MS", Helvetica, sans-serif',value:'"Trebuchet MS", Helvetica, sans-serif',google:!1},{label:"Verdana, Geneva, sans-serif",value:"Verdana, Geneva, sans-serif",google:!1},{label:"Georgia, serif",value:"Georgia, serif",google:!1},{label:'"Palatino Linotype", "Book Antiqua", Palatino, serif',value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',google:!1},{label:'"Times New Roman", Times, serif',value:'"Times New Roman", Times, serif',google:!1},{label:"Courier, monospace",value:"Courier, monospace",google:!1},{label:'"Lucida Console", Monaco, monospace',value:'"Lucida Console", Monaco, monospace',google:!1}]},{type:"group",label:"Google Fonts",options:"undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_font_names?kadence_blocks_params.g_font_names.map(e=>({label:e,value:e,google:!0})):{}}];if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.c_fonts){const t=[];Object.keys(kadence_blocks_params.c_fonts).forEach((function(e){const l=kadence_blocks_params.c_fonts[e].name,a=[];Object.keys(kadence_blocks_params.c_fonts[e].weights).forEach((function(t){a.push({value:kadence_blocks_params.c_fonts[e].weights[t],label:kadence_blocks_params.c_fonts[e].weights[t]})}));const o=[];Object.keys(kadence_blocks_params.c_fonts[e].styles).forEach((function(t){o.push({value:kadence_blocks_params.c_fonts[e].weights[t],label:kadence_blocks_params.c_fonts[e].weights[t]})})),t.push({label:l,value:l,google:!1,weights:a,styles:o})})),e=[{type:"group",label:Object(o.__)("Custom Fonts","kadence-custom-fonts"),options:t}].concat(e)}let t=gr("kadence.typography_options",e),l=[].concat.apply([],t.map(e=>e.options));const a=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==a["kadence/typography"]&&"object"==typeof a["kadence/typography"]&&(void 0===a["kadence/typography"].showAll||a["kadence/typography"].showAll||(t=a["kadence/typography"].choiceArray,l=a["kadence/typography"].choiceArray)),this.setState({typographyOptions:t}),this.setState({typographySelectOptions:l}),this.setTypographyOptions(l)}componentDidUpdate(e){this.props.fontFamily!==e.fontFamily&&this.setTypographyOptions(this.state.typographySelectOptions)}setTypographyOptions(e){let t=[{value:"inherit",label:Object(o.__)("Inherit","kadence-blocks")},{value:"400",label:Object(o.__)("Normal","kadence-blocks")},{value:"bold",label:Object(o.__)("Bold","kadence-blocks")}];const l=[{value:"inherit",label:Object(o.__)("Inherit","kadence-blocks")},{value:"100",label:Object(o.__)("Thin 100","kadence-blocks")},{value:"200",label:Object(o.__)("Extra-Light 200","kadence-blocks")},{value:"300",label:Object(o.__)("Light 300","kadence-blocks")},{value:"400",label:Object(o.__)("Regular","kadence-blocks")},{value:"500",label:Object(o.__)("Medium 500","kadence-blocks")},{value:"600",label:Object(o.__)("Semi-Bold 600","kadence-blocks")},{value:"700",label:Object(o.__)("Bold 700","kadence-blocks")},{value:"800",label:Object(o.__)("Extra-Bold 800","kadence-blocks")},{value:"900",label:Object(o.__)("Ultra-Bold 900","kadence-blocks")}],a=[{value:"normal",label:Object(o.__)("Normal","kadence-blocks")},{value:"italic",label:Object(o.__)("Italic","kadence-blocks")}],i=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),n="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.headingWeights?kadence_blocks_params.headingWeights:[],c="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.buttonWeights?kadence_blocks_params.buttonWeights:[];i&&"heading"===this.props.fontGroup&&n&&Array.isArray(n)&&n.length&&(t=n),i&&"button"===this.props.fontGroup&&c&&Array.isArray(c)&&c.length&&(t=c);const s=e?e.filter(({value:e})=>e===this.props.fontFamily):"";let d=t,b=a,m="";s&&s[0]&&(void 0!==s[0].weights&&(d=s[0].weights),void 0!==s[0].styles&&(b=s[0].styles)),this.props.googleFont&&this.props.fontFamily&&"undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[this.props.fontFamily]&&(d=kadence_blocks_params.g_fonts[this.props.fontFamily].w.map(e=>({label:r(e),value:e})),b=kadence_blocks_params.g_fonts[this.props.fontFamily].i.map(e=>({label:r(e),value:e})),m=kadence_blocks_params.g_fonts[this.props.fontFamily].s.map(e=>({label:r(e),value:e}))),'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'===this.props.fontFamily&&(d=l),this.setState({typographyWeights:d}),this.setState({typographyStyles:b}),this.setState({typographySubsets:m}),this.setState({fontFamilyValue:s})}render(){const{uniqueID:e,lineHeight:t,lineHeightType:l,fontSize:i,fontSizeType:r,googleFont:s,loadGoogleFont:b,fontFamily:m,fontVariant:p,fontWeight:g,fontStyle:u,fontSubset:h,letterSpacing:v,onLineHeight:k,onFontSize:y,onFontFamily:f,onFontVariant:O,onFontWeight:j,onFontStyle:_,onFontSubset:S,onFontChange:E,onFontArrayChange:w,onLoadGoogleFont:x,onGoogleFont:C,onLetterSpacing:M,onFontSizeType:N,onLineHeightType:T,textTransform:z,onTextTransform:H,fontSizeArray:B,tabSize:I,tabLineHeight:R,onTabLineHeight:P,onTabSize:A,mobileSize:L,mobileLineHeight:F,onMobileLineHeight:W,onMobileSize:D}=this.props,{controlSize:U,typographySelectOptions:V,typographyOptions:$,typographySubsets:G,typographyStyles:Z,typographyWeights:q,fontFamilyValue:J}=this.state,K=e=>{this.setState({controlSize:e})},Q=[{key:"desk",name:Object(o.__)("Desktop"),icon:Object(a.createElement)(fr,{icon:"desktop"})},{key:"tablet",name:Object(o.__)("Tablet"),icon:Object(a.createElement)(fr,{icon:"tablet"})},{key:"mobile",name:Object(o.__)("Mobile"),icon:Object(a.createElement)(fr,{icon:"smartphone"})}],Y=e=>{const t=Number(e.target.value);y(""!==t?t>be?be:t<-.1?de:t:void 0)},X=e=>{const t=Number(e.target.value);A(""!==t?t>be?be:t<-.1?de:t:void 0)},ee=e=>{const t=Number(e.target.value);D(""!==t?t>be?be:t<-.1?de:t:void 0)},te=e=>{const t=Number(e.target.value);k(""!==t?t>ge?ge:t<-.1?pe:t:void 0)},le=e=>{const t=Number(e.target.value);P(""!==t?t>ge?ge:t<-.1?pe:t:void 0)},ae=e=>{const t=Number(e.target.value);W(""!==t?t>ge?ge:t<-.1?pe:t:void 0)},oe=e=>{const t=Number(e.target.value);M(""!==t?t>15?15:t<-5?-5:t:void 0)},ie=e=>{if(null===e)ne();else{let t,l,a;e.google?(t="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].v.includes("regular")?kadence_blocks_params.g_fonts[e.value].v[0]:"regular",l="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].w.includes("regular")?kadence_blocks_params.g_fonts[e.value].w[0]:"400",a="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[e.value].s.length>1?"latin":""):(a="",t="",l="400"),w?w({google:e.google,family:e.value,variant:t,weight:l,style:"normal",subset:a}):(E(e),O(t),j(l),_("normal"),S(a))}},ne=()=>{w?w({google:!1,family:"",variant:"",weight:"regular",style:"normal",subset:""}):(C(!1),f(""),O(""),j("regular"),_("normal"),S(""))},re=e=>{if(s){let t;t="italic"===u?"regular"===e?"italic":e+"italic":e,w?w({variant:t,weight:"regular"===e?"400":e}):(O(t),j("regular"===e?"400":e))}else w?w({variant:"",weight:"regular"===e?"400":e}):(O(""),j("regular"===e?"400":e))},ce=e=>{if(s){let t;t="italic"===e?g&&"regular"!==g?g+"italic":"italic":g||"regular",w?w({variant:t,style:e}):(O(t),_(e))}else w?w({variant:"",style:e}):(O(""),_(e))},se=[{value:"none",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],de="px"!==r?.2:5,be="px"!==r?12:200,me="px"!==r?.1:1,pe="px"!==l?.2:5,ge="px"!==l?12:200,ue="px"!==l?.1:1;return Object(a.createElement)(hr,null,Object(a.createElement)(jr,{className:"kt-popover-font-family-container components-dropdown-menu components-toolbar",contentClassName:"kt-popover-font-family",position:"top center",renderToggle:({isOpen:e,onToggle:t})=>Object(a.createElement)(hr,null,Object(a.createElement)(yr,{className:"components-dropdown-menu__toggle kt-font-family-icon",label:Object(o.__)("Typography Settings"),tooltip:Object(o.__)("Typography Settings"),icon:n.fontfamily,onClick:t,"aria-expanded":e},Object(a.createElement)("span",{className:"components-dropdown-menu__indicator"}))),renderContent:()=>Object(a.createElement)(hr,null,f&&Object(a.createElement)(hr,null,Object(a.createElement)("h2",{className:"kt-heading-fontfamily-title"},Object(o.__)("Font Family")),Object(a.createElement)("div",{className:"typography-family-select-form-row block-editor-block-toolbar"},Object(a.createElement)(c.a,{options:$,className:"kt-inline-typography-select",classNamePrefix:"kt-typography",value:J,isMulti:!1,isSearchable:!0,isClearable:!0,maxMenuHeight:200,placeholder:Object(o.__)("Default"),onChange:ie}))),Object(a.createElement)("div",{className:"typography-row-settings"},j&&Object(a.createElement)(Sr,{label:Object(o.__)("Weight"),value:"400"===g?"regular":g,options:q,onChange:re}),H&&Object(a.createElement)(Sr,{label:Object(o.__)("Transform"),value:z,options:se,onChange:e=>H(e)}),m&&_&&Object(a.createElement)(Sr,{label:Object(o.__)("Style"),value:u,options:Z,onChange:ce})),Object(a.createElement)("div",{className:"typography-row-settings"},M&&Object(a.createElement)("div",{className:"kt-type-input-wrap"},Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("label",{className:"components-base-control__label",htmlFor:"kt-inline-spacing"+e},Object(o.__)("Spacing")),Object(a.createElement)("input",{id:"kt-inline-spacing"+e,value:void 0!==v?v:"",onChange:oe,min:-5,max:15,step:.1,type:"number",className:"components-text-control__input"}))),Object(a.createElement)("span",{className:"kt-unit"},Object(o.__)("px"))),m&&s&&S&&Object(a.createElement)(Sr,{label:Object(o.__)("Subset"),value:h,options:G,onChange:e=>S(e)}),m&&s&&x&&Object(a.createElement)(_r,{label:Object(o.__)("Load Font"),checked:b,onChange:x})),Object(a.createElement)("div",{className:"typography-row-settings typography-size-row-settings"},y&&N&&!B&&Object(a.createElement)("div",{className:"kt-size-input-wrap"},Object(a.createElement)("div",{className:"kt-size-tite-device-wrap"},Object(a.createElement)("p",{className:"kt-inline-size-title"},Object(o.__)("Size")),Object(a.createElement)(kr,{className:"kt-typography-size-type-options","aria-label":Object(o.__)("Device Size Control Switch")},d()(Q,({name:e,key:t,icon:l})=>Object(a.createElement)(Or,{text:e},Object(a.createElement)(vr,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:U===t,"aria-pressed":U===t,onClick:()=>K(t)},l))))),y&&Object(a.createElement)("div",{className:"kt-type-size-input-wrap"},"mobile"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:L||"",onChange:ee,min:de,max:be,step:me,type:"number",className:"components-text-control__input"}))),"tablet"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:I||"",onChange:X,min:de,max:be,step:me,type:"number",className:"components-text-control__input"}))),"desk"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:i||"",onChange:Y,min:de,max:be,step:me,type:"number",className:"components-text-control__input"}))),Object(a.createElement)(Sr,{value:r,className:"kt-typography-size-type",options:[{value:"px",label:Object(o.__)("px")},{value:"em",label:Object(o.__)("em")},{value:"rem",label:Object(o.__)("rem")}],onChange:e=>N(e)}))),k&&T&&!B&&Object(a.createElement)("div",{className:"kt-size-input-wrap"},Object(a.createElement)("div",{className:"kt-size-tite-device-wrap"},Object(a.createElement)("p",{className:"kt-inline-size-title"},Object(o.__)("Height")),Object(a.createElement)(kr,{className:"kt-typography-size-type-options","aria-label":Object(o.__)("Device Size Control Switch")},d()(Q,({name:e,key:t,icon:l})=>Object(a.createElement)(Or,{text:e},Object(a.createElement)(vr,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:U===t,"aria-pressed":U===t,onClick:()=>K(t)},l))))),k&&Object(a.createElement)("div",{className:"kt-type-size-input-wrap"},"mobile"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:F||"",onChange:ae,min:pe,max:ge,step:ue,type:"number",className:"components-text-control__input"}))),"tablet"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:R||"",onChange:le,min:pe,max:ge,step:ue,type:"number",className:"components-text-control__input"}))),"desk"===U&&Object(a.createElement)("div",{className:"components-base-control kt-typography-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:t||"",onChange:te,min:pe,max:ge,step:ue,type:"number",className:"components-text-control__input"}))),Object(a.createElement)(Sr,{value:l,className:"kt-typography-size-type",options:[{value:"px",label:Object(o.__)("px")},{value:"em",label:Object(o.__)("em")},{value:"rem",label:Object(o.__)("rem")}],onChange:e=>T(e)})))))}))}};const{Component:wr,Fragment:xr}=wp.element,{Button:Cr,IconButton:Mr,Tooltip:Nr,Dashicon:Tr,Dropdown:zr,ToolbarGroup:Hr,SVG:Br,Path:Ir}=wp.components,{DOWN:Rr}=wp.keycodes,Pr=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),Ar=()=>Object(a.createElement)(Br,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(a.createElement)(Ir,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}));var Lr=Object(A.withSelect)((e,t)=>{const l=e("core/block-editor").getSettings();return{colors:ce()(l,["colors"],[]),disableCustomColors:void 0===t.disableCustomColors?l.disableCustomColors:t.disableCustomColors}})(class extends wr{constructor(){super(...arguments),this.onChangeState=this.onChangeState.bind(this),this.onChangeComplete=this.onChangeComplete.bind(this),this.state={alpha:!1!==this.props.alpha,colors:[],classSat:"first",currentColor:"",currentOpacity:void 0!==this.props.opacityValue?this.props.opacityValue:1,isPalette:!!(Pr&&this.props.colorValue&&this.props.colorValue.startsWith("palette")||Pr&&this.props.colorDefault&&this.props.colorDefault.startsWith("palette"))}}render(){let e=this.state.isPalette&&this.props.colors&&this.props.colors[parseInt(this.props.colorValue.slice(-1),10)-1]?this.props.colors[parseInt(this.props.colorValue.slice(-1),10)-1].color:this.props.colorValue;return""===e&&(e=this.props.colorDefault),this.props.onOpacityChange&&!this.state.isPalette&&(e=ne(e,void 0!==this.props.opacityValue?this.props.opacityValue:1)),Object(a.createElement)(zr,{position:"top right",className:"kb-colors-selector components-dropdown-menu components-toolbar new-kadence-advanced-colors",contentClassName:"block-library-colors-selector__popover kt-popover-color new-kadence-advanced-colors-pop",renderToggle:({isOpen:t,onToggle:l})=>Object(a.createElement)(xr,null,Object(a.createElement)(Mr,{className:"components-toolbar__control components-dropdown-menu__toggle kb-colors-selector__toggle",label:this.props.label,tooltip:this.props.label,icon:Object(a.createElement)("div",{className:"kb-colors-selector__icon-container"},Object(a.createElement)("div",{className:"kb-colors-selector__state-selection",style:{color:e}},Object(a.createElement)(Ar,null))),onClick:l,"aria-expanded":t})),renderContent:()=>Object(a.createElement)("div",{className:"inline-color-popup-inner-wrap block-editor-block-toolbar"},"first"===this.state.classSat&&!this.props.disableCustomColors&&Object(a.createElement)(xt,{color:e,onChange:e=>this.onChangeState(e,""),onChangeComplete:e=>{this.onChangeComplete(e,""),this.props.onColorClassChange&&this.props.onColorClassChange("")}}),"first"!==this.state.classSat&&!this.props.disableCustomColors&&Object(a.createElement)(xt,{color:e,onChange:e=>this.onChangeState(e,""),onChangeComplete:e=>{this.onChangeComplete(e,""),this.props.onColorClassChange&&this.props.onColorClassChange("")}}),this.props.colors&&Object(a.createElement)("div",{className:"components-color-palette"},d()(this.props.colors,({color:e,slug:t,name:l})=>{const i={color:e},n=t.replace("theme-",""),r=Pr&&n===this.props.colorValue||!t.startsWith("theme-palette")&&this.props.colorValue===e;return Object(a.createElement)("div",{key:e,className:"components-color-palette__item-wrapper"},Object(a.createElement)(Nr,{text:l||// translators: %s: color hex code e.g: "#f00".
28
  Object(o.sprintf)(Object(o.__)("Color code: %s"),e)},Object(a.createElement)(Cr,{type:"button",className:"components-color-palette__item "+(r?"is-active":""),style:i,onClick:()=>{Pr&&t.startsWith("theme-palette")?this.onChangeComplete(e,n):this.onChangeComplete(e,!1),this.props.onColorClassChange&&this.props.onColorClassChange(t),"first"===this.state.classSat?this.setState({classSat:"second"}):this.setState({classSat:"first"})},"aria-label":l?// translators: %s: The name of the color e.g: "vivid red".
29
  Object(o.sprintf)(Object(o.__)("Color: %s"),l):// translators: %s: color hex code e.g: "#f00".
30
+ Object(o.sprintf)(Object(o.__)("Color code: %s"),e),"aria-pressed":r})),Pr&&n===this.props.colorValue&&Object(a.createElement)(Tr,{icon:"admin-site"}),!t.startsWith("theme-palette")&&this.props.colorValue===e&&Object(a.createElement)(Tr,{icon:"saved"}))})))})}onChangeState(e,t){let l,a=1;t?l=t:void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?this.props.onOpacityChange?(l=e.hex,a=e.rgb.a):l="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":l=void 0!==e.hex?e.hex:e,this.setState({currentColor:l,currentOpacity:a,isPalette:!!t}),void 0!==this.props.onChange&&this.props.onChange(l)}onChangeComplete(e,t){let l,a=1;t?l=t:void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?this.props.onOpacityChange?(l=e.hex,a=e.rgb.a):l="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":l=void 0!==e.hex?e.hex:e,this.setState({currentColor:l,currentOpacity:a,isPalette:!!t}),this.props.onColorChange(l),void 0!==this.props.onOpacityChange&&this.props.onOpacityChange(a)}}),Fr=(wp.element.Component,wp.components.ToggleControl),Wr=function(e){var t=e.label,l=e.enable,i=void 0===l||l,n=e.color,r=e.colorDefault,c=e.blur,s=e.hOffset,d=e.vOffset,b=e.onColorChange,m=e.onBlurChange,p=e.onHOffsetChange,g=e.onVOffsetChange,u=e.onEnableChange;return Object(a.createElement)("div",{className:"kb-text-shadow-container components-base-control"},t&&Object(a.createElement)("div",{className:"kt-box-shadow-label"},Object(a.createElement)("h2",{className:"kt-beside-color-label"},t),u&&Object(a.createElement)(Fr,{checked:i,onChange:function(e){return u(e)}})),i&&Object(a.createElement)("div",{className:"kt-inner-sub-section"},Object(a.createElement)("div",{className:"kt-inner-sub-section-row"},Object(a.createElement)("div",{className:"kt-box-color-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},Object(o.__)("Color","kadence-blocks")),Object(a.createElement)(Bt,{colorValue:n||r,colorDefault:r,onColorChange:function(e){return b(e)}})),Object(a.createElement)("div",{className:"kt-box-x-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},"X"),Object(a.createElement)("div",{className:"components-base-control kt-boxshadow-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:void 0!==s?s:"",onChange:function(e){return p(Number(e.target.value))},min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})))),Object(a.createElement)("div",{className:"kt-box-y-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},"Y"),Object(a.createElement)("div",{className:"components-base-control kt-boxshadow-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:void 0!==d?d:"",onChange:function(e){return g(Number(e.target.value))},min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})))),Object(a.createElement)("div",{className:"kt-box-blur-settings kt-box-shadow-subset"},Object(a.createElement)("p",{className:"kt-box-shadow-title"},"Blur"),Object(a.createElement)("div",{className:"components-base-control kt-boxshadow-number-input"},Object(a.createElement)("div",{className:"components-base-control__field"},Object(a.createElement)("input",{value:void 0!==c?c:"",onChange:function(e){return m(Number(e.target.value))},min:0,max:200,step:1,type:"number",className:"components-text-control__input"})))))))},Dr=wp.components,Ur=Dr.Path,Vr=Dr.SVG;function $r(e){var t=e.level,l=e.isPressed,o=void 0!==l&&l,i={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"};return i.hasOwnProperty(t)?Object(a.createElement)(Vr,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:o},Object(a.createElement)(Ur,{d:i[t]})):null}var Gr=wp.element,Zr=Gr.Component,qr=Gr.Fragment,Jr=wp.components,Kr=Jr.DropdownMenu,Qr=Jr.MenuGroup,Yr=Jr.MenuItem,Xr=Jr.Toolbar,ec=(Jr.ToggleControl,Jr.SelectControl,window.localStorage),tc={className:"block-editor-block-settings-menu__popover",position:"bottom right"},lc=function(e){_e()(n,e);var t,l,i=(t=n,l=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,a=xe()(t);if(l){var o=xe()(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return Ee()(this,e)});function n(){var e;return ye()(this,n),(e=i.apply(this,arguments)).state={iconOptions:[],iconOptionsNames:[]},e}return Oe()(n,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.onPaste,l=e.blockAttributes,i=Object(a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 32 32",width:"20px",height:"20px"},Object(a.createElement)("path",{fillRule:"nonzero",d:"M26 8h-6V6l-6-6H0v24h12v8h20V14l-6-6zm0 2.828L29.172 14H26v-3.172zm-12-8L17.172 6H14V2.828zM2 2h10v6h6v14H2V2zm28 28H14v-6h6V10h4v6h6v14z"})),n=JSON.parse(ec.getItem("kadenceHeadingStyle")),r=function(){var e={};l.level&&(e.level=l.level),l.align&&(e.align=l.align),l.color&&(e.color=l.color),l.size&&(e.size=l.size),l.sizeType&&(e.sizeType=l.sizeType),l.lineHeight&&(e.lineHeight=l.lineHeight),l.lineType&&(e.lineType=l.lineType),l.tabSize&&(e.tabSize=l.tabSize),l.tabLineHeight&&(e.tabLineHeight=l.tabLineHeight),l.mobileSize&&(e.mobileSize=l.mobileSize),l.mobileLineHeight&&(e.mobileLineHeight=l.mobileLineHeight),l.letterSpacing&&(e.letterSpacing=l.letterSpacing),l.typography&&(e.typography=l.typography),l.googleFont&&(e.googleFont=l.googleFont),l.loadGoogleFont&&(e.loadGoogleFont=l.loadGoogleFont),l.fontSubset&&(e.fontSubset=l.fontSubset),l.fontVariant&&(e.fontVariant=l.fontVariant),l.fontWeight&&(e.fontWeight=l.fontWeight),l.fontStyle&&(e.fontStyle=l.fontStyle),l.topMargin&&(e.topMargin=l.topMargin),l.bottomMargin&&(e.bottomMargin=l.bottomMargin),l.marginType&&(e.marginType=l.marginType),l.markSize&&(e.markSize=l.markSize),l.markSizeType&&(e.markSizeType=l.markSizeType),l.markLineHeight&&(e.markLineHeight=l.markLineHeight),l.markLineType&&(e.markLineType=l.markLineType),l.marginType&&(e.marginType=l.marginType),l.markLetterSpacing&&(e.markLetterSpacing=l.markLetterSpacing),l.markTypography&&(e.markTypography=l.markTypography),l.markGoogleFont&&(e.markGoogleFont=l.markGoogleFont),l.markLoadGoogleFont&&(e.markLoadGoogleFont=l.markLoadGoogleFont),l.markFontSubset&&(e.markFontSubset=l.markFontSubset),l.markFontVariant&&(e.markFontVariant=l.markFontVariant),l.markFontWeight&&(e.markFontWeight=l.markFontWeight),l.markFontStyle&&(e.markFontStyle=l.markFontStyle),l.markColor&&(e.markColor=l.markColor),l.markBG&&(e.markBG=l.markBG),l.markBGOpacity&&(e.markBGOpacity=l.markBGOpacity),l.markPadding&&(e.markPadding=l.markPadding),l.markPaddingControl&&(e.markPaddingControl=l.markPaddingControl),l.markBorder&&(e.markBorder=l.markBorder),l.markBorderOpacity&&(e.markBorderOpacity=l.markBorderOpacity),l.markBorderWidth&&(e.markBorderWidth=l.markBorderWidth),l.markBorderStyle&&(e.markBorderStyle=l.markBorderStyle),l.textTransform&&(e.textTransform=l.textTransform),l.markTextTransform&&(e.markTextTransform=l.markTextTransform),l.anchor&&(e.anchor=l.anchor),l.colorClass&&(e.colorClass=l.colorClass),l.tabletAlign&&(e.tabletAlign=l.tabletAlign),l.mobileAlign&&(e.mobileAlign=l.mobileAlign),l.textShadow&&(e.textShadow=l.textShadow),ec.setItem("kadenceHeadingStyle",JSON.stringify(e))},c=function(){var e=JSON.parse(ec.getItem("kadenceHeadingStyle"));e&&t(e)};return Object(a.createElement)(Xr,null,Object(a.createElement)(Kr,{className:"block-editor-block-settings-menu",icon:i,label:Object(o.__)("Copy/Paste Styles","kadence-blocks"),popoverProps:tc},(function(e){var t=e.onClose;return Object(a.createElement)(qr,null,Object(a.createElement)(Qr,null,Object(a.createElement)(Yr,{icon:"clipboard",onClick:Ol()(t,r),label:Object(o.__)("Copy Styles","kadence-blocks")},Object(o.__)("Copy Styles","kadence-blocks")),Object(a.createElement)(Yr,{icon:"editor-paste-text",onClick:Ol()(t,c),disabled:!n,label:Object(o.__)("Paste Styles","kadence-blocks")},Object(o.__)("Paste Styles","kadence-blocks"))))})))}}]),n}(Zr),ac=wp.element.Fragment,oc=wp.richText,ic=oc.toggleFormat,nc=oc.registerFormatType,rc=wp.blockEditor,cc=rc.RichTextToolbarButton,sc=rc.RichTextShortcut,dc=Object(a.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"}));nc("kadence/mark",{title:Object(o.__)("Highlight"),tagName:"mark",className:"kt-highlight",edit:function(e){var t=e.isActive,l=e.value,i=e.onChange,n=function(){return i(ic(l,{type:"kadence/mark"}))};return Object(a.createElement)(ac,null,Object(a.createElement)(sc,{type:"primary",character:"m",onUse:n}),Object(a.createElement)(cc,{icon:dc,title:Object(o.__)("Highlight"),onClick:n,isActive:t,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("kadence/mark")}))}});const{createBlock:bc}=wp.blocks,{Component:mc,Fragment:pc}=wp.element,{PanelBody:gc,ButtonGroup:uc,Button:hc,ToolbarGroup:vc,Dashicon:kc,TabPanel:yc,Spinner:fc,SelectControl:Oc,TextControl:jc}=wp.components,{applyFilters:_c}=wp.hooks,Sc=/[\s#]/g,Ec=[];var wc=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{__experimentalGetPreviewDeviceType:l}=e("core/edit-post");return{getPreviewDevice:l?l():"Desktop"}})])(class extends mc{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.saveShadow=this.saveShadow.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={isVisible:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{},marginControl:"individual",paddingControl:"individual",markPaddingControls:"individual"}}componentDidMount(){if(this.props.attributes.uniqueID)Ec.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ec.push("_"+this.props.clientId.substr(2,9))):Ec.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/advancedheading"]&&"object"==typeof e["kadence/advancedheading"]&&Object.keys(e["kadence/advancedheading"]).map(t=>{this.props.attributes[t]=e["kadence/advancedheading"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ec.push("_"+this.props.clientId.substr(2,9))}const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/advancedheading"]&&"object"==typeof e["kadence/advancedheading"]&&this.setState({settings:e["kadence/advancedheading"]})}saveShadow(e){const{attributes:t,setAttributes:l}=this.props,{textShadow:a}=t;l({textShadow:a.map((t,l)=>(0===l&&(t={...t,...e}),t))})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a&&null!==a)return a;if(void 0!==l&&""!==l&&null!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l&&null!==l)return l;return t}render(){const{attributes:e,className:t,setAttributes:l,mergeBlocks:i,onReplace:n,clientId:r}=this.props,{uniqueID:c,align:s,level:d,content:b,color:m,colorClass:p,textShadow:g,mobileAlign:u,tabletAlign:h,size:v,sizeType:k,lineType:f,lineHeight:O,tabLineHeight:j,tabSize:_,mobileSize:S,mobileLineHeight:E,letterSpacing:w,typography:x,fontVariant:C,fontWeight:M,fontStyle:N,fontSubset:T,googleFont:z,loadGoogleFont:H,marginType:B,topMargin:I,bottomMargin:R,markSize:P,markSizeType:A,markLineHeight:L,markLineType:F,markLetterSpacing:W,markTypography:D,markGoogleFont:U,markLoadGoogleFont:V,markFontSubset:$,markFontVariant:G,markFontWeight:q,markFontStyle:J,markPadding:K,markPaddingControl:Q,markColor:Y,markBG:X,markBGOpacity:ee,markBorder:te,markBorderWidth:le,markBorderOpacity:ae,markBorderStyle:oe,anchor:ne,textTransform:re,markTextTransform:ce,kadenceAnimation:se,kadenceAOSOptions:de,htmlTag:be,leftMargin:me,rightMargin:pe,tabletMargin:ge,mobileMargin:ue,padding:he,tabletPadding:ve,mobilePadding:ke,paddingType:ye,markMobilePadding:fe,markTabPadding:Oe,loadItalic:je,kadenceDynamic:_e,link:Se,linkTarget:Ee,linkNoFollow:we,linkSponsored:xe}=e,Ce=X?Rt(X,ee):"",Me=te?Rt(te,ae):"",Ne=z?{google:{families:[x+(C?":"+C:"")]}}:"",Te=U?{google:{families:[D+(G?":"+G:"")]}}:"",ze=be&&"heading"!==be?be:"h"+d,He=ze,Ie="px"!==k?.2:5,Re="em"===B||"rem"===B?-2:-200,Pe="em"===B||"rem"===B?12:200,Ae="em"===B||"rem"===B?.1:1,Le="em"===ye||"rem"===ye?12:200,Fe="em"===ye||"rem"===ye?.1:1,We="px"!==k?12:200,De="px"!==k?.1:1,Ue="px"!==f?.2:5,Ve="px"!==f?12:200,$e="px"!==f?.1:1,Ge=this.getPreviewSize(this.props.getPreviewDevice,void 0!==I?I:"",void 0!==ge?ge[0]:"",void 0!==ue?ue[0]:""),Ze=this.getPreviewSize(this.props.getPreviewDevice,void 0!==pe?pe:"",void 0!==ge?ge[1]:"",void 0!==ue?ue[1]:""),qe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==R?R:"",void 0!==ge?ge[2]:"",void 0!==ue?ue[2]:""),Je=this.getPreviewSize(this.props.getPreviewDevice,void 0!==me?me:"",void 0!==ge?ge[3]:"",void 0!==ue?ue[3]:""),Ke=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[0]:"",void 0!==ve?ve[0]:"",void 0!==ke?ke[0]:""),Qe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[1]:"",void 0!==ve?ve[1]:"",void 0!==ke?ke[1]:""),Ye=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[2]:"",void 0!==ve?ve[2]:"",void 0!==ke?ke[2]:""),Xe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==he?he[3]:"",void 0!==ve?ve[3]:"",void 0!==ke?ke[3]:""),et=this.getPreviewSize(this.props.getPreviewDevice,void 0!==v?v:"",void 0!==_?_:"",void 0!==S?S:""),tt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==O?O:"",void 0!==j?j:"",void 0!==E?E:""),lt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==s?s:"",void 0!==h?h:"",void 0!==u?u:""),at=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[0]:0,void 0!==Oe?Oe[0]:"",void 0!==fe?fe[0]:""),it=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[1]:0,void 0!==Oe?Oe[1]:"",void 0!==fe?fe[1]:""),nt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[2]:0,void 0!==Oe?Oe[2]:"",void 0!==fe?fe[2]:""),rt=this.getPreviewSize(this.props.getPreviewDevice,void 0!==K?K[3]:0,void 0!==Oe?Oe[3]:"",void 0!==fe?fe[3]:""),ct=this.getPreviewSize(this.props.getPreviewDevice,void 0!==P?P[0]:"",void 0!==P?P[1]:"",void 0!==P?P[2]:""),st=this.getPreviewSize(this.props.getPreviewDevice,void 0!==L?L[0]:"",void 0!==L?L[1]:"",void 0!==L?L[2]:""),dt=[[{icon:Object(a.createElement)($r,{level:1,isPressed:!(1!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 1","kadence-blocks"),isActive:!(1!==d||!be||"heading"!==be),onClick:()=>l({level:1,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:2,isPressed:!(2!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 2","kadence-blocks"),isActive:!(2!==d||!be||"heading"!==be),onClick:()=>l({level:2,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:3,isPressed:!(3!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 3","kadence-blocks"),isActive:!(3!==d||!be||"heading"!==be),onClick:()=>l({level:3,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:4,isPressed:!(4!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 4","kadence-blocks"),isActive:!(4!==d||!be||"heading"!==be),onClick:()=>l({level:4,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:5,isPressed:!(5!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 5","kadence-blocks"),isActive:!(5!==d||!be||"heading"!==be),onClick:()=>l({level:5,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:6,isPressed:!(6!==d||!be||"heading"!==be)}),title:Object(o.__)("Heading 6","kadence-blocks"),isActive:!(6!==d||!be||"heading"!==be),onClick:()=>l({level:6,htmlTag:"heading"})}],[{icon:Object(a.createElement)($r,{level:"p",isPressed:!(!be||"p"!==be)}),title:Object(o.__)("Paragraph","kadence-blocks"),isActive:!(!be||"p"!==be),onClick:()=>l({htmlTag:"p"})}]],bt=al()({["kt-adv-heading"+c]:c,[t]:t,"kb-content-is-dynamic":void 0!==_e&&void 0!==_e.content&&void 0!==_e.content.enable&&_e.content.enable}),mt=Object(a.createElement)(He,{style:{textAlign:lt,color:m?Rt(m):void 0,fontWeight:M,fontStyle:N,fontSize:et?et+k:void 0,lineHeight:tt?tt+f:void 0,letterSpacing:void 0!==w&&""!==w?w+"px":void 0,textTransform:re||void 0,fontFamily:x||"",paddingTop:void 0!==Ke?Ke+ye:void 0,paddingRight:void 0!==Qe?Qe+ye:void 0,paddingBottom:void 0!==Ye?Ye+ye:void 0,paddingLeft:void 0!==Xe?Xe+ye:void 0,marginTop:void 0!==Ge?Ge+B:void 0,marginRight:void 0!==Ze?Ze+B:void 0,marginBottom:void 0!==qe?qe+B:void 0,marginLeft:void 0!==Je?Je+B:void 0,textShadow:void 0!==g&&void 0!==g[0]&&void 0!==g[0].enable&&g[0].enable?(void 0!==g[0].hOffset?g[0].hOffset:1)+"px "+(void 0!==g[0].vOffset?g[0].vOffset:1)+"px "+(void 0!==g[0].blur?g[0].blur:1)+"px "+(void 0!==g[0].color?Rt(g[0].color):"rgba(0,0,0,0.2)"):void 0},className:bt},_c("kadence.dynamicContent",Object(a.createElement)(fc,null),e,"content")),pt=Object(a.createElement)(ot.RichText,{tagName:ze,allowedFormats:Se?_c("kadence.whitelist_richtext_formats",["core/bold","core/italic","kadence/insert-dynamic","kadence/mark","core/strikethrough","core/superscript","core/superscript","toolset/inline-field"],"kadence/advancedheading"):void 0,value:b,onChange:e=>l({content:e}),onMerge:i,onSplit:t=>t?bc("kadence/advancedheading",{...e,content:t}):bc("core/paragraph"),onReplace:n,onRemove:()=>n([]),style:{textAlign:lt,color:m?Rt(m):void 0,fontWeight:M,fontStyle:N,fontSize:et?et+k:void 0,lineHeight:tt?tt+f:void 0,letterSpacing:void 0!==w&&""!==w?w+"px":void 0,textTransform:re||void 0,fontFamily:x||"",paddingTop:void 0!==Ke?Ke+ye:void 0,paddingRight:void 0!==Qe?Qe+ye:void 0,paddingBottom:void 0!==Ye?Ye+ye:void 0,paddingLeft:void 0!==Xe?Xe+ye:void 0,marginTop:void 0!==Ge?Ge+B:void 0,marginRight:void 0!==Ze?Ze+B:void 0,marginBottom:void 0!==qe?qe+B:void 0,marginLeft:void 0!==Je?Je+B:void 0,textShadow:void 0!==g&&void 0!==g[0]&&void 0!==g[0].enable&&g[0].enable?(void 0!==g[0].hOffset?g[0].hOffset:1)+"px "+(void 0!==g[0].vOffset?g[0].vOffset:1)+"px "+(void 0!==g[0].blur?g[0].blur:1)+"px "+(void 0!==g[0].color?Rt(g[0].color):"rgba(0,0,0,0.2)"):void 0},className:bt,placeholder:Object(o.__)("Write heading…","kadence-blocks")}),gt=Object(a.createElement)("a",{href:Se,className:"kb-advanced-heading-link",onClick:e=>{e.preventDefault()}},void 0!==_e&&void 0!==_e.content&&void 0!==_e.content.enable&&_e.content.enable?mt:pt);return Object(a.createElement)(pc,null,Object(a.createElement)("style",null,`.kt-adv-heading${c} mark, .kt-adv-heading${c}.rich-text:focus mark[data-rich-text-format-boundary] {\n\t\t\t\t\t\tcolor: ${Rt(Y)};\n\t\t\t\t\t\tbackground: ${X?Ce:"transparent"};\n\t\t\t\t\t\tfont-weight: ${D&&q?q:"inherit"};\n\t\t\t\t\t\tfont-style: ${D&&J?J:"inherit"};\n\t\t\t\t\t\tfont-size: ${ct?ct+A:"inherit"};\n\t\t\t\t\t\tline-height: ${st?st+F:"inherit"};\n\t\t\t\t\t\tletter-spacing: ${W?W+"px":"inherit"};\n\t\t\t\t\t\ttext-transform: ${ce||"inherit"};\n\t\t\t\t\t\tfont-family: ${D||"inherit"};\n\t\t\t\t\t\tborder-color: ${te?Me:"transparent"};\n\t\t\t\t\t\tborder-width: ${le?le+"px":"0"};\n\t\t\t\t\t\tborder-style: ${oe||"solid"};\n\t\t\t\t\t\tpadding-top: ${at?at+"px ":"0"};\n\t\t\t\t\t\tpadding-right: ${it?it+"px ":"0"};\n\t\t\t\t\t\tpadding-bottom: ${nt?nt+"px ":"0"};\n\t\t\t\t\t\tpadding-left: ${rt?rt+"px ":"0"};\n\t\t\t\t\t}`),Object(a.createElement)(ot.BlockControls,null,Object(a.createElement)(vc,{isCollapsed:!0,icon:Object(a.createElement)($r,{level:"p"===be?"p":d}),label:Object(o.__)("Change Heading Level","kadence-blocks"),controls:dt}),this.showSettings("allSettings")&&this.showSettings("toolbarTypography")&&Object(a.createElement)(Er,{uniqueID:c,fontGroup:"heading",letterSpacing:w,onLetterSpacing:e=>l({letterSpacing:e}),fontFamily:x,onFontFamily:e=>l({typography:e}),onFontChange:e=>{l({typography:e.value,googleFont:e.google})},googleFont:z,onGoogleFont:e=>l({googleFont:e}),loadGoogleFont:H,onLoadGoogleFont:e=>l({loadGoogleFont:e}),fontVariant:C,onFontVariant:e=>l({fontVariant:e}),fontWeight:M,onFontWeight:e=>l({fontWeight:e}),fontStyle:N,onFontStyle:e=>l({fontStyle:e}),fontSubset:T,onFontSubset:e=>l({fontSubset:e}),textTransform:re,onTextTransform:e=>l({textTransform:e}),fontSizeArray:!1,fontSize:v,onFontSize:e=>l({size:e}),fontSizeType:k,onFontSizeType:e=>l({sizeType:e}),lineHeight:O,onLineHeight:e=>l({lineHeight:e}),lineHeightType:f,onLineHeightType:e=>l({lineType:e}),tabSize:_,onTabSize:e=>l({tabSize:e}),tabLineHeight:j,onTabLineHeight:e=>l({tabLineHeight:e}),mobileSize:S,onMobileSize:e=>l({mobileSize:e}),mobileLineHeight:E,onMobileLineHeight:e=>l({mobileLineHeight:e})}),Object(a.createElement)(Lr,{label:Object(o.__)("Heading Color","kadence-blocks"),colorValue:m||"",colorDefault:"",onColorChange:e=>l({color:e}),onColorClassChange:e=>l({colorClass:e})}),Object(a.createElement)(ot.AlignmentToolbar,{value:s,onChange:e=>{l({align:e})}}),Object(a.createElement)(lc,{onPaste:e=>l(e),blockAttributes:this.props.attributes})),this.showSettings("allSettings")&&Object(a.createElement)(ot.InspectorControls,null,Object(a.createElement)(gc,{title:Object(o.__)("Heading Settings","kadence-blocks")},Object(a.createElement)("div",{className:"kb-tag-level-control components-base-control"},Object(a.createElement)("p",{className:"kb-component-label"},Object(o.__)("HTML Tag","kadence-blocks")),Object(a.createElement)(vc,{isCollapsed:!1,label:Object(o.__)("Change Heading Level","kadence-blocks"),controls:dt})),Object(a.createElement)(hn,{label:Object(o.__)("Text Alignment","kadence-blocks"),value:s||"",mobileValue:u||"",tabletValue:h||"",onChange:e=>l({align:e}),onChangeTablet:e=>l({tabletAlign:e}),onChangeMobile:e=>l({mobileAlign:e})}),this.showSettings("colorSettings")&&Object(a.createElement)(Bt,{label:Object(o.__)("Heading Color","kadence-blocks"),colorValue:m||"",colorDefault:"",onColorChange:e=>l({color:e}),onColorClassChange:e=>l({colorClass:e})}),this.showSettings("sizeSettings")&&Object(a.createElement)(pc,null,Object(a.createElement)(Z,{label:Object(o.__)("Font Size","kadence-blocks"),value:v||"",onChange:e=>l({size:e}),tabletValue:_||"",onChangeTablet:e=>l({tabSize:e}),mobileValue:S||"",onChangeMobile:e=>l({mobileSize:e}),min:Ie,max:We,step:De,unit:k,onUnit:e=>l({sizeType:e}),units:["px","em","rem","vw"]}),Object(a.createElement)(Z,{label:Object(o.__)("Line Height","kadence-blocks"),value:O||"",onChange:e=>l({lineHeight:e}),tabletValue:j||"",onChangeTablet:e=>l({tabLineHeight:e}),mobileValue:E||"",onChangeMobile:e=>l({mobileLineHeight:e}),min:Ue,max:Ve,step:$e,unit:f,onUnit:e=>l({lineType:e}),units:["px","em","rem"]}))),this.showSettings("advancedSettings")&&Object(a.createElement)(gc,{title:Object(o.__)("Advanced Typography Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ie,{fontGroup:"heading",letterSpacing:w,onLetterSpacing:e=>l({letterSpacing:e}),fontFamily:x,onFontFamily:e=>l({typography:e}),onFontChange:e=>{l({typography:e.value,googleFont:e.google})},googleFont:z,onGoogleFont:e=>l({googleFont:e}),loadGoogleFont:H,onLoadGoogleFont:e=>l({loadGoogleFont:e}),fontVariant:C,onFontVariant:e=>l({fontVariant:e}),fontWeight:M,onFontWeight:e=>l({fontWeight:e}),fontStyle:N,onFontStyle:e=>l({fontStyle:e}),fontSubset:T,onFontSubset:e=>l({fontSubset:e}),textTransform:re,onTextTransform:e=>l({textTransform:e}),loadItalic:je,onLoadItalic:e=>l({loadItalic:e})})),this.showSettings("highlightSettings","kadence-blocks")&&Object(a.createElement)(gc,{title:Object(o.__)("Highlight Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Bt,{label:Object(o.__)("Highlight Color","kadence-blocks"),colorValue:Y||"",colorDefault:"",onColorChange:e=>l({markColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Highlight Background","kadence-blocks"),colorValue:X||"",colorDefault:"",onColorChange:e=>l({markBG:e}),opacityValue:ee,onOpacityChange:e=>l({markBGOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Highlight Border Color","kadence-blocks"),colorValue:te||"",colorDefault:"",onColorChange:e=>l({markBorder:e}),opacityValue:ae,onOpacityChange:e=>l({markBorderOpacity:e})}),Object(a.createElement)(Oc,{label:Object(o.__)("Highlight Border Style","kadence-blocks"),value:oe,options:[{value:"solid",label:Object(o.__)("Solid","kadence-blocks")},{value:"dashed",label:Object(o.__)("Dashed","kadence-blocks")},{value:"dotted",label:Object(o.__)("Dotted","kadence-blocks")}],onChange:e=>l({markBorderStyle:e})}),Object(a.createElement)(y,{label:Object(o.__)("Highlight Border Width","kadence-blocks"),value:le,onChange:e=>l({markBorderWidth:e}),min:0,max:20,step:1}),Object(a.createElement)(Z,{label:Object(o.__)("Font Size","kadence-blocks"),value:P&&P[0]?P[0]:"",onChange:e=>l({markSize:[e,P&&P[1]?P[1]:"",P&&P[2]?P[2]:""]}),tabletValue:P&&P[1]?P[1]:"",onChangeTablet:e=>l({markSize:[P&&P[0]?P[0]:"",e,P&&P[2]?P[2]:""]}),mobileValue:P&&P[2]?P[2]:"",onChangeMobile:e=>l({markSize:[P&&P[0]?P[0]:"",P&&P[1]?P[1]:"",e]}),min:Ie,max:We,step:De,unit:A,onUnit:e=>l({markSizeType:e}),units:["px","em","rem"]}),Object(a.createElement)(Z,{label:Object(o.__)("Line Height","kadence-blocks"),value:L&&L[0]?L[0]:"",onChange:e=>l({markLineHeight:[e,L&&L[1]?L[1]:"",L&&L[2]?L[2]:""]}),tabletValue:L&&L[1]?L[1]:"",onChangeTablet:e=>l({markLineHeight:[L&&L[0]?L[0]:"",e,L&&L[2]?L[2]:""]}),mobileValue:L&&L[2]?L[2]:"",onChangeMobile:e=>l({markLineHeight:[L&&L[0]?L[0]:"",L&&L[1]?L[1]:"",e]}),min:Ue,max:Ve,step:$e,unit:f,onUnit:e=>l({lineType:e}),units:["px","em","rem"]}),Object(a.createElement)(ie,{fontGroup:"heading",fontSize:P,onFontSize:e=>l({markSize:e}),fontSizeType:A,onFontSizeType:e=>l({markSizeType:e}),lineHeight:L,onLineHeight:e=>l({markLineHeight:e}),lineHeightType:F,onLineHeightType:e=>l({markLineType:e}),letterSpacing:W,onLetterSpacing:e=>l({markLetterSpacing:e}),fontFamily:D,onFontFamily:e=>l({markTypography:e}),onFontChange:e=>{l({markTypography:e.value,markGoogleFont:e.google})},googleFont:U,onGoogleFont:e=>l({markGoogleFont:e}),loadGoogleFont:V,onLoadGoogleFont:e=>l({markLoadGoogleFont:e}),fontVariant:G,onFontVariant:e=>l({markFontVariant:e}),fontWeight:q,onFontWeight:e=>l({markFontWeight:e}),fontStyle:J,onFontStyle:e=>l({markFontStyle:e}),fontSubset:$,onFontSubset:e=>l({markFontSubset:e}),textTransform:ce,onTextTransform:e=>l({markTextTransform:e})}),Object(a.createElement)(Al,{label:Object(o.__)("Padding","kadence-blocks"),value:K,control:this.state.markPaddingControls,tabletValue:Oe,mobileValue:fe,onChange:e=>l({markPadding:e}),onChangeTablet:e=>l({markTabPadding:e}),onChangeMobile:e=>l({markMobilePadding:e}),onChangeControl:e=>this.setState({markPaddingControls:e}),min:0,max:100,step:1,unit:"px",units:["px"],showUnit:!0})),this.showSettings("linkSettings")&&Object(a.createElement)(gc,{title:Object(o.__)("Link Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ka,Be()({label:Object(o.__)("Heading Wrap Link","kadence-blocks"),url:Se,onChangeUrl:e=>l({link:e}),additionalControls:!0,opensInNewTab:void 0!==Ee&&Ee,onChangeTarget:e=>l({linkTarget:e}),linkNoFollow:void 0!==we&&we,onChangeFollow:e=>l({linkNoFollow:e}),linkSponsored:void 0!==xe&&xe,onChangeSponsored:e=>l({sponsored:e}),dynamicAttribute:"link",allowClear:!0},this.props))),this.showSettings("marginSettings")&&Object(a.createElement)(gc,{title:Object(o.__)("Spacing Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Padding","kadence-blocks"),value:he,control:this.state.paddingControl,tabletValue:ve,mobileValue:ke,onChange:e=>l({padding:e}),onChangeTablet:e=>l({tabletPadding:e}),onChangeMobile:e=>l({mobilePadding:e}),onChangeControl:e=>this.setState({paddingControl:e}),min:0,max:Le,step:Fe,unit:ye,units:["px","em","rem","%"],onUnit:e=>l({paddingType:e})}),Object(a.createElement)(Al,{label:Object(o.__)("Margin","kadence-blocks"),value:[void 0!==I?I:"",void 0!==pe?pe:"",void 0!==R?R:"",void 0!==me?me:""],control:this.state.marginControl,tabletValue:ge,mobileValue:ue,onChange:e=>{l({topMargin:e[0],rightMargin:e[1],bottomMargin:e[2],leftMargin:e[3]})},onChangeTablet:e=>l({tabletMargin:e}),onChangeMobile:e=>l({mobileMargin:e}),onChangeControl:e=>this.setState({marginControl:e}),min:Re,max:Pe,step:Ae,unit:B,units:["px","em","rem","%","vh"],onUnit:e=>l({marginType:e})})),Object(a.createElement)(gc,{title:Object(o.__)("Text Shadow Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Wr,{label:Object(o.__)("Text Shadow","kadence-blocks"),enable:void 0!==g&&void 0!==g[0]&&void 0!==g[0].enable&&g[0].enable,color:void 0!==g&&void 0!==g[0]&&void 0!==g[0].color?g[0].color:"rgba(0, 0, 0, 0.2)",colorDefault:"rgba(0, 0, 0, 0.2)",hOffset:void 0!==g&&void 0!==g[0]&&void 0!==g[0].hOffset?g[0].hOffset:1,vOffset:void 0!==g&&void 0!==g[0]&&void 0!==g[0].vOffset?g[0].vOffset:1,blur:void 0!==g&&void 0!==g[0]&&void 0!==g[0].blur?g[0].blur:1,onEnableChange:e=>{this.saveShadow({enable:e})},onColorChange:e=>{this.saveShadow({color:e})},onHOffsetChange:e=>{this.saveShadow({hOffset:e})},onVOffsetChange:e=>{this.saveShadow({vOffset:e})},onBlurChange:e=>{this.saveShadow({blur:e})}}))),Object(a.createElement)(ot.InspectorAdvancedControls,null,Object(a.createElement)(jc,{label:Object(o.__)("HTML Anchor","kadence-blocks"),help:Object(o.__)("Anchors lets you link directly to a section on a page.","kadence-blocks"),value:ne||"",onChange:e=>{e=e.replace(Sc,"-"),l({anchor:e})}})),se&&Object(a.createElement)("div",{className:"kt-animation-wrap-"+se},Object(a.createElement)("div",{id:"animate-id"+c,className:"aos-animate kt-animation-wrap","data-aos":se||void 0,"data-aos-duration":de&&de[0]&&de[0].duration?de[0].duration:void 0,"data-aos-easing":de&&de[0]&&de[0].easing?de[0].easing:void 0},Se?gt:pt)),!se&&(Se?gt:pt),z&&Object(a.createElement)(yl,{config:Ne}),U&&Object(a.createElement)(yl,{config:Te}))}});const{Fragment:xc}=wp.element,{getBlockDefaultClassName:Cc}=wp.blocks;var Mc=[{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,p"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},leftMargin:{type:"number",default:""},rightMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},tabletMargin:{type:"array",default:["","","",""]},mobileMargin:{type:"array",default:["","","",""]},tabletMarginType:{type:"string",default:"px"},mobileMarginType:{type:"string",default:"px"},paddingType:{type:"string",default:"px"},padding:{type:"array",default:["","","",""]},tabletPadding:{type:"array",default:["","","",""]},mobilePadding:{type:"array",default:["","","",""]},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markTabPadding:{type:"array",default:["","","",""]},markMobilePadding:{type:"array",default:["","","",""]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"},colorClass:{type:"string"},tabletAlign:{type:"string"},mobileAlign:{type:"string"},textShadow:{type:"array",default:[{enable:!1,color:"rgba(0, 0, 0, 0.2)",blur:1,hOffset:1,vOffset:1}]},htmlTag:{type:"string",default:"heading"},loadItalic:{type:"boolean",default:!1}},save:({attributes:e})=>{const{anchor:t,level:l,content:o,colorClass:i,color:n,textShadow:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,align:m,uniqueID:p,className:g,kadenceAnimation:u,kadenceAOSOptions:h,htmlTag:v}=e,k=v&&"heading"!==v?v:"h"+l,y=Object(ot.getColorClassName)("color",i),f=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),O=!!f,j=al()({["kt-adv-heading"+p]:p,[g]:!O&&g,[Cc("kadence/advancedheading")]:Cc("kadence/advancedheading"),[y]:y}),_=Object(a.createElement)(ot.RichText.Content,{tagName:k,id:t||void 0,className:j,"data-kb-block":"kb-adv-heading"+p,"data-aos":u||void 0,"data-aos-offset":h&&h[0]&&h[0].offset?h[0].offset:void 0,"data-aos-duration":h&&h[0]&&h[0].duration?h[0].duration:void 0,"data-aos-delay":h&&h[0]&&h[0].delay?h[0].delay:void 0,"data-aos-easing":h&&h[0]&&h[0].easing?h[0].easing:void 0,"data-aos-once":h&&h[0]&&void 0!==h[0].once&&""!==h[0].once?h[0].once:void 0,value:o});return Object(a.createElement)(xc,null,O&&Object(a.createElement)("div",{className:`kb-adv-heading-wrap${p} kadence-advanced-heading-wrapper${f?" kadence-heading-clip-animation":""}${g?" "+g:""}`},_),!O&&_)}},{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,p"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"},colorClass:{type:"string"},textShadow:{type:"array",default:[{enable:!1,color:"rgba(0, 0, 0, 0.2)",blur:1,hOffset:1,vOffset:1}]},htmlTag:{type:"string",default:"heading"},kadenceAnimation:{type:"string"},kadenceAOSOptions:{type:"array",default:[{duration:"",offset:"",easing:"",once:"",delay:"",delayOffset:""}]}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,colorClass:r,textShadow:c,uniqueID:s,letterSpacing:d,topMargin:b,bottomMargin:m,marginType:p,className:g,kadenceAnimation:u,kadenceAOSOptions:h,htmlTag:v}=e,k=v&&"heading"!==v?v:"h"+o,y=Object(ot.getColorClassName)("color",r),f=p||"px";let O=t||"kt-adv-heading"+s;const j=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),_=!(!t&&!j);O=j&&!t?"kt-adv-inner-heading"+s:O;const S=al()({["kt-adv-heading"+s]:s,[g]:!_&&g,[Cc("kadence/advancedheading")]:Cc("kadence/advancedheading"),[y]:y}),E=Object(a.createElement)(ot.RichText.Content,{tagName:k,id:O,className:S,"data-aos":u||void 0,"data-aos-offset":h&&h[0]&&h[0].offset?h[0].offset:void 0,"data-aos-duration":h&&h[0]&&h[0].duration?h[0].duration:void 0,"data-aos-delay":h&&h[0]&&h[0].delay?h[0].delay:void 0,"data-aos-easing":h&&h[0]&&h[0].easing?h[0].easing:void 0,"data-aos-once":h&&h[0]&&void 0!==h[0].once&&""!==h[0].once?h[0].once:void 0,style:{textAlign:l,color:!y&&n?tl(n):void 0,letterSpacing:d?d+"px":void 0,marginTop:void 0!==b&&""!==b?b+f:void 0,marginBottom:void 0!==m&&""!==m?m+f:void 0,textShadow:void 0!==c&&void 0!==c[0]&&void 0!==c[0].enable&&c[0].enable?(void 0!==c[0].hOffset?c[0].hOffset:1)+"px "+(void 0!==c[0].vOffset?c[0].vOffset:1)+"px "+(void 0!==c[0].blur?c[0].blur:1)+"px "+(void 0!==c[0].color?tl(c[0].color):"rgba(0,0,0,0.2)"):void 0},value:i});return Object(a.createElement)(xc,null,_&&Object(a.createElement)("div",{id:"kt-adv-heading"+s,className:`kadence-advanced-heading-wrapper${j?" kadence-heading-clip-animation":""}${g?" "+g:""}`},E),!_&&E)}},{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,uniqueID:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,className:m,kadenceAnimation:p,kadenceAOSOptions:g}=e,u="h"+o,h=b||"px";let v=t||"kt-adv-heading"+r;const k=!(!p||"reveal-left"!==p&&"reveal-right"!==p&&"reveal-up"!==p&&"reveal-down"!==p),y=!(!t&&!k);v=k&&!t?"kt-adv-inner-heading"+r:v;const f=m?`${m} ${Cc("kadence/advancedheading")}`:Cc("kadence/advancedheading"),O=Object(a.createElement)(ot.RichText.Content,{tagName:u,id:v,className:`kt-adv-heading${r} ${f}`,"data-aos":p||void 0,"data-aos-offset":g&&g[0]&&g[0].offset?g[0].offset:void 0,"data-aos-duration":g&&g[0]&&g[0].duration?g[0].duration:void 0,"data-aos-delay":g&&g[0]&&g[0].delay?g[0].delay:void 0,"data-aos-easing":g&&g[0]&&g[0].easing?g[0].easing:void 0,"data-aos-once":g&&g[0]&&void 0!==g[0].once&&""!==g[0].once?g[0].once:void 0,style:{textAlign:l,color:n,letterSpacing:c?c+"px":void 0,marginTop:void 0!==s&&""!==s?s+h:void 0,marginBottom:void 0!==d&&""!==d?d+h:void 0},value:i});return Object(a.createElement)(xc,null,y&&Object(a.createElement)("div",{id:"kt-adv-heading"+r,className:"kadence-advanced-heading-wrapper"+(k?" kadence-heading-clip-animation":"")},O),!y&&O)}},{attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,uniqueID:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,className:m,kadenceAnimation:p,kadenceAOSOptions:g}=e,u="h"+o,h=b||"px";let v=t||"kt-adv-heading"+r;const k=!(!p||"reveal-left"!==p&&"reveal-right"!==p&&"reveal-up"!==p&&"reveal-down"!==p),y=!(!t&&!k);v=k&&!t?"kt-adv-inner-heading"+r:v;const f=m?`${m} ${Cc("kadence/advancedheading")}`:Cc("kadence/advancedheading"),O=Object(a.createElement)(ot.RichText.Content,{tagName:u,id:v,className:`kt-adv-heading${r} ${f}`,"data-aos":p||void 0,"data-aos-offset":g&&g[0]&&g[0].offset?g[0].offset:void 0,"data-aos-duration":g&&g[0]&&g[0].duration?g[0].duration:void 0,"data-aos-delay":g&&g[0]&&g[0].delay?g[0].delay:void 0,"data-aos-easing":g&&g[0]&&g[0].easing?g[0].easing:void 0,"data-aos-once":g&&g[0]&&void 0!==g[0].once&&""!==g[0].once?g[0].once:void 0,style:{textAlign:l,color:n,letterSpacing:c?c+"px":void 0,marginTop:s?s+h:void 0,marginBottom:d?d+h:void 0},value:i});return Object(a.createElement)(xc,null,y&&Object(a.createElement)("div",{id:"kt-adv-heading"+r,className:"kadence-advanced-heading-wrapper"+(k?" kadence-heading-clip-animation":"")},O),!y&&O)}},{attributes:{content:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},anchor:{type:"string"}},save:({attributes:e})=>{const{anchor:t,align:l,level:o,content:i,color:n,uniqueID:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,className:m,kadenceAnimation:p,kadenceAOSOptions:g}=e,u="h"+o,h=b||"px";let v=t||"kt-adv-heading"+r;const k=!(!p||"reveal-left"!==p&&"reveal-right"!==p&&"reveal-up"!==p&&"reveal-down"!==p),y=!(!t&&!k);v=k&&!t?"kt-adv-inner-heading"+r:"kt-adv-heading"+r;const f=m?`${m} ${Cc("kadence/advancedheading")}`:Cc("kadence/advancedheading"),O=Object(a.createElement)(ot.RichText.Content,{tagName:u,id:v,className:`kt-adv-heading${r} ${f}`,"data-aos":p||void 0,"data-aos-offset":g&&g[0]&&g[0].offset?g[0].offset:void 0,"data-aos-duration":g&&g[0]&&g[0].duration?g[0].duration:void 0,"data-aos-delay":g&&g[0]&&g[0].delay?g[0].delay:void 0,"data-aos-easing":g&&g[0]&&g[0].easing?g[0].easing:void 0,"data-aos-once":g&&g[0]&&void 0!==g[0].once&&""!==g[0].once?g[0].once:void 0,style:{textAlign:l,color:n,letterSpacing:c?c+"px":void 0,marginTop:s?s+h:void 0,marginBottom:d?d+h:void 0},value:i});return Object(a.createElement)(xc,null,y&&Object(a.createElement)("div",{id:"kt-adv-heading"+r,className:"kadence-advanced-heading-wrapper"+(k?" kadence-heading-clip-animation":"")},O),!y&&O)}},{attributes:{content:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"}},save:({attributes:e})=>{const{align:t,level:l,content:o,color:i,uniqueID:n,letterSpacing:r,topMargin:c,bottomMargin:s,marginType:d}=e,b="h"+l,m=d||"px";return Object(a.createElement)(ot.RichText.Content,{tagName:b,id:"kt-adv-heading"+n,style:{textAlign:t,color:i,letterSpacing:r?r+"px":void 0,marginTop:c?c+m:void 0,marginBottom:s?s+m:void 0},value:o})}},{attributes:{content:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"}},save:({attributes:e})=>{const{align:t,level:l,content:o,color:i,uniqueID:n,letterSpacing:r}=e,c="h"+l;return Object(a.createElement)(ot.RichText.Content,{tagName:c,id:"kt-adv-heading"+n,style:{textAlign:t,color:i,letterSpacing:r?r+"px":void 0},value:o})}}];const{registerBlockType:Nc,createBlock:Tc,getBlockDefaultClassName:zc}=wp.blocks,{Fragment:Hc}=wp.element;Nc("kadence/advancedheading",{title:Object(o.__)("Advanced Heading","kadence-blocks"),description:Object(o.__)("Create a heading or paragraph and define sizes for desktop, tablet and mobile along with font family, colors, etc.","kadence-blocks"),icon:{src:pr.block},category:"kadence-blocks",keywords:[Object(o.__)("title","kadence-blocks"),Object(o.__)("heading","kadence-blocks"),"KB"],supports:{ktanimate:!0,ktanimatereveal:!0,ktanimatepreview:!0,ktdynamic:!0},attributes:{content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,p"},level:{type:"number",default:2},uniqueID:{type:"string"},align:{type:"string"},color:{type:"string"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},leftMargin:{type:"number",default:""},rightMargin:{type:"number",default:""},marginType:{type:"string",default:"px"},tabletMargin:{type:"array",default:["","","",""]},mobileMargin:{type:"array",default:["","","",""]},tabletMarginType:{type:"string",default:"px"},mobileMarginType:{type:"string",default:"px"},paddingType:{type:"string",default:"px"},padding:{type:"array",default:["","","",""]},tabletPadding:{type:"array",default:["","","",""]},mobilePadding:{type:"array",default:["","","",""]},markSize:{type:"array",default:["","",""]},markSizeType:{type:"string",default:"px"},markLineHeight:{type:"array",default:["","",""]},markLineType:{type:"string",default:"px"},markLetterSpacing:{type:"number"},markTypography:{type:"string",default:""},markGoogleFont:{type:"boolean",default:!1},markLoadGoogleFont:{type:"boolean",default:!0},markFontSubset:{type:"string",default:""},markFontVariant:{type:"string",default:""},markFontWeight:{type:"string",default:"regular"},markFontStyle:{type:"string",default:"normal"},markColor:{type:"string",default:"#f76a0c"},markBG:{type:"string"},markBGOpacity:{type:"number",default:1},markPadding:{type:"array",default:[0,0,0,0]},markTabPadding:{type:"array",default:["","","",""]},markMobilePadding:{type:"array",default:["","","",""]},markPaddingControl:{type:"string",default:"linked"},markBorder:{type:"string"},markBorderOpacity:{type:"number",default:1},markBorderWidth:{type:"number",default:0},markBorderStyle:{type:"string",default:"solid"},textTransform:{type:"string",default:""},markTextTransform:{type:"string",default:""},anchor:{type:"string"},colorClass:{type:"string"},tabletAlign:{type:"string"},mobileAlign:{type:"string"},textShadow:{type:"array",default:[{enable:!1,color:"rgba(0, 0, 0, 0.2)",blur:1,hOffset:1,vOffset:1}]},htmlTag:{type:"string",default:"heading"},loadItalic:{type:"boolean",default:!1},link:{type:"string"},linkTarget:{type:"boolean",default:!1},linkNoFollow:{type:"boolean",default:!1},linkSponsored:{type:"boolean",default:!1}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>Tc("kadence/advancedheading",{content:e})},{type:"block",blocks:["core/heading"],transform:({content:e,level:t})=>Tc("kadence/advancedheading",{content:e,level:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>Tc("core/paragraph",{content:e})},{type:"block",blocks:["core/heading"],transform:({content:e,level:t})=>Tc("core/heading",{content:e,level:t})}]},edit:wc,save:e=>{const{attributes:{anchor:t,level:l,content:o,colorClass:i,color:n,textShadow:r,letterSpacing:c,topMargin:s,bottomMargin:d,marginType:b,align:m,uniqueID:p,className:g,kadenceAnimation:u,kadenceAOSOptions:h,htmlTag:v,link:k,linkNoFollow:y,linkSponsored:f,linkTarget:O}}=e,j=v&&"heading"!==v?v:"h"+l,_=Object(ot.getColorClassName)("color",i),S=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),E=!!S,w=al()({["kt-adv-heading"+p]:p,[g]:!E&&g,[zc("kadence/advancedheading")]:zc("kadence/advancedheading"),[_]:_,"has-text-color":_});let x;O&&(x="noopener noreferrer"),void 0!==y&&!0===y&&(x=x?x.concat(" nofollow"):"nofollow"),void 0!==f&&!0===f&&(x=x?x.concat(" sponsored"):"sponsored");const C=Object(a.createElement)(ot.RichText.Content,{tagName:j,id:t||void 0,className:w,"data-kb-block":"kb-adv-heading"+p,"data-aos":u||void 0,"data-aos-offset":h&&h[0]&&h[0].offset?h[0].offset:void 0,"data-aos-duration":h&&h[0]&&h[0].duration?h[0].duration:void 0,"data-aos-delay":h&&h[0]&&h[0].delay?h[0].delay:void 0,"data-aos-easing":h&&h[0]&&h[0].easing?h[0].easing:void 0,"data-aos-once":h&&h[0]&&void 0!==h[0].once&&""!==h[0].once?h[0].once:void 0,value:o}),M=Object(a.createElement)("a",{href:k,className:"kb-advanced-heading-link",target:O?"_blank":void 0,relAttr:x||void 0},C),N=k?M:C;return Object(a.createElement)(Hc,null,E&&Object(a.createElement)("div",{className:`kb-adv-heading-wrap${p} kadence-advanced-heading-wrapper${S?" kadence-heading-clip-animation":""}${g?" "+g:""}`},N),!E&&N)},deprecated:Mc});var Bc={uniqueID:{type:"string",default:""},tabCount:{type:"number",default:3},layout:{type:"string",default:"tabs"},mobileLayout:{type:"string",default:"inherit"},tabletLayout:{type:"string",default:"inherit"},currentTab:{type:"number",default:1},minHeight:{type:"number",default:""},maxWidth:{type:"number",default:""},contentBgColor:{type:"string",default:""},contentBorderColor:{type:"string",default:""},contentBorder:{type:"array",default:[1,1,1,1]},contentBorderControl:{type:"string",default:"linked"},innerPadding:{type:"array",default:[20,20,20,20]},innerPaddingControl:{type:"string",default:"linked"},innerPaddingM:{type:"array"},tabAlignment:{type:"string",default:"left"},blockAlignment:{type:"string",default:"none"},titles:{type:"array",default:[{text:Object(o.__)("Tab 1","kadence-blocks"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""},{text:Object(o.__)("Tab 2","kadence-blocks"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""},{text:Object(o.__)("Tab 3","kadence-blocks"),icon:"",iconSide:"right",onlyIcon:!1,subText:"",anchor:""}]},iSize:{type:"number",default:14},titleColor:{type:"string"},titleColorHover:{type:"string"},titleColorActive:{type:"string"},titleBg:{type:"string"},titleBgHover:{type:"string"},titleBgActive:{type:"string",default:"#ffffff"},titleBorder:{type:"string"},titleBorderHover:{type:"string"},titleBorderActive:{type:"string"},titleBorderWidth:{type:"array"},titleBorderControl:{type:"string",default:"individual"},titleBorderRadius:{type:"array"},titleBorderRadiusControl:{type:"string",default:"individual"},titlePadding:{type:"array"},titlePaddingControl:{type:"string",default:"individual"},titleMargin:{type:"array"},titleMarginControl:{type:"string",default:"individual"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"},startTab:{type:"number",default:""},showPresets:{type:"bool",default:!0},subtitleFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[0,0,0,0],marginControl:"linked"}]},enableSubtitle:{type:"bool",default:!1},widthType:{type:"string",default:"normal"},tabWidth:{type:"array",default:[4,"",""]},gutter:{type:"array",default:[10,"",""]}};const{createBlock:Ic}=wp.blocks,{Component:Rc,Fragment:Pc}=wp.element,{InnerBlocks:Ac,InspectorControls:Lc,RichText:Fc,BlockControls:Wc,AlignmentToolbar:Dc,BlockAlignmentToolbar:Uc}=wp.blockEditor,{Button:Vc,ButtonGroup:$c,Tooltip:Gc,TabPanel:Zc,IconButton:qc,Dashicon:Jc,PanelBody:Kc,RangeControl:Qc,ToggleControl:Yc,SelectControl:Xc,TextControl:es}=wp.components,{applyFilters:ts}=wp.hooks,ls=["kadence/tab"],as=/[\s#]/g,os=Aa()(e=>bl()(e,e=>["kadence/tab",{id:e+1}])),is=[];var ns=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{clientId:l}=t,{getBlock:a,getBlockOrder:o}=e("core/block-editor"),i=a(l);return{tabsBlock:i,realTabsCount:i.innerBlocks.length,tabsInner:o(l)}}),Object(A.withDispatch)((e,{clientId:t},{select:l})=>{const{getBlock:a}=l("core/block-editor"),{moveBlockToPosition:o,removeBlock:i,updateBlockAttributes:n,insertBlock:r}=e("core/block-editor"),c=a(t);return{resetOrder(){bl()(c.innerBlocks.length,e=>{n(c.innerBlocks[e].clientId,{id:e+1})})},moveTab(e,l){o(e,t,t,parseInt(l))},insertTab(e){r(e,parseInt(c.innerBlocks.length),t)},removeTab(e){i(e)}}})])(class extends Rc{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBack=this.onMoveBack.bind(this),this.state={hovered:"false",showPreset:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}componentDidMount(){if(this.props.attributes.uniqueID)is.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),is.push("_"+this.props.clientId.substr(2,9))):is.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.config["kadence/tabs"],t=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==t["kadence/tabs"]&&"object"==typeof t["kadence/tabs"]?Object.keys(t["kadence/tabs"]).map(e=>{this.props.attributes[e]=t["kadence/tabs"][e]}):void 0!==e&&"object"==typeof e&&Object.keys(e).map(t=>{this.props.attributes[t]=e[t]}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),is.push("_"+this.props.clientId.substr(2,9))}const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/tabs"]&&"object"==typeof e["kadence/tabs"]&&this.setState({settings:e["kadence/tabs"]})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}saveArrayUpdate(e,t){const{attributes:l,setAttributes:a}=this.props,{titles:o}=l;a({titles:o.map((l,a)=>(t===a&&(l={...l,...e}),l))})}onMove(e,t){const l=[...this.props.attributes.titles];l.splice(t,1,this.props.attributes.titles[e]),l.splice(e,1,this.props.attributes.titles[t]),this.props.setAttributes({titles:l,currentTab:parseInt(t+1)}),this.props.attributes.startTab===e+1?this.props.setAttributes({startTab:t+1}):this.props.attributes.startTab===t+1&&this.props.setAttributes({startTab:e+1}),this.props.moveTab(this.props.tabsBlock.innerBlocks[e].clientId,t),this.props.resetOrder(),this.props.setAttributes({currentTab:parseInt(t+1)})}onMoveForward(e){return()=>{e!==this.props.realTabsCount-1&&this.onMove(e,e+1)}}onMoveBack(e){return()=>{0!==e&&this.onMove(e,e-1)}}render(){const{attributes:{uniqueID:e,tabCount:t,blockAlignment:l,mobileLayout:i,currentTab:r,tabletLayout:c,layout:s,innerPadding:b,minHeight:m,maxWidth:p,titles:g,titleColor:u,titleColorHover:h,titleColorActive:v,titleBg:k,titleBgHover:y,titleBgActive:f,size:O,sizeType:j,lineType:_,lineHeight:S,tabLineHeight:E,tabSize:w,mobileSize:x,mobileLineHeight:C,letterSpacing:M,borderRadius:N,titleBorderWidth:T,titleBorderControl:z,titleBorder:H,titleBorderHover:B,titleBorderActive:I,typography:R,fontVariant:P,fontWeight:A,fontStyle:L,fontSubset:F,googleFont:W,loadGoogleFont:D,innerPaddingControl:U,contentBorder:V,contentBorderControl:$,contentBorderColor:G,titlePadding:Z,titlePaddingControl:q,titleMargin:J,titleMarginControl:K,contentBgColor:Q,tabAlignment:Y,titleBorderRadiusControl:X,titleBorderRadius:ee,iSize:te,startTab:le,enableSubtitle:ae,subtitleFont:oe,tabWidth:ne,gutter:re,widthType:ce},clientId:se,className:de,setAttributes:be}=this.props,me=s||"tabs",pe=[{key:"px",name:Object(o.__)("px")},{key:"em",name:Object(o.__)("em")}],ge={google:{families:[R+(P?":"+P:"")]}},ue={google:{families:[(oe&&oe[0]&&oe[0].family?oe[0].family:"")+(oe&&oe[0]&&oe[0].variant?":"+oe[0].variant:"")]}},he=oe&&oe[0]&&oe[0].google?ue:"",ve=e=>{let t;t=void 0===oe||void 0!==oe&&void 0===oe[0]?[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[0,0,0,0],marginControl:"linked"}]:oe;const l=t.map((t,l)=>(0===l&&(t={...t,...e}),t));be({subtitleFont:l})},ke=[{key:"skip",name:Object(o.__)("Skip"),icon:Object(o.__)("Skip")},{key:"simple",name:Object(o.__)("Simple"),icon:n.tabsSimple},{key:"boldbg",name:Object(o.__)("Boldbg"),icon:n.tabsBold},{key:"center",name:Object(o.__)("Center"),icon:n.tabsCenter},{key:"vertical",name:Object(o.__)("Vertical"),icon:n.tabsVertical}],ye=W?ge:"",fe="em"===j?.2:5,Oe="em"===j?12:200,je="em"===j?.1:1,_e="px"===_?5:.2,Se="px"===_?200:12,Ee="px"===_?1:.1,we=c||"inherit",xe=i||"inherit",Ce=al()(de,`kt-tabs-wrap kt-tabs-id${e} kt-tabs-has-${t}-tabs kt-active-tab-${r} kt-tabs-layout-${me} kt-tabs-block kt-tabs-tablet-layout-${we} kt-tabs-mobile-layout-${xe} kt-tab-alignment-${Y}`),Me=[{key:"tabs",name:Object(o.__)("Tabs"),icon:n.tabs},{key:"vtabs",name:Object(o.__)("Vertical Tabs"),icon:n.vtabs},{key:"accordion",name:Object(o.__)("Accordion"),icon:n.accordion}],Ne=[{key:"tabs",name:Object(o.__)("Tabs"),icon:n.tabs},{key:"vtabs",name:Object(o.__)("Vertical Tabs"),icon:n.vtabs}],Te=Object(a.createElement)("div",null,Object(a.createElement)(Kc,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Mobile Layout")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Mobile Layout")},d()(Me,({name:e,key:t,icon:l})=>Object(a.createElement)(Gc,{text:e},Object(a.createElement)(Vc,{key:t,className:"kt-layout-btn kt-tablayout",isSmall:!0,isPrimary:i===t,"aria-pressed":i===t,onClick:()=>be({mobileLayout:t})},l)))))),ze=Object(a.createElement)(Kc,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Tablet Layout")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Tablet Layout")},d()(Me,({name:e,key:t,icon:l})=>Object(a.createElement)(Gc,{text:e},Object(a.createElement)(Vc,{key:t,className:"kt-layout-btn kt-tablayout",isSmall:!0,isPrimary:c===t,"aria-pressed":c===t,onClick:()=>be({tabletLayout:t})},l))))),He=Object(a.createElement)(Pc,null,Object(a.createElement)(Kc,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Layout")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Layout")},d()(Ne,({name:e,key:t,icon:l})=>Object(a.createElement)(Gc,{text:e},Object(a.createElement)(Vc,{key:t,className:"kt-layout-btn kt-tablayout",isSmall:!0,isPrimary:s===t,"aria-pressed":s===t,onClick:()=>{be({layout:t})}},l)))),Object(a.createElement)("h2",null,Object(o.__)("Set initial Open Tab")),Object(a.createElement)($c,{"aria-label":Object(o.__)("initial Open Tab")},bl()(t,e=>Object(a.createElement)(Vc,{key:e+1,className:"kt-init-open-tab",isSmall:!0,isPrimary:le===e+1,"aria-pressed":le===e+1,onClick:()=>be({startTab:e+1})},Object(o.__)("Tab")+" "+(e+1)))))),Be=Object(a.createElement)(Zc,{className:"kt-inspect-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(Jc,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(Jc,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(Jc,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Te:"tablet"===e.name?ze:He),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Ie=e=>{const l=oe&&oe[0]&&void 0!==oe[0].sizeType?oe:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[0,0,0,0],marginControl:"linked"}];return Object(a.createElement)(Pc,null,Object(a.createElement)("li",{className:`kt-title-item kt-title-item-${e} kt-tabs-svg-show-${g[e]&&g[e].onlyIcon?"only":"always"} kt-tabs-icon-side-${g[e]&&g[e].iconSide?g[e].iconSide:"right"} kt-tabs-has-icon-${g[e]&&g[e].icon?"true":"false"} kt-tab-title-${1+e===r?"active":"inactive"}${ae?" kb-tabs-have-subtitle":""}`,style:{margin:J?J[0]+"px "+("tabs"===s&&"percent"===ce?"0px ":J[1]+"px ")+J[2]+"px "+("tabs"===s&&"percent"===ce?"0px ":J[3]+"px "):""}},Object(a.createElement)("div",{className:"kt-tab-title kt-tab-title-"+(1+e),style:{backgroundColor:dn(k),color:dn(u),fontSize:O+j,lineHeight:S+_,fontWeight:A,fontStyle:L,letterSpacing:M+"px",fontFamily:R||"",borderTopLeftRadius:N+"px",borderTopRightRadius:N+"px",borderWidth:T?T[0]+"px "+T[1]+"px "+T[2]+"px "+T[3]+"px":"",borderRadius:ee?ee[0]+"px "+ee[1]+"px "+ee[2]+"px "+ee[3]+"px":"",padding:Z?Z[0]+"px "+Z[1]+"px "+Z[2]+"px "+Z[3]+"px":"",borderColor:dn(H),marginRight:"tabs"===s&&"percent"===ce?re[0]+"px":void 0},onClick:()=>be({currentTab:1+e}),onKeyPress:()=>be({currentTab:1+e}),tabIndex:"0",role:"button"},g[e]&&g[e].icon&&"right"!==g[e].iconSide&&Object(a.createElement)(Je,{className:`kt-tab-svg-icon kt-tab-svg-icon-${g[e].icon} kt-title-svg-side-${g[e].iconSide}`,name:g[e].icon,size:te||"14",htmltag:"span"}),(void 0===ae||!ae)&&Object(a.createElement)(Fc,{tagName:"div",placeholder:Object(o.__)("Tab Title"),value:g[e]&&g[e].text?g[e].text:"",unstableOnFocus:()=>be({currentTab:1+e}),onChange:t=>{this.saveArrayUpdate({text:t},e)},allowedFormats:ts("kadence.whitelist_richtext_formats",["core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:"kt-title-text",style:{lineHeight:S+_},keepPlaceholderOnFocus:!0}),ae&&Object(a.createElement)("div",{className:"kb-tab-titles-wrap"},Object(a.createElement)(Fc,{tagName:"div",placeholder:Object(o.__)("Tab Title"),value:g[e]&&g[e].text?g[e].text:"",unstableOnFocus:()=>be({currentTab:1+e}),onChange:t=>{this.saveArrayUpdate({text:t},e)},allowedFormats:ts("kadence.whitelist_richtext_formats",["core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:"kt-title-text",style:{lineHeight:S+_},keepPlaceholderOnFocus:!0}),Object(a.createElement)(Fc,{tagName:"div",placeholder:Object(o.__)("Tab subtitle"),value:void 0!==g[e]&&void 0!==g[e].subText?g[e].subText:"",unstableOnFocus:()=>be({currentTab:1+e}),onChange:t=>{this.saveArrayUpdate({subText:t},e)},allowedFormats:ts("kadence.whitelist_richtext_formats",["core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:"kt-title-sub-text",style:{fontWeight:l[0].weight,fontStyle:l[0].style,fontSize:l[0].size[0]+l[0].sizeType,lineHeight:l[0].lineHeight&&l[0].lineHeight[0]?l[0].lineHeight[0]+l[0].lineType:void 0,letterSpacing:l[0].letterSpacing+"px",fontFamily:l[0].family?l[0].family:"",padding:l[0].padding?l[0].padding[0]+"px "+l[0].padding[1]+"px "+l[0].padding[2]+"px "+l[0].padding[3]+"px":"",margin:l[0].margin?l[0].margin[0]+"px "+l[0].margin[1]+"px "+l[0].margin[2]+"px "+l[0].margin[3]+"px":""},keepPlaceholderOnFocus:!0})),g[e]&&g[e].icon&&"right"===g[e].iconSide&&Object(a.createElement)(Je,{className:`kt-tab-svg-icon kt-tab-svg-icon-${g[e].icon} kt-title-svg-side-${g[e].iconSide}`,name:g[e].icon,size:te||"14",htmltag:"span"})),Object(a.createElement)("div",{className:"kadence-blocks-tab-item__control-menu"},0!==e&&Object(a.createElement)(qc,{icon:"vtabs"===s?"arrow-up":"arrow-left",onClick:0===e?void 0:this.onMoveBack(e),className:"kadence-blocks-tab-item__move-back",label:"vtabs"===s?Object(o.__)("Move Item Up"):Object(o.__)("Move Item Back"),"aria-disabled":0===e,disabled:0===e}),e+1!==t&&Object(a.createElement)(qc,{icon:"vtabs"===s?"arrow-down":"arrow-right",onClick:e+1===t?void 0:this.onMoveForward(e),className:"kadence-blocks-tab-item__move-forward",label:"vtabs"===s?Object(o.__)("Move Item Down"):Object(o.__)("Move Item Forward"),"aria-disabled":e+1===t,disabled:e+1===t}),t>1&&Object(a.createElement)(qc,{icon:"no-alt",onClick:()=>{const l=this.props.tabsBlock.innerBlocks[e].clientId,a=Hl()(this.props.attributes.titles,(t,l)=>e!==l);let o;o=le===e+1?"":le>e+1?le-1:le,be({titles:a,tabCount:t-1,currentTab:0===e?1:e,startTab:o}),this.props.removeTab(l),this.props.resetOrder()},className:"kadence-blocks-tab-item__remove",label:Object(o.__)("Remove Item"),disabled:!r===e+1}))))},Re=Object(a.createElement)(Pc,null,bl()(t,e=>Ie(e))),Pe=e=>Object(a.createElement)(Kc,{title:Object(o.__)("Tab")+" "+(e+1)+" "+Object(o.__)("Anchor"),initialOpen:!1},Object(a.createElement)(es,{label:Object(o.__)("HTML Anchor"),help:Object(o.__)("Anchors lets you link directly to a tab."),value:g[e]&&g[e].anchor?g[e].anchor:"",onChange:t=>{t=t.replace(as,"-"),this.saveArrayUpdate({anchor:t},e)}})),Ae=e=>Object(a.createElement)(Kc,{title:Object(o.__)("Tab")+" "+(e+1)+" "+Object(o.__)("Icon"),initialOpen:!1},Object(a.createElement)(Xe,{value:g[e]&&g[e].icon?g[e].icon:"",onChange:t=>{this.saveArrayUpdate({icon:t},e)}}),Object(a.createElement)(Xc,{label:Object(o.__)("Icon Location"),value:g[e]&&g[e].iconSide?g[e].iconSide:"right",options:[{value:"right",label:Object(o.__)("Right")},{value:"left",label:Object(o.__)("Left")},{value:"top",label:Object(o.__)("Top")}],onChange:t=>{this.saveArrayUpdate({iconSide:t},e)}}),Object(a.createElement)(Yc,{label:Object(o.__)("Show Only Icon?"),checked:!(!g[e]||!g[e].onlyIcon)&&g[e].onlyIcon,onChange:t=>{this.saveArrayUpdate({onlyIcon:t},e)}})),Le=Object(a.createElement)(Pc,null,Object(a.createElement)(Bt,{label:Object(o.__)("Title Color"),colorValue:u||"",colorDefault:"",onColorChange:e=>be({titleColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Title Background"),colorValue:k||"",colorDefault:"",onColorChange:e=>be({titleBg:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Title Border Color"),colorValue:H||"",colorDefault:"",onColorChange:e=>be({titleBorder:e})})),Fe=Object(a.createElement)(Pc,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color"),colorValue:h||"",colorDefault:"",onColorChange:e=>be({titleColorHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background"),colorValue:y||"",colorDefault:"",onColorChange:e=>be({titleBgHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Border Color"),colorValue:B||"",colorDefault:"",onColorChange:e=>be({titleBorderHover:e})})),We=Object(a.createElement)(Pc,null,Object(a.createElement)(Bt,{label:Object(o.__)("Active Color"),colorValue:v||"",colorDefault:"",onColorChange:e=>be({titleColorActive:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Active Background"),colorValue:f||"",colorDefault:"",onColorChange:e=>be({titleBgActive:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Active Border Color"),colorValue:I||"",colorDefault:"",onColorChange:e=>be({titleBorderActive:e})})),De=Object(a.createElement)(Kc,null,Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:j===t,"aria-pressed":j===t,onClick:()=>be({sizeType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Font Size"),value:O||"",onChange:e=>be({size:e}),min:fe,max:Oe,step:je}),Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:_===t,"aria-pressed":_===t,onClick:()=>be({lineType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Line Height"),value:S||"",onChange:e=>be({lineHeight:e}),min:_e,max:Se,step:Ee})),Ue=Object(a.createElement)(Kc,null,Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:j===t,"aria-pressed":j===t,onClick:()=>be({sizeType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Font Size"),value:w||"",onChange:e=>be({tabSize:e}),min:fe,max:Oe,step:je}),Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:_===t,"aria-pressed":_===t,onClick:()=>be({lineType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Line Height"),value:E||"",onChange:e=>be({tabLineHeight:e}),min:_e,max:Se,step:Ee})),Ve=Object(a.createElement)(Kc,null,Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:j===t,"aria-pressed":j===t,onClick:()=>be({sizeType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Font Size"),value:x||"",onChange:e=>be({mobileSize:e}),min:fe,max:Oe,step:je}),Object(a.createElement)($c,{className:"kt-size-type-options","aria-label":Object(o.__)("Size Type")},d()(pe,({name:e,key:t})=>Object(a.createElement)(Vc,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:_===t,"aria-pressed":_===t,onClick:()=>be({lineType:t})},e))),Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Line Height"),value:C||"",onChange:e=>be({mobileLineHeight:e}),min:_e,max:Se,step:Ee})),$e=Object(a.createElement)(Zc,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(Jc,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(Jc,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(Jc,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Ve:"tablet"===e.name?Ue:De),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Ge=Object(a.createElement)("style",null,`.kt-tabs-id${e} .kt-title-item:hover .kt-tab-title {\n\t\t\t\t\tcolor: ${dn(h)} !important;\n\t\t\t\t\tborder-color: ${dn(B)} !important;\n\t\t\t\t\tbackground-color: ${dn(y)} !important;\n\t\t\t\t}\n\t\t\t\t.kt-tabs-id${e} .kt-title-item.kt-tab-title-active .kt-tab-title, .kt-tabs-id${e} .kt-title-item.kt-tab-title-active:hover .kt-tab-title {\n\t\t\t\t\tcolor: ${dn(v)} !important;\n\t\t\t\t\tborder-color: ${dn(I)} !important;\n\t\t\t\t\tbackground-color: ${dn(f)} !important;\n\t\t\t\t}`);return Object(a.createElement)(Pc,null,Ge,Object(a.createElement)(Wc,null,Object(a.createElement)(Uc,{value:l,controls:["center","wide","full"],onChange:e=>be({blockAlignment:e})}),Object(a.createElement)(Dc,{value:Y,onChange:e=>{be({tabAlignment:e})}})),this.showSettings("allSettings")&&Object(a.createElement)(Lc,null,this.showSettings("tabLayout")&&Be,!this.showSettings("tabLayout")&&Object(a.createElement)(Kc,null,Object(a.createElement)("h2",null,Object(o.__)("Set Initial Open Tab")),Object(a.createElement)($c,{"aria-label":Object(o.__)("Initial Open Tab")},bl()(t,e=>Object(a.createElement)(Vc,{key:e+1,className:"kt-init-open-tab",isSmall:!0,isPrimary:le===e+1,"aria-pressed":le===e+1,onClick:()=>be({startTab:e+1})},Object(o.__)("Tab")+" "+(e+1))))),this.showSettings("tabContent")&&Object(a.createElement)(Kc,{title:Object(o.__)("Content Settings"),initialOpen:!1},Object(a.createElement)(Bt,{label:Object(o.__)("Content Background"),colorValue:Q||"",colorDefault:"",onColorChange:e=>be({contentBgColor:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Inner Content Padding (px)"),measurement:b,control:U,onChange:e=>be({innerPadding:e}),onControl:e=>be({innerPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:G||"",colorDefault:"",onColorChange:e=>be({contentBorderColor:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Content Border Width (px)"),measurement:V,control:$,onChange:e=>be({contentBorder:e}),onControl:e=>be({contentBorderControl:e}),min:0,max:100,step:1})),this.showSettings("titleColor")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Color Settings"),initialOpen:!1},Object(a.createElement)(Zc,{className:"kt-inspect-tabs kt-no-ho-ac-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover"),className:"kt-hover-tab"},{name:"active",title:Object(o.__)("Active"),className:"kt-active-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Fe:"active"===e.name?We:Le),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),this.showSettings("titleSpacing")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Width/Spacing/Border"),initialOpen:!1},"tabs"===s&&Object(a.createElement)(Pc,null,Object(a.createElement)("h2",null,Object(o.__)("Tab Title Width")),Object(a.createElement)(Zc,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",initialTabName:ce,onSelect:e=>be({widthType:e}),tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"percent",title:Object(o.__)("% Width"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="percent"===e.name?Object(a.createElement)(Pc,null,Object(a.createElement)(Zc,{className:"kt-size-tabs kb-device-choice",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(Jc,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(Jc,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(Jc,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(Pc,null,Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Columns"),value:ne&&void 0!==ne[2]?ne[2]:"",onChange:e=>be({tabWidth:[ne[0],ne[1],e]}),min:1,max:8,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Mobile Gutter"),value:re&&void 0!==re[2]?re[2]:"",onChange:e=>be({gutter:[re[0],re[1],e]}),min:0,max:50,step:1})):"tablet"===e.name?Object(a.createElement)(Pc,null,Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Columns"),value:ne&&void 0!==ne[1]?ne[1]:"",onChange:e=>be({tabWidth:[ne[0],e,ne[2]]}),min:1,max:8,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Tablet Gutter"),value:re&&void 0!==re[1]?re[1]:"",onChange:e=>be({gutter:[re[0],e,re[2]]}),min:0,max:50,step:1})):Object(a.createElement)(Pc,null,Object(a.createElement)(Qc,{label:Object(o.__)("Columns"),value:ne&&void 0!==ne[0]?ne[0]:"",onChange:e=>be({tabWidth:[e,ne[1],ne[2]]}),min:1,max:8,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Gutter"),value:re&&void 0!==re[0]?re[0]:"",onChange:e=>be({gutter:[e,re[1],re[2]]}),min:0,max:50,step:1}))),Object(a.createElement)("div",null,t)}),Object(a.createElement)(sn,{label:Object(o.__)("Title Padding (px)"),measurement:Z,control:q,onChange:e=>be({titlePadding:e}),onControl:e=>be({titlePaddingControl:e}),min:0,max:50,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Top Margin (px)"),value:J&&void 0!==J[0]?J[0]:"",onChange:e=>be({titleMargin:[e,J[1],J[2],J[3]]}),min:-25,max:25,step:1}),Object(a.createElement)(Qc,{label:Object(o.__)("Bottom Margin (px)"),value:J&&void 0!==J[2]?J[2]:"",onChange:e=>be({titleMargin:[J[0],J[1],e,J[3]]}),min:-25,max:25,step:1})):Object(a.createElement)(Pc,null,Object(a.createElement)(sn,{label:Object(o.__)("Title Padding (px)"),measurement:Z,control:q,onChange:e=>be({titlePadding:e}),onControl:e=>be({titlePaddingControl:e}),min:0,max:50,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Title Margin (px)"),measurement:J,control:K,onChange:e=>be({titleMargin:e}),onControl:e=>be({titleMarginControl:e}),min:-25,max:25,step:1}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),"tabs"!==s&&Object(a.createElement)(Pc,null,Object(a.createElement)(sn,{label:Object(o.__)("Title Padding (px)"),measurement:Z,control:q,onChange:e=>be({titlePadding:e}),onControl:e=>be({titlePaddingControl:e}),min:0,max:50,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Title Margin (px)"),measurement:J,control:K,onChange:e=>be({titleMargin:e}),onControl:e=>be({titleMarginControl:e}),min:-25,max:25,step:1})),Object(a.createElement)(sn,{label:Object(o.__)("Title Border Width (px)"),measurement:T,control:z,onChange:e=>be({titleBorderWidth:e}),onControl:e=>be({titleBorderControl:e}),min:0,max:20,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Title Border Radius (px)"),measurement:ee,control:X,onChange:e=>be({titleBorderRadius:e}),onControl:e=>be({titleBorderRadiusControl:e}),min:0,max:50,step:1,controlTypes:[{key:"linked",name:Object(o.__)("Linked"),icon:n.radiuslinked},{key:"individual",name:Object(o.__)("Individual"),icon:n.radiusindividual}],firstIcon:n.topleft,secondIcon:n.topright,thirdIcon:n.bottomright,fourthIcon:n.bottomleft})),this.showSettings("titleFont")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Font Settings"),initialOpen:!1},Object(a.createElement)(ie,{fontFamily:R,onFontFamily:e=>be({typography:e}),googleFont:W,onFontChange:e=>{be({typography:e.value,googleFont:e.google})},onGoogleFont:e=>be({googleFont:e}),loadGoogleFont:D,onLoadGoogleFont:e=>be({loadGoogleFont:e}),fontVariant:P,onFontVariant:e=>be({fontVariant:e}),fontWeight:A,onFontWeight:e=>be({fontWeight:e}),fontStyle:L,onFontStyle:e=>be({fontStyle:e}),fontSubset:F,onFontSubset:e=>be({fontSubset:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Size Controls")),$e,Object(a.createElement)(Qc,{label:Object(o.__)("Letter Spacing"),value:M||"",onChange:e=>be({letterSpacing:e}),min:-5,max:15,step:.1})),this.showSettings("titleIcon")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Title Icon Settings"),initialOpen:!1},Object(a.createElement)(Qc,{label:Object(o.__)("Icon Size"),value:te||"",onChange:e=>be({iSize:e}),min:2,max:120,step:1}),bl()(t,e=>Ae(e))),this.showSettings("subtitle")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Subtitle Settings"),initialOpen:!1},Object(a.createElement)(Yc,{label:Object(o.__)("Show Subtitles?"),checked:void 0!==ae&&ae,onChange:e=>{be({enableSubtitle:e})}}),ae&&Object(a.createElement)(ie,{fontSize:oe&&void 0!==oe[0]&&void 0!==oe[0].size?oe[0].size:["","",""],onFontSize:e=>ve({size:e}),fontSizeType:oe&&void 0!==oe[0]&&void 0!==oe[0].sizeType?oe[0].sizeType:"px",onFontSizeType:e=>ve({sizeType:e}),lineHeight:oe&&void 0!==oe[0]&&void 0!==oe[0].lineHeight?oe[0].lineHeight:["","",""],onLineHeight:e=>ve({lineHeight:e}),lineHeightType:oe&&void 0!==oe[0]&&void 0!==oe[0].lineType?oe[0].lineType:"px",onLineHeightType:e=>ve({lineType:e}),letterSpacing:oe&&void 0!==oe[0]&&void 0!==oe[0].letterSpacing?oe[0].letterSpacing:"",onLetterSpacing:e=>ve({letterSpacing:e}),fontFamily:oe&&void 0!==oe[0]&&void 0!==oe[0].family?oe[0].family:"",onFontFamily:e=>ve({family:e}),onFontChange:e=>{ve({family:e.value,google:e.google})},onFontArrayChange:e=>ve(e),googleFont:!(!oe||void 0===oe[0]||void 0===oe[0].google)&&oe[0].google,onGoogleFont:e=>ve({google:e}),loadGoogleFont:!oe||void 0===oe[0]||void 0===oe[0].loadGoogle||oe[0].loadGoogle,onLoadGoogleFont:e=>ve({loadGoogle:e}),fontVariant:oe&&void 0!==oe[0]&&void 0!==oe[0].variant?oe[0].variant:"",onFontVariant:e=>ve({variant:e}),fontWeight:oe&&void 0!==oe[0]&&void 0!==oe[0].weight?oe[0].weight:"",onFontWeight:e=>ve({weight:e}),fontStyle:oe&&void 0!==oe[0]&&void 0!==oe[0].style?oe[0].style:"",onFontStyle:e=>ve({style:e}),fontSubset:oe&&void 0!==oe[0]&&void 0!==oe[0].subset?oe[0].subset:"",onFontSubset:e=>ve({subset:e}),padding:oe&&void 0!==oe[0]&&void 0!==oe[0].padding?oe[0].padding:[0,0,0,0],onPadding:e=>ve({padding:e}),paddingControl:oe&&void 0!==oe[0]&&void 0!==oe[0].paddingControl?oe[0].paddingControl:"linked",onPaddingControl:e=>ve({paddingControl:e}),margin:oe&&void 0!==oe[0]&&void 0!==oe[0].margin?oe[0].margin:[0,0,0,0],onMargin:e=>ve({margin:e}),marginControl:oe&&void 0!==oe[0]&&void 0!==oe[0].marginControl?oe[0].marginControl:"linked",onMarginControl:e=>ve({marginControl:e})})),this.showSettings("titleAnchor")&&Object(a.createElement)(Kc,{title:Object(o.__)("Tab Anchor Settings"),initialOpen:!1},bl()(t,e=>Pe(e))),this.showSettings("structure")&&Object(a.createElement)(Kc,{title:Object(o.__)("Structure Settings"),initialOpen:!1},Object(a.createElement)(Qc,{label:Object(o.__)("Content Minimium Height"),value:m,onChange:e=>{be({minHeight:e})},min:0,max:1e3}),Object(a.createElement)(Qc,{label:Object(o.__)("Max Width"),value:p,onChange:e=>{be({maxWidth:e})},min:0,max:2e3}))),Object(a.createElement)("div",{className:Ce},this.state.showPreset&&Object(a.createElement)("div",{className:"kt-select-starter-style-tabs"},Object(a.createElement)("div",{className:"kt-select-starter-style-tabs-title"},Object(o.__)("Select Initial Style")),Object(a.createElement)($c,{className:"kt-init-tabs-btn-group","aria-label":Object(o.__)("Initial Style")},d()(ke,({name:e,key:t,icon:l})=>Object(a.createElement)(Vc,{key:t,className:"kt-inital-tabs-style-btn",isSmall:!0,onClick:()=>{(e=>{"skip"===e||("simple"===e?be({layout:"tabs",tabAlignment:"left",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[1,1,0,1],titleBorderControl:"individual",titleBorderRadius:[4,4,0,0],titleBorderRadiusControl:"individual",titlePadding:[8,20,8,20],titlePaddingControl:"individual",titleMargin:[0,8,-1,0],titleMarginControl:"individual",titleColor:"#444444",titleColorHover:"#444444",titleColorActive:"#444444",titleBg:"#ffffff",titleBgHover:"#ffffff",titleBgActive:"#ffffff",titleBorder:"#eeeeee",titleBorderHover:"#e2e2e2",titleBorderActive:"#bcbcbc",contentBgColor:"#ffffff",contentBorderColor:"#bcbcbc",contentBorder:[1,1,1,1],contentBorderControl:"linked"}):"boldbg"===e?be({layout:"tabs",tabAlignment:"left",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[0,0,0,0],titleBorderControl:"linked",titleBorderRadius:[4,4,0,0],titleBorderRadiusControl:"individual",titlePadding:[8,20,8,20],titlePaddingControl:"individual",titleMargin:[0,8,0,0],titleMarginControl:"individual",titleColor:"#222222",titleColorHover:"#222222",titleColorActive:"#ffffff",titleBg:"#eeeeee",titleBgHover:"#e2e2e2",titleBgActive:"#0a6689",titleBorder:"#eeeeee",titleBorderHover:"#eeeeee",titleBorderActive:"#eeeeee",contentBgColor:"#ffffff",contentBorderColor:"#0a6689",contentBorder:[3,0,0,0],contentBorderControl:"individual"}):"center"===e?be({layout:"tabs",tabAlignment:"center",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[0,0,4,0],titleBorderControl:"individual",titleBorderRadius:[4,4,0,0],titleBorderRadiusControl:"individual",titlePadding:[8,20,8,20],titlePaddingControl:"individual",titleMargin:[0,8,0,0],titleMarginControl:"individual",titleColor:"#555555",titleColorHover:"#555555",titleColorActive:"#0a6689",titleBg:"#ffffff",titleBgHover:"#ffffff",titleBgActive:"#ffffff",titleBorder:"#ffffff",titleBorderHover:"#eeeeee",titleBorderActive:"#0a6689",contentBgColor:"#ffffff",contentBorderColor:"#eeeeee",contentBorder:[1,0,0,0],contentBorderControl:"individual"}):"vertical"===e&&be({layout:"vtabs",mobileLayout:"accordion",tabAlignment:"left",size:1.1,sizeType:"em",lineHeight:1.4,lineType:"em",titleBorderWidth:[4,0,4,4],titleBorderControl:"individual",titleBorderRadius:[10,0,0,10],titleBorderRadiusControl:"individual",titlePadding:[12,8,12,20],titlePaddingControl:"individual",titleMargin:[0,-4,10,0],titleMarginControl:"individual",titleColor:"#444444",titleColorHover:"#444444",titleColorActive:"#444444",titleBg:"#eeeeee",titleBgHover:"#e9e9e9",titleBgActive:"#ffffff",titleBorder:"#eeeeee",titleBorderHover:"#e9e9e9",titleBorderActive:"#eeeeee",contentBgColor:"#ffffff",contentBorderColor:"#eeeeee",contentBorder:[4,4,4,4],contentBorderControl:"linked",minHeight:400}))})(t),this.setState({showPreset:!1})}},l)))),!this.state.showPreset&&Object(a.createElement)("div",{className:"kt-tabs-wrap",style:{maxWidth:p+"px"}},Object(a.createElement)("div",{className:"kb-add-new-tab-contain"},Object(a.createElement)(Vc,{className:"kt-tab-add",isPrimary:!0,onClick:()=>{const e=Ic("kadence/tab",{id:t+1});be({tabCount:t+1}),this.props.insertTab(e);const l=g;l.push({text:Object(o.sprintf)(Object(o.__)("Tab %d"),t+1),icon:g[0].icon,iconSide:g[0].iconSide,onlyIcon:g[0].onlyIcon,subText:""}),be({titles:l}),this.saveArrayUpdate({iconSide:g[0].iconSide},0)}},Object(a.createElement)(Jc,{icon:"plus"}),Object(o.__)("Add Tab"))),Object(a.createElement)("ul",{className:"kt-tabs-title-list"+("tabs"===s&&"percent"===ce?" kb-tabs-list-columns kb-tab-title-columns-"+ne[0]:"")},Re),W&&Object(a.createElement)(yl,{config:ye}),ae&&oe&&oe[0]&&oe[0].google&&Object(a.createElement)(yl,{config:he}),Object(a.createElement)("div",{className:"kt-tabs-content-wrap",style:{padding:b?b[0]+"px "+b[1]+"px "+b[2]+"px "+b[3]+"px":"",borderWidth:V?V[0]+"px "+V[1]+"px "+V[2]+"px "+V[3]+"px":"",minHeight:m+"px",backgroundColor:dn(Q),borderColor:dn(G)}},Object(a.createElement)(Ac,{template:os(t),templateLock:!1,allowedBlocks:ls})))))}});var rs=wp.element,cs=rs.Component,ss=rs.Fragment,ds=wp.blockEditor,bs=ds.InnerBlocks,ms=ds.RichText,ps=function(e){_e()(n,e);var t,l,i=(t=n,l=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,a=xe()(t);if(l){var o=xe()(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return Ee()(this,e)});function n(){return ye()(this,n),i.apply(this,arguments)}return Oe()(n,[{key:"stripStringRender",value:function(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}},{key:"render",value:function(){var e=this,t=this.props.attributes,l=t.tabCount,i=t.blockAlignment,n=t.currentTab,r=t.mobileLayout,c=t.layout,s=t.tabletLayout,d=t.uniqueID,b=t.titles,m=t.iSize,p=t.maxWidth,g=t.tabAlignment,u=t.startTab,h=t.enableSubtitle,v=t.widthType,k=t.tabWidth,y=c||"tabs",f=s||"inherit",O=r||"inherit",j=r&&"accordion"===r||s&&"accordion"===s?"kt-create-accordion":"",_=d||"notset",S=al()("align".concat(i)),E=u||n,w=al()("kt-tabs-wrap kt-tabs-id".concat(_," kt-tabs-has-").concat(l,"-tabs kt-active-tab-").concat(E," kt-tabs-layout-").concat(y," kt-tabs-tablet-layout-").concat(f," kt-tabs-mobile-layout-").concat(O," kt-tab-alignment-").concat(g," ").concat(j));return Object(a.createElement)("div",{className:S},Object(a.createElement)("div",{className:w,style:{maxWidth:p?p+"px":"none"}},Object(a.createElement)("ul",{className:"kt-tabs-title-list".concat("tabs"===c&&"percent"===v?" kb-tabs-list-columns kb-tab-title-columns-"+k[0]:"")},bl()(l,(function(t){return i="tab-".concat(b[l=t]&&b[l].text?e.stripStringRender(b[l].text.toString()):e.stripStringRender(Object(o.__)("Tab")+(1+l))),Object(a.createElement)(ss,null,Object(a.createElement)("li",{id:b[l]&&b[l].anchor?b[l].anchor:i,className:"kt-title-item kt-title-item-".concat(1+l," kt-tabs-svg-show-").concat(b[l]&&b[l].onlyIcon?"only":"always"," kt-tabs-icon-side-").concat(b[l]&&b[l].iconSide?b[l].iconSide:"right"," kt-tab-title-").concat(1+l===E?"active":"inactive").concat(h?" kb-tabs-have-subtitle":"")},Object(a.createElement)("a",{href:"#".concat(b[l]&&b[l].anchor?b[l].anchor:i),"data-tab":1+l,className:"kt-tab-title kt-tab-title-".concat(1+l," ")},b[l]&&b[l].icon&&"right"!==b[l].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[l].icon," kt-title-svg-side-").concat(b[l].iconSide),name:b[l].icon,size:m||"14",htmltag:"span"}),(!h||void 0!==b[l]&&void 0===b[l].subText||void 0!==b[l]&&void 0!==b[l].subText&&""===b[l].subText)&&Object(a.createElement)(ms.Content,{tagName:"span",value:b[l]&&b[l].text?b[l].text:Object(o.sprintf)(Object(o.__)("Tab %d"),1+l),className:"kt-title-text"}),h&&b[l]&&void 0!==b[l].subText&&""!==b[l].subText&&Object(a.createElement)("div",{className:"kb-tab-titles-wrap"},Object(a.createElement)(ms.Content,{tagName:"span",value:b[l]&&b[l].text?b[l].text:Object(o.sprintf)(Object(o.__)("Tab %d"),1+l),className:"kt-title-text"}),Object(a.createElement)(ms.Content,{tagName:"span",value:b[l].subText,className:"kt-title-sub-text"})),b[l]&&b[l].icon&&"right"===b[l].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[l].icon," kt-title-svg-side-").concat(b[l].iconSide),name:b[l].icon,size:m||"14",htmltag:"span"}))));var l,i}))),Object(a.createElement)("div",{className:"kt-tabs-content-wrap"},Object(a.createElement)(bs.Content,null))))}}]),n}(cs),gs=wp.element.Fragment,us=wp.blockEditor,hs=us.InnerBlocks,vs=us.RichText;function ks(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}(0,wp.blocks.registerBlockType)("kadence/tabs",{title:Object(o.__)("Tabs"),icon:{src:n.blocktabs},category:"kadence-blocks",keywords:[Object(o.__)("tabs"),Object(o.__)("tab"),Object(o.__)("KT")],supports:{anchor:!0},attributes:Bc,getEditWrapperProps:function(e){var t=e.blockAlignment;if("full"===t||"wide"===t||"center"===t)return{"data-align":t}},edit:ns,save:ps,deprecated:[{attributes:{uniqueID:{type:"string",default:""},tabCount:{type:"number",default:3},layout:{type:"string",default:"tabs"},mobileLayout:{type:"string",default:"inherit"},tabletLayout:{type:"string",default:"inherit"},currentTab:{type:"number",default:1},minHeight:{type:"number",default:""},maxWidth:{type:"number",default:""},contentBgColor:{type:"string",default:""},contentBorderColor:{type:"string",default:""},contentBorder:{type:"array",default:[1,1,1,1]},contentBorderControl:{type:"string",default:"linked"},innerPadding:{type:"array",default:[20,20,20,20]},innerPaddingControl:{type:"string",default:"linked"},innerPaddingM:{type:"array"},tabAlignment:{type:"string",default:"left"},blockAlignment:{type:"string",default:"none"},titles:{type:"array",default:[{text:Object(o.__)("Tab 1"),icon:"",iconSide:"right",onlyIcon:!1},{text:Object(o.__)("Tab 2"),icon:"",iconSide:"right",onlyIcon:!1},{text:Object(o.__)("Tab 3"),icon:"",iconSide:"right",onlyIcon:!1}]},iSize:{type:"number",default:14},titleColor:{type:"string"},titleColorHover:{type:"string"},titleColorActive:{type:"string"},titleBg:{type:"string"},titleBgHover:{type:"string"},titleBgActive:{type:"string",default:"#ffffff"},titleBorder:{type:"string"},titleBorderHover:{type:"string"},titleBorderActive:{type:"string"},titleBorderWidth:{type:"array"},titleBorderControl:{type:"string",default:"individual"},titleBorderRadius:{type:"array"},titleBorderRadiusControl:{type:"string",default:"individual"},titlePadding:{type:"array"},titlePaddingControl:{type:"string",default:"individual"},titleMargin:{type:"array"},titleMarginControl:{type:"string",default:"individual"},size:{type:"number"},sizeType:{type:"string",default:"px"},lineHeight:{type:"number"},lineType:{type:"string",default:"px"},tabSize:{type:"number"},tabLineHeight:{type:"number"},mobileSize:{type:"number"},mobileLineHeight:{type:"number"},letterSpacing:{type:"number"},typography:{type:"string",default:""},googleFont:{type:"boolean",default:!1},loadGoogleFont:{type:"boolean",default:!0},fontSubset:{type:"string",default:""},fontVariant:{type:"string",default:""},fontWeight:{type:"string",default:"regular"},fontStyle:{type:"string",default:"normal"}},save:function(e){var t=e.attributes,l=t.tabCount,i=t.blockAlignment,n=t.currentTab,r=t.mobileLayout,c=t.layout,s=t.tabletLayout,d=t.uniqueID,b=t.titles,m=t.iSize,p=t.maxWidth,g=t.tabAlignment,u=c||"tabs",h=s||"inherit",v=r||"inherit",k=r&&"accordion"===r||s&&"accordion"===s?"kt-create-accordion":"",y=d||"notset",f=al()("align".concat(i)),O=al()("kt-tabs-wrap kt-tabs-id".concat(y," kt-tabs-has-").concat(l,"-tabs kt-active-tab-").concat(n," kt-tabs-layout-").concat(u," kt-tabs-tablet-layout-").concat(h," kt-tabs-mobile-layout-").concat(v," kt-tab-alignment-").concat(g," ").concat(k));return Object(a.createElement)("div",{className:f},Object(a.createElement)("div",{className:O,style:{maxWidth:p?p+"px":"none"}},Object(a.createElement)("ul",{className:"kt-tabs-title-list"},bl()(l,(function(e){return t=e,Object(a.createElement)(gs,null,Object(a.createElement)("li",{id:"tab-".concat(b[t]&&b[t].text?ks(b[t].text.toString()):ks(Object(o.__)("Tab")+(1+t))),className:"kt-title-item kt-title-item-".concat(1+t," kt-tabs-svg-show-").concat(b[t]&&b[t].onlyIcon?"only":"always"," kt-tabs-icon-side-").concat(b[t]&&b[t].iconSide?b[t].iconSide:"right"," kt-tab-title-").concat(1+t===n?"active":"inactive")},Object(a.createElement)("a",{href:"#tab-".concat(b[t]&&b[t].text?ks(b[t].text.toString()):ks(Object(o.__)("Tab")+(1+t))),"data-tab":1+t,className:"kt-tab-title kt-tab-title-".concat(1+t," ")},b[t]&&b[t].icon&&"right"!==b[t].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[t].icon," kt-title-svg-side-").concat(b[t].iconSide),name:b[t].icon,size:m||"14"}),Object(a.createElement)(vs.Content,{tagName:"span",value:b[t]&&b[t].text?b[t].text:Object(o.sprintf)(Object(o.__)("Tab %d"),1+t),className:"kt-title-text"}),b[t]&&b[t].icon&&"right"===b[t].iconSide&&Object(a.createElement)(Je,{className:"kt-tab-svg-icon kt-tab-svg-icon-".concat(b[t].icon," kt-title-svg-side-").concat(b[t].iconSide),name:b[t].icon,size:m||"14"}))));var t}))),Object(a.createElement)("div",{className:"kt-tabs-content-wrap"},Object(a.createElement)(hs.Content,null))))}}]});var ys={};ys.block=Object(a.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(a.createElement)("path",{d:"M47.612,40.008l-19.999,0l0,-32.016l13.566,0l6.433,0.023l0,31.993Z",fill:"#0073e6",fillRule:"nonzero"}),Object(a.createElement)("path",{d:"M20.383,40l-20.036,0l0,-32l20.036,0.019l0,31.981Z",fill:"#0058b0",fillRule:"nonzero"}));var fs=ys;var Os=wp.blockEditor.InnerBlocks,js=wp.element.Fragment,_s=wp.element.Component,Ss=[],Es=function(e){_e()(i,e);var t,l,o=(t=i,l=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,a=xe()(t);if(l){var o=xe()(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return Ee()(this,e)});function i(){return ye()(this,i),o.apply(this,arguments)}return Oe()(i,[{key:"componentDidMount",value:function(){this.props.attributes.uniqueID?Ss.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ss.push("_"+this.props.clientId.substr(2,9))):Ss.push(this.props.attributes.uniqueID):(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),Ss.push("_"+this.props.clientId.substr(2,9)))}},{key:"render",value:function(){var e=this.props,t=e.attributes,l=t.id,o=t.uniqueID,i=e.clientId,n=wp.data.select("core/block-editor").getBlockOrder(i).length>0;return Object(a.createElement)(js,null,Object(a.createElement)("div",{className:"kt-tab-inner-content kt-inner-tab-".concat(l," kt-inner-tab").concat(o)},Object(a.createElement)(Os,{templateLock:!1,renderAppender:n?void 0:function(){return Object(a.createElement)(Os.ButtonBlockAppender,null)}})))}}]),i}(_s),ws=wp.blockEditor.InnerBlocks;(0,wp.blocks.registerBlockType)("kadence/tab",{title:Object(o.__)("Tab","kadence-blocks"),icon:fs.block,category:"kadence-blocks",parent:["kadence/tabs"],attributes:{id:{type:"number",default:1},uniqueID:{type:"string",default:""}},supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){return{"data-tab":e.id}},edit:Es,save:function(e){var t=e.attributes,l=t.id,o=t.uniqueID;return Object(a.createElement)("div",{className:"kt-tab-inner-content kt-inner-tab-".concat(l," kt-inner-tab").concat(o)},Object(a.createElement)("div",{className:"kt-tab-inner-content-inner"},Object(a.createElement)(ws.Content,null)))},deprecated:[{attributes:{id:{type:"number",default:1}},save:function(e){var t=e.attributes.id;return Object(a.createElement)("div",{className:"kt-tab-inner-content kt-inner-tab-".concat(t)},Object(a.createElement)("div",{className:"kt-tab-inner-content-inner"},Object(a.createElement)(ws.Content,null)))}}]});var xs={uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a.info-box-link"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a.info-box-link",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},containerTabletPadding:{type:"array",default:["","","",""]},containerMobilePadding:{type:"array",default:["","","",""]},containerPaddingType:{type:"string",default:"px"},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder",paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},imageRatio:{type:"string",default:"inherit"}},Cs=l(131),Ms=l.n(Cs),Ns=l(132),Ts=l.n(Ns);const{Component:zs,Fragment:Hs}=wp.element;var Bs=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{getMedia:l}=e("core"),{id:a}=t,{getSettings:o}=e("core/block-editor"),{imageSizes:i}=o();return{image:a?l(a):null,imageSizes:i}})])(class extends zs{constructor(e,t,l,a,o,i=!0,n=!0){super(...arguments),this.getImageSizeOptions=this.getImageSizeOptions.bind(this),this.getSmallImageSizeOptions=this.getSmallImageSizeOptions.bind(this),this.state={isVisible:!1}}getImageSizeOptions(){const{image:e}=this.props;if(e){const t=void 0!==e.media_details.sizes?e.media_details.sizes:[],l=Object.keys(t).map(e=>({slug:e,name:e}));return Ts()(d()(l,({name:t,slug:l})=>{if("image/svg+xml"===ce()(e,["mime_type"]))return null;const a=ce()(e,["media_details","sizes",l,"source_url"]);if(!a)return null;const o=ce()(e,["media_details","sizes",l,"width"]);if(!o)return null;const i=ce()(e,["media_details","sizes",l,"height"]);return i?{value:a,label:t+" ("+o+"x"+i+")",slug:l,width:o,height:i}:null}))}return null}getSmallImageSizeOptions(){const{image:e}=this.props;if(e){const t=void 0!==e.media_details.sizes?e.media_details.sizes:[],l=[];for(let e=0;e<Object.keys(t).length;e++){const a=Object.keys(t)[e];"thumbnail"!==a&&"medium"!==a&&"medium_large"!==a&&"large"!==a&&"full"!==a||l.push({slug:a,name:a})}return Ts()(d()(l,({name:t,slug:l})=>{if("image/svg+xml"===ce()(e,["mime_type"]))return null;const a=ce()(e,["media_details","sizes",l,"source_url"]);if(!a)return null;const o=ce()(e,["media_details","sizes",l,"width"]);if(!o)return null;const i=ce()(e,["media_details","sizes",l,"height"]);return i?{value:a,label:t+("full"===l?"":" ("+o+"x"+i+")"),slug:l,width:o,height:i}:null}))}return null}render(){let e;return e=void 0===this.props.fullSelection||!0===this.props.fullSelection?this.getImageSizeOptions():this.getSmallImageSizeOptions(),Object(a.createElement)("div",{className:"kb-image-size-container"},!Ms()(e)&&(void 0===this.props.selectByValue||!0===this.props.selectByValue)&&Object(a.createElement)(Hs,null,Object(a.createElement)("h2",{className:"kb-image-size-title"},this.props.label),Object(a.createElement)("div",{className:"kb-image-size-select-form-row"},Object(a.createElement)(c.a,{options:e,value:e.filter(({value:e})=>e===this.props.url),isMulti:!1,maxMenuHeight:250,isClearable:!1,placeholder:"",onChange:this.props.onChange}))),!Ms()(e)&&!1===this.props.selectByValue&&Object(a.createElement)(Hs,null,Object(a.createElement)("h2",{className:"kb-image-size-title"},this.props.label),Object(a.createElement)("div",{className:"kb-image-size-select-form-row"},Object(a.createElement)(c.a,{options:e,value:e.filter(({slug:e})=>e===this.props.slug),isMulti:!1,maxMenuHeight:250,isClearable:!1,placeholder:"",onChange:this.props.onChange}))))}});const{Component:Is,Fragment:Rs}=wp.element,{DropdownMenu:Ps,MenuGroup:As,MenuItem:Ls,Toolbar:Fs,ToggleControl:Ws,SelectControl:Ds}=wp.components,{localStorage:Us}=window,Vs={className:"block-editor-block-settings-menu__popover",position:"bottom right"};var $s=class extends Is{constructor(){super(...arguments),this.state={iconOptions:[],iconOptionsNames:[]}}componentDidMount(){}render(){const{onPaste:e,onPasteMediaImage:t,onPasteMediaIcon:l,blockAttributes:i}=this.props,n=Object(a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 32 32",width:"20px",height:"20px"},Object(a.createElement)("path",{fillRule:"nonzero",d:"M26 8h-6V6l-6-6H0v24h12v8h20V14l-6-6zm0 2.828L29.172 14H26v-3.172zm-12-8L17.172 6H14V2.828zM2 2h10v6h6v14H2V2zm28 28H14v-6h6V10h4v6h6v14z"})),r=JSON.parse(Us.getItem("kadenceInfoboxStyle")),c=()=>{const e={};i.linkProperty&&(e.linkProperty=i.linkProperty),i.target&&(e.target=i.target),i.hAlign&&(e.hAlign=i.hAlign),i.hAlignTablet&&(e.hAlignTablet=i.hAlignTablet),i.hAlignMobile&&(e.hAlignMobile=i.hAlignMobile),i.containerBackground&&(e.containerBackground=i.containerBackground),i.containerBackgroundOpacity&&(e.containerBackgroundOpacity=i.containerBackgroundOpacity),i.containerHoverBackground&&(e.containerHoverBackground=i.containerHoverBackground),i.containerHoverBackgroundOpacity&&(e.containerHoverBackgroundOpacity=i.containerHoverBackgroundOpacity),i.containerBorder&&(e.containerBorder=i.containerBorder),i.containerBorderOpacity&&(e.containerBorderOpacity=i.containerBorderOpacity),i.containerHoverBorder&&(e.containerHoverBorder=i.containerHoverBorder),i.containerHoverBorderOpacity&&(e.containerHoverBorderOpacity=i.containerHoverBorderOpacity),i.containerBorderWidth&&(e.containerBorderWidth=i.containerBorderWidth),void 0===i.containerBorderRadius||isNaN(i.containerBorderRadius)||(e.containerBorderRadius=i.containerBorderRadius),i.containerPadding&&(e.containerPadding=i.containerPadding),i.containerTabletPadding&&(e.containerTabletPadding=i.containerTabletPadding),i.containerMobilePadding&&(e.containerMobilePadding=i.containerMobilePadding),i.containerPaddingType&&(e.containerPaddingType=i.containerPaddingType),i.mediaType&&(e.mediaType=i.mediaType),i.mediaAlign&&(e.mediaAlign=i.mediaAlign),i.mediaImage&&i.mediaImage[0]&&i.mediaImage[0].maxWidth&&(e.mediaImage=[{maxWidth:i.mediaImage[0].maxWidth}],i.mediaImage[0].hoverAnimation&&(e.mediaImage[0].hoverAnimation=i.mediaImage[0].hoverAnimation)),i.mediaIcon&&i.mediaIcon[0]&&(e.mediaIcon=[{hoverAnimation:"none"}],i.mediaIcon[0].size&&(e.mediaIcon[0].size=i.mediaIcon[0].size),i.mediaIcon[0].width&&(e.mediaIcon[0].width=i.mediaIcon[0].width),i.mediaIcon[0].color&&(e.mediaIcon[0].color=i.mediaIcon[0].color),i.mediaIcon[0].hoverColor&&(e.mediaIcon[0].hoverColor=i.mediaIcon[0].hoverColor),i.mediaIcon[0].hoverAnimation&&(e.mediaIcon[0].hoverAnimation=i.mediaIcon[0].hoverAnimation)),i.textSpacing&&i.textSpacing[0]&&i.textSpacing[0].padding&&(e.textSpacing=[{padding:i.textSpacing[0].padding}],i.textSpacing[0].paddingControl&&(e.textSpacing[0].paddingControl=i.textSpacing[0].paddingControl),i.textSpacing[0].margin&&(e.textSpacing[0].margin=i.textSpacing[0].margin),i.textSpacing[0].marginControl&&(e.textSpacing[0].marginControl=i.textSpacing[0].marginControl)),i.mediaStyle&&(e.mediaStyle=i.mediaStyle),i.displayTitle&&(e.displayTitle=i.displayTitle),i.titleColor&&(e.titleColor=i.titleColor),i.titleHoverColor&&(e.titleHoverColor=i.titleHoverColor),i.titleMinHeight&&(e.titleMinHeight=i.titleMinHeight),i.titleFont&&(e.titleFont=i.titleFont),i.displayText&&(e.displayText=i.displayText),i.textColor&&(e.textColor=i.textColor),i.textHoverColor&&(e.textHoverColor=i.textHoverColor),i.textMinHeight&&(e.textMinHeight=i.textMinHeight),i.textFont&&(e.textFont=i.textFont),i.displayLearnMore&&(e.displayLearnMore=i.displayLearnMore),i.learnMoreStyles&&(e.learnMoreStyles=i.learnMoreStyles),i.displayShadow&&(e.displayShadow=i.displayShadow),i.shadow&&(e.shadow=i.shadow),i.shadowHover&&(e.shadowHover=i.shadowHover),i.mediaVAlign&&(e.mediaVAlign=i.mediaVAlign),i.mediaAlignMobile&&(e.mediaAlignMobile=i.mediaAlignMobile),i.mediaAlignTablet&&(e.mediaAlignTablet=i.mediaAlignTablet),i.maxWidth&&(e.maxWidth=i.maxWidth),i.maxWidthUnit&&(e.maxWidthUnit=i.maxWidthUnit),i.containerMargin&&(e.containerMargin=i.containerMargin),i.containerMarginUnit&&(e.containerMarginUnit=i.containerMarginUnit),i.imageRatio&&(e.imageRatio=i.imageRatio),Us.setItem("kadenceInfoboxStyle",JSON.stringify(e))},s=()=>{const a=JSON.parse(Us.getItem("kadenceInfoboxStyle"));a&&(a.mediaImage&&(t(a.mediaImage[0]),delete a.mediaImage),a.mediaIcon&&(l(a.mediaIcon[0]),delete a.mediaIcon),e(a))};return Object(a.createElement)(Fs,null,Object(a.createElement)(Ps,{className:"block-editor-block-settings-menu",icon:n,label:Object(o.__)("Copy/Paste Styles","kadence-blocks"),popoverProps:Vs},({onClose:e})=>Object(a.createElement)(Rs,null,Object(a.createElement)(As,null,Object(a.createElement)(Ls,{icon:"clipboard",onClick:Ol()(e,c),label:Object(o.__)("Copy Styles","kadence-blocks")},Object(o.__)("Copy Styles","kadence-blocks")),Object(a.createElement)(Ls,{icon:"editor-paste-text",onClick:Ol()(e,s),disabled:!r,label:Object(o.__)("Paste Styles","kadence-blocks")},Object(o.__)("Paste Styles","kadence-blocks"))))))}},Gs=wp.element.Fragment,Zs=wp.components,qs=Zs.Dashicon,Js=Zs.TabPanel;function Ks(e){var t=e.label,l=e.onChange,o=e.onChangeTablet,i=e.onChangeMobile,n=e.mobileValue,r=e.tabletValue,c=e.value,s=e.step,d=void 0===s?1:s,b=e.max,m=void 0===b?100:b,p=e.min,g=void 0===p?0:p,u=e.allowEmpty,h=void 0===u||u?"":0;return[l&&o&&i&&Object(a.createElement)(Gs,null,Object(a.createElement)("h2",{className:"kt-heading-size-title"},t),Object(a.createElement)(Js,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(qs,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(qs,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(qs,{icon:"smartphone"}),className:"kt-mobile-tab"}]},(function(e){var t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(y,{value:n||h,onChange:function(e){return i(e)},min:g,max:m,step:d}):"tablet"===e.name?Object(a.createElement)(y,{value:r||h,onChange:function(e){return o(e)},min:g,max:m,step:d}):Object(a.createElement)(y,{value:c||h,onChange:function(e){return l(e)},min:g,max:m,step:d})),Object(a.createElement)("div",{className:e.className,key:e.className},t)})))]}class Qs extends a.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=Object(a.createRef)(),this.debouncedToggle=Gl()(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}render(){const{open:e}=this.state;return Object(a.createElement)("div",{className:"kb-dynamic-image-sidebar-wrap kb-dynamic-background-sidebar-wrap"},Object(a.createElement)(it.Button,{className:"kb-dynamic-image-sidebar kb-dynamic-background-sidebar",isTertiary:!0,icon:ca.dynamic,onClick:()=>this.debouncedToggle(),isPressed:e,"aria-haspopup":"true","aria-expanded":e,label:Object(o.__)("Dynamic Image","kadence-blocks"),showTooltip:!0}),e&&Object(a.createElement)(it.Popover,{className:"kb-dynamic-popover",position:"bottom left",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef},Object(a.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},Object(a.createElement)("div",{className:"kb-pro-notice"},Object(a.createElement)("h2",null,Object(o.__)("Dynamic Image","kadence-blocks")," "),Object(a.createElement)("p",null,Object(o.__)("Create dynamic sites by populating images from various sources.","kadence-blocks")," "),Object(a.createElement)(it.ExternalLink,{href:"https://www.kadenceblocks.com/pro/"},Object(o.__)("Upgrade to Pro","kadence-blocks"))))))}}var Ys=Object(it.withFilters)("kadence.ImageDynamicControl")(Qs);const Xs=["image"];class ed extends a.Component{constructor(){super(...arguments)}render(){const{label:e,hasImage:t,onSaveImage:l,onRemoveImage:i,disableMediaButtons:n,imageURL:r,imageID:c,dynamicAttribute:s=""}=this.props;return Object(a.createElement)("div",{className:"kadence-image-media-control kadence-image-background-control"},!t&&Object(a.createElement)(a.Fragment,null,e&&Object(a.createElement)("div",{class:"components-kadence-image-background__label"},e),Object(a.createElement)(uo,{labels:"",selectIcon:So.a,selectLabel:Object(o.__)("Select Image","kadence-blocks"),onSelect:e=>l(e),accept:"image/*",className:"kadence-image-upload",allowedTypes:Xs,disableMediaButtons:n,dynamicControl:s&&kadence_blocks_params.dynamic_enabled?Object(a.createElement)(Ys,this.props):void 0})),t&&Object(a.createElement)(a.Fragment,null,e&&Object(a.createElement)("div",{class:"components-kadence-image-background__label"},e),s&&kadence_blocks_params.dynamic_enabled&&this.props.attributes.kadenceDynamic&&this.props.attributes.kadenceDynamic[s]&&this.props.attributes.kadenceDynamic[s].enable?Object(a.createElement)("div",{className:"kb-dynamic-background-sidebar-top"},Object(a.createElement)(Ys,Be()({startOpen:!this.props.attributes.kadenceDynamic[s].field},this.props))):Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ot.MediaUpload,{onSelect:e=>l(e),type:"image",value:c||"",render:({open:e})=>Object(a.createElement)(it.Button,{className:"components-button components-icon-button kt-cta-upload-btn",onClick:e,icon:Eo.a},Object(o.__)("Edit Image","kadence-blocks"))}),Object(a.createElement)(it.Button,{icon:wo.a,label:Object(o.__)("Remove Image","kadence-blocks"),className:"components-button components-icon-button kt-remove-img kt-cta-upload-btn",onClick:()=>i()}),s&&kadence_blocks_params.dynamic_enabled&&Object(a.createElement)(Ys,this.props))))}}var td=ed,ld=l(428);const{Component:ad,Fragment:od}=wp.element,{MediaUpload:id,RichText:nd,AlignmentToolbar:rd,InspectorControls:cd,BlockControls:sd,MediaPlaceholder:dd}=wp.blockEditor,{Button:bd,IconButton:md,Dropdown:pd,ButtonGroup:gd,TabPanel:ud,Dashicon:hd,PanelBody:vd,Toolbar:kd,TextControl:yd,ToggleControl:fd,SelectControl:Od}=wp.components,{applyFilters:jd}=wp.hooks,_d=[];var Sd=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{__experimentalGetPreviewDeviceType:l}=e("core/edit-post");return{getPreviewDevice:l?l():"Desktop"}})])(class extends ad{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={containerPaddingControl:"linked",containerBorderControl:"linked",containerMarginControl:"linked",mediaBorderControl:"linked",mediaPaddingControl:"linked",mediaMarginControl:"linked",showPreset:!1,btnLink:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}componentDidMount(){if(this.props.attributes.uniqueID)_d.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),_d.push("_"+this.props.clientId.substr(2,9))):_d.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/infobox"]&&"object"==typeof e["kadence/infobox"]&&Object.keys(e["kadence/infobox"]).map(t=>{this.props.attributes[t]=e["kadence/infobox"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),_d.push("_"+this.props.clientId.substr(2,9))}this.props.attributes.kadenceDynamic&&this.props.attributes.kadenceDynamic["mediaImage:0:url"]&&this.props.attributes.kadenceDynamic["mediaImage:0:url"].enable&&jd("kadence.dynamicImage","",this.props.attributes,this.props.setAttributes,"mediaImage:0:url"),this.props.attributes.mediaStyle[0].borderWidth[0]===this.props.attributes.mediaStyle[0].borderWidth[1]&&this.props.attributes.mediaStyle[0].borderWidth[0]===this.props.attributes.mediaStyle[0].borderWidth[2]&&this.props.attributes.mediaStyle[0].borderWidth[0]===this.props.attributes.mediaStyle[0].borderWidth[3]?this.setState({mediaBorderControl:"linked"}):this.setState({mediaBorderControl:"individual"}),this.props.attributes.mediaStyle[0].padding[0]===this.props.attributes.mediaStyle[0].padding[1]&&this.props.attributes.mediaStyle[0].padding[0]===this.props.attributes.mediaStyle[0].padding[2]&&this.props.attributes.mediaStyle[0].padding[0]===this.props.attributes.mediaStyle[0].padding[3]?this.setState({mediaPaddingControl:"linked"}):this.setState({mediaPaddingControl:"individual"}),this.props.attributes.mediaStyle[0].margin[0]===this.props.attributes.mediaStyle[0].margin[1]&&this.props.attributes.mediaStyle[0].margin[0]===this.props.attributes.mediaStyle[0].margin[2]&&this.props.attributes.mediaStyle[0].margin[0]===this.props.attributes.mediaStyle[0].margin[3]?this.setState({mediaMarginControl:"linked"}):this.setState({mediaMarginControl:"individual"}),this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[1]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[2]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[3]?this.setState({containerBorderControl:"linked"}):this.setState({containerBorderControl:"individual"}),this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[1]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[2]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[3]?this.setState({containerPaddingControl:"linked"}):this.setState({containerPaddingControl:"individual"}),this.props.attributes.containerMargin&&this.props.attributes.containerMargin[0]&&this.props.attributes.containerMargin[0]===this.props.attributes.containerMargin[1]&&this.props.attributes.containerMargin[0]===this.props.attributes.containerMargin[2]&&this.props.attributes.containerMargin[0]===this.props.attributes.containerMargin[3]?this.setState({containerMarginControl:"linked"}):this.setState({containerMarginControl:"individual"});const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/infobox"]&&"object"==typeof e["kadence/infobox"]&&this.setState({settings:e["kadence/infobox"]})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a)return a;if(void 0!==l&&""!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l)return l;return t}render(){const{attributes:{uniqueID:e,link:t,linkProperty:l,target:i,hAlign:r,containerBackground:c,containerHoverBackground:s,containerBorder:b,containerHoverBorder:m,containerBorderWidth:p,containerBorderRadius:g,containerPadding:u,containerPaddingType:h,containerMobilePadding:v,containerTabletPadding:k,mediaType:f,mediaImage:O,mediaIcon:j,mediaStyle:_,mediaAlign:S,displayTitle:E,title:w,titleColor:x,titleHoverColor:C,titleFont:M,displayText:N,contentText:T,textColor:z,textHoverColor:H,textFont:B,textSpacing:I,displayLearnMore:R,learnMore:P,learnMoreStyles:A,displayShadow:L,shadow:F,shadowHover:W,containerHoverBackgroundOpacity:D,containerBackgroundOpacity:U,containerHoverBorderOpacity:V,containerBorderOpacity:$,textMinHeight:G,titleMinHeight:Z,maxWidthUnit:q,maxWidth:J,mediaVAlign:K,mediaAlignMobile:Q,mediaAlignTablet:Y,hAlignMobile:X,hAlignTablet:ee,containerMargin:te,containerMarginUnit:le,linkNoFollow:ae,linkSponsored:oe,number:ne,mediaNumber:re,imageRatio:se,kadenceDynamic:de},className:be,setAttributes:me,isSelected:pe}=this.props,{containerBorderControl:ge,mediaBorderControl:ue,mediaPaddingControl:he,mediaMarginControl:ve,containerPaddingControl:ke,containerMarginControl:ye}=this.state,fe="px"===q?2e3:100,Oe=void 0!==h?h:"px",je="em"===Oe||"rem"===Oe?12:200,_e="em"===Oe||"rem"===Oe?.1:1,Se=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[0]?u[0]:"",void 0!==k&&void 0!==k[0]?k[0]:"",void 0!==v&&void 0!==v[0]?v[0]:""),Ee=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[1]?u[1]:"",void 0!==k&&void 0!==k[1]?k[1]:"",void 0!==v&&void 0!==v[1]?v[1]:""),we=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[2]?u[2]:"",void 0!==k&&void 0!==k[2]?k[2]:"",void 0!==v&&void 0!==v[2]?v[2]:""),xe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==u&&void 0!==u[3]?u[3]:"",void 0!==k&&void 0!==k[3]?k[3]:"",void 0!==v&&void 0!==v[3]?v[3]:""),Ce="em"===le||"rem"===le?-12:-200,Me="em"===le||"rem"===le?24:200,Ne="em"===le||"rem"===le?.1:1,Te=(Object(o.__)("Skip","kadence-blocks"),Object(o.__)("Skip"),Object(o.__)("Simple","kadence-blocks"),n.infoSimple,Object(o.__)("Align Left","kadence-blocks"),n.infoLeft,Object(o.__)("Bold Background","kadence-blocks"),n.infoBackground,Object(o.__)("Circle Image","kadence-blocks"),n.infoImage,[{key:"simple",name:Object(o.__)("Basic","kadence-blocks"),icon:n.infoStart},{key:"basic",name:Object(o.__)("Basic","kadence-blocks"),icon:n.infoBasic},{key:"leftabove",name:Object(o.__)("Left Above","kadence-blocks"),icon:n.infoLeftAbove},{key:"left",name:Object(o.__)("Left","kadence-blocks"),icon:n.infoLeft},{key:"overlay",name:Object(o.__)("Overlay","kadence-blocks"),icon:n.infoTopOverlay},{key:"overlayleft",name:Object(o.__)("Overlay Left","kadence-blocks"),icon:n.infoLeftOverlay}]),ze={google:{families:[M[0].family+(M[0].variant?":"+M[0].variant:"")]}},He={google:{families:[B[0].family+(B[0].variant?":"+B[0].variant:"")]}},Ie={google:{families:[A[0].family+(A[0].variant?":"+A[0].variant:"")]}},Re={google:{families:[(re&&re[0]&&re[0].family?re[0].family:" ")+(re&&re[0]&&re[0].variant?":"+re[0].variant:"")]}},Pe=M[0].google?ze:"",Ae=B[0].google?He:"",Le=A[0].google?Ie:"",Fe=re&&re[0]&&re[0].google?Re:"",We="h"+M[0].level,De=["image"],Ue=e=>{let t,l;if(O[0]&&O[0].width&&O[0].height){const t=void 0!==e.sizes?e.sizes:[],a=Object.keys(t).map(e=>({slug:e,name:e}));d()(a,({name:t,slug:a})=>{if("image/svg+xml"===ce()(e,["mime_type"]))return null;if(!ce()(e,["sizes",a,"url"]))return null;const o=ce()(e,["sizes",a,"width"]);if(!o)return null;const i=ce()(e,["sizes",a,"height"]);return i?i===O[0].height&&o===O[0].width?(l=a,null):void 0:null})}const a=l&&""!==l?l:"full";"full"!==a&&(t=ce()(e,["sizes",a,"url"])||ce()(e,["media_details","sizes",a,"source_url"]));const o=ce()(e,["sizes",a,"width"])||ce()(e,["media_details","sizes",a,"width"])||ce()(e,["width"])||ce()(e,["media_details","width"]),i=ce()(e,["sizes",a,"height"])||ce()(e,["media_details","sizes",a,"height"])||ce()(e,["height"])||ce()(e,["media_details","height"]),n=O[0]&&O[0].maxWidth?O[0].maxWidth:e.width;$e({id:e.id,url:t||e.url,alt:e.alt,width:o,height:i,maxWidth:n||50,subtype:e.subtype})},Ve=pe?"is-selected":"not-selected",$e=e=>{const t=O.map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaImage:t})},Ge=e=>{const t=j.map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaIcon:t})},Ze=e=>{const t=_.map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaStyle:t})},qe=e=>{const t=(re||[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]).map((t,l)=>(0===l&&(t={...t,...e}),t));me({mediaNumber:t})},Ke=e=>{const t=M.map((t,l)=>(0===l&&(t={...t,...e}),t));me({titleFont:t})},Qe=e=>{const t=B.map((t,l)=>(0===l&&(t={...t,...e}),t));me({textFont:t})},Ye=e=>{let t;t=void 0===I||void 0!==I&&void 0===I[0]?[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]:I;const l=t.map((t,l)=>(0===l&&(t={...t,...e}),t));me({textSpacing:l})},et=e=>{const t=A.map((t,l)=>(0===l&&(t={...t,...e}),t));me({learnMoreStyles:t})},tt=e=>{const t=F.map((t,l)=>(0===l&&(t={...t,...e}),t));me({shadow:t})},lt=e=>{const t=W.map((t,l)=>(0===l&&(t={...t,...e}),t));me({shadowHover:t})},at="drawborder"===O[0].hoverAnimation||"grayscale-border-draw"===O[0].hoverAnimation,ot=Object(a.createElement)("style",null,j[0].hoverColor?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-info-svg-icon, .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-number { color: ${Rt(j[0].hoverColor)} !important; }`:"",_[0].borderRadius?`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media .kadence-info-box-image-intrisic:not(.kb-info-box-image-ratio) img, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media .kadence-info-box-image-intrisic:not(.kb-info-box-image-ratio) .editor-media-placeholder { border-radius: ${_[0].borderRadius}px; }`:"",C?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-title { color: ${Rt(C)} !important; }`:"",H?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-text { color: ${Rt(H)} !important; }`:"",A[0].colorHover?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore { color: ${Rt(A[0].colorHover)} !important; }`:"",A[0].borderHover?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore { border-color: ${Rt(A[0].borderHover)} !important; }`:"",A[0].backgroundHover?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore { background-color: ${Rt(A[0].backgroundHover)} !important; }`:"",s?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover { background: ${Rt(s||"#f2f2f2",void 0!==D?D:1)} !important; }`:"",m?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover { border-color: ${Rt(m||"#f2f2f2",void 0!==V?V:1)} !important; }`:"",L?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover { box-shadow: ${W[0].hOffset+"px "+W[0].vOffset+"px "+W[0].blur+"px "+W[0].spread+"px "+Rt(W[0].color,W[0].opacity)} !important; }`:"",_[0].hoverBackground?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { background: ${_[0].hoverBackground} !important; }`:"",_[0].hoverBorder&&"icon"===f&&"drawborder"!==j[0].hoverAnimation?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { border-color: ${Rt(_[0].hoverBorder)} !important; }`:"",_[0].hoverBorder&&"number"===f&&re[0].hoverAnimation&&"drawborder"!==re[0].hoverAnimation?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { border-color: ${Rt(_[0].hoverBorder)} !important; }`:"",_[0].hoverBorder&&"image"===f&&!0!==at?`#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media { border-color: ${Rt(_[0].hoverBorder)} !important; }`:"","icon"===f&&"drawborder"===j[0].hoverAnimation&&`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media { border-width:0 !important; box-shadow: inset 0 0 0 ${_[0].borderWidth[0]}px ${_[0].border}; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-radius: ${_[0].borderRadius}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before { border-width: ${_[0].borderWidth[0]}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-width: 0; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:before { border-top-color: ${Rt(_[0].hoverBorder)} ; border-right-color: ${Rt(_[0].hoverBorder)}; border-bottom-color: ${Rt(_[0].hoverBorder)} }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:after{ border-right-color: ${Rt(_[0].hoverBorder)}; border-right-width: ${_[0].borderWidth[0]}px; border-bottom-width: ${_[0].borderWidth[0]}px; border-top-width: ${_[0].borderWidth[0]}px; }`,"number"===f&&re&&re[0]&&re[0].hoverAnimation&&"drawborder"===re[0].hoverAnimation&&`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media { border-width:0 !important; box-shadow: inset 0 0 0 ${_[0].borderWidth[0]}px ${_[0].border}; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-radius: ${_[0].borderRadius}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before { border-width: ${_[0].borderWidth[0]}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-width: 0; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:before { border-top-color: ${Rt(_[0].hoverBorder)} ; border-right-color: ${Rt(_[0].hoverBorder)}; border-bottom-color: ${Rt(_[0].hoverBorder)} }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:after{ border-right-color: ${Rt(_[0].hoverBorder)}; border-right-width: ${_[0].borderWidth[0]}px; border-bottom-width: ${_[0].borderWidth[0]}px; border-top-width: ${_[0].borderWidth[0]}px; }`,"image"===f&&!0===at&&`#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media { border-width:0 !important; box-shadow: inset 0 0 0 ${_[0].borderWidth[0]}px ${_[0].border}; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before, #kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-radius: ${_[0].borderRadius}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:before { border-width: ${_[0].borderWidth[0]}px; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap .kt-blocks-info-box-media:after { border-width: 0; }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:before { border-top-color: ${Rt(_[0].hoverBorder)} ; border-right-color: ${Rt(_[0].hoverBorder)}; border-bottom-color: ${Rt(_[0].hoverBorder)} }\n\t\t\t\t\t#kt-info-box${e} .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-media:after{ border-right-color: ${Rt(_[0].hoverBorder)}; border-right-width: ${_[0].borderWidth[0]}px; border-bottom-width: ${_[0].borderWidth[0]}px; border-top-width: ${_[0].borderWidth[0]}px; }`);let it=isNaN(O[0].height)?void 0:O[0].height/O[0].width*100+"%",nt=isNaN(O[0].height)?void 0:0,rt=!1;if(se&&"inherit"!==se)switch(rt=!0,nt=0,se){case"land43":it="75%";break;case"land32":it="66.67%";break;case"land169":it="56.25%";break;case"land21":it="50%";break;case"land31":it="33%";break;case"land41":it="25%";break;case"port34":it="133.33%";break;case"port23":it="150%";break;default:it="100%"}let ct=!("image"!==f||!O[0].url);return ct&&de&&de["mediaImage:0:url"]&&de["mediaImage:0:url"].enable&&(ct=!1),Object(a.createElement)("div",{id:"kt-info-box"+e,className:be},ot,Object(a.createElement)(sd,{key:"controls"},ct&&Object(a.createElement)(kd,null,Object(a.createElement)(id,{onSelect:Ue,type:"image",value:O[0].id,allowedTypes:De,render:({open:e})=>Object(a.createElement)(bd,{className:"components-toolbar__control",label:Object(o.__)("Edit Media","kadence-blocks"),icon:Eo.a,onClick:e})})),"icon"===f&&Object(a.createElement)(pd,{className:"kb-popover-inline-icon-container components-dropdown-menu components-toolbar",contentClassName:"kb-popover-inline-icon",position:"top center",renderToggle:({isOpen:e,onToggle:t})=>Object(a.createElement)(bd,{className:"components-dropdown-menu__toggle kb-inline-icon-toolbar-icon",label:Object(o.__)("Icon Settings","kadence-blocks"),icon:ld.a,onClick:t,"aria-expanded":e}),renderContent:()=>Object(a.createElement)(od,null,Object(a.createElement)("div",{className:"kb-inline-icon-control"},Object(a.createElement)(Xe,{value:j[0].icon,onChange:e=>Ge({icon:e})}),Object(a.createElement)(y,{label:Object(o.__)("Icon Size","kadence-blocks"),value:j[0].size,onChange:e=>Ge({size:e}),min:5,max:250,step:1})))}),Object(a.createElement)(rd,{value:r,onChange:e=>me({hAlign:e})}),Object(a.createElement)($s,{onPaste:e=>me(e),onPasteMediaImage:e=>$e(e),onPasteMediaIcon:e=>Ge(e),blockAttributes:this.props.attributes})),this.showSettings("allSettings")&&Object(a.createElement)(cd,null,Object(a.createElement)(vd,null,Object(a.createElement)(od,null,Object(a.createElement)("h2",null,Object(o.__)("InfoBox Quick Layout Presets","kadence-blocks")),Object(a.createElement)(gd,{className:"kt-style-btn-group kb-info-layouts","aria-label":Object(o.__)("InfoBox Style","kadence-blocks")},d()(Te,({name:e,key:t,icon:l})=>Object(a.createElement)(bd,{key:t,className:"kt-style-btn",isSmall:!0,isPrimary:!1,"aria-pressed":!1,onClick:()=>{(e=>{"simple"===e?me({hAlign:"center",containerBackground:"#ffffff"===c?"#f2f2f2":c,containerHoverBackground:"#ffffff"===c?"#f2f2f2":c,containerBorderWidth:[0,0,0,0],containerBorderRadius:0,containerPadding:[20,20,20,20],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:j[0].background,hoverBackground:j[0].hoverBackground,border:j[0].border,hoverBorder:j[0].hoverBorder,borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"basic"===e?me({hAlign:"center",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:30,containerPadding:[20,20,20,20],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#eeeeee":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#eeeeee":j[0].hoverBackground,border:j[0].border,hoverBorder:j[0].hoverBorder,borderRadius:200,borderWidth:[0,0,0,0],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[0,15,10,15]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"leftabove"===e?me({hAlign:"left",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:0,containerPadding:[24,24,24,24],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#eeeeee":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#eeeeee":j[0].hoverBackground,border:j[0].border,hoverBorder:j[0].hoverBorder,borderRadius:0,borderWidth:[0,0,0,0],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[0,0,16,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"left"===e?me({hAlign:"left",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:20,containerPadding:[24,24,24,24],containerMargin:["","","",""],containerMarginUnit:"px",mediaAlign:"left",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#ffffff":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#ffffff":j[0].hoverBackground,border:void 0===j[0].border||"#444444"===j[0].border?"#eeeeee":j[0].border,hoverBorder:void 0===j[0].hoverBorder||"#444444"===j[0].hoverBorder?"#eeeeee":j[0].hoverBorder,borderRadius:200,borderWidth:"icon"===f||"number"===f?[5,5,5,5]:[0,0,0,0],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[0,20,0,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"overlay"===e?me({hAlign:"center",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:20,containerPadding:[24,24,24,24],containerMargin:[50,"","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#ffffff":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#ffffff":j[0].hoverBackground,border:void 0===j[0].border||"#444444"===j[0].border?"#eeeeee":j[0].border,hoverBorder:void 0===j[0].hoverBorder||"#444444"===j[0].hoverBorder?"#eeeeee":j[0].hoverBorder,borderRadius:200,borderWidth:[5,5,5,5],padding:"icon"===f?[20,20,20,20]:[0,0,0,0],margin:[-75,0,20,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]}):"overlayleft"===e&&me({hAlign:"left",containerBackground:"#f2f2f2"===c?"#ffffff":c,containerHoverBackground:"#f2f2f2"===s?"#ffffff":s,containerBorder:"#f2f2f2"===b?"#ffffff":b,containerHoverBorder:"#f2f2f2"===m?"#eeeeee":m,containerBorderWidth:[5,5,5,5],containerBorderRadius:0,containerPadding:[24,24,24,24],containerMargin:[50,"","",""],containerMarginUnit:"px",mediaAlign:"top",mediaIcon:[{icon:j[0].icon,size:50,width:j[0].width,title:j[0].title,color:j[0].color,hoverColor:j[0].hoverColor,hoverAnimation:j[0].hoverAnimation,flipIcon:j[0].flipIcon}],mediaStyle:[{background:void 0===j[0].background||"transparent"===j[0].background?"#ffffff":j[0].background,hoverBackground:void 0===j[0].hoverBackground||"transparent"===j[0].hoverBackground?"#ffffff":j[0].hoverBackground,border:void 0===j[0].border||"#444444"===j[0].border?"#eeeeee":j[0].border,hoverBorder:void 0===j[0].hoverBorder||"#444444"===j[0].hoverBorder?"#eeeeee":j[0].hoverBorder,borderRadius:0,borderWidth:[5,5,5,5],padding:"icon"===f||"number"===f?[20,20,20,20]:[0,0,0,0],margin:[-75,0,20,0]}],mediaImage:[{url:O[0].url,id:O[0].id,alt:O[0].alt,width:O[0].width,height:O[0].height,maxWidth:100,hoverAnimation:O[0].hoverAnimation,flipUrl:O[0].flipUrl,flipId:O[0].flipId,flipAlt:O[0].flipAlt,flipWidth:O[0].flipWidth,flipHeight:O[0].flipHeight,subtype:O[0].subtype,flipSubtype:O[0].flipSubtype}],titleFont:[{level:M[0].level,size:M[0].size,sizeType:M[0].sizeType,lineHeight:M[0].lineHeight,lineType:M[0].lineType,letterSpacing:M[0].letterSpacing,textTransform:M[0].textTransform,family:M[0].family,google:M[0].google,style:M[0].style,weight:M[0].weight,variant:M[0].variant,subset:M[0].subset,loadGoogle:M[0].loadGoogle,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]})})(t)}},l)))),Object(a.createElement)(ka,Be()({label:Object(o.__)("Link","kadence-blocks"),url:t,onChangeUrl:e=>me({link:e}),additionalControls:!0,opensInNewTab:!(!i||"_blank"!=i),onChangeTarget:e=>{me(e?{target:"_blank"}:{target:"_self"})},linkNoFollow:void 0!==ae&&ae,onChangeFollow:e=>me({linkNoFollow:e}),linkSponsored:void 0!==oe&&oe,onChangeSponsored:e=>me({sponsored:e}),dynamicAttribute:"link",allowClear:!0},this.props)),Object(a.createElement)(Od,{label:Object(o.__)("Link Content","kadence-blocks"),value:l,options:[{value:"box",label:Object(o.__)("Entire Box","kadence-blocks")},{value:"learnmore",label:Object(o.__)("Only Learn More Text","kadence-blocks")}],onChange:e=>me({linkProperty:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Content Align","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-size-tabs kb-sidebar-alignment",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(rd,{isCollapsed:!1,value:X,onChange:e=>me({hAlignMobile:e})}):"tablet"===e.name?Object(a.createElement)(rd,{isCollapsed:!1,value:ee,onChange:e=>me({hAlignTablet:e})}):Object(a.createElement)(rd,{isCollapsed:!1,value:r,onChange:e=>me({hAlign:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),this.showSettings("containerSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Container Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(sn,{label:Object(o.__)("Container Border Width (px)","kadence-blocks"),measurement:p,control:ge,onChange:e=>me({containerBorderWidth:e}),onControl:e=>this.setState({containerBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Container Border Radius (px)","kadence-blocks"),value:g,onChange:e=>me({containerBorderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background","kadence-blocks"),colorValue:s||"#f2f2f2",colorDefault:"#f2f2f2",opacityValue:D,onColorChange:e=>me({containerHoverBackground:e}),onOpacityChange:e=>me({containerHoverBackgroundOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Border","kadence-blocks"),colorValue:m||"#eeeeee",colorDefault:"#eeeeee",opacityValue:V,onColorChange:e=>me({containerHoverBorder:e}),onOpacityChange:e=>me({containerHoverBorderOpacity:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Container Background","kadence-blocks"),colorValue:c||"#f2f2f2",colorDefault:"#f2f2f2",opacityValue:U,onColorChange:e=>me({containerBackground:e}),onOpacityChange:e=>me({containerBackgroundOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Container Border","kadence-blocks"),colorValue:b||"#eeeeee",colorDefault:"#eeeeee",opacityValue:$,onColorChange:e=>me({containerBorder:e}),onOpacityChange:e=>me({containerBorderOpacity:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(Al,{label:Object(o.__)("Container Padding","kadence-blocks"),control:ke,tabletControl:ke,mobileControl:ke,value:u,tabletValue:k,mobileValue:v,onChange:e=>{me({containerPadding:e})},onChangeTablet:e=>{me({containerTabletPadding:e})},onChangeMobile:e=>{me({containerMobilePadding:e})},onChangeControl:e=>this.setState({containerPaddingControl:e}),onChangeTabletControl:e=>this.setState({containerPaddingControl:e}),onChangeMobileControl:e=>this.setState({containerPaddingControl:e}),allowEmpty:!0,min:0,max:je,step:_e,unit:h,units:["px","em","rem","%"],onUnit:e=>me({containerPaddingType:e})}),Object(a.createElement)(gd,{className:"kt-size-type-options kt-row-size-type-options kb-typo-when-linked-individual-avail","aria-label":Object(o.__)("Margin Type","kadence-blocks")},d()([{key:"px",name:"px"},{key:"em",name:"em"},{key:"%",name:"%"},{key:"vh",name:"vh"},{key:"rem",name:"rem"}],({name:e,key:t})=>Object(a.createElement)(bd,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:le===t,"aria-pressed":le===t,onClick:()=>me({containerMarginUnit:t})},e))),Object(a.createElement)(sn,{label:Object(o.__)("Margin","kadence-blocks"),measurement:te,onChange:e=>me({containerMargin:e}),control:ye,onControl:e=>this.setState({containerMarginControl:e}),min:Ce,max:Me,step:Ne,allowEmpty:!0}),Object(a.createElement)(gd,{className:"kt-size-type-options","aria-label":Object(o.__)("Max Width Type","kadence-blocks")},d()([{key:"px",name:"px"},{key:"%",name:"%"},{key:"vw",name:"vw"}],({name:e,key:t})=>Object(a.createElement)(bd,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:q===t,"aria-pressed":q===t,onClick:()=>me({maxWidthUnit:t})},e))),Object(a.createElement)(y,{label:Object(o.__)("Container Max Width","kadence-blocks"),value:J,onChange:e=>{me({maxWidth:e})},min:0,max:fe})),this.showSettings("mediaSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Media Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-spacer-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(Od,{label:Object(o.__)("Mobile Media Align","kadence-blocks"),value:Q||S,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")},{value:"right",label:Object(o.__)("Right","kadence-blocks")}],onChange:e=>me({mediaAlignMobile:e})}):"tablet"===e.name?Object(a.createElement)(Od,{label:Object(o.__)("Tablet Media Align","kadence-blocks"),value:Y||S,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")},{value:"right",label:Object(o.__)("Right","kadence-blocks")}],onChange:e=>me({mediaAlignTablet:e})}):Object(a.createElement)(Od,{label:Object(o.__)("Media Align","kadence-blocks"),value:S,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")},{value:"right",label:Object(o.__)("Right","kadence-blocks")}],onChange:e=>me({mediaAlign:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),"top"!==S&&Object(a.createElement)(od,null,Object(a.createElement)(Od,{label:Object(o.__)("Media Vertical Align","kadence-blocks"),value:K,options:[{value:"top",label:Object(o.__)("Top","kadence-blocks")},{value:"middle",label:Object(o.__)("Middle","kadence-blocks")},{value:"bottom",label:Object(o.__)("Bottom","kadence-blocks")}],onChange:e=>me({mediaVAlign:e})})),Object(a.createElement)(Od,{label:Object(o.__)("Media Type","kadence-blocks"),value:f,options:[{value:"icon",label:Object(o.__)("Icon","kadence-blocks")},{value:"image",label:Object(o.__)("Image","kadence-blocks")},{value:"number",label:Object(o.__)("Number","kadence-blocks")},{value:"none",label:Object(o.__)("None","kadence-blocks")}],onChange:e=>me({mediaType:e})}),"image"===f&&Object(a.createElement)(od,null,Object(a.createElement)(td,Be()({label:Object(o.__)("Image","kadence-blocks"),hasImage:!!(O&&O[0]&&O[0].url),imageURL:O&&O[0]&&O[0].url?O[0].url:"",imageID:O&&O[0]&&O[0].id?O[0].id:"",onRemoveImage:()=>{$e({id:"",url:"",alt:"",width:"",height:"",maxWidth:"",subtype:""})},onSaveImage:Ue,disableMediaButtons:!!O[0].url,dynamicAttribute:"mediaImage:0:url"},this.props)),O[0].id&&"svg+xml"!==O[0].subtype&&Object(a.createElement)(Bs,{label:Object(o.__)("Image File Size","kadence-blocks"),id:O[0].id,url:O[0].url,onChange:e=>{$e({url:e.value,width:e.width,height:e.height})}}),Object(a.createElement)(y,{label:Object(o.__)("Max Image Width","kadence-blocks"),value:O[0].maxWidth,onChange:e=>$e({maxWidth:e}),min:5,max:800,step:1}),Object(a.createElement)(Od,{label:Object(o.__)("Image ratio","kadence-blocks"),options:[{label:Object(o.__)("Inherit","kadence-blocks"),value:"inherit"},{label:Object(o.__)("Landscape 4:3","kadence-blocks"),value:"land43"},{label:Object(o.__)("Landscape 3:2","kadence-blocks"),value:"land32"},{label:Object(o.__)("Landscape 16:9","kadence-blocks"),value:"land169"},{label:Object(o.__)("Landscape 2:1","kadence-blocks"),value:"land21"},{label:Object(o.__)("Landscape 3:1","kadence-blocks"),value:"land31"},{label:Object(o.__)("Landscape 4:1","kadence-blocks"),value:"land41"},{label:Object(o.__)("Portrait 3:4","kadence-blocks"),value:"port34"},{label:Object(o.__)("Portrait 2:3","kadence-blocks"),value:"port23"},{label:Object(o.__)("Square 1:1","kadence-blocks"),value:"square"}],value:se,onChange:e=>me({imageRatio:e})}),Object(a.createElement)(Od,{label:Object(o.__)("Image Hover Animation","kadence-blocks"),value:O[0].hoverAnimation,options:[{value:"none",label:Object(o.__)("None","kadence-blocks")},{value:"grayscale",label:Object(o.__)("Grayscale to Color","kadence-blocks")},{value:"drawborder",label:Object(o.__)("Border Spin In","kadence-blocks")},{value:"grayscale-border-draw",label:Object(o.__)("Grayscale to Color & Border Spin In","kadence-blocks")},{value:"flip",label:Object(o.__)("Flip to Another Image","kadence-blocks")}],onChange:e=>$e({hoverAnimation:e})}),"flip"===O[0].hoverAnimation&&Object(a.createElement)(od,null,Object(a.createElement)("h2",null,Object(o.__)("Flip Image (Use same size as start image","kadence-blocks")),Object(a.createElement)(td,Be()({label:Object(o.__)("Image","kadence-blocks"),hasImage:!!(O&&O[0]&&O[0].flipUrl),imageURL:O&&O[0]&&O[0].flipUrl?O[0].flipUrl:"",imageID:O&&O[0]&&O[0].flipId?O[0].flipId:"",onRemoveImage:()=>{$e({flipId:"",flipUrl:"",flipAlt:"",flipWidth:"",flipHeight:"",flipSubtype:""})},onSaveImage:e=>{const t=ce()(e,["width"])||ce()(e,["media_details","width"]),l=ce()(e,["height"])||ce()(e,["media_details","height"]);$e({flipId:e.id,flipUrl:e.url,flipAlt:e.alt,flipWidth:t,flipHeight:l,flipSubtype:e.subtype})},disableMediaButtons:!!(O&&O[0]&&O[0].flipUrl)},this.props)),O[0].flipId&&"svg+xml"!==O[0].flipSubtype&&Object(a.createElement)(Bs,{label:Object(o.__)("Image File Size","kadence-blocks"),id:O[0].flipId,url:O[0].flipUrl,onChange:e=>{$e({flipUrl:e.value,flipWidth:e.width,flipHeight:e.height})}})),Object(a.createElement)(sn,{label:Object(o.__)("Image Border","kadence-blocks"),measurement:_[0].borderWidth,control:ue,onChange:e=>Ze({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Image Border Radius (px)","kadence-blocks"),value:_[0].borderRadius,onChange:e=>Ze({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,O[0].subtype&&"svg+xml"===O[0].subtype&&Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("SVG Hover Color","kadence-blocks"),colorValue:j[0].hoverColor?j[0].hoverColor:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({hoverColor:e})}),Object(a.createElement)("small",null,Object(o.__)("*you must force inline svg for this to have effect.","kadence-blocks"))),Object(a.createElement)(Bt,{label:Object(o.__)("Image Hover Background","kadence-blocks"),colorValue:_[0].hoverBackground?_[0].hoverBackground:"",colorDefault:"transparent",onColorChange:e=>Ze({hoverBackground:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Image Hover Border","kadence-blocks"),colorValue:_[0].hoverBorder?_[0].hoverBorder:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({hoverBorder:e})})):Object(a.createElement)(od,null,O[0].subtype&&"svg+xml"===O[0].subtype&&Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("SVG Color","kadence-blocks"),colorValue:j[0].color?j[0].color:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({color:e})}),Object(a.createElement)("small",null,Object(o.__)("*you must force inline svg for this to have effect.","kadence-blocks"))),Object(a.createElement)(Bt,{label:Object(o.__)("Image Background","kadence-blocks"),colorValue:_[0].background?_[0].background:"",colorDefault:"transparent",onColorChange:e=>Ze({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Image Border","kadence-blocks"),colorValue:_[0].border?_[0].border:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),"icon"===f&&Object(a.createElement)(od,null,Object(a.createElement)(Xe,{value:j[0].icon,onChange:e=>Ge({icon:e})}),Object(a.createElement)(Ks,{label:Object(o.__)("Icon Size","kadence-blocks"),value:j[0].size,mobileValue:j[0].mobileSize?j[0].mobileSize:"",tabletValue:j[0].tabletSize?j[0].tabletSize:"",onChange:e=>Ge({size:e}),onChangeTablet:e=>Ge({tabletSize:e}),onChangeMobile:e=>Ge({mobileSize:e}),min:5,max:250,step:1}),j[0].icon&&"fe"===j[0].icon.substring(0,2)&&Object(a.createElement)(y,{label:Object(o.__)("Icon Line Width","kadence-blocks"),value:j[0].width,onChange:e=>Ge({width:e}),step:.5,min:.5,max:4}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Border","kadence-blocks"),measurement:_[0].borderWidth,control:ue,onChange:e=>Ze({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Icon Border Radius (px)","kadence-blocks"),value:_[0].borderRadius,onChange:e=>Ze({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Od,{label:Object(o.__)("Icon Hover Animation","kadence-blocks"),value:j[0].hoverAnimation,options:[{value:"none",label:Object(o.__)("None","kadence-blocks")},{value:"drawborder",label:Object(o.__)("Border Spin In","kadence-blocks")},{value:"flip",label:Object(o.__)("Flip to Another Icon","kadence-blocks")}],onChange:e=>Ge({hoverAnimation:e})}),"flip"===j[0].hoverAnimation&&Object(a.createElement)(Xe,{value:j[0].flipIcon,onChange:e=>Ge({flipIcon:e})}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Color","kadence-blocks"),colorValue:j[0].hoverColor?j[0].hoverColor:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({hoverColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Background","kadence-blocks"),colorValue:_[0].hoverBackground?_[0].hoverBackground:"",colorDefault:"transparent",onColorChange:e=>Ze({hoverBackground:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Hover Border","kadence-blocks"),colorValue:_[0].hoverBorder?_[0].hoverBorder:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({hoverBorder:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color","kadence-blocks"),colorValue:j[0].color?j[0].color:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background","kadence-blocks"),colorValue:_[0].background?_[0].background:"",colorDefault:"transparent",onColorChange:e=>Ze({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Border Color","kadence-blocks"),colorValue:_[0].border?_[0].border:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(yd,{label:Object(o.__)("Icon Title for Accessibility","kadence-blocks"),value:j[0].title,onChange:e=>Ge({title:e})})),"number"===f&&Object(a.createElement)(od,null,Object(a.createElement)(Ks,{label:Object(o.__)("Size","kadence-blocks"),value:j[0].size,mobileValue:j[0].mobileSize?j[0].mobileSize:"",tabletValue:j[0].tabletSize?j[0].tabletSize:"",onChange:e=>Ge({size:e}),onChangeTablet:e=>Ge({tabletSize:e}),onChangeMobile:e=>Ge({mobileSize:e}),min:5,max:250,step:1}),Object(a.createElement)(ie,{fontFamily:re[0]&&re[0].family?re[0].family:"",onFontFamily:e=>qe({family:e}),onFontChange:e=>{qe({family:e.value,google:e.google})},onFontArrayChange:e=>qe(e),googleFont:void 0!==re[0].google&&re[0].google,onGoogleFont:e=>qe({google:e}),loadGoogleFont:void 0===re[0].loadGoogle||re[0].loadGoogle,onLoadGoogleFont:e=>qe({loadGoogle:e}),fontVariant:re[0].variant?re[0].variant:"",onFontVariant:e=>qe({variant:e}),fontWeight:re[0].weight?re[0].weight:"",onFontWeight:e=>qe({weight:e}),fontStyle:re[0].style?re[0].style:"",onFontStyle:e=>qe({style:e}),fontSubset:re[0].subset?re[0].subset:"",onFontSubset:e=>qe({subset:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Number Border","kadence-blocks"),measurement:_[0].borderWidth,control:ue,onChange:e=>Ze({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Number Border Radius (px)","kadence-blocks"),value:_[0].borderRadius,onChange:e=>Ze({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Od,{label:Object(o.__)("Number Hover Animation","kadence-blocks"),value:re[0].hoverAnimation?re[0].hoverAnimation:"none",options:[{value:"none",label:Object(o.__)("None","kadence-blocks")},{value:"drawborder",label:Object(o.__)("Border Spin In","kadence-blocks")}],onChange:e=>qe({hoverAnimation:e})}),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Number Hover Color","kadence-blocks"),colorValue:j[0].hoverColor?j[0].hoverColor:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({hoverColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Hover Background","kadence-blocks"),colorValue:_[0].hoverBackground?_[0].hoverBackground:"",colorDefault:"transparent",onColorChange:e=>Ze({hoverBackground:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Hover Border","kadence-blocks"),colorValue:_[0].hoverBorder?_[0].hoverBorder:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({hoverBorder:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Number Color","kadence-blocks"),colorValue:j[0].color?j[0].color:"#444444",colorDefault:"#444444",onColorChange:e=>Ge({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Background","kadence-blocks"),colorValue:_[0].background?_[0].background:"",colorDefault:"transparent",onColorChange:e=>Ze({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Number Border Color","kadence-blocks"),colorValue:_[0].border?_[0].border:"#444444",colorDefault:"#444444",onColorChange:e=>Ze({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),Object(a.createElement)(sn,{label:Object(o.__)("Media Padding","kadence-blocks"),measurement:_[0].padding,control:he,onChange:e=>Ze({padding:e}),onControl:e=>this.setState({mediaPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Media Margin","kadence-blocks"),measurement:_[0].margin,control:ve,onChange:e=>Ze({margin:e}),onControl:e=>this.setState({mediaMarginControl:e}),min:-200,max:200,step:1})),this.showSettings("titleSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Title Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Show Title","kadence-blocks"),checked:E,onChange:e=>me({displayTitle:e})}),E&&Object(a.createElement)(od,null,Object(a.createElement)("h2",{className:"kt-tab-wrap-title"},Object(o.__)("Color Settings","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color","kadence-blocks"),colorValue:C||"",colorDefault:"",onColorChange:e=>me({titleHoverColor:e})}):Object(a.createElement)(Bt,{label:Object(o.__)("Title Color","kadence-blocks"),colorValue:x||"",colorDefault:"",onColorChange:e=>me({titleColor:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(ie,{fontGroup:"heading",tagLevel:M[0].level,onTagLevel:e=>Ke({level:e}),fontSize:M[0].size,onFontSize:e=>Ke({size:e}),fontSizeType:M[0].sizeType,onFontSizeType:e=>Ke({sizeType:e}),lineHeight:M[0].lineHeight,onLineHeight:e=>Ke({lineHeight:e}),lineHeightType:M[0].lineType,onLineHeightType:e=>Ke({lineType:e}),letterSpacing:M[0].letterSpacing,onLetterSpacing:e=>Ke({letterSpacing:e}),fontFamily:M[0].family,onFontFamily:e=>Ke({family:e}),onFontChange:e=>{Ke({family:e.value,google:e.google})},onFontArrayChange:e=>Ke(e),googleFont:M[0].google,onGoogleFont:e=>Ke({google:e}),loadGoogleFont:M[0].loadGoogle,onLoadGoogleFont:e=>Ke({loadGoogle:e}),fontVariant:M[0].variant,onFontVariant:e=>Ke({variant:e}),fontWeight:M[0].weight,onFontWeight:e=>Ke({weight:e}),fontStyle:M[0].style,onFontStyle:e=>Ke({style:e}),fontSubset:M[0].subset,onFontSubset:e=>Ke({subset:e}),padding:M[0].padding,onPadding:e=>Ke({padding:e}),paddingControl:M[0].paddingControl,onPaddingControl:e=>Ke({paddingControl:e}),margin:M[0].margin,onMargin:e=>Ke({margin:e}),marginControl:M[0].marginControl,onMarginControl:e=>Ke({marginControl:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Min Height","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(y,{value:void 0!==Z&&void 0!==Z[2]?Z[2]:"",onChange:e=>me({titleMinHeight:[void 0!==Z&&void 0!==Z[0]?Z[0]:"",void 0!==Z&&void 0!==Z[1]?Z[1]:"",e]}),step:1,min:0,max:600}):"tablet"===e.name?Object(a.createElement)(y,{value:void 0!==Z&&void 0!==Z[1]?Z[1]:"",onChange:e=>me({titleMinHeight:[void 0!==Z&&void 0!==Z[0]?Z[0]:"",e,void 0!==Z&&void 0!==Z[2]?Z[2]:""]}),step:1,min:0,max:600}):Object(a.createElement)(y,{value:void 0!==Z&&void 0!==Z[0]?Z[0]:"",onChange:e=>me({titleMinHeight:[e,void 0!==Z&&void 0!==Z[1]?Z[1]:"",void 0!==Z&&void 0!==Z[2]?Z[2]:""]}),step:1,min:0,max:600})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}))),this.showSettings("textSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Text Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Show Text","kadence-blocks"),checked:N,onChange:e=>me({displayText:e})}),N&&Object(a.createElement)(od,null,Object(a.createElement)("h2",{className:"kt-tab-wrap-title"},Object(o.__)("Color Settings")),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color","kadence-blocks"),colorValue:H||"",colorDefault:"",onColorChange:e=>me({textHoverColor:e})}):Object(a.createElement)(Bt,{label:Object(o.__)("Text Color","kadence-blocks"),colorValue:z||"",colorDefault:"",onColorChange:e=>me({textColor:e})})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(ie,{fontSize:B[0].size,onFontSize:e=>Qe({size:e}),fontSizeType:B[0].sizeType,onFontSizeType:e=>Qe({sizeType:e}),lineHeight:B[0].lineHeight,onLineHeight:e=>Qe({lineHeight:e}),lineHeightType:B[0].lineType,onLineHeightType:e=>Qe({lineType:e}),letterSpacing:B[0].letterSpacing,onLetterSpacing:e=>Qe({letterSpacing:e}),fontFamily:B[0].family,onFontFamily:e=>Qe({family:e}),onFontChange:e=>{Qe({family:e.value,google:e.google})},onFontArrayChange:e=>Qe(e),googleFont:B[0].google,onGoogleFont:e=>Qe({google:e}),loadGoogleFont:B[0].loadGoogle,onLoadGoogleFont:e=>Qe({loadGoogle:e}),fontVariant:B[0].variant,onFontVariant:e=>Qe({variant:e}),fontWeight:B[0].weight,onFontWeight:e=>Qe({weight:e}),fontStyle:B[0].style,onFontStyle:e=>Qe({style:e}),fontSubset:B[0].subset,onFontSubset:e=>Qe({subset:e})}),Object(a.createElement)(ie,{padding:void 0!==I&&void 0!==I[0]&&I[0].padding?I[0].padding:["","","",""],onPadding:e=>Ye({padding:e}),paddingControl:void 0!==I&&void 0!==I[0]&&I[0].paddingControl?I[0].paddingControl:"linked",onPaddingControl:e=>Ye({paddingControl:e}),margin:void 0!==I&&void 0!==I[0]&&I[0].margin?I[0].margin:["","","",""],onMargin:e=>Ye({margin:e}),marginControl:void 0!==I&&void 0!==I[0]&&I[0].marginControl?I[0].marginControl:"linked",onMarginControl:e=>Ye({marginControl:e})}),Object(a.createElement)("h2",{className:"kt-heading-size-title"},Object(o.__)("Min Height","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:Object(a.createElement)(hd,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:Object(a.createElement)(hd,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:Object(a.createElement)(hd,{icon:"smartphone"}),className:"kt-mobile-tab"}]},e=>{let t;return e.name&&(t="mobile"===e.name?Object(a.createElement)(y,{value:void 0!==G&&void 0!==G[2]?G[2]:"",onChange:e=>me({textMinHeight:[void 0!==G&&void 0!==G[0]?G[0]:"",void 0!==G&&void 0!==G[1]?G[1]:"",e]}),step:1,min:0,max:600}):"tablet"===e.name?Object(a.createElement)(y,{value:void 0!==G&&void 0!==G[1]?G[1]:"",onChange:e=>me({textMinHeight:[void 0!==G&&void 0!==G[0]?G[0]:"",e,void 0!==G&&void 0!==G[2]?G[2]:""]}),step:1,min:0,max:600}):Object(a.createElement)(y,{value:void 0!==G&&void 0!==G[0]?G[0]:"",onChange:e=>me({textMinHeight:[e,void 0!==G&&void 0!==G[1]?G[1]:"",void 0!==G&&void 0!==G[2]?G[2]:""]}),step:1,min:0,max:600})),Object(a.createElement)("div",{className:e.className,key:e.className},t)}))),this.showSettings("learnMoreSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Learn More Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Show Learn More","kadence-blocks"),checked:R,onChange:e=>me({displayLearnMore:e})}),R&&Object(a.createElement)(od,null,Object(a.createElement)("h2",{className:"kt-tab-wrap-title"},Object(o.__)("Color Settings","kadence-blocks")),Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("HOVER: Text Color","kadence-blocks"),colorValue:A[0].colorHover?A[0].colorHover:"#ffffff",colorDefault:"#ffffff",onColorChange:e=>et({colorHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("HOVER: Background","kadence-blocks"),colorValue:A[0].backgroundHover?A[0].backgroundHover:"#444444",colorDefault:"#444444",onColorChange:e=>et({backgroundHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("HOVER: Border Color","kadence-blocks"),colorValue:A[0].borderHover?A[0].borderHover:"#444444",colorDefault:"#444444",onColorChange:e=>et({borderHover:e})})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Text Color","kadence-blocks"),colorValue:A[0].color?A[0].color:"",colorDefault:"",onColorChange:e=>et({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Background","kadence-blocks"),colorValue:A[0].background?A[0].background:"",colorDefault:"transparent",onColorChange:e=>et({background:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Border Color","kadence-blocks"),colorValue:A[0].border?A[0].border:"#555555",colorDefault:"#555555",onColorChange:e=>et({border:e})}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}),Object(a.createElement)(sn,{label:Object(o.__)("Learn More Border Width (px)","kadence-blocks"),measurement:A[0].borderWidth,control:A[0].borderControl,onChange:e=>et({borderWidth:e}),onControl:e=>et({borderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Learn More Border Radius (px)","kadence-blocks"),value:A[0].borderRadius,onChange:e=>et({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(ie,{fontSize:A[0].size,onFontSize:e=>et({size:e}),fontSizeType:A[0].sizeType,onFontSizeType:e=>et({sizeType:e}),lineHeight:A[0].lineHeight,onLineHeight:e=>et({lineHeight:e}),lineHeightType:A[0].lineType,onLineHeightType:e=>et({lineType:e}),letterSpacing:A[0].letterSpacing,onLetterSpacing:e=>et({letterSpacing:e}),fontFamily:A[0].family,onFontFamily:e=>et({family:e}),onFontChange:e=>{et({family:e.value,google:e.google})},onFontArrayChange:e=>et(e),googleFont:A[0].google,onGoogleFont:e=>et({google:e}),loadGoogleFont:A[0].loadGoogle,onLoadGoogleFont:e=>et({loadGoogle:e}),fontVariant:A[0].variant,onFontVariant:e=>et({variant:e}),fontWeight:A[0].weight,onFontWeight:e=>et({weight:e}),fontStyle:A[0].style,onFontStyle:e=>et({style:e}),fontSubset:A[0].subset,onFontSubset:e=>et({subset:e}),padding:A[0].padding,onPadding:e=>et({padding:e}),paddingControl:A[0].paddingControl,onPaddingControl:e=>et({paddingControl:e}),margin:A[0].margin,onMargin:e=>et({margin:e}),marginControl:A[0].marginControl,onMarginControl:e=>et({marginControl:e})}))),this.showSettings("shadowSettings")&&Object(a.createElement)(vd,{title:Object(o.__)("Container Shadow","kadence-blocks"),initialOpen:!1},Object(a.createElement)(fd,{label:Object(o.__)("Enable Shadow","kadence-blocks"),checked:L,onChange:e=>me({displayShadow:e})}),L&&Object(a.createElement)(ud,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Shadow Color","kadence-blocks"),colorValue:W[0].color?W[0].color:"",colorDefault:"",onColorChange:e=>lt({color:e}),opacityValue:W[0].opacity,onOpacityChange:e=>lt({opacity:e})}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Blur","kadence-blocks"),value:W[0].blur,onChange:e=>lt({blur:e}),min:0,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Spread","kadence-blocks"),value:W[0].spread,onChange:e=>lt({spread:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Vertical Offset","kadence-blocks"),value:W[0].vOffset,onChange:e=>lt({vOffset:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Horizontal Offset","kadence-blocks"),value:W[0].hOffset,onChange:e=>lt({hOffset:e}),min:-100,max:100,step:1})):Object(a.createElement)(od,null,Object(a.createElement)(Bt,{label:Object(o.__)("Shadow Color","kadence-blocks"),colorValue:F[0].color?F[0].color:"",colorDefault:"",onColorChange:e=>tt({color:e}),opacityValue:F[0].opacity,onOpacityChange:e=>tt({opacity:e})}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Blur","kadence-blocks"),value:F[0].blur,onChange:e=>tt({blur:e}),min:0,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Spread","kadence-blocks"),value:F[0].spread,onChange:e=>tt({spread:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Vertical Offset","kadence-blocks"),value:F[0].vOffset,onChange:e=>tt({vOffset:e}),min:-100,max:100,step:1}),Object(a.createElement)(y,{label:Object(o.__)("Shadow Horizontal Offset","kadence-blocks"),value:F[0].hOffset,onChange:e=>tt({hOffset:e}),min:-100,max:100,step:1}))),Object(a.createElement)("div",{className:e.className,key:e.className},t)}))),Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${S} ${Ve} kt-info-halign-${r} kb-info-box-vertical-media-align-${K}`,style:{boxShadow:L?F[0].hOffset+"px "+F[0].vOffset+"px "+F[0].blur+"px "+F[0].spread+"px "+Rt(F[0].color,F[0].opacity):void 0,borderColor:Rt(b||"#eeeeee",void 0!==$?$:1),background:Rt(c||"#f2f2f2",void 0!==U?U:1),borderRadius:g+"px",borderWidth:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",paddingTop:""!==Se?Se+Oe:void 0,paddingRight:""!==Ee?Ee+Oe:void 0,paddingBottom:""!==we?we+Oe:void 0,paddingLeft:""!==xe?xe+Oe:void 0,maxWidth:J?J+q:void 0,marginTop:te&&""!==te[0]?te[0]+le:void 0,marginRight:te&&""!==te[1]?te[1]+le:void 0,marginBottom:te&&""!==te[2]?te[2]+le:void 0,marginLeft:te&&""!==te[3]?te[3]+le:void 0}},"none"!==f&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container",style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===f?"kt-info-media-animate-"+re[0].hoverAnimation:""}${"image"===f?"kt-info-media-animate-"+O[0].hoverAnimation:""}${"icon"===f?"kt-info-media-animate-"+j[0].hoverAnimation:""}`,style:{borderColor:Rt(_[0].border),backgroundColor:Rt(_[0].background),borderRadius:_[0].borderRadius+"px",borderWidth:_[0].borderWidth?_[0].borderWidth[0]+"px "+_[0].borderWidth[1]+"px "+_[0].borderWidth[2]+"px "+_[0].borderWidth[3]+"px":"",padding:_[0].padding?_[0].padding[0]+"px "+_[0].padding[1]+"px "+_[0].padding[2]+"px "+_[0].padding[3]+"px":""}},!O[0].url&&"image"===f&&Object(a.createElement)(od,null,Object(a.createElement)(uo,{labels:"",selectIcon:So.a,selectLabel:Object(o.__)("Select Image","kadence-blocks"),onSelect:Ue,accept:"image/*",className:"kadence-image-upload",allowedTypes:De,disableMediaButtons:!1})),O[0].url&&"image"===f&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:O[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${O[0].hoverAnimation}${"svg+xml"===O[0].subtype?" kb-info-box-image-type-svg":""}${rt?" kb-info-box-image-ratio kb-info-box-image-ratio-"+se:""}`,style:{paddingBottom:it,height:nt,width:isNaN(O[0].width)?void 0:O[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:O[0].url,alt:O[0].alt,width:O[0].subtype&&"svg+xml"===O[0].subtype?O[0].maxWidth:O[0].width,height:O[0].height,className:`${O[0].id?"kt-info-box-image wp-image-"+O[0].id:"kt-info-box-image wp-image-offsite"} ${O[0].subtype&&"svg+xml"===O[0].subtype?" kt-info-svg-image":""}`}),O[0].flipUrl&&"flip"===O[0].hoverAnimation&&Object(a.createElement)("img",{src:O[0].flipUrl,alt:O[0].flipAlt,width:O[0].flipSubtype&&"svg+xml"===O[0].flipSubtype?O[0].maxWidth:O[0].flipWidth,height:O[0].flipHeight,className:`${O[0].flipId?"kt-info-box-image-flip wp-image-"+O[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${O[0].flipSubtype&&"svg+xml"===O[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===f&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+j[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+j[0].icon,name:j[0].icon,size:j[0].size?j[0].size:"14",htmltag:"span",strokeWidth:"fe"===j[0].icon.substring(0,2)?j[0].width:void 0,style:{display:"block",color:j[0].color?Rt(j[0].color):void 0}}),j[0].flipIcon&&"flip"===j[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+j[0].flipIcon,name:j[0].flipIcon,size:j[0].size?j[0].size:"14",htmltag:"span",strokeWidth:"fe"===j[0].flipIcon.substring(0,2)?j[0].width:void 0,style:{display:"block",color:j[0].hoverColor?Rt(j[0].hoverColor):void 0}}))),"number"===f&&Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(re&&re[0]&&re[0].hoverAnimation?re[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(nd,{className:"kt-blocks-info-box-number",allowedFormats:jd("kadence.whitelist_richtext_formats","learnmore"===l?["kadence/insert-dynamic","core/bold","core/italic","core/link","toolset/inline-field"]:["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),tagName:"div",placeholder:"1",onChange:e=>{me({number:e})},value:ne,style:{fontWeight:re[0].weight,fontStyle:re[0].style,color:j[0].color?Rt(j[0].color):void 0,fontSize:j[0].size+"px",fontFamily:re[0].family?re[0].family:void 0}})),re[0].google&&Object(a.createElement)(yl,{config:Fe})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},E&&M[0].google&&Object(a.createElement)(yl,{config:Pe}),E&&Object(a.createElement)(nd,{className:"kt-blocks-info-box-title",allowedFormats:jd("kadence.whitelist_richtext_formats","learnmore"===l?["kadence/insert-dynamic","core/bold","core/italic","core/link","toolset/inline-field"]:["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),tagName:We,placeholder:Object(o.__)("Title","kadence-blocks"),onChange:e=>{me({title:e})},value:w,style:{fontWeight:M[0].weight,fontStyle:M[0].style,color:Rt(x),fontSize:M[0].size[0]+M[0].sizeType,lineHeight:M[0].lineHeight&&M[0].lineHeight[0]?M[0].lineHeight[0]+M[0].lineType:void 0,letterSpacing:M[0].letterSpacing+"px",fontFamily:M[0].family?M[0].family:"",padding:M[0].padding?M[0].padding[0]+"px "+M[0].padding[1]+"px "+M[0].padding[2]+"px "+M[0].padding[3]+"px":"",margin:M[0].margin?M[0].margin[0]+"px "+M[0].margin[1]+"px "+M[0].margin[2]+"px "+M[0].margin[3]+"px":"",minHeight:void 0!==Z&&void 0!==Z[0]?Z[0]+"px":void 0},keepPlaceholderOnFocus:!0}),N&&B[0].google&&Object(a.createElement)(yl,{config:Ae}),N&&Object(a.createElement)(nd,{className:"kt-blocks-info-box-text",allowedFormats:jd("kadence.whitelist_richtext_formats","learnmore"===l?["kadence/insert-dynamic","core/bold","core/italic","core/link","toolset/inline-field"]:["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),tagName:"p",placeholder:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.","kadence-blocks"),onChange:e=>me({contentText:e}),value:T,style:{fontWeight:B[0].weight,fontStyle:B[0].style,color:Rt(z),fontSize:B[0].size[0]+B[0].sizeType,lineHeight:B[0].lineHeight&&B[0].lineHeight[0]?B[0].lineHeight[0]+B[0].lineType:void 0,letterSpacing:B[0].letterSpacing+"px",fontFamily:B[0].family?B[0].family:"",padding:void 0!==I&&void 0!==I[0]&&I[0].padding?I[0].padding[0]+"px "+I[0].padding[1]+"px "+I[0].padding[2]+"px "+I[0].padding[3]+"px":"",margin:void 0!==I&&void 0!==I[0]&&I[0].margin?I[0].margin[0]+"px "+I[0].margin[1]+"px "+I[0].margin[2]+"px "+I[0].margin[3]+"px":"",minHeight:void 0!==G&&void 0!==G[0]?G[0]+"px":void 0},keepPlaceholderOnFocus:!0}),R&&A[0].google&&Object(a.createElement)(yl,{config:Le}),R&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap",style:{margin:A[0].margin?A[0].margin[0]+"px "+A[0].margin[1]+"px "+A[0].margin[2]+"px "+A[0].margin[3]+"px":""}},Object(a.createElement)(nd,{allowedFormats:jd("kadence.whitelist_richtext_formats",["kadence/insert-dynamic","core/bold","core/italic","toolset/inline-field"]),className:"kt-blocks-info-box-learnmore",tagName:"div",placeholder:Object(o.__)("Learn More","kadence-blocks"),onChange:e=>me({learnMore:e}),value:P,style:{fontWeight:A[0].weight,fontStyle:A[0].style,color:Rt(A[0].color),borderRadius:A[0].borderRadius+"px",background:Rt(A[0].background),borderColor:Rt(A[0].border),fontSize:A[0].size[0]+A[0].sizeType,lineHeight:A[0].lineHeight&&A[0].lineHeight[0]?A[0].lineHeight[0]+A[0].lineType:void 0,letterSpacing:A[0].letterSpacing+"px",fontFamily:A[0].family?A[0].family:"",borderWidth:A[0].borderWidth?A[0].borderWidth[0]+"px "+A[0].borderWidth[1]+"px "+A[0].borderWidth[2]+"px "+A[0].borderWidth[3]+"px":"",padding:A[0].padding?A[0].padding[0]+"px "+A[0].padding[1]+"px "+A[0].padding[2]+"px "+A[0].padding[3]+"px":""},keepPlaceholderOnFocus:!0})))))}});const{registerBlockType:Ed}=wp.blocks,{RichText:wd}=wp.blockEditor;Ed("kadence/infobox",{title:Object(o.__)("Info Box","kadence-blocks"),description:Object(o.__)("Create beautiful information boxes using icons or images.","kadence-blocks"),icon:{src:n.infobox},category:"kadence-blocks",keywords:[Object(o.__)("Info","kadence-blocks"),Object(o.__)("Icon","kadence-blocks"),"KB"],attributes:xs,edit:Sd,supports:{ktdynamic:!0},save:e=>{const{attributes:{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,linkNoFollow:O,linkSponsored:j,mediaNumber:_,number:S,kadenceDynamic:E,imageRatio:w},className:x}=e,C="h"+p[0].level;let M;"_blank"===i&&(M="noopener noreferrer"),void 0!==O&&!0===O&&(M=M?M.concat(" nofollow"):"nofollow"),void 0!==j&&!0===j&&(M=M?M.concat(" sponsored"):"sponsored");const N=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container"+(E&&E["mediaImage:0:url"]&&E["mediaImage:0:url"].enable?" kadence-info-dynamic-image":"")},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}${w&&"inherit"!==w?" kb-info-box-image-ratio kb-info-box-image-ratio-"+w:""}`},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"}${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),T=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),z=Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(_&&_[0]&&_[0].hoverAnimation?_[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-number",tagName:"div",value:S||""}))),H=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),B=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore info-box-link",tagName:"a",target:"_blank"===i?i:void 0,rel:M,value:v,href:l})),I=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:C,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&B,h&&"learnmore"!==o&&H);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:x},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap info-box-link kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:M,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&N,"icon"===r&&T,"number"===r&&z)),I),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&N,"icon"===r&&T,"number"===r&&z)),I))},deprecated:[{attributes:xs,save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,linkNoFollow:O,linkSponsored:j,mediaNumber:_,number:S,kadenceDynamic:E,className:w}=e,x="h"+p[0].level;let C;"_blank"===i&&(C="noopener noreferrer"),void 0!==O&&!0===O&&(C=C?C.concat(" nofollow"):"nofollow"),void 0!==j&&!0===j&&(C=C?C.concat(" sponsored"):"sponsored");const M=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container"+(E&&E["mediaImage:0:url"]&&E["mediaImage:0:url"].enable?" kadence-info-dynamic-image":""),style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",height:isNaN(c[0].height)?void 0:0,width:isNaN(c[0].width)||"svg+xml"===c[0].subtype?c[0].maxWidth+"px":c[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),N=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),T=Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(_&&_[0]&&_[0].hoverAnimation?_[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-number",tagName:"div",value:S||""}))),z=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),H=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore info-box-link",tagName:"a",target:"_blank"===i?i:void 0,rel:C,value:v,href:l})),B=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:x,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&H,h&&"learnmore"!==o&&z);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:w},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap info-box-link kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:C,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&M,"icon"===r&&N,"number"===r&&T)),B),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&M,"icon"===r&&N,"number"===r&&T)),B))}},{attributes:xs,save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,linkNoFollow:O,linkSponsored:j,mediaNumber:_,number:S,className:E}=e,w="h"+p[0].level;let x;"_blank"===i&&(x="noopener noreferrer"),void 0!==O&&!0===O&&(x=x?x.concat(" nofollow"):"nofollow"),void 0!==j&&!0===j&&(x=x?x.concat(" sponsored"):"sponsored");const C=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",height:isNaN(c[0].height)?void 0:0,width:isNaN(c[0].width)||"svg+xml"===c[0].subtype?c[0].maxWidth+"px":c[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),M=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),N=Object(a.createElement)("div",{className:"kadence-info-box-number-container kt-info-number-animate-"+(_[0].hoverAnimation?_[0].hoverAnimation:"none")},Object(a.createElement)("div",{className:"kadence-info-box-number-inner-container"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-number",tagName:"div",value:S||""}))),T=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),z=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:x,value:v,href:l})),H=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:w,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&z,h&&"learnmore"!==o&&T);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:E},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:x,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&C,"icon"===r&&M,"number"===r&&N)),H),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:`kt-blocks-info-box-media ${"number"===r?"kt-info-media-animate-"+_[0].hoverAnimation:""}${"image"===r?"kt-info-media-animate-"+c[0].hoverAnimation:""}${"image"!==r&&"number"!==r?"kt-info-media-animate-"+s[0].hoverAnimation:""}`},c[0].url&&"image"===r&&C,"icon"===r&&M,"number"===r&&N)),H))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,hAlignMobile:y,hAlignTablet:f,className:O}=e,j="h"+p[0].level,_=Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",height:isNaN(c[0].height)?void 0:0,width:isNaN(c[0].width)||"svg+xml"===c[0].subtype?c[0].maxWidth+"px":c[0].width+"px",maxWidth:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),S=Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))),E=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})),w=Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})),x=Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:j,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&"learnmore"===o&&w,h&&"learnmore"!==o&&E);return Object(a.createElement)("div",{id:"kt-info-box"+t,className:O},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}${f&&""!==f?" kb-info-tablet-halign-"+f:""}${y&&""!==y?" kb-info-mobile-halign-"+y:""}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},"none"!==r&&Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&_,"icon"===r&&S)),x),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&_,"icon"===r&&S)),x))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,mediaVAlign:k,className:y}=e,f="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:y},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",width:isNaN(c[0].height)?void 0:c[0].width+"px",maxWidth:isNaN(c[0].height)?void 0:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:f,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}${k&&"middle"!==k?" kb-info-box-vertical-media-align-"+k:""}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media-container"},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}))))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:f,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%",width:isNaN(c[0].height)?void 0:c[0].width+"px",maxWidth:isNaN(c[0].height)?void 0:"100%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},hAlignTablet:{type:"string",default:""},hAlignMobile:{type:"string",default:""},containerBackground:{type:"string",default:"#f2f2f2"},containerBackgroundOpacity:{type:"number",default:1},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerHoverBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerHoverBorder:{type:"string",default:"#eeeeee"},containerHoverBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:"",subtype:"",flipSubtype:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:"",tabletSize:"",mobileSize:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textMinHeight:{type:"array",default:["","",""]},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},textSpacing:{type:"array",default:[{padding:["","","",""],paddingControl:"linked",margin:["","","",""],marginControl:"linked"}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},showPresets:{type:"bool",default:!0},mediaVAlign:{type:"string",default:"middle"},mediaAlignMobile:{type:"string",default:""},mediaAlignTablet:{type:"string",default:""},maxWidth:{type:"number",default:""},maxWidthUnit:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},containerMarginUnit:{type:"string",default:"px"},linkNoFollow:{type:"bool",default:!1},linkSponsored:{type:"bool",default:!1},number:{type:"array",source:"children",selector:"div.kt-blocks-info-box-number",default:""},mediaNumber:{type:"array",default:[{family:"",google:!1,hoverAnimation:"none",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:`kadence-info-box-image-intrisic kt-info-animate-${c[0].hoverAnimation}${"svg+xml"===c[0].subtype?" kb-info-box-image-type-svg":""}`,style:{paddingBottom:isNaN(c[0].height)?void 0:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},containerBackground:{type:"string",default:"#f2f2f2"},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerBorder:{type:"string",default:"#eeeeee"},containerHoverBorder:{type:"string",default:"#eeeeee"},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].subtype&&"svg+xml"===c[0].subtype?c[0].maxWidth:c[0].width,height:c[0].height,className:`${c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"} ${c[0].subtype&&"svg+xml"===c[0].subtype?" kt-info-svg-image":""}`}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?c[0].maxWidth:c[0].flipWidth,height:c[0].flipHeight,className:`${c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"} ${c[0].flipSubtype&&"svg+xml"===c[0].flipSubtype?" kt-info-svg-image":""}`})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:"_blank"===i?i:void 0,rel:"_blank"===i?"noopener noreferrer":void 0,value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},containerBackground:{type:"string",default:"#f2f2f2"},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerBorder:{type:"string",default:"#eeeeee"},containerHoverBorder:{type:"string",default:"#eeeeee"},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:i,rel:"noopener noreferrer",href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:i,rel:"noopener noreferrer",value:v,href:l})))))}},{attributes:{uniqueID:{type:"string",default:""},link:{type:"string",source:"attribute",attribute:"href",selector:"a"},linkProperty:{type:"string",default:"box"},target:{type:"string",source:"attribute",attribute:"target",selector:"a",default:"_self"},hAlign:{type:"string",default:"center"},containerBackground:{type:"string",default:"#f2f2f2"},containerHoverBackground:{type:"string",default:"#f2f2f2"},containerBorder:{type:"string",default:"#eeeeee"},containerHoverBorder:{type:"string",default:"#eeeeee"},containerBorderWidth:{type:"array",default:[0,0,0,0]},containerBorderRadius:{type:"number",default:0},containerPadding:{type:"array",default:[20,20,20,20]},mediaType:{type:"string",default:"icon"},mediaAlign:{type:"string",default:"top"},mediaImage:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",hoverAnimation:"none",flipUrl:"",flipId:"",flipAlt:"",flipWidth:"",flipHeight:""}]},mediaIcon:{type:"array",default:[{icon:"fe_aperture",size:50,width:2,title:"",color:"#444444",hoverColor:"#444444",hoverAnimation:"none",flipIcon:""}]},mediaStyle:{type:"array",default:[{background:"transparent",hoverBackground:"transparent",border:"#444444",hoverBorder:"#444444",borderRadius:0,borderWidth:[0,0,0,0],padding:[10,10,10,10],margin:[0,15,0,15]}]},displayTitle:{type:"bool",default:!0},title:{type:"array",source:"children",selector:"h1,h2,h3,h4,h5,h6",default:Object(o.__)("Title")},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},titleFont:{type:"array",default:[{level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],paddingControl:"linked",margin:[5,0,10,0],marginControl:"individual"}]},displayText:{type:"bool",default:!0},contentText:{type:"array",source:"children",selector:"p",default:Object(o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean diam dolor, accumsan sed rutrum vel, dapibus et leo.")},textColor:{type:"string",default:"#555555"},textHoverColor:{type:"string",default:""},textFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayLearnMore:{type:"bool",default:!1},learnMore:{type:"array",source:"children",selector:".kt-blocks-info-box-learnmore",default:Object(o.__)("Learn More")},learnMoreStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],paddingControl:"individual",margin:[10,0,10,0],marginControl:"individual",color:"",background:"transparent",border:"#555555",borderRadius:0,borderWidth:[0,0,0,0],borderControl:"linked",colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hoverEffect:"revealBorder"}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:0,spread:0,blur:0,hOffset:0,vOffset:0}]},shadowHover:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]}},save:({attributes:e})=>{const{uniqueID:t,link:l,linkProperty:o,target:i,hAlign:n,mediaType:r,mediaImage:c,mediaIcon:s,mediaAlign:d,displayTitle:b,title:m,titleFont:p,displayText:g,contentText:u,displayLearnMore:h,learnMore:v,className:k}=e,y="h"+p[0].level;return Object(a.createElement)("div",{id:"kt-info-box"+t,className:k},"learnmore"!==o&&Object(a.createElement)("a",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`,target:i,href:l},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"span",value:v})))),"learnmore"===o&&Object(a.createElement)("div",{className:`kt-blocks-info-box-link-wrap kt-blocks-info-box-media-align-${d} kt-info-halign-${n}`},Object(a.createElement)("div",{className:"kt-blocks-info-box-media kt-info-media-animate-"+("image"===r?c[0].hoverAnimation:s[0].hoverAnimation)},c[0].url&&"image"===r&&Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic-container",style:{maxWidth:c[0].maxWidth+"px"}},Object(a.createElement)("div",{className:"kadence-info-box-image-intrisic kt-info-animate-"+c[0].hoverAnimation,style:{paddingBottom:c[0].height/c[0].width*100+"%"}},Object(a.createElement)("div",{className:"kadence-info-box-image-inner-intrisic"},Object(a.createElement)("img",{src:c[0].url,alt:c[0].alt,width:c[0].width,height:c[0].height,className:c[0].id?"kt-info-box-image wp-image-"+c[0].id:"kt-info-box-image wp-image-offsite"}),c[0].flipUrl&&"flip"===c[0].hoverAnimation&&Object(a.createElement)("img",{src:c[0].flipUrl,alt:c[0].flipAlt,width:c[0].flipWidth,height:c[0].flipHeight,className:c[0].flipId?"kt-info-box-image-flip wp-image-"+c[0].flipId:"kt-info-box-image-flip wp-image-offsite"})))),"icon"===r&&Object(a.createElement)("div",{className:"kadence-info-box-icon-container kt-info-icon-animate-"+s[0].hoverAnimation},Object(a.createElement)("div",{className:"kadence-info-box-icon-inner-container"},Object(a.createElement)(Je,{className:"kt-info-svg-icon kt-info-svg-icon-"+s[0].icon,name:s[0].icon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].icon.substring(0,2)?s[0].width:void 0,style:{display:"block"}}),s[0].flipIcon&&"flip"===s[0].hoverAnimation&&Object(a.createElement)(Je,{className:"kt-info-svg-icon-flip kt-info-svg-icon-"+s[0].flipIcon,name:s[0].flipIcon,size:s[0].size?s[0].size:"14",htmltag:"span",strokeWidth:"fe"===s[0].flipIcon.substring(0,2)?s[0].width:void 0,style:{display:"block"}})))),Object(a.createElement)("div",{className:"kt-infobox-textcontent"},b&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-title",tagName:y,value:m}),g&&Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-text",tagName:"p",value:u}),h&&Object(a.createElement)("div",{className:"kt-blocks-info-box-learnmore-wrap"},Object(a.createElement)(wd.Content,{className:"kt-blocks-info-box-learnmore",tagName:"a",target:i,value:v,href:l})))))}}]});const{Fragment:xd}=wp.element,{Button:Cd,ButtonGroup:Md,Tooltip:Nd}=wp.components;function Td({label:e,values:t,control:l,onChange:i,onControl:r,controlTypes:c=[{key:"linked",name:Object(o.__)("Linked"),icon:n.linked},{key:"individual",name:Object(o.__)("Individual"),icon:n.individual}],firstIcon:s=n.outlinetop,secondIcon:b=n.outlineright,thirdIcon:m=n.outlinebottom,fourthIcon:p=n.outlineleft}){return[i&&r&&Object(a.createElement)(xd,null,Object(a.createElement)(Md,{className:"kt-size-type-options kt-outline-control","aria-label":Object(o.__)("Color Control Type")},d()(c,({name:e,key:t,icon:o})=>Object(a.createElement)(Nd,{text:e},Object(a.createElement)(Cd,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:l===t,"aria-pressed":l===t,onClick:()=>r(t)},o)))),l&&"individual"!==l&&Object(a.createElement)(xd,null,Object(a.createElement)("p",{className:"kt-setting-label"},e),Object(a.createElement)(Bt,{label:n.linked,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([e,e,e,e])})),l&&"individual"===l&&Object(a.createElement)("div",{className:"kt-border-color-array-control"},Object(a.createElement)("p",{className:"kt-setting-label"},e),Object(a.createElement)(Bt,{label:s,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([e,t[1],t[2],t[3]])}),Object(a.createElement)(Bt,{label:b,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([t[0],e,t[2],t[3]])}),Object(a.createElement)(Bt,{label:m,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([t[0],t[1],e,t[3]])}),Object(a.createElement)(Bt,{label:p,colorValue:t&&t[0]?t[0]:"",colorDefault:"",onColorChange:e=>i([t[0],t[1],t[2],e])})))]}const zd=[],{createBlock:Hd}=wp.blocks,{Component:Bd,Fragment:Id}=wp.element,{TabPanel:Rd,Button:Pd,ButtonGroup:Ad,PanelBody:Ld,Dashicon:Fd,RangeControl:Wd,ToggleControl:Dd,SelectControl:Ud,IconButton:Vd}=wp.components,$d=["kadence/pane"],Gd=Aa()(e=>bl()(e,e=>["kadence/pane",{id:e+1}]));var Zd=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{clientId:l}=t,{__experimentalGetPreviewDeviceType:a}=e("core/edit-post"),{getBlock:o}=e("core/block-editor"),i=o(l);return{accordionBlock:i,realPaneCount:i.innerBlocks.length,getPreviewDevice:a?a():"Desktop"}}),Object(A.withDispatch)((e,{clientId:t},{select:l})=>{const{getBlock:a}=l("core/block-editor"),{removeBlock:o,updateBlockAttributes:i,insertBlock:n}=e("core/block-editor"),r=a(t);return{updatePaneTag(e){bl()(r.innerBlocks.length,t=>{i(r.innerBlocks[t].clientId,{titleTag:e})})},updateFaqSchema(e){bl()(r.innerBlocks.length,t=>{i(r.innerBlocks[t].clientId,{faqSchema:e})})},insertPane(e){n(e,parseInt(r.innerBlocks.length),t)},removePane(e){o(e)}}})])(class extends Bd{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={contentPaddingControl:"linked",contentBorderRadiusControl:"linked",contentBorderControl:"linked",titleBorderControl:"linked",titlePaddingControl:"individual",titleBorderRadiusControl:"linked",titleBorderColorControl:"linked",titleBorderHoverColorControl:"linked",titleBorderActiveColorControl:"linked",titleTag:"div",showPreset:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a)return a;if(void 0!==l&&""!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l)return l;return t}componentDidMount(){if(this.props.attributes.uniqueID)zd.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),zd.push("_"+this.props.clientId.substr(2,9))):zd.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/accordion"]&&"object"==typeof e["kadence/accordion"]&&Object.keys(e["kadence/accordion"]).map(t=>{if("titleTag"===t){const l=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId),a=l[0]?l[0].innerBlocks.length:l.innerBlocks.length;l[0]?bl()(a,a=>{wp.data.dispatch("core/block-editor").updateBlockAttributes(l[0].innerBlocks[a].clientId,{titleTag:e["kadence/accordion"][t]})}):bl()(a,a=>{wp.data.dispatch("core/block-editor").updateBlockAttributes(l.innerBlocks[a].clientId,{titleTag:e["kadence/accordion"][t]})}),this.setState({titleTag:e["kadence/accordion"][t]})}else this.props.attributes[t]=e["kadence/accordion"][t]}),void 0!==e["kadence/pane"]&&"object"==typeof e["kadence/pane"]&&void 0!==e["kadence/pane"].titleTag&&this.setState({titleTag:e["kadence/pane"].titleTag}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),zd.push("_"+this.props.clientId.substr(2,9))}this.props.attributes.titleStyles[0].padding[0]===this.props.attributes.titleStyles[0].padding[1]&&this.props.attributes.titleStyles[0].padding[0]===this.props.attributes.titleStyles[0].padding[2]&&this.props.attributes.titleStyles[0].padding[0]===this.props.attributes.titleStyles[0].padding[3]?this.setState({titlePaddingControl:"linked"}):this.setState({titlePaddingControl:"individual"}),this.props.attributes.titleStyles[0].borderWidth[0]===this.props.attributes.titleStyles[0].borderWidth[1]&&this.props.attributes.titleStyles[0].borderWidth[0]===this.props.attributes.titleStyles[0].borderWidth[2]&&this.props.attributes.titleStyles[0].borderWidth[0]===this.props.attributes.titleStyles[0].borderWidth[3]?this.setState({titleBorderControl:"linked"}):this.setState({titleBorderControl:"individual"}),this.props.attributes.titleStyles[0].borderRadius[0]===this.props.attributes.titleStyles[0].borderRadius[1]&&this.props.attributes.titleStyles[0].borderRadius[0]===this.props.attributes.titleStyles[0].borderRadius[2]&&this.props.attributes.titleStyles[0].borderRadius[0]===this.props.attributes.titleStyles[0].borderRadius[3]?this.setState({titleBorderRadiusControl:"linked"}):this.setState({titleBorderRadiusControl:"individual"}),this.props.attributes.contentBorder[0]===this.props.attributes.contentBorder[1]&&this.props.attributes.contentBorder[0]===this.props.attributes.contentBorder[2]&&this.props.attributes.contentBorder[0]===this.props.attributes.contentBorder[3]?this.setState({contentBorderControl:"linked"}):this.setState({contentBorderControl:"individual"}),this.props.attributes.contentBorderRadius[0]===this.props.attributes.contentBorderRadius[1]&&this.props.attributes.contentBorderRadius[0]===this.props.attributes.contentBorderRadius[2]&&this.props.attributes.contentBorderRadius[0]===this.props.attributes.contentBorderRadius[3]?this.setState({contentBorderRadiusControl:"linked"}):this.setState({contentBorderRadiusControl:"individual"}),this.props.attributes.contentPadding[0]===this.props.attributes.contentPadding[1]&&this.props.attributes.contentPadding[0]===this.props.attributes.contentPadding[2]&&this.props.attributes.contentPadding[0]===this.props.attributes.contentPadding[3]?this.setState({contentPaddingControl:"linked"}):this.setState({contentPaddingControl:"individual"}),this.props.attributes.titleStyles[0].border[0]===this.props.attributes.titleStyles[0].border[1]&&this.props.attributes.titleStyles[0].border[0]===this.props.attributes.titleStyles[0].border[2]&&this.props.attributes.titleStyles[0].border[0]===this.props.attributes.titleStyles[0].border[3]?this.setState({titleBorderColorControl:"linked"}):this.setState({titleBorderColorControl:"individual"}),this.props.attributes.titleStyles[0].borderHover[0]===this.props.attributes.titleStyles[0].borderHover[1]&&this.props.attributes.titleStyles[0].borderHover[0]===this.props.attributes.titleStyles[0].borderHover[2]&&this.props.attributes.titleStyles[0].borderHover[0]===this.props.attributes.titleStyles[0].borderHover[3]?this.setState({titleBorderHoverColorControl:"linked"}):this.setState({titleBorderHoverColorControl:"individual"}),this.props.attributes.titleStyles[0].borderActive[0]===this.props.attributes.titleStyles[0].borderActive[1]&&this.props.attributes.titleStyles[0].borderActive[0]===this.props.attributes.titleStyles[0].borderActive[2]&&this.props.attributes.titleStyles[0].borderActive[0]===this.props.attributes.titleStyles[0].borderActive[3]?this.setState({titleBorderActiveColorControl:"linked"}):this.setState({titleBorderActiveColorControl:"individual"});const e=this.props.accordionBlock;e&&e[0]&&e[0].innerBlocks[0]&&e[0].innerBlocks[0].attributes&&e[0].innerBlocks[0].attributes.titleTag&&this.setState({titleTag:e[0].innerBlocks[0].attributes.titleTag}),e&&e.innerBlocks[0]&&e.innerBlocks[0].attributes&&e.innerBlocks[0].attributes.titleTag&&this.setState({titleTag:e.innerBlocks[0].attributes.titleTag});const t=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==t["kadence/accordion"]&&"object"==typeof t["kadence/accordion"]&&this.setState({settings:t["kadence/accordion"]})}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}render(){const{attributes:{uniqueID:e,paneCount:t,blockAlignment:l,openPane:i,titleStyles:r,contentPadding:c,contentTabletPadding:s,contentMobilePadding:b,contentPaddingType:m,minHeight:p,maxWidth:g,contentBorder:u,contentBorderColor:h,contentBorderRadius:v,contentBgColor:k,titleAlignment:y,startCollapsed:f,faqSchema:O,linkPaneCollapse:j,showIcon:_,iconStyle:S,iconSide:E},className:w,setAttributes:x,clientId:C,realPaneCount:M,accordionBlock:N}=this.props,{titleBorderRadiusControl:T,titleBorderControl:z,titlePaddingControl:H,contentBorderControl:B,contentBorderRadiusControl:I,contentPaddingControl:R,titleBorderColorControl:P,titleBorderHoverColorControl:A,titleBorderActiveColorControl:L,titleTag:F}=this.state,W=[{key:"skip",name:Object(o.__)("Skip"),icon:Object(o.__)("Skip")},{key:"base",name:Object(o.__)("Base"),icon:n.accord01},{key:"highlight",name:Object(o.__)("Highlight"),icon:n.accord02},{key:"subtle",name:Object(o.__)("Subtle"),icon:n.accord03},{key:"bottom",name:Object(o.__)("Bottom Border"),icon:n.accord04}],D=void 0!==m?m:"px",U="em"===D||"rem"===D?12:200,V="em"===D||"rem"===D?.1:1,$=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[0]?c[0]:"",void 0!==s&&void 0!==s[0]?s[0]:"",void 0!==b&&void 0!==b[0]?b[0]:""),G=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[1]?c[1]:"",void 0!==s&&void 0!==s[1]?s[1]:"",void 0!==b&&void 0!==b[1]?b[1]:""),Z=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[2]?c[2]:"",void 0!==s&&void 0!==s[2]?s[2]:"",void 0!==b&&void 0!==b[2]?b[2]:""),q=this.getPreviewSize(this.props.getPreviewDevice,void 0!==c&&void 0!==c[3]?c[3]:"",void 0!==s&&void 0!==s[3]?s[3]:"",void 0!==b&&void 0!==b[3]?b[3]:""),J=void 0!==r[0].paddingType&&""!==r[0].paddingType?r[0].paddingType:"px",K="em"===J||"rem"===J?12:200,Q="em"===J||"rem"===J?.1:1,Y=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[0]?r[0].padding[0]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[0]?r[0].paddingTablet[0]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[0]?r[0].paddingMobile[0]:""),X=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[1]?r[0].padding[1]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[1]?r[0].paddingTablet[1]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[1]?r[0].paddingMobile[1]:""),ee=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[2]?r[0].padding[2]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[2]?r[0].paddingTablet[2]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[2]?r[0].paddingMobile[2]:""),te=this.getPreviewSize(this.props.getPreviewDevice,void 0!==r[0].padding&&void 0!==r[0].padding[3]?r[0].padding[3]:"",void 0!==r[0].paddingTablet&&void 0!==r[0].paddingTablet[3]?r[0].paddingTablet[3]:"",void 0!==r[0].paddingMobile&&void 0!==r[0].paddingMobile[3]?r[0].paddingMobile[3]:""),le=e=>{const t=r.map((t,l)=>(0===l&&(t={...t,...e}),t));x({titleStyles:t})},ae={google:{families:[r[0].family+(r[0].variant?":"+r[0].variant:"")]}},oe=r[0].google?ae:"",ne=al()(w,`kt-accordion-wrap kt-accordion-id${e} kt-accordion-has-${t}-panes kt-accordion-block kt-pane-header-alignment-${y}`),re=Object(a.createElement)(Id,null,Object(a.createElement)(Bt,{label:Object(o.__)("Title Color","kadence-blocks"),colorValue:r[0].color?r[0].color:"",colorDefault:"",onColorChange:e=>le({color:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Title Background","kadence-blocks"),colorValue:r[0].background?r[0].background:"",colorDefault:"",onColorChange:e=>le({background:e})}),Object(a.createElement)(Td,{label:Object(o.__)("Title Border Color"),values:r[0].border,control:P,onChange:e=>le({border:e}),onControl:e=>this.setState({titleBorderColorControl:e})})),ce=Object(a.createElement)(Id,null,Object(a.createElement)(Bt,{label:Object(o.__)("Hover Color","kadence-blocks"),colorValue:r[0].colorHover?r[0].colorHover:"",colorDefault:"",onColorChange:e=>le({colorHover:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Hover Background","kadence-blocks"),colorValue:r[0].backgroundHover?r[0].backgroundHover:"",colorDefault:"",onColorChange:e=>le({backgroundHover:e})}),Object(a.createElement)(Td,{label:Object(o.__)("Hover Border Color"),values:r[0].borderHover,control:A,onChange:e=>le({borderHover:e}),onControl:e=>this.setState({titleBorderHoverColorControl:e})})),se=Object(a.createElement)(Id,null,Object(a.createElement)(Bt,{label:Object(o.__)("Active Color","kadence-blocks"),colorValue:r[0].colorActive?r[0].colorActive:"",colorDefault:"",onColorChange:e=>le({colorActive:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Active Background","kadence-blocks"),colorValue:r[0].backgroundActive?r[0].backgroundActive:"",colorDefault:"",onColorChange:e=>le({backgroundActive:e})}),Object(a.createElement)(Td,{label:Object(o.__)("Active Border Color"),values:r[0].borderActive,control:L,onChange:e=>le({borderActive:e}),onControl:e=>this.setState({titleBorderActiveColorControl:e})})),de=[];de.basic=Object(a.createElement)(Id,null,Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#444"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"})),de.basiccircle=Object(a.createElement)(Id,null,Object(a.createElement)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#fff"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"})),de.xclose=Object(a.createElement)(Id,null,Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#444"}),Object(a.createElement)("path",{d:"M353.5,28.432l-9.887,-9.887l-53.023,53.023l9.887,9.887l53.023,-53.023Z",fill:"#444"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),Object(a.createElement)("path",{d:"M343.613,81.455l9.887,-9.887l-53.023,-53.023l-9.887,9.887l53.023,53.023Z",fill:"#444"})),de.xclosecircle=Object(a.createElement)(Id,null,Object(a.createElement)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#fff"}),Object(a.createElement)("path",{d:"M343.613,81.455l9.887,-9.887l-53.023,-53.023l-9.887,9.887l53.023,53.023Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),Object(a.createElement)("path",{d:"M290.59,71.568l9.887,9.887l53.023,-53.023l-9.887,-9.887l-53.023,53.023Z",fill:"#fff"})),de.arrow=Object(a.createElement)(Id,null,Object(a.createElement)("g",{fill:"#444"},Object(a.createElement)("path",{d:"M122.2,37.371l-9.887,-9.886l-38.887,38.887l9.887,9.887l38.887,-38.888Z"}),Object(a.createElement)("path",{d:"M83.18,76.515l9.887,-9.886l-38.92,-38.921l-9.887,9.887l38.92,38.92Z"})),Object(a.createElement)("g",{fill:"#444"},Object(a.createElement)("path",{d:"M283.65,63.629l9.887,9.886l38.887,-38.887l-9.887,-9.887l-38.887,38.888Z"}),Object(a.createElement)("path",{d:"M322.67,24.485l-9.887,9.886l38.92,38.921l9.887,-9.887l-38.92,-38.92Z"}))),de.arrowcircle=Object(a.createElement)(Id,null,Object(a.createElement)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),Object(a.createElement)("g",{fill:"#fff"},Object(a.createElement)("path",{d:"M122.2,37.371l-9.887,-9.886l-38.887,38.887l9.887,9.887l38.887,-38.888Z"}),Object(a.createElement)("path",{d:"M83.18,76.515l9.887,-9.886l-38.92,-38.921l-9.887,9.887l38.92,38.92Z"})),Object(a.createElement)("g",{fill:"#fff"},Object(a.createElement)("path",{d:"M283.65,63.629l9.887,9.886l38.887,-38.887l-9.887,-9.887l-38.887,38.888Z"}),Object(a.createElement)("path",{d:"M322.67,24.485l-9.887,9.886l38.92,38.921l9.887,-9.887l-38.92,-38.92Z"})));const be=Object(a.createElement)("style",null,`\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header {\n\t\t\t\t\tcolor: ${dn(r[0].color)};\n\t\t\t\t\tborder-color: ${dn(r[0].border[0])} ${dn(r[0].border[1])} ${dn(r[0].border[2])} ${dn(r[0].border[3])};\n\t\t\t\t\tbackground-color: ${dn(r[0].background)};\n\t\t\t\t\t${""!==Y?`padding-top:${Y+J};`:""}\n\t\t\t\t\t${""!==X?`padding-right:${X+J};`:""}\n\t\t\t\t\t${""!==ee?`padding-bottom:${ee+J};`:""}\n\t\t\t\t\t${""!==te?`padding-left:${te+J};`:""}\n\t\t\t\t\tmargin-top:${r[0].marginTop>32?r[0].marginTop:0}px;\n\t\t\t\t\tborder-width:${r[0].borderWidth[0]}px ${r[0].borderWidth[1]}px ${r[0].borderWidth[2]}px ${r[0].borderWidth[3]}px;\n\t\t\t\t\tborder-radius:${r[0].borderRadius[0]}px ${r[0].borderRadius[1]}px ${r[0].borderRadius[2]}px ${r[0].borderRadius[3]}px;\n\t\t\t\t\tfont-size:${r[0].size[0]}${r[0].sizeType};\n\t\t\t\t\tline-height:${r[0].lineHeight[0]}${r[0].lineType};\n\t\t\t\t\tletter-spacing:${r[0].letterSpacing}px;\n\t\t\t\t\ttext-transform:${r[0].textTransform};\n\t\t\t\t\tfont-family:${r[0].family};\n\t\t\t\t\tfont-style:${r[0].style};\n\t\t\t\t\tfont-weight:${r[0].weight};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header .kt-blocks-accordion-title {\n\t\t\t\t\tline-height:${r[0].lineHeight[0]}${r[0].lineType};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header .kt-btn-svg-icon svg {\n\t\t\t\t\twidth:${r[0].size[0]}${r[0].sizeType};\n\t\t\t\t\theight:${r[0].size[0]}${r[0].sizeType};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-accordion-panel-inner {\n\t\t\t\t\t${""!==$?`padding-top:${$+D};`:""}\n\t\t\t\t\t${""!==G?`padding-right:${G+D};`:""}\n\t\t\t\t\t${""!==Z?`padding-bottom:${Z+D};`:""}\n\t\t\t\t\t${""!==q?`padding-left:${q+D};`:""}\n\t\t\t\t\tbackground-color: ${dn(k)};\n\t\t\t\t\tborder-color: ${dn(h)};\n\t\t\t\t\tborder-width:${u[0]}px ${u[1]}px ${u[2]}px ${u[3]}px;\n\t\t\t\t\tborder-radius:${v[0]}px ${v[1]}px ${v[2]}px ${v[3]}px;\n\t\t\t\t\tmin-height:${p?p+"px":"0"};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].color)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].background)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger {\n\t\t\t\t\tbackground-color: ${dn(r[0].color)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e} .kt-blocks-accordion-header:hover {\n\t\t\t\t\tcolor: ${dn(r[0].colorHover)};\n\t\t\t\t\tborder-color: ${dn(r[0].borderHover[0])} ${dn(r[0].borderHover[1])} ${dn(r[0].borderHover[2])} ${dn(r[0].borderHover[3])};\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorHover)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1} .kt-accordion-pane-${i+1} .kt-blocks-accordion-header {\n\t\t\t\t\tcolor: ${dn(r[0].colorActive)};\n\t\t\t\t\tborder-color: ${dn(r[0].borderActive[0])} ${dn(r[0].borderActive[1])} ${dn(r[0].borderActive[2])} ${dn(r[0].borderActive[3])};\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundActive)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basiccircle ):not( .kt-accodion-icon-style-xclosecircle ):not( .kt-accodion-icon-style-arrowcircle ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorActive)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:before, .kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger:after {\n\t\t\t\t\tbackground-color: ${dn(r[0].backgroundActive)};\n\t\t\t\t}\n\t\t\t\t.kt-accordion-${e}.kt-start-active-pane-${i+1}:not( .kt-accodion-icon-style-basic ):not( .kt-accodion-icon-style-xclose ):not( .kt-accodion-icon-style-arrow ) .kt-accordion-pane-${i+1} .kt-blocks-accordion-icon-trigger {\n\t\t\t\t\tbackground-color: ${dn(r[0].colorActive)};\n\t\t\t\t}\n\t\t\t\t`);return Object(a.createElement)(Id,null,be,Object(a.createElement)(ot.BlockControls,null,Object(a.createElement)(ot.BlockAlignmentToolbar,{value:l,controls:["center","wide","full"],onChange:e=>x({blockAlignment:e})}),Object(a.createElement)(ot.AlignmentToolbar,{value:y,onChange:e=>{x({titleAlignment:e})}})),this.showSettings("allSettings")&&Object(a.createElement)(ot.InspectorControls,null,Object(a.createElement)(Ld,null,this.showSettings("paneControl")&&Object(a.createElement)(Id,null,Object(a.createElement)(Dd,{label:Object(o.__)("Panes close when another opens","kadence-blocks"),checked:j,onChange:e=>x({linkPaneCollapse:e})}),Object(a.createElement)(Dd,{label:Object(o.__)("Start with all panes collapsed","kadence-blocks"),checked:f,onChange:e=>x({startCollapsed:e})}),!f&&Object(a.createElement)(Id,null,Object(a.createElement)("h2",null,Object(o.__)("Initial Open Accordion","kadence-blocks")),Object(a.createElement)(Ad,{"aria-label":Object(o.__)("Initial Open Accordion","kadence-blocks")},N&&N[0]&&N[0].innerBlocks&&Object(a.createElement)(Id,null,d()(N[0].innerBlocks,({attributes:e})=>Object(a.createElement)(Pd,{key:e.id-1,className:"kt-init-open-pane",isSmall:!0,isPrimary:i===e.id-1,"aria-pressed":i===e.id-1,onClick:()=>x({openPane:e.id-1})},Object(o.__)("Accordion Pane","kadence-blocks")+" "+e.id))),N&&N.innerBlocks&&Object(a.createElement)(Id,null,d()(N.innerBlocks,({attributes:e})=>Object(a.createElement)(Pd,{key:e.id-1,className:"kt-init-open-pane",isSmall:!0,isPrimary:i===e.id-1,"aria-pressed":i===e.id-1,onClick:()=>x({openPane:e.id-1})},Object(o.__)("Accordion Pane","kadence-blocks")+" "+e.id))))))),this.showSettings("titleColors")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Color Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Rd,{className:"kt-inspect-tabs kt-no-ho-ac-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:Object(o.__)("Normal"),className:"kt-normal-tab"},{name:"hover",title:Object(o.__)("Hover"),className:"kt-hover-tab"},{name:"active",title:Object(o.__)("Active"),className:"kt-active-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?ce:"active"===e.name?se:re),Object(a.createElement)("div",{className:e.className,key:e.className},t)})),this.showSettings("titleIcon")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Trigger Icon","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Dd,{label:Object(o.__)("Show Icon","kadence-blocks"),checked:_,onChange:e=>x({showIcon:e})}),Object(a.createElement)("h2",null,Object(o.__)("Icon Style","kadence-blocks")),Object(a.createElement)(ze.a,{icons:["basic","basiccircle","xclose","xclosecircle","arrow","arrowcircle"],value:S,onChange:e=>x({iconStyle:e}),appendTo:"body",renderFunc:e=>Object(a.createElement)("svg",{className:"accord-icon",viewBox:"0 0 400 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",style:{fill:"#000000"}},de[e]),theme:"accordion",showSearch:!1,noSelectedPlaceholder:Object(o.__)("Select Icon Set","kadence-blocks"),isMulti:!1}),Object(a.createElement)(Ud,{label:Object(o.__)("Icon Side","kadence-blocks"),value:E,options:[{value:"right",label:Object(o.__)("Right")},{value:"left",label:Object(o.__)("Left")}],onChange:e=>x({iconSide:e})})),this.showSettings("titleSpacing")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Spacing","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Pane Title Padding","kadence-blocks"),control:H,tabletControl:H,mobileControl:H,value:r[0].padding,tabletValue:void 0!==r[0].paddingTablet?r[0].paddingTablet:["","","",""],mobileValue:void 0!==r[0].paddingMobile?r[0].paddingMobile:["","","",""],onChange:e=>{le({padding:e})},onChangeTablet:e=>{le({paddingTablet:e})},onChangeMobile:e=>{le({paddingMobile:e})},onChangeControl:e=>this.setState({titlePaddingControl:e}),onChangeTabletControl:e=>this.setState({titlePaddingControl:e}),onChangeMobileControl:e=>this.setState({titlePaddingControl:e}),allowEmpty:!0,min:0,max:K,step:Q,unit:void 0!==r[0].paddingType?r[0].paddingType:"px",units:["px","em","rem","%"],onUnit:e=>{le({paddingType:e})}}),Object(a.createElement)(Wd,{label:Object(o.__)("Pane Spacer Between","kadence-blocks"),value:r[0].marginTop,onChange:e=>le({marginTop:e}),min:1,max:120})),this.showSettings("titleBorder")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Border","kadence-blocks"),initialOpen:!1},Object(a.createElement)(sn,{label:Object(o.__)("Pane Title Border Width (px)","kadence-blocks"),measurement:r[0].borderWidth,control:z,onChange:e=>le({borderWidth:e}),onControl:e=>this.setState({titleBorderControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Pane Title Border Radius (px)","kadence-blocks"),measurement:r[0].borderRadius,control:T,onChange:e=>le({borderRadius:e}),onControl:e=>this.setState({titleBorderRadiusControl:e}),min:0,max:100,step:1,controlTypes:[{key:"linked",name:Object(o.__)("Linked"),icon:n.radiuslinked},{key:"individual",name:Object(o.__)("Individual"),icon:n.radiusindividual}],firstIcon:n.topleft,secondIcon:n.topright,thirdIcon:n.bottomright,fourthIcon:n.bottomleft})),this.showSettings("titleFont")&&Object(a.createElement)(Ld,{title:Object(o.__)("Pane Title Font Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(ie,{fontSize:r[0].size,onFontSize:e=>le({size:e}),fontSizeType:r[0].sizeType,onFontSizeType:e=>le({sizeType:e}),lineHeight:r[0].lineHeight,onLineHeight:e=>le({lineHeight:e}),lineHeightType:r[0].lineType,onLineHeightType:e=>le({lineType:e}),letterSpacing:r[0].letterSpacing,onLetterSpacing:e=>le({letterSpacing:e}),textTransform:r[0].textTransform,onTextTransform:e=>le({textTransform:e}),fontFamily:r[0].family,onFontFamily:e=>le({family:e}),onFontChange:e=>{le({family:e.value,google:e.google})},onFontArrayChange:e=>le(e),googleFont:r[0].google,onGoogleFont:e=>le({google:e}),loadGoogleFont:r[0].loadGoogle,onLoadGoogleFont:e=>le({loadGoogle:e}),fontVariant:r[0].variant,onFontVariant:e=>le({variant:e}),fontWeight:r[0].weight,onFontWeight:e=>le({weight:e}),fontStyle:r[0].style,onFontStyle:e=>le({style:e}),fontSubset:r[0].subset,onFontSubset:e=>le({subset:e})})),this.showSettings("paneContent")&&Object(a.createElement)(Ld,{title:Object(o.__)("Inner Content Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Inner Content Padding","kadence-blocks"),control:R,tabletControl:R,mobileControl:R,value:c,tabletValue:s,mobileValue:b,onChange:e=>{x({contentPadding:e})},onChangeTablet:e=>{x({contentTabletPadding:e})},onChangeMobile:e=>{x({contentMobilePadding:e})},onChangeControl:e=>this.setState({contentPaddingControl:e}),onChangeTabletControl:e=>this.setState({contentPaddingControl:e}),onChangeMobileControl:e=>this.setState({contentPaddingControl:e}),allowEmpty:!0,min:0,max:U,step:V,unit:m,units:["px","em","rem","%"],onUnit:e=>x({contentPaddingType:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Inner Content Background","kadence-blocks"),colorValue:k||"",colorDefault:"",onColorChange:e=>x({contentBgColor:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Inner Content Border Color","kadence-blocks"),colorValue:h||"",colorDefault:"",onColorChange:e=>x({contentBorderColor:e})}),Object(a.createElement)(sn,{label:Object(o.__)("Inner Content Border Width (px)","kadence-blocks"),measurement:u,control:B,onChange:e=>x({contentBorder:e}),onControl:e=>this.setState({contentBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Inner Content Border Radius (px)","kadence-blocks"),measurement:v,control:I,onChange:e=>x({contentBorderRadius:e}),onControl:e=>this.setState({contentBorderRadiusControl:e}),min:0,max:100,step:1,controlTypes:[{key:"linked",name:Object(o.__)("Linked","kadence-blocks"),icon:n.radiuslinked},{key:"individual",name:Object(o.__)("Individual","kadence-blocks"),icon:n.radiusindividual}],firstIcon:n.topleft,secondIcon:n.topright,thirdIcon:n.bottomright,fourthIcon:n.bottomleft})),this.showSettings("titleTag")&&Object(a.createElement)(Ld,{title:Object(o.__)("Title Tag Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Ud,{label:Object(o.__)("Title Tag","kadence-blocks"),value:this.state.titleTag,options:[{value:"div",label:Object(o.__)("div")},{value:"h2",label:Object(o.__)("h2")},{value:"h3",label:Object(o.__)("h3")},{value:"h4",label:Object(o.__)("h4")},{value:"h5",label:Object(o.__)("h5")},{value:"h6",label:Object(o.__)("h6")}],onChange:e=>{this.props.updatePaneTag(e),this.setState({titleTag:e})}})),this.showSettings("structure")&&Object(a.createElement)(Ld,{title:Object(o.__)("Structure Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Wd,{label:Object(o.__)("Content Minimum Height","kadence-blocks"),value:p,onChange:e=>{x({minHeight:e})},min:0,max:1e3}),Object(a.createElement)(Wd,{label:Object(o.__)("Max Width","kadence-blocks"),value:g,onChange:e=>{x({maxWidth:e})},min:0,max:2e3}),Object(a.createElement)(Dd,{label:Object(o.__)("Enable FAQ Schema","kadence-blocks"),checked:O,onChange:e=>{this.props.updateFaqSchema(e),x({faqSchema:e})}}))),Object(a.createElement)("div",{className:ne},this.state.showPreset&&Object(a.createElement)("div",{className:"kt-select-starter-style-tabs"},Object(a.createElement)("div",{className:"kt-select-starter-style-tabs-title"},Object(o.__)("Select Initial Style")),Object(a.createElement)(Ad,{className:"kt-init-tabs-btn-group","aria-label":Object(o.__)("Initial Style","kadence-blocks")},d()(W,({name:e,key:t,icon:l})=>Object(a.createElement)(Pd,{key:t,className:"kt-inital-tabs-style-btn",isSmall:!0,onClick:()=>{(e=>{"skip"===e||("base"===e?x({contentBorder:[0,0,0,0],titleAlignment:"left",showIcon:!0,iconStyle:"basic",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[10,14,10,14],marginTop:0,color:"#555555",background:"#f2f2f2",border:["#555555","#555555","#555555","#555555"],borderRadius:[0,0,0,0],borderWidth:[0,0,0,0],colorHover:"#444444",backgroundHover:"#eeeeee",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#ffffff",backgroundActive:"#444444",borderActive:["#444444","#444444","#444444","#444444"],textTransform:r[0].textTransform}]}):"highlight"===e?x({contentBorder:[0,0,0,0],contentBgColor:"#ffffff",titleAlignment:"left",showIcon:!0,iconStyle:"basic",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[14,16,14,16],marginTop:10,color:"#555555",background:"#f2f2f2",border:["#555555","#555555","#555555","#555555"],borderRadius:[6,6,6,6],borderWidth:[0,0,0,0],colorHover:"#444444",backgroundHover:"#eeeeee",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#ffffff",backgroundActive:"#f3690e",borderActive:["#f3690e","#f3690e","#f3690e","#f3690e"],textTransform:r[0].textTransform}]}):"subtle"===e?x({contentBorder:[0,1,1,1],contentBgColor:"#ffffff",titleAlignment:"left",showIcon:!0,iconStyle:"arrow",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[14,16,14,16],marginTop:10,color:"#444444",background:"#ffffff",border:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],borderRadius:[0,0,0,0],borderWidth:[1,1,1,2],colorHover:"#444444",backgroundHover:"#ffffff",borderHover:["#d4d4d4","#d4d4d4","#d4d4d4","#d4d4d4"],colorActive:"#444444",backgroundActive:"#ffffff",borderActive:["#eeeeee","#eeeeee","#eeeeee","#0e9cd1"],textTransform:r[0].textTransform}]}):"bottom"===e&&x({contentBorder:[0,0,0,0],contentBgColor:"#ffffff",titleAlignment:"left",showIcon:!1,iconStyle:"arrow",iconSide:"right",titleStyles:[{size:r[0].size,sizeType:r[0].sizeType,lineHeight:r[0].lineHeight,lineType:r[0].lineType,letterSpacing:r[0].letterSpacing,family:r[0].family,google:r[0].google,style:r[0].style,weight:r[0].weight,variant:r[0].variant,subset:r[0].subset,loadGoogle:r[0].loadGoogle,padding:[14,10,6,16],marginTop:8,color:"#444444",background:"#ffffff",border:["#f2f2f2","#f2f2f2","#f2f2f2","#f2f2f2"],borderRadius:[0,0,0,0],borderWidth:[0,0,4,0],colorHover:"#444444",backgroundHover:"#ffffff",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#333333",backgroundActive:"#ffffff",borderActive:["#0e9cd1","#0e9cd1","#0e9cd1","#0e9cd1"],textTransform:r[0].textTransform}]}))})(t),this.setState({showPreset:!1})}},l)))),!this.state.showPreset&&Object(a.createElement)(Id,null,Object(a.createElement)("div",{className:"kt-accordion-selecter"},Object(o.__)("Accordion","kadence-blocks")),Object(a.createElement)("div",{className:"kt-accordion-wrap",style:{maxWidth:g+"px"}},r[0].google&&Object(a.createElement)(yl,{config:oe}),Object(a.createElement)("div",{className:`kt-accordion-inner-wrap kt-accordion-${e} kt-start-active-pane-${i+1} kt-accodion-icon-style-${S&&_?S:"none"} kt-accodion-icon-side-${E||"right"}`},Object(a.createElement)(ot.InnerBlocks,{template:Gd(0===M?t:M),templateLock:!1,allowedBlocks:$d}))),Object(a.createElement)("div",{className:"kt-accordion-add-selecter"},Object(a.createElement)(Pd,{className:"kt-accordion-add",isPrimary:!0,onClick:()=>{const e=Hd("kadence/pane",{id:t+1,titleTag:F});x({paneCount:t+1}),this.props.insertPane(e)}},Object(a.createElement)(Fd,{icon:"plus"}),Object(o.__)("Add Accordion Item","kadence-blocks")),M>1&&Object(a.createElement)(Vd,{className:"kt-accordion-remove",label:Object(o.__)("Remove Accordion Item","kadence-blocks"),icon:"minus",onClick:()=>{const e=N[0]?N[0].innerBlocks[M-1].clientId:N.innerBlocks[M-1].clientId;this.props.removePane(e)}})))))}});const{Component:qd}=wp.element;(0,wp.blocks.registerBlockType)("kadence/accordion",{title:Object(o.__)("Accordion","kadence-blocks"),description:Object(o.__)("Create beautiful accordions! Each pane can contain any other block, customize title styles, content background, and borders.","kadence-blocks"),icon:{src:n.accordionBlock},category:"kadence-blocks",keywords:[Object(o.__)("accordion","kadence-blocks"),Object(o.__)("pane","kadence-blocks"),Object(o.__)("KB","kadence-blocks")],supports:{anchor:!0},attributes:{uniqueID:{type:"string",default:""},paneCount:{type:"number",default:2},showPresets:{type:"bool",default:!0},openPane:{type:"number",default:0},startCollapsed:{type:"bool",default:!1},linkPaneCollapse:{type:"bool",default:!0},minHeight:{type:"number",default:""},maxWidth:{type:"number",default:""},contentBgColor:{type:"string",default:""},contentBorderColor:{type:"string",default:"#eeeeee"},contentBorder:{type:"array",default:[0,1,1,1]},contentBorderRadius:{type:"array",default:[0,0,0,0]},contentPadding:{type:"array",default:[20,20,20,20]},contentTabletPadding:{type:"array",default:["","","",""]},contentMobilePadding:{type:"array",default:["","","",""]},contentPaddingType:{type:"string",default:"px"},titleAlignment:{type:"string",default:"left"},blockAlignment:{type:"string",default:"none"},titleStyles:{type:"array",default:[{size:[18,"",""],sizeType:"px",lineHeight:[24,"",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[10,14,10,14],marginTop:8,color:"#555555",background:"#f2f2f2",border:["#555555","#555555","#555555","#555555"],borderRadius:[0,0,0,0],borderWidth:[0,0,0,0],colorHover:"#444444",backgroundHover:"#eeeeee",borderHover:["#eeeeee","#eeeeee","#eeeeee","#eeeeee"],colorActive:"#ffffff",backgroundActive:"#444444",borderActive:["#444444","#444444","#444444","#444444"],textTransform:"",paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px"}]},showIcon:{type:"bool",default:!0},iconStyle:{type:"string",default:"basic"},iconSide:{type:"string",default:"right"},faqSchema:{type:"bool",default:!1}},getEditWrapperProps:function(e){var t=e.blockAlignment;if("full"===t||"wide"===t||"center"===t)return{"data-align":t}},edit:Zd,save:class extends qd{stripStringRender(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}render(){const{attributes:{uniqueID:e,paneCount:t,blockAlignment:l,maxWidth:o,titleAlignment:i,startCollapsed:n,linkPaneCollapse:r,showIcon:c,iconStyle:s,iconSide:d,openPane:b}}=this.props,m=al()("align"+(l||"none")),p=al()(`kt-accordion-wrap kt-accordion-wrap kt-accordion-id${e} kt-accordion-has-${t}-panes kt-active-pane-${b} kt-accordion-block kt-pane-header-alignment-${i} kt-accodion-icon-style-${s&&c?s:"none"} kt-accodion-icon-side-${d||"right"}`);return Object(a.createElement)("div",{className:m},Object(a.createElement)("div",{className:p,style:{maxWidth:o?o+"px":"none"}},Object(a.createElement)("div",{className:"kt-accordion-inner-wrap","data-allow-multiple-open":r?"false":"true","data-start-open":n?"none":b},Object(a.createElement)(ot.InnerBlocks.Content,null))))}}});const{RichText:Jd,InnerBlocks:Kd,InspectorControls:Qd}=wp.blockEditor,{Component:Yd}=wp.element,{PanelBody:Xd,ToggleControl:eb,SelectControl:tb}=wp.components,lb=[],ab=[];var ob=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{clientId:l}=t,{getBlockRootClientId:a,getBlocksByClientId:o}=e("core/block-editor"),i=a(l);return{accordionBlock:o(i),rootID:i}}),Object(A.withDispatch)((e,{clientId:t},{select:l})=>{const{getBlockRootClientId:a}=l("core/block-editor"),{updateBlockAttributes:o}=e("core/block-editor"),i=a(t);return{updatePaneCount(e){o(i,{paneCount:e})}}})])(class extends Yd{componentDidMount(){if(this.props.attributes.uniqueID?lb.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),lb.push("_"+this.props.clientId.substr(2,9))):lb.push(this.props.attributes.uniqueID):(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),lb.push("_"+this.props.clientId.substr(2,9))),this.props.attributes.id){if(void 0===ab[this.props.rootID])ab[this.props.rootID]=[this.props.attributes.id];else if(void 0!==ab[this.props.rootID])if(ab[this.props.rootID].includes(this.props.attributes.id)){const e=this.props.accordionBlock[0].attributes.paneCount+1;this.props.setAttributes({id:e}),this.props.updatePaneCount(e),ab[this.props.rootID].push(e)}else ab[this.props.rootID].push(this.props.attributes.id)}else{const e=this.props.accordionBlock[0].attributes.paneCount+1;this.props.setAttributes({id:e}),void 0===ab[this.props.rootID]?(ab.push(this.props.rootID),ab[this.props.rootID].push(e)):void 0!==ab[this.props.rootID]&&ab[this.props.rootID].push(e),this.props.updatePaneCount(e)}}render(){const{attributes:{id:e,uniqueID:t,title:l,icon:i,iconSide:n,hideLabel:r,titleTag:c},setAttributes:s}=this.props,d=c||"div";return Object(a.createElement)("div",{className:`kt-accordion-pane kt-accordion-pane-${e} kt-pane${t}`},Object(a.createElement)(Qd,null,Object(a.createElement)(Xd,{title:Object(o.__)("Title Icon Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Xe,{value:i,onChange:e=>s({icon:e})}),Object(a.createElement)(tb,{label:Object(o.__)("Icon Side","kadence-blocks"),value:n,options:[{value:"right",label:Object(o.__)("Right","kadence-blocks")},{value:"left",label:Object(o.__)("Left","kadence-blocks")}],onChange:e=>s({iconSide:e})}),Object(a.createElement)(eb,{label:Object(o.__)("Show only Icon","kadence-blocks"),checked:r,onChange:e=>s({hideLabel:e})}))),Object(a.createElement)(d,{className:"kt-accordion-header-wrap"},Object(a.createElement)("div",{className:"kt-blocks-accordion-header kt-acccordion-button-label-"+(r?"hide":"show")},Object(a.createElement)("div",{className:"kt-blocks-accordion-title-wrap"},i&&"left"===n&&Object(a.createElement)(Je,{className:`kt-btn-svg-icon kt-btn-svg-icon-${i} kt-btn-side-${n}`,name:i}),Object(a.createElement)(Jd,{className:"kt-blocks-accordion-title",tagName:"div",placeholder:Object(o.__)("Add Title","kadence-blocks"),onChange:e=>s({title:e}),value:l,keepPlaceholderOnFocus:!0}),i&&"right"===n&&Object(a.createElement)(Je,{className:`kt-btn-svg-icon kt-btn-svg-icon-${i} kt-btn-side-${n}`,name:i})),Object(a.createElement)("div",{className:"kt-blocks-accordion-icon-trigger"}))),Object(a.createElement)("div",{className:"kt-accordion-panel"},Object(a.createElement)("div",{className:"kt-accordion-panel-inner"},Object(a.createElement)(Kd,{templateLock:!1}))))}}),ib=wp.blockEditor,nb=ib.RichText,rb=ib.InnerBlocks;(0,wp.blocks.registerBlockType)("kadence/pane",{title:Object(o.__)("Pane","kadence-blocks"),icon:n.accordionBlock,category:"kadence-blocks",parent:["kadence/accordion"],attributes:{id:{type:"number",default:1},title:{type:"array",source:"children",selector:".kt-blocks-accordion-title",default:""},titleTag:{type:"string",default:"div"},hideLabel:{type:"bool",default:!1},icon:{type:"string",default:""},iconSide:{type:"string",default:"right"},uniqueID:{type:"string",default:""},faqSchema:{type:"bool",default:!1}},supports:{inserter:!1,reusable:!1,html:!1,anchor:!0},getEditWrapperProps:function(e){return{"data-pane":e.id}},edit:ob,save:function(e){var t=e.attributes,l=t.id,o=t.uniqueID,i=t.title,n=t.icon,r=t.iconSide,c=t.hideLabel,s=t.titleTag||"div";return Object(a.createElement)("div",{className:"kt-accordion-pane kt-accordion-pane-".concat(l," kt-pane").concat(o)},Object(a.createElement)(s,{className:"kt-accordion-header-wrap"},Object(a.createElement)("button",{className:"kt-blocks-accordion-header kt-acccordion-button-label-".concat(c?"hide":"show")},Object(a.createElement)("span",{className:"kt-blocks-accordion-title-wrap"},n&&"left"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n}),Object(a.createElement)(nb.Content,{className:"kt-blocks-accordion-title",tagName:"span",value:i}),n&&"right"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n})),Object(a.createElement)("span",{className:"kt-blocks-accordion-icon-trigger"}))),Object(a.createElement)("div",{className:"kt-accordion-panel"},Object(a.createElement)("div",{className:"kt-accordion-panel-inner"},Object(a.createElement)(rb.Content,null))))},deprecated:[{attributes:{id:{type:"number",default:1},title:{type:"array",source:"children",selector:".kt-blocks-accordion-title",default:""},titleTag:{type:"string",default:"div"},hideLabel:{type:"bool",default:!1},icon:{type:"string",default:""},iconSide:{type:"string",default:"right"},uniqueID:{type:"string",default:""}},save:function(e){var t=e.attributes,l=t.id,o=t.uniqueID,i=t.title,n=t.icon,r=t.iconSide,c=t.hideLabel,s=t.titleTag||"div";return Object(a.createElement)("div",{className:"kt-accordion-pane kt-accordion-pane-".concat(l," kt-pane").concat(o)},Object(a.createElement)(s,{className:"kt-accordion-header-wrap"},Object(a.createElement)("button",{className:"kt-blocks-accordion-header kt-acccordion-button-label-".concat(c?"hide":"show")},Object(a.createElement)("div",{className:"kt-blocks-accordion-title-wrap"},n&&"left"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n}),Object(a.createElement)(nb.Content,{className:"kt-blocks-accordion-title",tagName:"span",value:i}),n&&"right"===r&&Object(a.createElement)(Je,{className:"kt-btn-svg-icon kt-btn-svg-icon-".concat(n," kt-btn-side-").concat(r),name:n})),Object(a.createElement)("div",{className:"kt-blocks-accordion-icon-trigger"}))),Object(a.createElement)("div",{className:"kt-accordion-panel"},Object(a.createElement)("div",{className:"kt-accordion-panel-inner"},Object(a.createElement)(rb.Content,null))))}}]});const{InspectorControls:cb,RichText:sb,BlockControls:db,BlockAlignmentToolbar:bb}=wp.blockEditor,{Component:mb,Fragment:pb,findDOMNode:gb}=wp.element,{PanelBody:ub,RangeControl:hb,ButtonGroup:vb,Tooltip:kb,IconButton:yb,Button:fb,SelectControl:Ob}=wp.components,jb=[];var _b=Object(v.compose)([Object(A.withDispatch)((e,{clientId:t,rootClientId:l})=>{const{removeBlock:a}=e("core/block-editor");return{onDelete:()=>{a(t,l)}}})])(class extends mb{constructor(){super(...arguments),this.showSettings=this.showSettings.bind(this),this.saveListItem=this.saveListItem.bind(this),this.onSelectItem=this.onSelectItem.bind(this),this.onMove=this.onMove.bind(this),this.onMoveDown=this.onMoveDown.bind(this),this.onMoveUp=this.onMoveUp.bind(this),this.state={focusIndex:null,settings:{},marginControl:"individual",user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin"}}componentDidMount(){if(this.props.attributes.uniqueID)jb.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),jb.push("_"+this.props.clientId.substr(2,9))):jb.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/iconlist"]&&"object"==typeof e["kadence/iconlist"]&&Object.keys(e["kadence/iconlist"]).map(t=>{this.props.attributes[t]="items"===t?this.props.attributes[t].map((l,a)=>(l.icon=e["kadence/iconlist"][t][0].icon,l.size=e["kadence/iconlist"][t][0].size,l.color=e["kadence/iconlist"][t][0].color,l.background=e["kadence/iconlist"][t][0].background,l.border=e["kadence/iconlist"][t][0].border,l.borderRadius=e["kadence/iconlist"][t][0].borderRadius,l.padding=e["kadence/iconlist"][t][0].padding,l.borderWidth=e["kadence/iconlist"][t][0].borderWidth,l.style=e["kadence/iconlist"][t][0].style,l)):e["kadence/iconlist"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),jb.push("_"+this.props.clientId.substr(2,9))}void 0!==this.props.attributes.listMargin&&void 0!==this.props.attributes.listMargin[0]&&this.props.attributes.listMargin[0]===this.props.attributes.listMargin[1]&&this.props.attributes.listMargin[0]===this.props.attributes.listMargin[2]&&this.props.attributes.listMargin[0]===this.props.attributes.listMargin[3]?this.setState({marginControl:"linked"}):this.setState({marginControl:"individual"});const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/iconlist"]&&"object"==typeof e["kadence/iconlist"]&&this.setState({settings:e["kadence/iconlist"]})}componentDidUpdate(e){!this.props.isSelected&&e.isSelected&&this.setState({focusIndex:null})}onSelectItem(e){return()=>{this.state.focusIndex!==e&&this.setState({focusIndex:e})}}onMove(e,t){const l=[...this.props.attributes.items];l.splice(t,1,this.props.attributes.items[e]),l.splice(e,1,this.props.attributes.items[t]),this.setState({focusIndex:t}),this.props.setAttributes({items:l})}onMoveDown(e){return()=>{e!==this.props.attributes.items.length-1&&this.onMove(e,e+1)}}onMoveUp(e){return()=>{0!==e&&this.onMove(e,e-1)}}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}saveListItem(e,t){const l=this.props.attributes.items.map((l,a)=>(a===t&&(l={...l,...e}),l));this.props.setAttributes({items:l})}render(){const{attributes:{listCount:e,items:t,listStyles:l,columns:i,listLabelGap:r,listGap:c,blockAlignment:s,uniqueID:b,listMargin:m,iconAlign:p},attributes:g,className:u,setAttributes:h,isSelected:v}=this.props,{marginControl:k}=this.state,y={google:{families:[l[0].family+(l[0].variant?":"+l[0].variant:"")]}},f=l[0].google?y:"",O=e=>{const t=l.map((t,l)=>(0===l&&(t={...t,...e}),t));h({listStyles:t})},j=e=>{const l=t.map((t,l)=>({...t,...e}));h({items:l})},_=[{key:"top",name:Object(o.__)("Top","kadence-blocks"),icon:n.aligntop},{key:"middle",name:Object(o.__)("Middle","kadence-blocks"),icon:n.alignmiddle},{key:"bottom",name:Object(o.__)("Bottom","kadence-blocks"),icon:n.alignbottom}],S=(e,t)=>{e&&void 0!==e[0]&&void 0!==e[0].attributes&&e[0].attributes.content&&this.saveListItem({text:e[0].attributes.content},t)},E=(e,t)=>{const l=Math.abs(this.props.attributes.listCount);if(1===l)this.props.onDelete();else{const e=Math.abs(l-1),a=Hl()(this.props.attributes.items,(e,l)=>t!==l),o=Math.abs(t-1);this.setState({focusIndex:o}),h({items:a,listCount:e})}},w=(e,t,l)=>{const a=t.replace(e,""),o=Math.abs(1+this.props.attributes.listCount),i=this.props.attributes.items,n=[{icon:i[0].icon,link:i[0].link,target:i[0].target,size:i[0].size,text:i[0].text,width:i[0].width,color:i[0].color,background:i[0].background,border:i[0].border,borderRadius:i[0].borderRadius,borderWidth:i[0].borderWidth,padding:i[0].padding,style:i[0].style}],r=Math.abs(l+1);bl()(o,t=>{let o=t;0===t?0===l&&(n[0].text=a):t===r?n.push({icon:i[l].icon,link:i[l].link,target:i[l].target,size:i[l].size,text:e,width:i[l].width,color:i[l].color,background:i[l].background,border:i[l].border,borderRadius:i[l].borderRadius,borderWidth:i[l].borderWidth,padding:i[l].padding,style:i[l].style}):t===l?n.push({icon:i[l].icon,link:i[l].link,target:i[l].target,size:i[l].size,text:a,width:i[l].width,color:i[l].color,background:i[l].background,border:i[l].border,borderRadius:i[l].borderRadius,borderWidth:i[l].borderWidth,padding:i[l].padding,style:i[l].style}):(t>r&&(o=Math.abs(t-1)),n.push({icon:i[o].icon,link:i[o].link,target:i[o].target,size:i[o].size,text:i[o].text,width:i[o].width,color:i[o].color,background:i[o].background,border:i[o].border,borderRadius:i[o].borderRadius,borderWidth:i[o].borderWidth,padding:i[o].padding,style:i[o].style}))}),h({items:n}),h({listCount:o}),this.setState({focusIndex:r}),x(r)},x=e=>{setTimeout((function(){document.querySelector(`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-${e}`)&&document.querySelector(`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-${e}`).querySelector(".rich-text").focus()}),100)},C=e=>{if(v&&this.state.focusIndex===e&&kadence_blocks_params.dynamic_enabled)return Object(a.createElement)(ja,Be()({dynamicAttribute:"items:"+e+":text"},this.props))},M=l=>Object(a.createElement)(ub,{title:Object(o.__)("Item","kadence-blocks")+" "+(l+1)+" "+Object(o.__)("Settings","kadence-blocks"),initialOpen:1===e},Object(a.createElement)(ka,Be()({label:Object(o.__)("Link","kadence-blocks"),url:t[l].link,onChangeUrl:e=>{this.saveListItem({link:e},l)},additionalControls:!0,opensInNewTab:!(!t[l].target||"_blank"!=t[l].target),onChangeTarget:e=>{e?this.saveListItem({target:"_blank"},l):this.saveListItem({target:"_self"},l)},dynamicAttribute:"items:"+l+":link"},this.props)),Object(a.createElement)(Xe,{value:t[l].icon,onChange:e=>{this.saveListItem({icon:e},l)}}),Object(a.createElement)(hb,{label:Object(o.__)("Icon Size"),value:t[l].size,onChange:e=>{this.saveListItem({size:e},l)},min:5,max:250}),t[l].icon&&"fe"===t[l].icon.substring(0,2)&&Object(a.createElement)(hb,{label:Object(o.__)("Line Width"),value:t[l].width,onChange:e=>{this.saveListItem({width:e},l)},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color"),colorValue:t[l].color?t[l].color:"",colorDefault:"",onColorChange:e=>{this.saveListItem({color:e},l)}}),Object(a.createElement)(Ob,{label:Object(o.__)("Icon Style"),value:t[l].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:e=>{this.saveListItem({style:e},l)}}),"default"!==t[l].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background"),colorValue:t[l].background?t[l].background:"",colorDefault:"",onColorChange:e=>{this.saveListItem({background:e},l)}}),"default"!==t[l].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:t[l].border?t[l].border:"",colorDefault:"",onColorChange:e=>{this.saveListItem({border:e},l)}}),"default"!==t[l].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Size (px)"),value:t[l].borderWidth,onChange:e=>{this.saveListItem({borderWidth:e},l)},min:0,max:20}),"default"!==t[l].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Radius (%)"),value:t[l].borderRadius,onChange:e=>{this.saveListItem({borderRadius:e},l)},min:0,max:50}),"default"!==t[l].style&&Object(a.createElement)(hb,{label:Object(o.__)("Padding (px)"),value:t[l].padding,onChange:e=>{this.saveListItem({padding:e},l)},min:0,max:180})),N=Object(a.createElement)("div",null,bl()(e,e=>M(e))),T=(Object(a.createElement)("div",null,bl()(e,e=>C(e))),l=>Object(a.createElement)("div",{className:`kt-svg-icon-list-style-${t[l].style} kt-svg-icon-list-item-wrap kt-svg-icon-list-item-${l}`},t[l].icon&&Object(a.createElement)(Je,{className:"kt-svg-icon-list-single kt-svg-icon-list-single-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}),Object(a.createElement)(sb,{tagName:"div",value:t[l].text,onChange:e=>{this.saveListItem({text:e},l)},onSplit:e=>w(e||"",t[l].text,l),onRemove:e=>{E(0,l)},unstableOnFocus:this.onSelectItem(l),onReplace:e=>{S(e,l)},className:"kt-svg-icon-list-text"}),Object(a.createElement)("div",{className:"kadence-blocks-list-item__control-menu"},Object(a.createElement)(fb,{icon:"arrow-up",onClick:0===l?void 0:this.onMoveUp(l),className:"kadence-blocks-list-item__move-up",label:Object(o.__)("Move Item Up","kadence-blocks"),"aria-disabled":0===l,disabled:!this.state.focusIndex===l}),Object(a.createElement)(fb,{icon:"arrow-down",onClick:l+1===e?void 0:this.onMoveDown(l),className:"kadence-blocks-list-item__move-down",label:Object(o.__)("Move Item Down","kadence-blocks"),"aria-disabled":l+1===e,disabled:!this.state.focusIndex===l}),Object(a.createElement)(fb,{icon:"no-alt",onClick:()=>E(0,l),className:"kadence-blocks-list-item__remove",label:Object(o.__)("Remove Item","kadence-blocks"),disabled:!this.state.focusIndex===l}))));return Object(a.createElement)("div",{className:u},Object(a.createElement)(db,null,Object(a.createElement)(bb,{value:s,controls:["center","left","right"],onChange:e=>h({blockAlignment:e})})),this.showSettings("allSettings")&&Object(a.createElement)(cb,null,Object(a.createElement)(ub,{title:Object(o.__)("List Controls"),initialOpen:!0},Object(a.createElement)(qn,{label:Object(o.__)("Number of Items"),value:e,onChange:e=>{const l=t;if(l.length<e){const a=Math.abs(e-l.length);bl()(a,e=>{l.push({icon:l[0].icon,link:l[0].link,target:l[0].target,size:l[0].size,width:l[0].width,color:l[0].color,background:l[0].background,border:l[0].border,borderRadius:l[0].borderRadius,borderWidth:l[0].borderWidth,padding:l[0].padding,style:l[0].style})}),h({items:l}),this.saveListItem({size:t[0].size},0)}h({listCount:e})},min:1,max:40,step:1}),this.showSettings("column")&&Object(a.createElement)(hb,{label:Object(o.__)("List Columns"),value:i,onChange:e=>{h({columns:e})},min:1,max:3}),this.showSettings("spacing")&&Object(a.createElement)(pb,null,Object(a.createElement)(hb,{label:Object(o.__)("List Vertical Spacing"),value:c,onChange:e=>{h({listGap:e})},min:0,max:60}),Object(a.createElement)(hb,{label:Object(o.__)("List Horizontal Icon and Label Spacing"),value:r,onChange:e=>{h({listLabelGap:e})},min:0,max:60}),Object(a.createElement)("div",{className:"kt-btn-size-settings-container"},Object(a.createElement)("h2",{className:"kt-beside-btn-group"},Object(o.__)("Icon Align")),Object(a.createElement)(vb,{className:"kt-button-size-type-options","aria-label":Object(o.__)("Icon Align")},d()(_,({name:e,icon:t,key:l})=>Object(a.createElement)(kb,{text:e},Object(a.createElement)(fb,{key:l,className:"kt-btn-size-btn",isSmall:!0,isPrimary:p===l,"aria-pressed":p===l,onClick:()=>h({iconAlign:l})},t))))),Object(a.createElement)(sn,{label:Object(o.__)("List Margin"),measurement:void 0!==m?m:[0,0,10,0],control:k,onChange:e=>h({listMargin:e}),onControl:e=>this.setState({marginControl:e}),min:-200,max:200,step:1}))),this.showSettings("textStyle")&&Object(a.createElement)(ub,{title:Object(o.__)("List Text Styling"),initialOpen:!1},Object(a.createElement)(Bt,{label:Object(o.__)("Color Settings"),colorValue:l[0].color?l[0].color:"",colorDefault:"",onColorChange:e=>{O({color:e})}}),Object(a.createElement)(ie,{fontSize:l[0].size,onFontSize:e=>O({size:e}),fontSizeType:l[0].sizeType,onFontSizeType:e=>O({sizeType:e}),lineHeight:l[0].lineHeight,onLineHeight:e=>O({lineHeight:e}),lineHeightType:l[0].lineType,onLineHeightType:e=>O({lineType:e}),letterSpacing:l[0].letterSpacing,onLetterSpacing:e=>O({letterSpacing:e}),fontFamily:l[0].family,onFontFamily:e=>O({family:e}),onFontChange:e=>{O({family:e.value,google:e.google})},onFontArrayChange:e=>O(e),googleFont:l[0].google,onGoogleFont:e=>O({google:e}),loadGoogleFont:l[0].loadGoogle,onLoadGoogleFont:e=>O({loadGoogle:e}),fontVariant:l[0].variant,onFontVariant:e=>O({variant:e}),fontWeight:l[0].weight,onFontWeight:e=>O({weight:e}),fontStyle:l[0].style,onFontStyle:e=>O({style:e}),fontSubset:l[0].subset,onFontSubset:e=>O({subset:e}),textTransform:l[0].textTransform,onTextTransform:e=>O({textTransform:e})})),this.showSettings("joinedIcons")&&Object(a.createElement)(ub,{title:Object(o.__)("Edit All Icon Styles Together"),initialOpen:!1},Object(a.createElement)("p",null,Object(o.__)("PLEASE NOTE: This will override individual list item settings.")),Object(a.createElement)(Xe,{value:t[0].icon,onChange:e=>{e!==t[0].icon&&j({icon:e})}}),Object(a.createElement)(hb,{label:Object(o.__)("Icon Size"),value:t[0].size,onChange:e=>{j({size:e})},min:5,max:250}),t[0].icon&&"fe"===t[0].icon.substring(0,2)&&Object(a.createElement)(hb,{label:Object(o.__)("Line Width"),value:t[0].width,onChange:e=>{j({width:e})},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color"),colorValue:t[0].color?t[0].color:"",colorDefault:"",onColorChange:e=>{j({color:e})}}),Object(a.createElement)(Ob,{label:Object(o.__)("Icon Style"),value:t[0].style,options:[{value:"default",label:Object(o.__)("Default")},{value:"stacked",label:Object(o.__)("Stacked")}],onChange:e=>{j({style:e})}}),"default"!==t[0].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background"),colorValue:t[0].background?t[0].background:"",colorDefault:"",onColorChange:e=>{j({background:e})}}),"default"!==t[0].style&&Object(a.createElement)(Bt,{label:Object(o.__)("Border Color"),colorValue:t[0].border?t[0].border:"",colorDefault:"",onColorChange:e=>{j({border:e})}}),"default"!==t[0].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Size (px)"),value:t[0].borderWidth,onChange:e=>{j({borderWidth:e})},min:0,max:20}),"default"!==t[0].style&&Object(a.createElement)(hb,{label:Object(o.__)("Border Radius (%)"),value:t[0].borderRadius,onChange:e=>{j({borderRadius:e})},min:0,max:50}),"default"!==t[0].style&&Object(a.createElement)(hb,{label:Object(o.__)("Padding (px)"),value:t[0].padding,onChange:e=>{j({padding:e})},min:0,max:180})),Object(a.createElement)("div",{className:"kt-sidebar-settings-spacer"}),this.showSettings("individualIcons")&&Object(a.createElement)(ub,{title:Object(o.__)("Individual list Item Settings","kadence-blocks"),initialOpen:!1},N)),Object(a.createElement)("style",null,`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-wrap:not(:last-child) { margin-bottom: ${c}px; }`,`body:not(.rtl) .kt-svg-icon-list-items${b} .kt-svg-icon-list-single { margin-right: ${r}px; }`,`body.rtl .kt-svg-icon-list-items${b} .kt-svg-icon-list-single { margin-left: ${r}px; }`,`.kt-svg-icon-list-items${b} .kt-svg-icon-list-item-wrap {\n\t\t\t\t\t\t\tfont-weight: ${l[0].weight?l[0].weight:""};\n\t\t\t\t\t\t\tfont-style: ${l[0].style?l[0].style:""};\n\t\t\t\t\t\t\tcolor: ${l[0].color?dn(l[0].color):""};\n\t\t\t\t\t\t\tfont-size: ${l[0].size&&l[0].size[0]?l[0].size[0]+l[0].sizeType:""};\n\t\t\t\t\t\t\tline-height: ${l[0].lineHeight&&l[0].lineHeight[0]?l[0].lineHeight[0]+l[0].lineType:""};\n\t\t\t\t\t\t\tletter-spacing: ${l[0].letterSpacing?l[0].letterSpacing+"px":""};\n\t\t\t\t\t\t\tfont-family: ${l[0].family?l[0].family:""};\n\t\t\t\t\t\t\ttext-transform: ${l[0].textTransform?l[0].textTransform:""};\n\t\t\t\t\t\t}`),l[0].google&&Object(a.createElement)(yl,{config:f}),Object(a.createElement)("div",{ref:this.container,className:`kt-svg-icon-list-container kt-svg-icon-list-items${b} kt-svg-icon-list-columns-${i}${void 0!==p&&"middle"!==p?" kt-list-icon-align"+p:""}`,style:{margin:m&&void 0!==m[0]&&null!==m[0]?m[0]+"px "+m[1]+"px "+m[2]+"px "+m[3]+"px":""}},bl()(e,e=>T(e)),v&&Object(a.createElement)(pb,null,Object(a.createElement)(fb,{isDefault:!0,icon:Ma.a,onClick:()=>{const l=t,a=e+1;if(l.length<a){const e=Math.abs(a-l.length);bl()(e,e=>{l.push({icon:l[0].icon,link:l[0].link,target:l[0].target,size:l[0].size,width:l[0].width,color:l[0].color,background:l[0].background,border:l[0].border,borderRadius:l[0].borderRadius,borderWidth:l[0].borderWidth,padding:l[0].padding,style:l[0].style})}),h({items:l}),this.saveListItem({size:t[0].size},0)}h({listCount:a})},label:Object(o.__)("Add List Item","kadence-blocks")}))))}});const{registerBlockType:Sb,createBlock:Eb,getBlockAttributes:wb}=wp.blocks,{RichText:xb}=wp.blockEditor,{replace:Cb,join:Mb,split:Nb,create:Tb,toHTMLString:zb,LINE_SEPARATOR:Hb,__UNSTABLE_LINE_SEPARATOR:Bb}=wp.richText,{Fragment:Ib}=wp.element,Rb=Hb||Bb;Sb("kadence/iconlist",{title:Object(o.__)("Icon List","kadence-blocks"),icon:{src:n.iconlistBlock},description:Object(o.__)("Create engaging lists with icons for bullets.","kadence-blocks"),category:"kadence-blocks",keywords:[Object(o.__)("icon","kadence-blocks"),Object(o.__)("list","kadence-blocks"),"KB"],supports:{ktdynamic:!0},attributes:{items:{type:"array",default:[{icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:"",color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"}]},listStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",textTransform:""}]},listCount:{type:"number",default:1},columns:{type:"number",default:1},listGap:{type:"number",default:5},listLabelGap:{type:"number",default:10},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"none"},listMargin:{type:"array",default:[0,0,10,0]},iconAlign:{type:"string",default:"middle"}},transforms:{from:[{type:"block",blocks:["core/list"],transform:({values:e})=>{const t=Nb(Tb({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),Rb),l=[{icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:zb({value:t[0]}),color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"}],a=Math.abs(t.length);return bl()(a,e=>{0!==e&&l.push({icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:zb({value:t[e]}),color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"})}),Eb("kadence/iconlist",{items:l,listCount:a})}}],to:[{type:"block",blocks:["core/list"],transform:e=>Eb("core/list",{values:zb({value:Mb(e.items.map(({text:e})=>Tb({html:e})),Rb),multilineTag:"li"})})}]},getEditWrapperProps({blockAlignment:e}){if("left"===e||"right"===e||"center"===e)return{"data-align":e}},edit:_b,save:e=>{const{attributes:{items:t,listCount:l,columns:o,blockAlignment:i,iconAlign:n,uniqueID:r}}=e;return Object(a.createElement)("div",{className:`kt-svg-icon-list-items kt-svg-icon-list-items${r} kt-svg-icon-list-columns-${o} align${i||"none"}${void 0!==n&&"middle"!==n?" kt-list-icon-align"+n:""}`},Object(a.createElement)("ul",{className:"kt-svg-icon-list"},bl()(l,e=>{return l=e,Object(a.createElement)("li",{className:`kt-svg-icon-list-style-${t[l].style} kt-svg-icon-list-item-wrap kt-svg-icon-list-item-${l}`},t[l].icon&&t[l].link&&Object(a.createElement)("a",{href:t[l].link,className:"kt-svg-icon-link",target:"_blank"===t[l].target?t[l].target:void 0,rel:"_blank"===t[l].target?"noopener noreferrer":void 0},Object(a.createElement)(Je,{className:"kt-svg-icon-list-single kt-svg-icon-list-single-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0}}),Object(a.createElement)(xb.Content,{tagName:"span",value:t[l].text,className:"kt-svg-icon-list-text"})),t[l].icon&&!t[l].link&&Object(a.createElement)(Ib,null,Object(a.createElement)(Je,{className:"kt-svg-icon-list-single kt-svg-icon-list-single-"+t[l].icon,name:t[l].icon,size:t[l].size,strokeWidth:"fe"===t[l].icon.substring(0,2)?t[l].width:void 0,style:{color:t[l].color?dn(t[l].color):void 0,backgroundColor:t[l].background&&"default"!==t[l].style?dn(t[l].background):void 0,padding:t[l].padding&&"default"!==t[l].style?t[l].padding+"px":void 0,borderColor:t[l].border&&"default"!==t[l].style?dn(t[l].border):void 0,borderWidth:t[l].borderWidth&&"default"!==t[l].style?t[l].borderWidth+"px":void 0,borderRadius:t[l].borderRadius&&"default"!==t[l].style?t[l].borderRadius+"%":void 0,marginTop:t[l].marginTop?t[l].marginTop+"px":void 0,marginRight:t[l].marginRight?t[l].marginRight+"px":void 0,marginBottom:t[l].marginBottom?t[l].marginBottom+"px":void 0,marginLeft:t[l].marginLeft?t[l].marginLeft+"px":void 0}}),Object(a.createElement)(xb.Content,{tagName:"span",value:t[l].text,className:"kt-svg-icon-list-text"})));var l})))}});var Pb={uniqueID:{type:"string",default:""},style:{type:"string",default:"basic"},layout:{type:"string",default:"grid"},columns:{type:"array",default:[1,1,1,1,1,1]},columnControl:{type:"string",default:"linked"},columnGap:{type:"number",default:30},autoPlay:{type:"bool",default:!1},autoSpeed:{type:"number",default:7e3},transSpeed:{type:"number",default:400},slidesScroll:{type:"string",default:"1"},arrowStyle:{type:"string",default:"whiteondark"},dotStyle:{type:"string",default:"dark"},hAlign:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:500},containerBackground:{type:"string",default:""},containerBackgroundOpacity:{type:"number",default:1},containerBorder:{type:"string",default:"#eeeeee"},containerBorderOpacity:{type:"number",default:1},containerBorderWidth:{type:"array",default:["","","",""]},containerBorderRadius:{type:"number",default:""},containerPadding:{type:"array",default:[20,20,20,20]},testimonials:{type:"array",default:[{url:"",id:"",alt:"",width:"",height:"",maxWidth:"",subtype:"",media:"image",icon:"fas_quote-left",isize:50,istroke:2,ititle:"",color:"#555555",title:"",content:"",name:"",occupation:"",rating:5}]},mediaStyles:{type:"array",default:[{width:60,backgroundSize:"cover",background:"",backgroundOpacity:1,border:"#555555",borderRadius:"",borderWidth:[0,0,0,0],padding:[0,0,0,0],margin:["","","",""],ratio:""}]},itemsCount:{type:"number",default:1},displayMedia:{type:"bool",default:!0},displayTitle:{type:"bool",default:!0},titleFont:{type:"array",default:[{color:"",level:2,size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[0,0,0,0],margin:[0,0,15,0]}]},displayContent:{type:"bool",default:!0},contentFont:{type:"array",default:[{color:"#333333",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayName:{type:"bool",default:!0},nameFont:{type:"array",default:[{color:"#333333",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayOccupation:{type:"bool",default:!0},occupationFont:{type:"array",default:[{color:"#555555",size:[15,"",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},displayRating:{type:"bool",default:!1},ratingStyles:{type:"array",default:[{color:"#ffd700",size:16,margin:[10,0,10,0],iconSpacing:"",icon:"fas_star",stroke:2}]},displayIcon:{type:"bool",default:!1},iconStyles:{type:"array",default:[{size:30,margin:["","","",""],padding:["","","",""],borderWidth:["","","",""],borderRadius:"",border:"",borderOpacity:1,color:"",background:"",backgroundOpacity:1,title:"",icon:"fas_quote-left",stroke:2}]},displayShadow:{type:"bool",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:4,vOffset:2}]},containerMinHeight:{type:"array",default:["","",""]},containerVAlign:{type:"string",default:""},titleMinHeight:{type:"array",default:["","",""]},contentMinHeight:{type:"array",default:["","",""]},showPresets:{type:"bool",default:!0},wrapperPaddingType:{type:"string",default:"px"},wrapperPadding:{type:"array",default:["","","",""]},wrapperTabletPadding:{type:"array",default:["","","",""]},wrapperMobilePadding:{type:"array",default:["","","",""]}};const{Component:Ab,Fragment:Lb}=wp.element,{Button:Fb,FormFileUpload:Wb,Placeholder:Db,DropZone:Ub}=wp.components,Vb=({src:e,onChange:t,onSubmit:l,onClose:i})=>Object(a.createElement)(ot.URLPopover,{onClose:i},Object(a.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:l},Object(a.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(o.__)("URL","kadence-blocks"),placeholder:Object(o.__)("Paste or type URL","kadence-blocks"),onChange:t,value:e}),Object(a.createElement)(Fb,{className:"block-editor-media-placeholder__url-input-submit-button",icon:aa.a,label:Object(o.__)("Apply","kadence-blocks"),type:"submit"})));var $b=Object(A.withSelect)(e=>{const{getSettings:t}=e("core/block-editor");return{mediaUpload:t().mediaUpload}})(class extends Ab{constructor(){super(...arguments),this.state={src:"",isURLInputVisible:!1},this.onChangeSrc=this.onChangeSrc.bind(this),this.onSubmitSrc=this.onSubmitSrc.bind(this),this.onUpload=this.onUpload.bind(this),this.onFilesUpload=this.onFilesUpload.bind(this),this.openURLInput=this.openURLInput.bind(this),this.closeURLInput=this.closeURLInput.bind(this)}onlyAllowsImages(){const{allowedTypes:e}=this.props;return!!e&&Qa()(e,e=>"image"===e||ao()(e,"image/"))}componentDidMount(){this.setState({src:ce()(this.props.value,["src"],"")})}componentDidUpdate(e){ce()(e.value,["src"],"")!==ce()(this.props.value,["src"],"")&&this.setState({src:ce()(this.props.value,["src"],"")})}onChangeSrc(e){this.setState({src:e.target.value})}onSubmitSrc(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}onUpload(e){this.onFilesUpload(e.target.files)}onFilesUpload(e){const{addToGallery:t,allowedTypes:l,mediaUpload:a,multiple:o,onError:i,onSelect:n,onFilesPreUpload:r=to.a}=this.props;let c;if(r(e),o)if(t){let e=[];c=t=>{const l=(this.props.value||[]).filter(t=>t.id?!e.some(({id:e})=>Number(e)===Number(t.id)):!e.some(({urlSlug:e})=>t.url.includes(e)));n(l.concat(t)),e=t.map(e=>{const t=e.url.lastIndexOf("."),l=e.url.slice(0,t);return{id:e.id,urlSlug:l}})}}else c=n;else c=([e])=>n(e);a({allowedTypes:l,filesList:e,onFileChange:c,onError:i})}openURLInput(){this.setState({isURLInputVisible:!0})}closeURLInput(){this.setState({isURLInputVisible:!1})}renderPlaceholder(e,t){const{allowedTypes:l=[],className:i,icon:n,isAppender:r,labels:c={},onDoubleClick:s,mediaPreview:d,notices:b,onSelectURL:m,mediaUpload:p,children:g}=this.props;let u=c.instructions,h=c.title;if(p||m||(u=Object(o.__)("To edit this block, you need permission to upload media.","kadence-blocks")),void 0===u||void 0===h){const e=1===l.length,t=e&&"audio"===l[0],a=e&&"image"===l[0],i=e&&"video"===l[0];void 0===u&&p&&(u=Object(o.__)("Upload a media file or pick one from your media library.","kadence-blocks"),t?u=Object(o.__)("Upload an audio file, pick one from your media library, or add one with a URL.","kadence-blocks"):a?u=Object(o.__)("Upload an image file, pick one from your media library, or add one with a URL.","kadence-blocks"):i&&(u=Object(o.__)("Upload a video file, pick one from your media library, or add one with a URL.","kadence-blocks"))),void 0===h&&(h=Object(o.__)("Media","kadence-blocks"),t?h=Object(o.__)("Audio","kadence-blocks"):a?h=Object(o.__)("Image","kadence-blocks"):i&&(h=Object(o.__)("Video","kadence-blocks")))}const v=al()("block-editor-media-placeholder",i,{"is-appender":r});return Object(a.createElement)(Db,{icon:n,label:h,instructions:u,className:v,notices:b,onClick:t,onDoubleClick:s,preview:d},e,g)}renderDropZone(){const{disableDropZone:e,onHTMLDrop:t=to.a}=this.props;return e?null:Object(a.createElement)(Ub,{onFilesDrop:this.onFilesUpload,onHTMLDrop:t})}renderCancelLink(){const{onCancel:e}=this.props;return e&&Object(a.createElement)(Fb,{className:"block-editor-media-placeholder__cancel-button",title:Object(o.__)("Cancel","kadence-blocks"),isLink:!0,onClick:e},Object(o.__)("Cancel","kadence-blocks"))}renderUrlSelectionUI(){const{onSelectURL:e}=this.props;if(!e)return null;const{isURLInputVisible:t,src:l}=this.state;return Object(a.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(a.createElement)(Fb,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(o.__)("Insert from URL","kadence-blocks")),t&&Object(a.createElement)(Vb,{src:l,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}renderMediaUploadChecked(){const{accept:e,addToGallery:t,allowedTypes:l=[],isAppender:i,mediaUpload:n,multiple:r=!1,onSelect:c,value:s={}}=this.props,d=Object(a.createElement)(ot.MediaUpload,{addToGallery:t,gallery:r&&this.onlyAllowsImages(),multiple:r,onSelect:c,allowedTypes:l,value:Xa()(s)?s.map(({id:e})=>e):s.id,render:({open:e})=>Object(a.createElement)(Fb,{isPrimary:!0,onClick:t=>{t.stopPropagation(),e()}},Object(o.__)("Select Image","kadence-blocks"))});if(n&&i)return Object(a.createElement)(Lb,null,this.renderDropZone(),Object(a.createElement)(Wb,{onChange:this.onUpload,accept:e,multiple:r,render:({openFileDialog:e})=>{const t=Object(a.createElement)(Lb,null,d,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(t,e)}}));if(n){const e=Object(a.createElement)(Lb,null,this.renderDropZone(),d,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(e)}return this.renderPlaceholder(d)}render(){const{disableMediaButtons:e,dropZoneUIOnly:t}=this.props;return t||e?Object(a.createElement)(ot.MediaUploadCheck,null,this.renderDropZone()):Object(a.createElement)(ot.MediaUploadCheck,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}});const{Component:Gb,Fragment:Zb}=wp.element,{MediaUpload:qb,RichText:Jb,AlignmentToolbar:Kb,InspectorControls:Qb,BlockControls:Yb}=wp.blockEditor,{Button:Xb,ButtonGroup:em,Dashicon:tm,PanelBody:lm,RangeControl:am,Toolbar:om,TextControl:im,ToggleControl:nm,SelectControl:rm,Tooltip:cm}=wp.components,sm=[];var dm=Object(v.compose)([Object(A.withSelect)((e,t)=>{const{__experimentalGetPreviewDeviceType:l}=e("core/edit-post");return{getPreviewDevice:l?l():"Desktop"}})])(class extends Gb{constructor(){super(...arguments),this.onMove=this.onMove.bind(this),this.onMoveForward=this.onMoveForward.bind(this),this.onMoveBackward=this.onMoveBackward.bind(this),this.showSettings=this.showSettings.bind(this),this.getPreviewSize=this.getPreviewSize.bind(this),this.state={containerPaddingControl:"linked",containerBorderControl:"linked",mediaBorderControl:"linked",mediaPaddingControl:"linked",mediaMarginControl:"linked",titlePaddingControl:"linked",titleMarginControl:"individual",ratingMarginControl:"individual",iconBorderControl:"linked",iconMarginControl:"linked",iconPaddingControl:"linked",showPreset:!1,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",settings:{}}}componentDidMount(){if(this.props.attributes.uniqueID)sm.includes(this.props.attributes.uniqueID)?(this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),sm.push("_"+this.props.clientId.substr(2,9))):sm.push(this.props.attributes.uniqueID);else{const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==e["kadence/testimonials"]&&"object"==typeof e["kadence/testimonials"]&&Object.keys(e["kadence/testimonials"]).map(t=>{this.props.attributes[t]=e["kadence/testimonials"][t]}),this.props.setAttributes({uniqueID:"_"+this.props.clientId.substr(2,9)}),this.props.attributes.showPresets&&this.setState({showPreset:!0}),sm.push("_"+this.props.clientId.substr(2,9))}this.props.attributes.mediaStyles[0].borderWidth[0]===this.props.attributes.mediaStyles[0].borderWidth[1]&&this.props.attributes.mediaStyles[0].borderWidth[0]===this.props.attributes.mediaStyles[0].borderWidth[2]&&this.props.attributes.mediaStyles[0].borderWidth[0]===this.props.attributes.mediaStyles[0].borderWidth[3]?this.setState({mediaBorderControl:"linked"}):this.setState({mediaBorderControl:"individual"}),this.props.attributes.mediaStyles[0].padding[0]===this.props.attributes.mediaStyles[0].padding[1]&&this.props.attributes.mediaStyles[0].padding[0]===this.props.attributes.mediaStyles[0].padding[2]&&this.props.attributes.mediaStyles[0].padding[0]===this.props.attributes.mediaStyles[0].padding[3]?this.setState({mediaPaddingControl:"linked"}):this.setState({mediaPaddingControl:"individual"}),this.props.attributes.mediaStyles[0].margin[0]===this.props.attributes.mediaStyles[0].margin[1]&&this.props.attributes.mediaStyles[0].margin[0]===this.props.attributes.mediaStyles[0].margin[2]&&this.props.attributes.mediaStyles[0].margin[0]===this.props.attributes.mediaStyles[0].margin[3]?this.setState({mediaMarginControl:"linked"}):this.setState({mediaMarginControl:"individual"}),this.props.attributes.titleFont[0].padding[0]===this.props.attributes.titleFont[0].padding[1]&&this.props.attributes.titleFont[0].padding[0]===this.props.attributes.titleFont[0].padding[2]&&this.props.attributes.titleFont[0].padding[0]===this.props.attributes.titleFont[0].padding[3]?this.setState({titlePaddingControl:"linked"}):this.setState({titlePaddingControl:"individual"}),this.props.attributes.titleFont[0].margin[0]===this.props.attributes.titleFont[0].margin[1]&&this.props.attributes.titleFont[0].margin[0]===this.props.attributes.titleFont[0].margin[2]&&this.props.attributes.titleFont[0].margin[0]===this.props.attributes.titleFont[0].margin[3]?this.setState({titleMarginControl:"linked"}):this.setState({titleMarginControl:"individual"}),this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[1]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[2]&&this.props.attributes.containerBorderWidth[0]===this.props.attributes.containerBorderWidth[3]?this.setState({containerBorderControl:"linked"}):this.setState({containerBorderControl:"individual"}),this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[1]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[2]&&this.props.attributes.containerPadding[0]===this.props.attributes.containerPadding[3]?this.setState({containerPaddingControl:"linked"}):this.setState({containerPaddingControl:"individual"}),this.props.attributes.ratingStyles[0]&&this.props.attributes.ratingStyles[0].margin&&this.props.attributes.ratingStyles[0].margin[0]===this.props.attributes.ratingStyles[0].margin[1]&&this.props.attributes.ratingStyles[0].margin[0]===this.props.attributes.ratingStyles[0].margin[2]&&this.props.attributes.ratingStyles[0].margin[0]===this.props.attributes.ratingStyles[0].margin[3]?this.setState({ratingMarginControl:"linked"}):this.setState({ratingMarginControl:"individual"}),void 0!==this.props.attributes.iconStyles[0].borderWidth&&void 0!==this.props.attributes.iconStyles[0].borderWidth[0]&&this.props.attributes.iconStyles[0].borderWidth[0]===this.props.attributes.iconStyles[0].borderWidth[1]&&this.props.attributes.iconStyles[0].borderWidth[0]===this.props.attributes.iconStyles[0].borderWidth[2]&&this.props.attributes.iconStyles[0].borderWidth[0]===this.props.attributes.iconStyles[0].borderWidth[3]?this.setState({iconBorderControl:"linked"}):this.setState({iconBorderControl:"individual"}),void 0!==this.props.attributes.iconStyles[0].padding&&void 0!==this.props.attributes.iconStyles[0].padding[0]&&this.props.attributes.iconStyles[0].padding[0]===this.props.attributes.iconStyles[0].padding[1]&&this.props.attributes.iconStyles[0].padding[0]===this.props.attributes.iconStyles[0].padding[2]&&this.props.attributes.iconStyles[0].padding[0]===this.props.attributes.iconStyles[0].padding[3]?this.setState({iconPaddingControl:"linked"}):this.setState({iconPaddingControl:"individual"}),this.props.attributes.iconStyles[0].margin[0]===this.props.attributes.iconStyles[0].margin[1]&&this.props.attributes.iconStyles[0].margin[0]===this.props.attributes.iconStyles[0].margin[2]&&this.props.attributes.iconStyles[0].margin[0]===this.props.attributes.iconStyles[0].margin[3]?this.setState({iconMarginControl:"linked"}):this.setState({iconMarginControl:"individual"});const e=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};void 0!==e["kadence/testimonials"]&&"object"==typeof e["kadence/testimonials"]&&this.setState({settings:e["kadence/testimonials"]})}getPreviewSize(e,t,l,a){if("Mobile"===e){if(void 0!==a&&""!==a)return a;if(void 0!==l&&""!==l)return l}else if("Tablet"===e&&void 0!==l&&""!==l)return l;return t}onMove(e,t){const l=[...this.props.attributes.testimonials];l.splice(t,1,this.props.attributes.testimonials[e]),l.splice(e,1,this.props.attributes.testimonials[t]),this.props.setAttributes({testimonials:l})}onMoveForward(e){return()=>{e!==this.props.attributes.testimonials.length-1&&this.onMove(e,e+1)}}onMoveBackward(e){return()=>{0!==e&&this.onMove(e,e-1)}}showSettings(e){return void 0===this.state.settings[e]||"all"===this.state.settings[e]||"contributor"===this.state.settings[e]&&("contributor"===this.state.user||"author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"author"===this.state.settings[e]&&("author"===this.state.user||"editor"===this.state.user||"admin"===this.state.user)||"editor"===this.state.settings[e]&&("editor"===this.state.user||"admin"===this.state.user)||"admin"===this.state.settings[e]&&"admin"===this.state.user}render(){const{attributes:{uniqueID:e,testimonials:t,style:l,hAlign:i,layout:r,itemsCount:c,containerBackground:s,containerBorder:b,containerBorderWidth:m,containerBorderRadius:p,containerPadding:g,mediaStyles:u,displayTitle:h,titleFont:v,titleMinHeight:k,containerMinHeight:y,containerVAlign:f,contentMinHeight:O,displayContent:j,contentFont:_,displayName:S,displayMedia:E,nameFont:w,displayShadow:x,shadow:C,displayRating:M,ratingStyles:N,displayOccupation:T,occupationFont:z,containerBackgroundOpacity:H,containerBorderOpacity:B,containerMaxWidth:I,columnGap:R,autoPlay:P,autoSpeed:A,transSpeed:L,slidesScroll:F,arrowStyle:W,dotStyle:D,columns:U,columnControl:V,displayIcon:$,iconStyles:G,wrapperPaddingType:q,wrapperPadding:J,wrapperTabletPadding:K,wrapperMobilePadding:Q},setAttributes:Y,isSelected:X}=this.props,{containerBorderControl:ee,mediaBorderControl:te,mediaPaddingControl:le,mediaMarginControl:ae,containerPaddingControl:oe,titlePaddingControl:ne,titleMarginControl:re,ratingMarginControl:ce,iconBorderControl:se,iconPaddingControl:de,iconMarginControl:be}=this.state,me=[{key:"basic",name:Object(o.__)("Basic","kadence-blocks"),icon:n.testimonialBasic},{key:"card",name:Object(o.__)("Card","kadence-blocks"),icon:n.testimonialCard},{key:"bubble",name:Object(o.__)("Bubble","kadence-blocks"),icon:n.testimonialBubble},{key:"inlineimage",name:Object(o.__)("Image In Content","kadence-blocks"),icon:n.testimonialInline}],pe=[{key:"skip",name:Object(o.__)("Skip","kadence-blocks"),icon:Object(o.__)("Skip")},{key:"basic",name:Object(o.__)("Basic","kadence-blocks"),icon:n.testimonialBasic},{key:"card",name:Object(o.__)("Card","kadence-blocks"),icon:n.testimonialCard},{key:"bubble",name:Object(o.__)("Bubble","kadence-blocks"),icon:n.testimonialBubble},{key:"inlineimage",name:Object(o.__)("Image In Content","kadence-blocks"),icon:n.testimonialInline}],ge=[{key:"linked",name:Object(o.__)("Linked","kadence-blocks"),icon:Object(o.__)("Linked","kadence-blocks")},{key:"individual",name:Object(o.__)("Individual","kadence-blocks"),icon:Object(o.__)("Individual","kadence-blocks")}],ue=[{key:"top",name:Object(o.__)("Top","kadence-blocks"),icon:n.aligntop},{key:"middle",name:Object(o.__)("Middle","kadence-blocks"),icon:n.alignmiddle},{key:"bottom",name:Object(o.__)("Bottom","kadence-blocks"),icon:n.alignbottom}],he="em"===q||"rem"===q?12:200,ve="em"===q||"rem"===q?.1:1,ke=this.getPreviewSize(this.props.getPreviewDevice,void 0!==y&&void 0!==y[0]?y[0]:"",void 0!==y&&void 0!==y[1]?y[1]:"",void 0!==y&&void 0!==y[2]?y[2]:""),ye=this.getPreviewSize(this.props.getPreviewDevice,void 0!==k&&void 0!==k[0]?k[0]:"",void 0!==k&&void 0!==k[1]?k[1]:"",void 0!==k&&void 0!==k[2]?k[2]:""),fe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==O&&void 0!==O[0]?O[0]:"",void 0!==O&&void 0!==O[1]?O[1]:"",void 0!==O&&void 0!==O[2]?O[2]:""),Oe=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[0]?J[0]:"",void 0!==K&&void 0!==K[0]?K[0]:"",void 0!==Q&&void 0!==Q[0]?Q[0]:""),je=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[1]?J[1]:"",void 0!==K&&void 0!==K[1]?K[1]:"",void 0!==Q&&void 0!==Q[1]?Q[1]:""),_e=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[2]?J[2]:"",void 0!==K&&void 0!==K[2]?K[2]:"",void 0!==Q&&void 0!==Q[2]?Q[2]:""),Se=this.getPreviewSize(this.props.getPreviewDevice,void 0!==J&&void 0!==J[3]?J[3]:"",void 0!==K&&void 0!==K[3]?K[3]:"",void 0!==Q&&void 0!==Q[3]?Q[3]:""),Ee=Object(a.createElement)(Zb,null,Object(a.createElement)(em,{className:"kt-size-type-options kt-outline-control","aria-label":Object(o.__)("Column Control Type","kadence-blocks")},d()(ge,({name:e,key:t,icon:l})=>Object(a.createElement)(cm,{text:e},Object(a.createElement)(Xb,{key:t,className:"kt-size-btn",isSmall:!0,isPrimary:V===t,"aria-pressed":V===t,onClick:()=>Y({columnControl:t})},l)))),V&&"individual"!==V&&Object(a.createElement)(am,{label:Object(o.__)("Columns","kadence-blocks"),value:U[2],onChange:e=>{let t=[];1===e?t=[1,1,1,1,1,1]:2===e?t=[2,2,2,2,1,1]:3===e?t=[3,3,3,2,1,1]:4===e?t=[4,4,4,3,2,2]:5===e&&(t=[5,5,5,4,4,3]),Y({columns:t})},min:1,max:5}),V&&"individual"===V&&Object(a.createElement)(Zb,null,Object(a.createElement)("h4",null,Object(o.__)("Columns","kadence-blocks")),Object(a.createElement)(am,{label:Object(o.__)("Screen Above 1500px","kadence-blocks"),value:U[0],onChange:e=>Y({columns:[e,U[1],U[2],U[3],U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 1200px - 1499px","kadence-blocks"),value:U[1],onChange:e=>Y({columns:[U[0],e,U[2],U[3],U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 992px - 1199px","kadence-blocks"),value:U[2],onChange:e=>Y({columns:[U[0],U[1],e,U[3],U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 768px - 991px","kadence-blocks"),value:U[3],onChange:e=>Y({columns:[U[0],U[1],U[2],e,U[4],U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen 544px - 767px","kadence-blocks"),value:U[4],onChange:e=>Y({columns:[U[0],U[1],U[2],U[3],e,U[5]]}),min:1,max:5}),Object(a.createElement)(am,{label:Object(o.__)("Screen Below 543px","kadence-blocks"),value:U[5],onChange:e=>Y({columns:[U[0],U[1],U[2],U[3],U[4],e]}),min:1,max:5}))),we={google:{families:[v[0].family+(v[0].variant?":"+v[0].variant:"")]}},xe={google:{families:[_[0].family+(_[0].variant?":"+_[0].variant:"")]}},Ce={google:{families:[w[0].family+(w[0].variant?":"+w[0].variant:"")]}},Me={google:{families:[z[0].family+(z[0].variant?":"+z[0].variant:"")]}},Ne=v[0].google?we:"",Te=_[0].google?xe:"",ze=w[0].google?Ce:"",He=z[0].google?Me:"",Ie=(e,l)=>{const a=t.map((t,a)=>(a===l&&(t={...t,...e}),t));Y({testimonials:a})},Re=["image"],Pe={dots:"none"!==D,arrows:"none"!==W,infinite:!0,speed:L,draggable:!1,autoplaySpeed:A,autoplay:P,slidesToShow:U[0],slidesToScroll:"all"===F?U[0]:1,nextArrow:Object(a.createElement)((function(e){const{className:t,style:l,onClick:o}=e;return Object(a.createElement)("button",{className:t,style:{...l,display:"block"},onClick:o},Object(a.createElement)(tm,{icon:"arrow-right-alt2"}))}),null),prevArrow:Object(a.createElement)((function(e){const{className:t,style:l,onClick:o}=e;return Object(a.createElement)("button",{className:t,style:{...l,display:"block"},onClick:o},Object(a.createElement)(tm,{icon:"arrow-left-alt2"}))}),null)},Ae=e=>{const t=u.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({mediaStyles:t})},Le=e=>{const t=G.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({iconStyles:t})},Fe=e=>{const t=v.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({titleFont:t})},We=e=>{const t=_.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({contentFont:t})},De=e=>{const t=w.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({nameFont:t})},Ue=e=>{const t=z.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({occupationFont:t})},Ve=e=>{const t=C.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({shadow:t})},$e=e=>{const t=N.map((t,l)=>(0===l&&(t={...t,...e}),t));Y({ratingStyles:t})},Ge=Object(a.createElement)("div",null,bl()(c,e=>{return l=e,Object(a.createElement)(lm,{title:Object(o.__)("Testimonial","kadence-blocks")+" "+(l+1)+" "+Object(o.__)("Settings","kadence-blocks"),initialOpen:1===c},Object(a.createElement)(rm,{label:Object(o.__)("Media Type","kadence-blocks"),value:t[l].media,options:[{value:"image",label:Object(o.__)("Image","kadence-blocks")},{value:"icon",label:Object(o.__)("Icon","kadence-blocks")}],onChange:e=>Ie({media:e},l)}),"icon"===t[l].media&&Object(a.createElement)(Zb,null,Object(a.createElement)(Xe,{value:t[l].icon,onChange:e=>{Ie({icon:e},l)}}),Object(a.createElement)(am,{label:Object(o.__)("Icon Size","kadence-blocks"),value:t[l].isize,onChange:e=>{Ie({isize:e},l)},min:5,max:250}),t[l].icon&&"fe"===t[l].icon.substring(0,2)&&Object(a.createElement)(am,{label:Object(o.__)("Line Width","kadence-blocks"),value:t[l].istroke,onChange:e=>{Ie({istroke:e},l)},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Color","kadence-blocks"),colorValue:t[l].color?t[l].color:"#555555",colorDefault:"#555555",onColorChange:e=>Ie({color:e},l)})),Object(a.createElement)(am,{label:Object(o.__)("Rating","kadence-blocks"),value:t[l].rating,onChange:e=>{Ie({rating:e},l)},step:1,min:1,max:5}));var l})),Ze=e=>Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:G[0].margin?G[0].margin[0]+"px "+G[0].margin[1]+"px "+G[0].margin[2]+"px "+G[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-"+G[0].icon,name:G[0].icon,size:G[0].size,title:G[0].title?G[0].title:"",strokeWidth:"fe"===G[0].icon.substring(0,2)?G[0].stroke:void 0,style:{color:G[0].color?Rt(G[0].color):void 0,borderRadius:G[0].borderRadius+"px",borderTopWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[0]?G[0].borderWidth[0]+"px":void 0,borderRightWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[1]?G[0].borderWidth[1]+"px":void 0,borderBottomWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[2]?G[0].borderWidth[2]+"px":void 0,borderLeftWidth:G[0].borderWidth&&void 0!==G[0].borderWidth[3]?G[0].borderWidth[3]+"px":void 0,background:G[0].background?Rt(G[0].background,void 0!==G[0].backgroundOpacity?G[0].backgroundOpacity:1):void 0,borderColor:G[0].border?Rt(G[0].border,void 0!==G[0].borderOpacity?G[0].borderOpacity:1):void 0,padding:G[0].padding?G[0].padding[0]+"px "+G[0].padding[1]+"px "+G[0].padding[2]+"px "+G[0].padding[3]+"px":""}})),qe=e=>{let i=t[e].url;return t[e].sizes&&void 0!==t[e].sizes.thumbnail&&("card"===l&&I>500||u[0].width>600?i=t[e].url:"card"===l&&I<=500&&I>100?t[e].sizes.large&&t[e].sizes.large.width>1e3&&(i=t[e].sizes.large.url):"card"===l&&I<=100?t[e].sizes.medium&&t[e].sizes.medium.width>200?i=t[e].sizes.medium.url:t[e].sizes.large&&t[e].sizes.large.width>200&&(i=t[e].sizes.large.url):u[0].width<=600&&u[0].width>100?t[e].sizes.large&&t[e].sizes.large.width>1e3&&(i=t[e].sizes.large.url):u[0].width<=100&&u[0].width>75?t[e].sizes.medium&&t[e].sizes.medium.width>200?i=t[e].sizes.medium.url:t[e].sizes.large&&t[e].sizes.large.width>200&&(i=t[e].sizes.large.url):u[0].width<=75&&(t[e].sizes.thumbnail&&t[e].sizes.thumbnail.width>140?i=t[e].sizes.thumbnail.url:t[e].sizes.medium&&t[e].sizes.medium.width>140?i=t[e].sizes.medium.url:t[e].sizes.large&&t[e].sizes.large.width>200&&(i=t[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==l?u[0].width+"px":void 0,borderColor:Rt(u[0].border),backgroundColor:u[0].background?Rt(u[0].background,void 0!==u[0].backgroundOpacity?u[0].backgroundOpacity:1):void 0,borderRadius:u[0].borderRadius+"px",borderWidth:u[0].borderWidth?u[0].borderWidth[0]+"px "+u[0].borderWidth[1]+"px "+u[0].borderWidth[2]+"px "+u[0].borderWidth[3]+"px":"",padding:u[0].padding?u[0].padding[0]+"px "+u[0].padding[1]+"px "+u[0].padding[2]+"px "+u[0].padding[3]+"px":"",marginTop:u[0].margin&&void 0!==u[0].margin[0]?u[0].margin[0]+"px":void 0,marginRight:u[0].margin&&void 0!==u[0].margin[1]?u[0].margin[1]+"px":void 0,marginBottom:u[0].margin&&void 0!==u[0].margin[2]?u[0].margin[2]+"px":void 0,marginLeft:u[0].margin&&void 0!==u[0].margin[3]?u[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==l||void 0===u[0].ratio&&""===u[0].ratio?void 0:u[0].ratio+"%"}},"icon"===t[e].media&&t[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-"+t[e].icon,name:t[e].icon,size:t[e].isize,title:t[e].ititle?t[e].ititle:"",strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].istroke:void 0,style:{display:"flex",color:t[e].color?Rt(t[e].color):void 0}}),"icon"!==t[e].media&&t[e].url&&Object(a.createElement)(Zb,null,Object(a.createElement)(qb,{onSelect:t=>{Ie({id:t.id,url:t.url,alt:t.alt,subtype:t.subtype,sizes:t.sizes},e)},type:"image",value:t[e].id?t[e].id:"",allowedTypes:Re,render:({open:e})=>Object(a.createElement)(cm,{text:Object(o.__)("Edit Image","kadence-blocks")},Object(a.createElement)(Xb,{style:{backgroundImage:'url("'+i+'")',backgroundSize:"card"===l?u[0].backgroundSize:void 0,borderRadius:u[0].borderRadius+"px"},className:"kt-testimonial-image",onClick:e}))}),Object(a.createElement)(Xb,{label:Object(o.__)("Remove Image","kadence-blocks"),className:"kt-remove-img kt-testimonial-remove-image",onClick:()=>{Ie({id:null,url:null,alt:null,subtype:null,sizes:null},e)},icon:wo.a,showTooltip:!0})),"icon"!==t[e].media&&!t[e].url&&Object(a.createElement)(Zb,null,"card"===l&&Object(a.createElement)($b,{onSelect:t=>{Ie({id:t.id,url:t.url,alt:t.alt,sizes:t.sizes,subtype:t.subtype},e)},value:"",allowedTypes:Re,onSelectURL:l=>{l!==t[e].url&&Ie({id:null,url:l,alt:null,sizes:null,subtype:null},e)},accept:"image/*",className:"kadence-image-upload"}),"card"!==l&&Object(a.createElement)(qb,{onSelect:t=>{Ie({id:t.id,url:t.url,alt:t.alt,sizes:t.sizes,subtype:t.subtype},e)},type:"image",value:"",allowedTypes:Re,render:({open:e})=>Object(a.createElement)(Xb,{className:"kt-testimonial-image-placeholder","aria-label":Object(o.__)("Add Image","kadence-blocks"),icon:Eo.a,style:{borderRadius:u[0].borderRadius+"px"},onClick:e})})))))},Ke={boxShadow:x?C[0].hOffset+"px "+C[0].vOffset+"px "+C[0].blur+"px "+C[0].spread+"px "+Rt(void 0!==C[0].color&&""!==C[0].color?C[0].color:"#000000",C[0].opacity?C[0].opacity:.2):void 0,borderColor:Rt(b||"#eeeeee",void 0!==B?B:1),background:s?Rt(s,void 0!==H?H:1):void 0,borderRadius:isNaN(p)?void 0:p+"px",borderTopWidth:m&&void 0!==m[0]?m[0]+"px":void 0,borderRightWidth:m&&void 0!==m[1]?m[1]+"px":void 0,borderBottomWidth:m&&void 0!==m[2]?m[2]+"px":void 0,borderLeftWidth:m&&void 0!==m[3]?m[3]+"px":void 0,padding:g?g[0]+"px "+g[1]+"px "+g[2]+"px "+g[3]+"px":"",maxWidth:"bubble"===l||"inlineimage"===l?void 0:I+"px",minHeight:"bubble"!==l&&"inlineimage"!==l&&ke?ke+"px":void 0,marginTop:r&&"carousel"===r&&Oe?Oe+(q||"px"):void 0,marginBottom:r&&"carousel"===r&&_e?_e+(q||"px"):void 0},Qe=(e,i=!1)=>Object(a.createElement)("div",{className:`kt-testimonial-item-wrap kt-testimonial-item-${e}${f?" testimonial-valign-"+f:""}`,style:"bubble"!==l&&"inlineimage"!==l?Ke:{maxWidth:I+"px",minHeight:ke?ke+"px":void 0,paddingTop:$&&G[0].icon&&G[0].margin&&G[0].margin[0]&&G[0].margin[0]<0?Math.abs(G[0].margin[0])+"px":void 0,marginTop:i&&Oe?Oe+(q||"px"):void 0,marginBottom:i&&_e?_e+(q||"px"):void 0}},c>1&&Object(a.createElement)("div",{className:"kt-testimonial-item__move-menu"},Object(a.createElement)(Xb,{icon:"arrow-left",onClick:0===e?void 0:this.onMoveBackward(e),className:"kt-testimonial-item__move-backward","aria-label":Object(o.__)("Move Testimonial Backward","kadence-blocks"),"aria-disabled":0===e}),Object(a.createElement)(Xb,{icon:"arrow-right",onClick:c===e+1?void 0:this.onMoveForward(e),className:"kt-testimonial-item__move-forward","aria-label":Object(o.__)("Move Testimonial Forward","kadence-blocks"),"aria-disabled":c===e+1})),Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===l||"inlineimage"===l?Ke:void 0},$&&G[0].icon&&"card"!==l&&Ze(),E&&("card"===l||"inlineimage"===l)&&qe(e),$&&G[0].icon&&"card"===l&&Ze(),h&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap",style:{minHeight:ye?ye+"px":void 0}},Object(a.createElement)(Jb,{tagName:"h"+v[0].level,value:t[e].title,onChange:t=>{Ie({title:t},e)},placeholder:Object(o.__)("Best product I have ever used!","kadence-blocks"),style:{fontWeight:v[0].weight,fontStyle:v[0].style,color:Rt(v[0].color),fontSize:v[0].size[0]+v[0].sizeType,lineHeight:v[0].lineHeight&&v[0].lineHeight[0]?v[0].lineHeight[0]+v[0].lineType:void 0,letterSpacing:v[0].letterSpacing+"px",textTransform:v[0].textTransform?v[0].textTransform:void 0,fontFamily:v[0].family?v[0].family:"",padding:v[0].padding?v[0].padding[0]+"px "+v[0].padding[1]+"px "+v[0].padding[2]+"px "+v[0].padding[3]+"px":"",margin:v[0].margin?v[0].margin[0]+"px "+v[0].margin[1]+"px "+v[0].margin[2]+"px "+v[0].margin[3]+"px":""},className:"kt-testimonial-title"})),M&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-"+t[e].rating,style:{margin:N[0].margin?N[0].margin[0]+"px "+N[0].margin[1]+"px "+N[0].margin[2]+"px "+N[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}}),t[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:N[0].size,style:{color:Rt(N[0].color)}})),j&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap",style:{minHeight:fe?fe+"px":void 0}},Object(a.createElement)(Jb,{tagName:"div",placeholder:Object(o.__)("I have been looking for a product like this for years. I have tried everything and nothing did what I wanted until using this product. I am so glad I found it!","kadence-blocks"),value:t[e].content,onChange:t=>{Ie({content:t},e)},style:{fontWeight:_[0].weight,fontStyle:_[0].style,color:Rt(_[0].color),fontSize:_[0].size[0]+_[0].sizeType,lineHeight:_[0].lineHeight&&_[0].lineHeight[0]?_[0].lineHeight[0]+_[0].lineType:void 0,textTransform:_[0].textTransform?_[0].textTransform:void 0,letterSpacing:_[0].letterSpacing+"px",fontFamily:_[0].family?_[0].family:""},className:"kt-testimonial-content"}))),(E&&"card"!==l&&"inlineimage"!==l||T||S)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},E&&"card"!==l&&"inlineimage"!==l&&qe(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},S&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(Jb,{tagName:"div",placeholder:Object(o.__)("Sophia Reily","kadence-blocks"),value:t[e].name,onChange:t=>{Ie({name:t},e)},style:{fontWeight:w[0].weight,fontStyle:w[0].style,color:Rt(w[0].color),fontSize:w[0].size[0]+w[0].sizeType,lineHeight:w[0].lineHeight&&w[0].lineHeight[0]?w[0].lineHeight[0]+w[0].lineType:void 0,textTransform:w[0].textTransform?w[0].textTransform:void 0,letterSpacing:w[0].letterSpacing+"px",fontFamily:w[0].family?w[0].family:""},className:"kt-testimonial-name"})),T&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(Jb,{tagName:"div",placeholder:Object(o.__)("CEO of Company","kadence-blocks"),value:t[e].occupation,onChange:t=>{Ie({occupation:t},e)},style:{fontWeight:z[0].weight,fontStyle:z[0].style,color:Rt(z[0].color),fontSize:z[0].size[0]+z[0].sizeType,lineHeight:z[0].lineHeight&&z[0].lineHeight[0]?z[0].lineHeight[0]+z[0].lineType:void 0,textTransform:z[0].textTransform?z[0].textTransform:void 0,letterSpacing:z[0].letterSpacing+"px",fontFamily:z[0].family?z[0].family:""},className:"kt-testimonial-occupation"})))));return Object(a.createElement)("div",{id:"kt-blocks-testimonials-wrap"+e,className:`wp-block-kadence-testimonials kt-testimonial-halign-${i} kt-testimonial-style-${l} kt-testimonials-media-${E?"on":"off"} kt-testimonials-icon-${$?"on":"off"} kt-testimonial-columns-${U[0]}`},Object(a.createElement)("style",null,"carousel"===r?`#kt-blocks-testimonials-wrap${e} .slick-slide { padding: 0 ${R/2}px; }`:"","carousel"===r?`#kt-blocks-testimonials-wrap${e} .kt-blocks-carousel .slick-slider { margin: 0 -${R/2}px; }`:"","carousel"===r?`#kt-blocks-testimonials-wrap${e} .kt-blocks-carousel .slick-prev { left: ${R/2}px; }`:"","carousel"===r?`#kt-blocks-testimonials-wrap${e} .kt-blocks-carousel .slick-next { right: ${R/2}px; }`:"","bubble"===l||"inlineimage"===l?`#kt-blocks-testimonials-wrap${e} .kt-testimonial-text-wrap:after { margin-top: ${m&&void 0!==m[2]?m[2]:"1"}px; }`:"","bubble"===l||"inlineimage"===l?`#kt-blocks-testimonials-wrap${e} .kt-testimonial-text-wrap:after { border-top-color: ${Rt(b||"#eeeeee",void 0!==B?B:1)} }`:""),this.showSettings("allSettings")&&Object(a.createElement)(Zb,null,Object(a.createElement)(Yb,{key:"controls"},Object(a.createElement)(Kb,{value:i,onChange:e=>Y({hAlign:e})})),Object(a.createElement)(Qb,null,Object(a.createElement)(lm,null,this.showSettings("layoutSettings")&&Object(a.createElement)(rm,{label:Object(o.__)("Layout","kadence-blocks"),value:r,options:[{value:"grid",label:Object(o.__)("Grid","kadence-blocks")},{value:"carousel",label:Object(o.__)("Carousel","kadence-blocks")}],onChange:e=>Y({layout:e})}),this.showSettings("styleSettings")&&Object(a.createElement)(Zb,null,Object(a.createElement)("p",{className:"components-base-control__label"},Object(o.__)("Testimonial Style","kadence-blocks")),Object(a.createElement)(em,{className:"kt-style-btn-group","aria-label":Object(o.__)("Testimonial Style","kadence-blocks")},d()(me,({name:e,key:t,icon:o})=>Object(a.createElement)(cm,{text:e},Object(a.createElement)(Xb,{key:t,className:"kt-style-btn",isSmall:!0,isPrimary:l===t,"aria-pressed":l===t,onClick:()=>Y({style:t})},o))))),Object(a.createElement)(am,{label:Object(o.__)("Testimonial Items","kadence-blocks"),value:c,onChange:e=>{const l=this.props.attributes.testimonials;if(l.length<e){const a=Math.abs(e-l.length);bl()(a,e=>{l.push({url:l[0].url,id:l[0].id,alt:l[0].alt,width:l[0].width,height:l[0].height,maxWidth:l[0].maxWidth,subtype:l[0].subtype,media:l[0].media,icon:l[0].icon,isize:l[0].isize,istroke:l[0].istroke,ititle:l[0].ititle,color:l[0].color,title:"",content:"",name:"",occupation:"",rating:l[0].rating})}),Y({testimonials:l}),Ie({ititle:t[0].ititle},0)}Y({itemsCount:e})},min:1,max:40}),this.showSettings("columnSettings")&&Object(a.createElement)(Zb,null,Ee,Object(a.createElement)(am,{label:Object(o.__)("Column Gap","kadence-blocks"),value:R,onChange:e=>Y({columnGap:e}),min:0,max:80}))),r&&"carousel"===r&&Object(a.createElement)(Zb,null,this.showSettings("carouselSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Carousel Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Carousel Auto Play","kadence-blocks"),checked:P,onChange:e=>Y({autoPlay:e})}),P&&Object(a.createElement)(am,{label:Object(o.__)("Autoplay Speed","kadence-blocks"),value:A,onChange:e=>Y({autoSpeed:e}),min:500,max:15e3,step:10}),Object(a.createElement)(am,{label:Object(o.__)("Carousel Slide Transition Speed","kadence-blocks"),value:L,onChange:e=>Y({transSpeed:e}),min:100,max:2e3,step:10}),Object(a.createElement)(rm,{label:Object(o.__)("Slides to Scroll","kadence-blocks"),options:[{label:Object(o.__)("One"),value:"1"},{label:Object(o.__)("All"),value:"all"}],value:F,onChange:e=>Y({slidesScroll:e})}),Object(a.createElement)(rm,{label:Object(o.__)("Arrow Style","kadence-blocks"),options:[{label:Object(o.__)("White on Dark","kadence-blocks"),value:"whiteondark"},{label:Object(o.__)("Black on Light","kadence-blocks"),value:"blackonlight"},{label:Object(o.__)("Outline Black","kadence-blocks"),value:"outlineblack"},{label:Object(o.__)("Outline White","kadence-blocks"),value:"outlinewhite"},{label:Object(o.__)("None","kadence-blocks"),value:"none"}],value:W,onChange:e=>Y({arrowStyle:e})}),Object(a.createElement)(rm,{label:Object(o.__)("Dot Style","kadence-blocks"),options:[{label:Object(o.__)("Dark","kadence-blocks"),value:"dark"},{label:Object(o.__)("Light","kadence-blocks"),value:"light"},{label:Object(o.__)("Outline Dark","kadence-blocks"),value:"outlinedark"},{label:Object(o.__)("Outline Light","kadence-blocks"),value:"outlinelight"},{label:Object(o.__)("None","kadence-blocks"),value:"none"}],value:D,onChange:e=>Y({dotStyle:e})}))),this.showSettings("containerSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Container Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Container Border Width (px)","kadence-blocks"),measurement:m,control:ee,onChange:e=>Y({containerBorderWidth:e}),onControl:e=>this.setState({containerBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Container Border Radius (px)","kadence-blocks"),value:p,onChange:e=>Y({containerBorderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Bt,{label:Object(o.__)("Container Background","kadence-blocks"),colorValue:s||"",colorDefault:"",onColorChange:e=>Y({containerBackground:e}),opacityValue:H,onOpacityChange:e=>Y({containerBackgroundOpacity:e})}),Object(a.createElement)(Bt,{label:Object(o.__)("Container Border","kadence-blocks"),colorValue:b||"",colorDefault:"",onColorChange:e=>Y({containerBorder:e}),opacityValue:B,onOpacityChange:e=>Y({containerBorderOpacity:e})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Container Padding","kadence-blocks"),measurement:g,control:oe,onChange:e=>Y({containerPadding:e}),onControl:e=>this.setState({containerPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Container Max Width (px)","kadence-blocks"),value:I,onChange:e=>Y({containerMaxWidth:e}),step:5,min:50,max:2e3}),Object(a.createElement)(Z,{label:Object(o.__)("Container Min Height","kadence-blocks"),value:y&&void 0!==y[0]?y[0]:"",onChange:e=>Y({containerMinHeight:[e,y&&void 0!==y[1]?y[1]:"",y&&void 0!==y[2]?y[2]:""]}),tabletValue:y&&void 0!==y[1]?y[1]:"",onChangeTablet:e=>Y({containerMinHeight:[y&&void 0!==y[0]?y[0]:"",e,y&&void 0!==y[2]?y[2]:""]}),mobileValue:y&&void 0!==y[2]?y[2]:"",onChangeMobile:e=>Y({containerMinHeight:[y&&void 0!==y[0]?y[0]:"",y&&void 0!==y[1]?y[1]:"",e]}),min:0,max:600,step:1,unit:"px",showUnit:!0,units:["px"]}),y&&(y[0]||y[1]||y[2])&&Object(a.createElement)("div",{className:"kt-btn-size-settings-container"},Object(a.createElement)("h2",{className:"kt-beside-btn-group"},Object(o.__)("Inner Content Align","kadence-blocks")),Object(a.createElement)(em,{className:"kt-button-size-type-options","aria-label":Object(o.__)("Inner Content Align","kadence-blocks")},d()(ue,({name:e,icon:t,key:l})=>Object(a.createElement)(cm,{text:e},Object(a.createElement)(Xb,{key:l,className:"kt-btn-size-btn",isSmall:!0,isPrimary:f===l,"aria-pressed":f===l,onClick:()=>Y({containerVAlign:l})},t)))))),this.showSettings("iconSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Icon Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Top Icon","kadence-blocks"),checked:$,onChange:e=>Y({displayIcon:e})}),$&&Object(a.createElement)(Zb,null,Object(a.createElement)(Xe,{value:G[0].icon,onChange:e=>{Le({icon:e})}}),Object(a.createElement)(am,{label:Object(o.__)("Icon Size","kadence-blocks"),value:G[0].size,onChange:e=>Le({size:e}),step:1,min:1,max:120}),G[0].icon&&"fe"===G[0].icon.substring(0,2)&&Object(a.createElement)(am,{label:Object(o.__)("Line Width","kadence-blocks"),value:G[0].stroke,onChange:e=>{Le({stroke:e})},step:.5,min:.5,max:4}),Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:G[0].color?G[0].color:"",colorDefault:"",onColorChange:e=>Le({color:e})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Border Width (px)","kadence-blocks"),measurement:G[0].borderWidth,control:se,onChange:e=>Le({borderWidth:e}),onControl:e=>this.setState({iconBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Icon Border Radius (px)","kadence-blocks"),value:G[0].borderRadius,onChange:e=>Le({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Background","kadence-blocks"),colorValue:G[0].background?G[0].background:"",colorDefault:"",onColorChange:e=>Le({background:e}),opacityValue:G[0].backgroundOpacity,onOpacityChange:e=>Le({backgroundOpacity:e}),onArrayChange:(e,t)=>Le({background:e,backgroundOpacity:t})}),Object(a.createElement)(Bt,{label:Object(o.__)("Icon Border Color","kadence-blocks"),colorValue:G[0].border?G[0].border:"",colorDefault:"",onColorChange:e=>Le({border:e}),opacityValue:G[0].borderOpacity,onOpacityChange:e=>Le({borderOpacity:e}),onArrayChange:(e,t)=>Le({border:e,borderOpacity:t})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Padding","kadence-blocks"),measurement:G[0].padding,control:de,onChange:e=>Le({padding:e}),onControl:e=>this.setState({iconPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Icon Margin","kadence-blocks"),measurement:G[0].margin,control:be,onChange:e=>Le({margin:e}),onControl:e=>this.setState({iconMarginControl:e}),min:-100,max:100,step:1}))),this.showSettings("titleSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Title Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Title","kadence-blocks"),checked:h,onChange:e=>Y({displayTitle:e})}),h&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color Settings","kadence-blocks"),colorValue:v[0].color?v[0].color:"",colorDefault:"",onColorChange:e=>Fe({color:e})}),Object(a.createElement)(ie,{fontGroup:"heading",tagLevel:v[0].level,tagLowLevel:2,onTagLevel:e=>Fe({level:e}),fontSize:v[0].size,onFontSize:e=>Fe({size:e}),fontSizeType:v[0].sizeType,onFontSizeType:e=>Fe({sizeType:e}),lineHeight:v[0].lineHeight,onLineHeight:e=>Fe({lineHeight:e}),lineHeightType:v[0].lineType,onLineHeightType:e=>Fe({lineType:e}),letterSpacing:v[0].letterSpacing,onLetterSpacing:e=>Fe({letterSpacing:e}),textTransform:v[0].textTransform,onTextTransform:e=>Fe({textTransform:e}),fontFamily:v[0].family,onFontFamily:e=>Fe({family:e}),onFontChange:e=>{Fe({family:e.value,google:e.google})},onFontArrayChange:e=>Fe(e),googleFont:v[0].google,onGoogleFont:e=>Fe({google:e}),loadGoogleFont:v[0].loadGoogle,onLoadGoogleFont:e=>Fe({loadGoogle:e}),fontVariant:v[0].variant,onFontVariant:e=>Fe({variant:e}),fontWeight:v[0].weight,onFontWeight:e=>Fe({weight:e}),fontStyle:v[0].style,onFontStyle:e=>Fe({style:e}),fontSubset:v[0].subset,onFontSubset:e=>Fe({subset:e}),padding:v[0].padding,onPadding:e=>Fe({padding:e}),paddingControl:ne,onPaddingControl:e=>this.setState({titlePaddingControl:e}),margin:v[0].margin,onMargin:e=>Fe({margin:e}),marginControl:re,onMarginControl:e=>this.setState({titleMarginControl:e})}),Object(a.createElement)(Z,{label:Object(o.__)("Title Min Height","kadence-blocks"),value:k&&void 0!==k[0]?k[0]:"",onChange:e=>Y({titleMinHeight:[e,k&&void 0!==k[1]?k[1]:"",k&&void 0!==k[2]?k[2]:""]}),tabletValue:k&&void 0!==k[1]?k[1]:"",onChangeTablet:e=>Y({titleMinHeight:[k&&void 0!==k[0]?k[0]:"",e,k&&void 0!==k[2]?k[2]:""]}),mobileValue:k&&void 0!==k[2]?k[2]:"",onChangeMobile:e=>Y({titleMinHeight:[k&&void 0!==k[0]?k[0]:"",k&&void 0!==k[1]?k[1]:"",e]}),min:0,max:200,step:1,unit:"px",showUnit:!0,units:["px"]}))),this.showSettings("ratingSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Rating Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Rating","kadence-blocks"),checked:M,onChange:e=>Y({displayRating:e})}),M&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:N[0].color?N[0].color:"",colorDefault:"",onColorChange:e=>$e({color:e})}),Object(a.createElement)(am,{label:Object(o.__)("Icon Size","kadence-blocks"),value:N[0].size,onChange:e=>$e({size:e}),step:1,min:1,max:120}),Object(a.createElement)(sn,{label:Object(o.__)("Rating Margin","kadence-blocks"),measurement:N[0].margin,control:ce,onChange:e=>$e({margin:e}),onControl:e=>this.setState({ratingMarginControl:e}),min:0,max:100,step:1}))),this.showSettings("contentSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Content Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Content","kadence-blocks"),checked:j,onChange:e=>Y({displayContent:e})}),j&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:_[0].color?_[0].color:"",colorDefault:"",onColorChange:e=>We({color:e})}),Object(a.createElement)(ie,{fontSize:_[0].size,onFontSize:e=>We({size:e}),fontSizeType:_[0].sizeType,onFontSizeType:e=>We({sizeType:e}),lineHeight:_[0].lineHeight,onLineHeight:e=>We({lineHeight:e}),lineHeightType:_[0].lineType,onLineHeightType:e=>We({lineType:e}),letterSpacing:_[0].letterSpacing,onLetterSpacing:e=>We({letterSpacing:e}),textTransform:_[0].textTransform,onTextTransform:e=>We({textTransform:e}),fontFamily:_[0].family,onFontFamily:e=>We({family:e}),onFontChange:e=>{We({family:e.value,google:e.google})},onFontArrayChange:e=>We(e),googleFont:_[0].google,onGoogleFont:e=>We({google:e}),loadGoogleFont:_[0].loadGoogle,onLoadGoogleFont:e=>We({loadGoogle:e}),fontVariant:_[0].variant,onFontVariant:e=>We({variant:e}),fontWeight:_[0].weight,onFontWeight:e=>We({weight:e}),fontStyle:_[0].style,onFontStyle:e=>We({style:e}),fontSubset:_[0].subset,onFontSubset:e=>We({subset:e})}),Object(a.createElement)(Z,{label:Object(o.__)("Content Min Height","kadence-blocks"),value:O&&void 0!==O[0]?O[0]:"",onChange:e=>Y({contentMinHeight:[e,O&&void 0!==O[1]?O[1]:"",O&&void 0!==O[2]?O[2]:""]}),tabletValue:O&&void 0!==O[1]?O[1]:"",onChangeTablet:e=>Y({contentMinHeight:[O&&void 0!==O[0]?O[0]:"",e,O&&void 0!==O[2]?O[2]:""]}),mobileValue:O&&void 0!==O[2]?O[2]:"",onChangeMobile:e=>Y({contentMinHeight:[O&&void 0!==O[0]?O[0]:"",O&&void 0!==O[1]?O[1]:"",e]}),min:0,max:400,step:1,unit:"px",showUnit:!0,units:["px"]}))),this.showSettings("mediaSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Media Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Media","kadence-blocks"),checked:E,onChange:e=>Y({displayMedia:e})}),E&&Object(a.createElement)(Zb,null,"card"!==l&&Object(a.createElement)(am,{label:Object(o.__)("Media Max Size","kadence-blocks"),value:u[0].width,onChange:e=>Ae({width:e}),step:1,min:2,max:800}),Object(a.createElement)(sn,{label:Object(o.__)("Media Border Width (px)","kadence-blocks"),measurement:u[0].borderWidth,control:te,onChange:e=>Ae({borderWidth:e}),onControl:e=>this.setState({mediaBorderControl:e}),min:0,max:40,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Media Border Radius (px)","kadence-blocks"),value:u[0].borderRadius,onChange:e=>Ae({borderRadius:e}),step:1,min:0,max:200}),Object(a.createElement)(Bt,{label:Object(o.__)("Media Background","kadence-blocks"),colorValue:u[0].background?u[0].background:"",colorDefault:"",onColorChange:e=>Ae({background:e}),opacityValue:u[0].backgroundOpacity,onOpacityChange:e=>Ae({backgroundOpacity:e}),onArrayChange:(e,t)=>Ae({background:e,backgroundOpacity:t})}),Object(a.createElement)(Bt,{label:Object(o.__)("Media Border Color","kadence-blocks"),colorValue:u[0].border?u[0].border:"",colorDefault:"",onColorChange:e=>Ae({border:e}),opacityValue:u[0].borderOpacity,onOpacityChange:e=>Ae({borderOpacity:e}),onArrayChange:(e,t)=>Ae({border:e,borderOpacity:t})}),Object(a.createElement)("div",{className:"kt-spacer-sidebar-15"}),Object(a.createElement)(sn,{label:Object(o.__)("Media Padding","kadence-blocks"),measurement:u[0].padding,control:le,onChange:e=>Ae({padding:e}),onControl:e=>this.setState({mediaPaddingControl:e}),min:0,max:100,step:1}),Object(a.createElement)(sn,{label:Object(o.__)("Media Margin","kadence-blocks"),measurement:u[0].margin,control:ae,onChange:e=>Ae({margin:e}),onControl:e=>this.setState({mediaMarginControl:e}),min:-100,max:100,step:1}),"card"===l&&Object(a.createElement)(Zb,null,Object(a.createElement)(rm,{label:Object(o.__)("Image Size","kadence-blocks"),options:[{label:Object(o.__)("Cover","kadence-blocks"),value:"cover"},{label:Object(o.__)("Contain","kadence-blocks"),value:"Contain"},{label:Object(o.__)("Auto","kadence-blocks"),value:"auto"}],value:u[0].backgroundSize,onChange:e=>Ae({backgroundSize:e})}),Object(a.createElement)(rm,{label:Object(o.__)("Image Ratio","kadence-blocks"),options:[{label:Object(o.__)("Landscape 4:2","kadence-blocks"),value:"50"},{label:Object(o.__)("Landscape 3:2","kadence-blocks"),value:"66.67"},{label:Object(o.__)("Landscape 4:3","kadence-blocks"),value:"75"},{label:Object(o.__)("Portrait 3:4","kadence-blocks"),value:"133.33"},{label:Object(o.__)("Portrait 2:3","kadence-blocks"),value:"150"},{label:Object(o.__)("Square 1:1","kadence-blocks"),value:"100"}],value:void 0===u[0].ratio||""===u[0].ratio?"50":u[0].ratio,onChange:e=>Ae({ratio:e})})))),this.showSettings("nameSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Name Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Name","kadence-blocks"),checked:S,onChange:e=>Y({displayName:e})}),S&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:w[0].color?w[0].color:"",colorDefault:"",onColorChange:e=>De({color:e})}),Object(a.createElement)(ie,{fontSize:w[0].size,onFontSize:e=>De({size:e}),fontSizeType:w[0].sizeType,onFontSizeType:e=>De({sizeType:e}),lineHeight:w[0].lineHeight,onLineHeight:e=>De({lineHeight:e}),lineHeightType:w[0].lineType,onLineHeightType:e=>De({lineType:e}),letterSpacing:w[0].letterSpacing,onLetterSpacing:e=>De({letterSpacing:e}),textTransform:w[0].textTransform,onTextTransform:e=>De({textTransform:e}),fontFamily:w[0].family,onFontFamily:e=>De({family:e}),onFontChange:e=>{De({family:e.value,google:e.google})},onFontArrayChange:e=>De(e),googleFont:w[0].google,onGoogleFont:e=>De({google:e}),loadGoogleFont:w[0].loadGoogle,onLoadGoogleFont:e=>De({loadGoogle:e}),fontVariant:w[0].variant,onFontVariant:e=>De({variant:e}),fontWeight:w[0].weight,onFontWeight:e=>De({weight:e}),fontStyle:w[0].style,onFontStyle:e=>De({style:e}),fontSubset:w[0].subset,onFontSubset:e=>De({subset:e})}))),this.showSettings("occupationSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Occupation Settings","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Show Occupation","kadence-blocks"),checked:T,onChange:e=>Y({displayOccupation:e})}),T&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Color","kadence-blocks"),colorValue:z[0].color?z[0].color:"",colorDefault:"",onColorChange:e=>Ue({color:e})}),Object(a.createElement)(ie,{fontSize:z[0].size,onFontSize:e=>Ue({size:e}),fontSizeType:z[0].sizeType,onFontSizeType:e=>Ue({sizeType:e}),lineHeight:z[0].lineHeight,onLineHeight:e=>Ue({lineHeight:e}),lineHeightType:z[0].lineType,onLineHeightType:e=>Ue({lineType:e}),textTransform:z[0].textTransform,onTextTransform:e=>Ue({textTransform:e}),letterSpacing:z[0].letterSpacing,onLetterSpacing:e=>Ue({letterSpacing:e}),fontFamily:z[0].family,onFontFamily:e=>Ue({family:e}),onFontChange:e=>{Ue({family:e.value,google:e.google})},onFontArrayChange:e=>Ue(e),googleFont:z[0].google,onGoogleFont:e=>Ue({google:e}),loadGoogleFont:z[0].loadGoogle,onLoadGoogleFont:e=>Ue({loadGoogle:e}),fontVariant:z[0].variant,onFontVariant:e=>Ue({variant:e}),fontWeight:z[0].weight,onFontWeight:e=>Ue({weight:e}),fontStyle:z[0].style,onFontStyle:e=>Ue({style:e}),fontSubset:z[0].subset,onFontSubset:e=>Ue({subset:e})}))),this.showSettings("shadowSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Container Shadow","kadence-blocks"),initialOpen:!1},Object(a.createElement)(nm,{label:Object(o.__)("Enable Shadow","kadence-blocks"),checked:x,onChange:e=>Y({displayShadow:e})}),x&&Object(a.createElement)(Zb,null,Object(a.createElement)(Bt,{label:Object(o.__)("Shadow Color","kadence-blocks"),colorValue:C[0].color?C[0].color:"",colorDefault:"",onColorChange:e=>Ve({color:e}),opacityValue:C[0].opacity,onOpacityChange:e=>Ve({opacity:e}),onArrayChange:(e,t)=>Ve({color:e,opacity:t})}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Blur","kadence-blocks"),value:C[0].blur,onChange:e=>Ve({blur:e}),min:0,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Spread","kadence-blocks"),value:C[0].spread,onChange:e=>Ve({spread:e}),min:-100,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Vertical Offset","kadence-blocks"),value:C[0].vOffset,onChange:e=>Ve({vOffset:e}),min:-100,max:100,step:1}),Object(a.createElement)(am,{label:Object(o.__)("Shadow Horizontal Offset","kadence-blocks"),value:C[0].hOffset,onChange:e=>Ve({hOffset:e}),min:-100,max:100,step:1}))),this.showSettings("wrapperSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Wrapper Padding","kadence-blocks"),initialOpen:!1},Object(a.createElement)(Al,{label:Object(o.__)("Wrapper Padding","kadence-blocks"),value:J,control:this.state.wrapperPaddingControls,tabletValue:K,mobileValue:Q,onChange:e=>Y({wrapperPadding:e}),onChangeTablet:e=>Y({wrapperTabletPadding:e}),onChangeMobile:e=>Y({wrapperMobilePadding:e}),onChangeControl:e=>this.setState({wrapperPaddingControls:e}),min:0,max:he,step:ve,unit:q,units:["px","em","rem","%"],onUnit:e=>Y({wrapperPaddingType:e})})),Object(a.createElement)("div",{className:"kt-sidebar-settings-spacer"}),this.showSettings("individualSettings")&&Object(a.createElement)(lm,{title:Object(o.__)("Individual Settings","kadence-blocks"),initialOpen:!1},Ge))),this.state.showPreset&&Object(a.createElement)("div",{className:"kt-select-starter-style-tabs kt-select-starter-style-infobox"},Object(a.createElement)("div",{className:"kt-select-starter-style-tabs-title"},Object(o.__)("Select Initial Style","kadence-blocks")),Object(a.createElement)(em,{className:"kt-init-tabs-btn-group","aria-label":Object(o.__)("Initial Style","kadence-blocks")},d()(pe,({name:e,key:t,icon:l})=>Object(a.createElement)(Xb,{key:t,className:"kt-inital-tabs-style-btn",isSmall:!0,onClick:()=>{(e=>{"skip"===e||("basic"===e?Y({style:"basic"}):"card"===e?Y({style:"card"}):"bubble"===e?Y({style:"bubble"}):"inlineimage"===e&&Y({style:"inlineimage"}))})(t),this.setState({showPreset:!1})}},l)))),!this.state.showPreset&&Object(a.createElement)(Zb,null,r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-"+D,style:{paddingRight:je?je+(q||"px"):void 0,paddingLeft:Se?Se+(q||"px"):void 0}},1!==c&&Object(a.createElement)(Ni.a,Be()({className:`kt-carousel-arrowstyle-${W} kt-carousel-dotstyle-${D}`},Pe),bl()(c,e=>Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item",key:e},Qe(e,!0)))),1===c&&bl()(c,e=>Qe(e,!0))),r&&"grid"===r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":R+"px","grid-column-gap":R+"px",paddingTop:Oe?Oe+(q||"px"):void 0,paddingRight:je?je+(q||"px"):void 0,paddingBottom:_e?_e+(q||"px"):void 0,paddingLeft:Se?Se+(q||"px"):void 0}},bl()(c,e=>Qe(e))),h&&v[0].google&&Object(a.createElement)(yl,{config:Ne}),j&&_[0].google&&Object(a.createElement)(yl,{config:Te}),S&&w[0].google&&Object(a.createElement)(yl,{config:ze}),T&&z[0].google&&Object(a.createElement)(yl,{config:He})))}}),bm=wp.blockEditor.RichText,mm=[{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A=t.containerVAlign,L={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+tl(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:d?tl(d,void 0!==w?w:1):It("#eeeeee",void 0!==w?w:1),background:s?tl(s,void 0!==E?E:1):void 0,borderRadius:void 0===m||""===m||isNaN(m)?void 0:m+"px",borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},F=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?tl(P[0].color):void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?tl(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?tl(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},W=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:tl(g[0].border),backgroundColor:g[0].background?tl(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?tl(o[e].color):void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:"url('"+t+"')",backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},D=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e).concat(A?" testimonial-valign-"+A:""),style:"bubble"!==i&&"inlineimage"!==i?L:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?L:void 0},R&&P[0].icon&&"card"!==i&&F(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),R&&P[0].icon&&"card"===i&&F(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},D(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return D(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A=t.containerVAlign,L={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+tl(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:d?tl(d,void 0!==w?w:1):It("#eeeeee",void 0!==w?w:1),background:s?tl(s,void 0!==E?E:1):void 0,borderRadius:isNaN(m)?void 0:m+"px",borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},F=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?tl(P[0].color):void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?tl(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?tl(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},W=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:tl(g[0].border),backgroundColor:g[0].background?tl(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?tl(o[e].color):void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:"url('"+t+"')",backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},D=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e).concat(A?" testimonial-valign-"+A:""),style:"bubble"!==i&&"inlineimage"!==i?L:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?L:void 0},R&&P[0].icon&&"card"!==i&&F(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),R&&P[0].icon&&"card"===i&&F(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&W(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},D(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return D(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+tl(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:d?tl(d,void 0!==w?w:1):It("#eeeeee",void 0!==w?w:1),background:s?tl(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?tl(P[0].color):void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?tl(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?tl(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:tl(g[0].border),backgroundColor:g[0].background?tl(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?tl(o[e].color):void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:"url('"+t+"')",backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingRight:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingLeft:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,paddingTop:p&&void 0!==p[0]&&""!==p[0]&&null!==p[0]?p[0]+"px":void 0,paddingLeft:p&&void 0!==p[1]&&""!==p[1]&&null!==p[1]?p[1]+"px":void 0,paddingBottom:p&&void 0!==p[2]&&""!==p[2]&&null!==p[2]?p[2]+"px":void 0,paddingRight:p&&void 0!==p[3]&&""!==p[3]&&null!==p[3]?p[3]+"px":void 0,maxWidth:"bubble"===i||"inlineimage"===i||void 0===x||""===x?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius&&""!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m?m+"px":void 0,borderTopWidth:b&&void 0!==b[0]&&""!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]&&""!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]&&""!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]&&""!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m+"px",borderTopWidth:b&&void 0!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.substring(0,2)?P[0].stroke:void 0,style:{color:P[0].color?P[0].color:void 0,borderRadius:void 0!==P[0].borderRadius?P[0].borderRadius+"px":void 0,borderTopWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[0]&&null!==P[0].borderWidth[0]?P[0].borderWidth[0]+"px":void 0,borderRightWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[1]&&null!==P[0].borderWidth[1]?P[0].borderWidth[1]+"px":void 0,borderBottomWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[2]&&null!==P[0].borderWidth[2]?P[0].borderWidth[2]+"px":void 0,borderLeftWidth:P[0].borderWidth&&void 0!==P[0].borderWidth[3]&&null!==P[0].borderWidth[3]?P[0].borderWidth[3]+"px":void 0,background:P[0].background?It(P[0].background,void 0!==P[0].backgroundOpacity?P[0].backgroundOpacity:1):void 0,borderColor:P[0].border?It(P[0].border,void 0!==P[0].borderOpacity?P[0].borderOpacity:1):void 0,padding:P[0].padding?P[0].padding[0]+"px "+P[0].padding[1]+"px "+P[0].padding[2]+"px "+P[0].padding[3]+"px":""}}))},F=function(e){var t=o[e].url;return o[e].sizes&&void 0!==o[e].sizes.thumbnail&&("card"===i&&x>500||g[0].width>600?t=o[e].url:"card"===i&&x<=500&&x>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):"card"===i&&x<=100?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=600&&g[0].width>100?o[e].sizes.large&&o[e].sizes.large.width>1e3&&(t=o[e].sizes.large.url):g[0].width<=100&&g[0].width>75?o[e].sizes.medium&&o[e].sizes.medium.width>200?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url):g[0].width<=75&&(o[e].sizes.thumbnail&&o[e].sizes.thumbnail.width>140?t=o[e].sizes.thumbnail.url:o[e].sizes.medium&&o[e].sizes.medium.width>140?t=o[e].sizes.medium.url:o[e].sizes.large&&o[e].sizes.large.width>200&&(t=o[e].sizes.large.url))),Object(a.createElement)("div",{className:"kt-testimonial-media-wrap"},Object(a.createElement)("div",{className:"kt-testimonial-media-inner-wrap",style:{width:"card"!==i?g[0].width+"px":void 0,borderColor:g[0].border,backgroundColor:g[0].background?It(g[0].background,void 0!==g[0].backgroundOpacity?g[0].backgroundOpacity:1):void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0,borderWidth:g[0].borderWidth?g[0].borderWidth[0]+"px "+g[0].borderWidth[1]+"px "+g[0].borderWidth[2]+"px "+g[0].borderWidth[3]+"px":"",padding:g[0].padding?g[0].padding[0]+"px "+g[0].padding[1]+"px "+g[0].padding[2]+"px "+g[0].padding[3]+"px":"",marginTop:g[0].margin&&""!==g[0].margin[0]?g[0].margin[0]+"px":void 0,marginRight:g[0].margin&&""!==g[0].margin[1]?g[0].margin[1]+"px":void 0,marginBottom:g[0].margin&&""!==g[0].margin[2]?g[0].margin[2]+"px":void 0,marginLeft:g[0].margin&&""!==g[0].margin[3]?g[0].margin[3]+"px":void 0}},Object(a.createElement)("div",{className:"kadence-testimonial-image-intrisic",style:{paddingBottom:"card"!==i||void 0===g[0].ratio&&""===g[0].ratio?void 0:g[0].ratio+"%"}},"icon"===o[e].media&&o[e].icon&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-icon kt-svg-testimonial-icon-".concat(o[e].icon),name:o[e].icon,size:o[e].isize,title:o[e].ititle?o[e].ititle:"",strokeWidth:"fe"===o[e].icon.substring(0,2)?o[e].istroke:void 0,style:{display:"flex",color:o[e].color?o[e].color:void 0}}),"icon"!==o[e].media&&o[e].url&&Object(a.createElement)("div",{className:"kt-testimonial-image",style:{backgroundImage:'url("'+t+'")',backgroundSize:"card"===i?g[0].backgroundSize:void 0,borderRadius:void 0!==g[0].borderRadius?g[0].borderRadius+"px":void 0}}))))},W=function(e){return Object(a.createElement)("div",{className:"kt-testimonial-item-wrap kt-testimonial-item-".concat(e),style:"bubble"!==i&&"inlineimage"!==i?A:{maxWidth:x+"px",paddingTop:R&&P[0].icon&&P[0].margin&&P[0].margin[0]&&P[0].margin[0]<0?Math.abs(P[0].margin[0])+"px":void 0}},Object(a.createElement)("div",{className:"kt-testimonial-text-wrap",style:"bubble"===i||"inlineimage"===i?A:void 0},R&&P[0].icon&&"card"!==i&&L(),y&&("card"===i||"inlineimage"===i)&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),R&&P[0].icon&&"card"===i&&L(),u&&Object(a.createElement)("div",{className:"kt-testimonial-title-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-title",tagName:"h"+h[0].level,value:o[e].title})),j&&Object(a.createElement)("div",{className:"kt-testimonial-rating-wrap kt-testimonial-rating-".concat(o[e].rating),style:{margin:_[0].margin?_[0].margin[0]+"px "+_[0].margin[1]+"px "+_[0].margin[2]+"px "+_[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>1&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>2&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>3&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}}),o[e].rating>4&&Object(a.createElement)(Je,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:_[0].size,style:{color:tl(_[0].color)}})),v&&Object(a.createElement)("div",{className:"kt-testimonial-content-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-content",tagName:"div",value:o[e].content}))),(y&&"card"!==i&&"inlineimage"!==i||S||k)&&Object(a.createElement)("div",{className:"kt-testimonial-meta-wrap"},y&&"card"!==i&&"inlineimage"!==i&&("icon"!==o[e].media&&o[e].url||"icon"===o[e].media&&o[e].icon)&&F(e),Object(a.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},k&&Object(a.createElement)("div",{className:"kt-testimonial-name-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-name",tagName:"div",value:o[e].name})),S&&Object(a.createElement)("div",{className:"kt-testimonial-occupation-wrap"},Object(a.createElement)(bm.Content,{className:"kt-testimonial-occupation",tagName:"div",value:o[e].occupation})))))};return Object(a.createElement)("div",{className:"kt-testimonial-halign-".concat(n," kt-testimonial-style-").concat(i," kt-testimonials-media-").concat(y?"on":"off"," kt-testimonials-icon-").concat(R?"on":"off"," kt-testimonial-columns-").concat(I[0]," kt-t-xxl-col-").concat(I[0]," kt-t-xl-col-").concat(I[1]," kt-t-lg-col-").concat(I[2]," kt-t-md-col-").concat(I[3]," kt-t-sm-col-").concat(I[4]," kt-t-xs-col-").concat(I[5]," kt-blocks-testimonials-wrap").concat(l)},r&&"carousel"===r&&Object(a.createElement)("div",{className:"kt-blocks-carousel kt-carousel-container-dotstyle-".concat(B)},Object(a.createElement)("div",{className:"kt-blocks-carousel-init kt-carousel-arrowstyle-".concat(H," kt-carousel-dotstyle-").concat(B),"data-columns-xxl":I[0],"data-columns-xl":I[1],"data-columns-md":I[2],"data-columns-sm":I[3],"data-columns-xs":I[4],"data-columns-ss":I[5],"data-slider-anim-speed":T,"data-slider-scroll":z,"data-slider-arrows":"none"!==H,"data-slider-dots":"none"!==B,"data-slider-hover-pause":"false","data-slider-auto":M,"data-slider-speed":N},bl()(c,(function(e){return Object(a.createElement)("div",{className:"kt-blocks-testimonial-carousel-item kb-slide-item",key:e},W(e))})))),r&&"carousel"!==r&&Object(a.createElement)("div",{className:"kt-testimonial-grid-wrap",style:{"grid-row-gap":C+"px","grid-column-gap":C+"px"}},bl()(c,(function(e){return W(e)}))))}},{attributes:Pb,save:function(e){var t=e.attributes,l=t.uniqueID,o=t.testimonials,i=t.style,n=t.hAlign,r=t.layout,c=t.itemsCount,s=t.containerBackground,d=t.containerBorder,b=t.containerBorderWidth,m=t.containerBorderRadius,p=t.containerPadding,g=t.mediaStyles,u=t.displayTitle,h=t.titleFont,v=t.displayContent,k=t.displayName,y=t.displayMedia,f=t.displayShadow,O=t.shadow,j=t.displayRating,_=t.ratingStyles,S=t.displayOccupation,E=t.containerBackgroundOpacity,w=t.containerBorderOpacity,x=t.containerMaxWidth,C=t.columnGap,M=t.autoPlay,N=t.autoSpeed,T=t.transSpeed,z=t.slidesScroll,H=t.arrowStyle,B=t.dotStyle,I=t.columns,R=t.displayIcon,P=t.iconStyles,A={boxShadow:f?O[0].hOffset+"px "+O[0].vOffset+"px "+O[0].blur+"px "+O[0].spread+"px "+It(void 0!==O[0].color&&""!==O[0].color?O[0].color:"#000000",O[0].opacity?O[0].opacity:.2):void 0,borderColor:It(d||"#eeeeee",void 0!==w?w:1),background:s?It(s,void 0!==E?E:1):void 0,borderRadius:m+"px",borderTopWidth:b&&void 0!==b[0]?b[0]+"px":void 0,borderRightWidth:b&&void 0!==b[1]?b[1]+"px":void 0,borderBottomWidth:b&&void 0!==b[2]?b[2]+"px":void 0,borderLeftWidth:b&&void 0!==b[3]?b[3]+"px":void 0,padding:p?p[0]+"px "+p[1]+"px "+p[2]+"px "+p[3]+"px":"",maxWidth:"bubble"===i||"inlineimage"===i?void 0:x+"px"},L=function(e){return Object(a.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap",style:{margin:P[0].margin?P[0].margin[0]+"px "+P[0].margin[1]+"px "+P[0].margin[2]+"px "+P[0].margin[3]+"px":""}},Object(a.createElement)(Je,{className:"kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-".concat(P[0].icon),name:P[0].icon,size:P[0].size,title:P[0].title?P[0].title:"",strokeWidth:"fe"===P[0].icon.