(()=>{var e,t={1409:(e,t,a)=>{"use strict";const n=window.kadence.icons,o=window.React;var r=a(2485),i=a.n(r);const l=window.kadence.components,d=window.kadence.helpers,s=window.wp.i18n,c=window.wp.data,{Fragment:p}=wp.element,{toggleFormat:g,registerFormatType:u}=wp.richText,{RichTextToolbarButton:m,RichTextShortcut:k}=wp.blockEditor,y=(0,o.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,o.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"})),b="kadence/mark",f=["kadence/advancedheading"],h={title:(0,s.__)("Adv Highlight","kadence-blocks"),tagName:"mark",className:"kt-highlight",edit({isActive:e,value:t,onChange:a}){const n=(0,c.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]);if(void 0===n?.name)return null;if(n&&!f.includes(n.name))return null;const r=()=>a(g(t,{type:b}));return(0,o.createElement)(p,null,(0,o.createElement)(k,{type:"primary",character:"m",onUse:r}),(0,o.createElement)(m,{icon:y,title:(0,s.__)("Adv Highlight","kadence-blocks"),onClick:r,isActive:e,shortcutType:"access",shortcutCharacter:"m",className:`toolbar-button-with-text toolbar-button__${b}`}))}};u(b,h);const v=window.wp.element,S=window.wp.richText,_=window.wp.blockEditor,C=window.wp.components;function T({name:e,value:t,updateFormat:a,onClose:n,contentRef:r,activeAttributes:i}){const d={strings:JSON.stringify([""]),cursorChar:"_",startDelay:0,backDelay:700,typeSpeed:40,backSpeed:30,smartBackspace:"false",loop:"true",loopCount:"false",shuffle:"false"},c=(()=>{const e={...d,...i};try{e.strings=JSON.parse(e.strings)}catch(e){console.log("Error parsing strings",e)}return e})(),p=(0,_.useCachedTruthy)((0,S.useAnchor)({editableContentElement:r.current,value:t,settings:B}));return(0,o.createElement)(C.Popover,{className:"kb-typing-popover",onClose:n,anchor:p},(0,o.createElement)(l.KadencePanelBody,{initialOpen:!0,panelName:"kb-typing-basic-settings"},(0,o.createElement)("h2",{style:{marginTop:"0px"}},(0,s.__)("Typed Text","kadence-blocks")),(0,o.createElement)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"}},(0,o.createElement)("div",{style:{flexBasis:"40%"}},(0,o.createElement)(C.TextControl,{label:(0,s.__)("Cursor","kadence-blocks"),value:c.cursorChar,onChange:e=>a({cursorChar:e})})),(0,o.createElement)("div",null,(0,o.createElement)(C.ToggleControl,{label:(0,s.__)("Loop Typing","kadence-blocks"),checked:"true"===c.loop,onChange:e=>{a({loop:e?"true":"false"})}})))),(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Additional Strings","kadence-blocks"),initialOpen:!1,panelName:"kb-typing-additional-strings"},(0,o.createElement)(C.ToggleControl,{label:(0,s.__)("Shuffle Strings","kadence-blocks"),checked:"true"===c.shuffle,onChange:e=>{a({shuffle:e?"true":"false"})}}),(0,o.createElement)(C.ToggleControl,{label:(0,s.__)("Smart Backspace","kadence-blocks"),help:(0,s.__)("Only backspace what doesn't match the previous string.","kadence-blocks"),checked:"true"===c.smartBackspace,onChange:e=>{a({smartBackspace:e?"true":"false"})}}),c.strings.map(((e,t)=>(0,o.createElement)(C.TextControl,{label:`String ${t+1}`,value:e,onChange:e=>{const n=[...c.strings];n[t]=e,a({strings:n})}}))),(0,o.createElement)(C.Button,{isPrimary:!0,style:{marginRight:"20px"},onClick:()=>{const e=[...c.strings];e.push(""),a({strings:e})}},(0,s.__)("Add String","kadence-blocks")),(0,o.createElement)(C.Button,{isDestructive:!0,onClick:()=>{if(c.strings.length>1){const e=[...c.strings];e.splice(c.strings.length-1,1),a({strings:e})}else a({strings:[""]})}},(0,s.__)("Remove String","kadence-blocks"))),(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Speed Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-typing-delay-settings"},(0,o.createElement)(C.__experimentalNumberControl,{label:(0,s.__)("Start Delay (ms)","kadence-blocks"),value:c.startDelay,onChange:e=>a({startDelay:e?e.toString():"0"}),required:!0,min:0,shiftStep:25}),(0,o.createElement)(C.__experimentalNumberControl,{label:(0,s.__)("Back Delay (ms)","kadence-blocks"),value:c.backDelay,onChange:e=>{a({backDelay:e?e.toString():"0"})},required:!0,min:0,shiftStep:25}),(0,o.createElement)(C.__experimentalNumberControl,{label:(0,s.__)("Type Speed (ms)","kadence-blocks"),value:c.typeSpeed,onChange:e=>a({typeSpeed:e?e.toString():"0"}),required:!0,min:0,shiftStep:25}),(0,o.createElement)(C.__experimentalNumberControl,{label:(0,s.__)("Backspace Speed (ms)","kadence-blocks"),value:c.backSpeed,onChange:e=>a({backSpeed:e?e.toString():"0"}),required:!0,min:0,shiftStep:25})))}const w=(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",version:"1.1",viewBox:"0 0 496.8 496.8",xmlSpace:"preserve"},(0,o.createElement)("path",{fill:"#FFF",d:"M480 385.2c0 12.8-10.4 23.2-23.2 23.2H31.2C18.4 408.4 8 398 8 385.2V103.6c0-12.8 10.4-23.2 23.2-23.2h426.4c12.8 0 23.2 10.4 23.2 23.2v281.6h-.8z"}),(0,o.createElement)("path",{fill:"#000",d:"M460.8 96.4c6.4 0 11.2 3.2 11.2 9.6v284.8c0 6.4-4.8 9.6-11.2 9.6H35.2c-6.4 0-11.2-3.2-11.2-9.6V106c0-6.4 4.8-9.6 11.2-9.6H464m-3.2-24H35.2C16 72.4 0 86.8 0 106v284.8c0 19.2 16 33.6 35.2 33.6h426.4c19.2 0 35.2-14.4 35.2-33.6V106c-.8-19.2-16.8-33.6-36-33.6z"}),(0,o.createElement)("path",{fill:"#4C5654",d:"M420 354c-6.4 0-12-5.6-12-12V154c0-6.4 5.6-12 12-12s12 5.6 12 12v188c0 7.2-5.6 12-12 12z"}),(0,o.createElement)("g",{fill:"#000"},(0,o.createElement)("circle",{cx:"184",cy:"248.4",r:"45.6"}),(0,o.createElement)("circle",{cx:"312",cy:"248.4",r:"45.6"}))),x="kadence/typed",E=["kadence/advancedheading"],B={title:(0,s.__)("Typed Text","kadence-blocks"),tagName:"span",className:"kt-typed-text",keywords:[(0,s.__)("typed","kadence-blocks"),(0,s.__)("typing","kadence-blocks")],attributes:{strings:"data-strings",cursorChar:"data-cursor-char",startDelay:"data-start-delay",backDelay:"data-back-delay",typeSpeed:"data-type-speed",backSpeed:"data-back-speed",smartBackspace:"data-smart-backspace",loop:"data-loop",loopCount:"data-loop-count",shuffle:"data-shuffle"},edit({activeAttributes:e,isActive:t,value:a,onChange:n,contentRef:r}){const i=(0,c.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]);if(void 0===i?.name)return null;if(i&&!E.includes(i.name))return null;const[l,d]=(0,v.useState)(!1),p=(0,v.useCallback)((()=>d(!1)),[d]),g={strings:JSON.stringify([""]),cursorChar:"_",startDelay:0,backDelay:700,typeSpeed:40,backSpeed:30,smartBackspace:"false",loop:"true",loopCount:"false",shuffle:"false"};return(()=>{const t={...g,...e};try{t.strings=JSON.parse(t.strings)}catch(e){console.log("Error parsing strings",e)}})(),(0,v.useEffect)((()=>{d(!!t)}),[t]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(_.RichTextToolbarButton,{icon:w,title:(0,s.__)("Typed Text","kadence-blocks"),onClick:()=>n((0,S.toggleFormat)(a,{type:x})),isActive:t,className:`toolbar-button-with-text toolbar-button__${x}`}),t&&l&&(0,o.createElement)(T,{name:x,onClose:p,activeAttributes:e,value:a,updateFormat:t=>{const o={...e,...t};if("object"==typeof o.strings)try{o.strings=JSON.stringify(o.strings)}catch(e){console.log("Error encoding strings",e)}n((0,S.applyFormat)(a,{type:x,attributes:o}))},contentRef:r}))}};(0,S.registerFormatType)(x,B);const O=[...Array.isArray(_.__experimentalLinkControl?.DEFAULT_LINK_SETTINGS)?_.__experimentalLinkControl.DEFAULT_LINK_SETTINGS:[{id:'"opensInNewTab"',title:(0,s.__)("Open in new tab","kadence-blocks")}],{id:"nofollow",title:(0,s.__)("Mark as nofollow","kadence-blocks")}];function P({name:e,value:t,updateFormat:a,isActive:n,onClose:r,contentRef:i,activeAttributes:d}){const c={content:d.content||"",placement:d.placement||""},p=(0,v.useMemo)((()=>({url:d.url,opensInNewTab:"_blank"===d.target,nofollow:d.rel?.includes("nofollow")})),[d.rel,d.target,d.url]),g=(0,_.useCachedTruthy)((0,S.useAnchor)({editableContentElement:i.current,settings:{...N,isActive:n}}));return(0,o.createElement)(C.Popover,{className:"kb-typing-popover kb-tooltip-popover",onClose:r,anchor:g},(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Tooltip Content","kadence-blocks"),initialOpen:!0,panelName:"kb-tooltip-basic-settings"},(0,o.createElement)(C.TextareaControl,{label:(0,s.__)("Content","kadence-blocks"),value:c.content,onChange:e=>a({content:e})}),(0,o.createElement)(C.SelectControl,{label:(0,s.__)("Placement","kadence-blocks"),value:c.placement||"top",options:[{label:(0,s.__)("Top","kadence-blocks"),value:"top"},{label:(0,s.__)("Top Start","kadence-blocks"),value:"top-start"},{label:(0,s.__)("Top End","kadence-blocks"),value:"top-end"},{label:(0,s.__)("Right","kadence-blocks"),value:"right"},{label:(0,s.__)("Right Start","kadence-blocks"),value:"right-start"},{label:(0,s.__)("Right End","kadence-blocks"),value:"right-end"},{label:(0,s.__)("Bottom","kadence-blocks"),value:"bottom"},{label:(0,s.__)("Bottom Start","kadence-blocks"),value:"bottom-start"},{label:(0,s.__)("Bottom End","kadence-blocks"),value:"bottom-end"},{label:(0,s.__)("Left","kadence-blocks"),value:"left"},{label:(0,s.__)("Left Start","kadence-blocks"),value:"left-start"},{label:(0,s.__)("Left End","kadence-blocks"),value:"left-end"},{label:(0,s.__)("Auto","kadence-blocks"),value:"auto"},{label:(0,s.__)("Auto Start","kadence-blocks"),value:"auto-start"},{label:(0,s.__)("Auto End","kadence-blocks"),value:"auto-end"}],onChange:e=>{a({placement:e})}})),(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Link Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-tooltip-link-settings"},(0,o.createElement)(_.__experimentalLinkControl,{label:(0,s.__)("Link","kadence-blocks"),onChange:function(e){if(!e?.url)return void a({url:"",target:"",rel:""});e={...p,...e};const t={url:e?.url};e?.opensInNewTab&&(t.target="_blank",t.rel=t.rel?t.rel+" noreferrer noopener":"noreferrer noopener"),e?.nofollow&&(t.rel=t.rel?t.rel+" nofollow":"nofollow"),a(t)},value:p,settings:O})))}const F="kadence/tooltips",M=["kadence/advancedheading"],N={title:(0,s.__)("Tooltips","kadence-blocks"),tagName:"a",className:"kb-tooltips",keywords:[(0,s.__)("tooltips","kadence-blocks")],attributes:{content:"data-kb-tooltip-content",placement:"data-tooltip-placement",url:"href",target:"target",rel:"rel"},edit({activeAttributes:e,isActive:t,value:a,onChange:r,contentRef:i}){const l=(0,c.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]);if(void 0===l?.name)return null;if(l&&!M.includes(l.name))return null;const[d,p]=(0,v.useState)(!1),g=(0,v.useCallback)((()=>p(!1)),[p]);return(0,v.useEffect)((()=>{p(!!t)}),[t]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(_.RichTextToolbarButton,{icon:n.tooltip,title:(0,s.__)("Tooltips","kadence-blocks"),onClick:()=>r((0,S.toggleFormat)(a,{type:F})),isActive:t,className:`toolbar-button-with-text toolbar-button__${F}`}),t&&d&&(0,o.createElement)(P,{name:F,isActive:t,onClose:g,activeAttributes:e,value:a,updateFormat:t=>{const n={...e,...t};r((0,S.applyFormat)(a,{type:F,attributes:n}))},contentRef:i}))}};(0,S.registerFormatType)(F,N);const L=window.wp.primitives,I=(0,v.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(L.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),z=(0,v.createElement)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(L.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),A=window.wp.keycodes,$=(window.wp.url,window.wp.apiFetch);var H=a.n($);const R="https://content.startertemplatecloud.com/wp-json/prophecy/v1/";function D(e){const t=(new TextDecoder).decode(e).split("\n"),a={content:""};return t.forEach((e=>{const t=e.indexOf(":");if(-1!==t){const n=e.slice(0,t).trim(),o=e.slice(t+1).trim();if("data"===n&&"content"!==o)try{const e=JSON.parse(o);e.content&&(a.content+=e.content)}catch(e){console.error("Error parsing JSON data:",e)}}})),a}async function G(e,t){try{return await H()({path:"/kb-design-library/v1/handle_event",method:"POST",data:{event_label:e,event_data:t||{}}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}}const V="kadence/ai-text",W=["kadence/advancedheading"],q={title:(0,s.__)("Kadence AI","kadence-blocks"),tagName:"span",className:"kt-ai-text",keywords:[(0,s.__)("ai","kadence-blocks"),(0,s.__)("kadence","kadence-blocks")],attributes:{},edit({activeAttributes:e,isActive:t,value:a,onChange:r,contentRef:i}){const l=window?.kadence_blocks_params?.isAuthorized,p=!!window?.kadence_blocks_params?.isAIDisabled,g=(window?.kadence_blocks_params?.proData?.api_key&&kadence_blocks_params.proData.api_key,window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:""),u=(!kadence_blocks_params.pro||kadence_blocks_params.pro,(0,c.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]));if(void 0===u?.name)return null;if(p)return null;if(u&&!W.includes(u.name))return null;const[m,k]=(0,v.useState)(""),[y,b]=(0,v.useState)(""),[f,h]=(0,v.useState)(""),[T,w]=(0,v.useState)(""),[x,E]=(0,v.useState)(""),[B,O]=(0,v.useState)(!1),[P,F]=(0,v.useState)(1),[M,N]=(0,v.useState)(2),[L,$]=(0,v.useState)(1),[q,U]=(0,v.useState)(!1),[K,j]=(0,v.useState)(""),[J,Q]=(0,v.useState)(""),[Z,X]=(0,v.useState)(""),[Y,ee]=(0,v.useState)(),[te,ae]=(0,v.useState)(),[ne,oe]=(0,v.useState)(),[re,ie]=(0,v.useState)(),{getAIContent:le,getAITransform:de,getAIEdit:se,getAvailableCredits:ce}={getAIContent:async function(e){try{const t=new URL(window.location.href).hostname,a={domain:window?.kadence_blocks_params?.proData?.domain?window.kadence_blocks_params.proData.domain:t,key:window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",site_name:window?.kadence_blocks_params?.site_name?window.kadence_blocks_params.site_name:"",product_slug:window?.kadence_blocks_params?.pSlug?window.kadence_blocks_params.pSlug:"",product_version:window?.kadence_blocks_params?.pVersion?window.kadence_blocks_params.pVersion:""},n=window?.kadence_blocks_params?.aiLang?window.kadence_blocks_params.aiLang:"en-US",o=await fetch(`${R}proxy/generate/content`,{method:"POST",headers:{"Content-Type":"application/json","X-Prophecy-Token":btoa(JSON.stringify(a))},body:JSON.stringify({prompt:e,lang:n,stream:!0})});if(200!==o?.status){if(423===o?.status)return Promise.reject("credits");const e=o?.message?o.message:o;return Promise.reject(e)}return o.body}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}},getAITransform:async function(e,t,a=""){try{const a=new URL(window.location.href).hostname,n={domain:window?.kadence_blocks_params?.proData?.domain?window.kadence_blocks_params.proData.domain:a,key:window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",site_name:window?.kadence_blocks_params?.site_name?window.kadence_blocks_params.site_name:"",product_slug:window?.kadence_blocks_params?.pSlug?window.kadence_blocks_params.pSlug:"",product_version:window?.kadence_blocks_params?.pVersion?window.kadence_blocks_params.pVersion:""},o={text:e,stream:!0};"improve"!==t&&"simplify"!==t&&"spelling"!==t&&"tone"!==t||(o.lang=window?.kadence_blocks_params?.aiLang?window.kadence_blocks_params.aiLang:"en-US");const r=await fetch(`${R}proxy/transform/${t}`,{method:"POST",headers:{"Content-Type":"application/json","X-Prophecy-Token":btoa(JSON.stringify(n))},body:JSON.stringify(o)});if(200!==r?.status){if(423===r?.status)return Promise.reject("credits");const e=r?.message?r.message:r;return Promise.reject(e)}return r.body}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}},getAIEdit:async function(e,t,a="edit"){try{const n=new URL(window.location.href).hostname,o={domain:window?.kadence_blocks_params?.proData?.domain?window.kadence_blocks_params.proData.domain:n,key:window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",site_name:window?.kadence_blocks_params?.site_name?window.kadence_blocks_params.site_name:"",product_slug:window?.kadence_blocks_params?.pSlug?window.kadence_blocks_params.pSlug:"",product_version:window?.kadence_blocks_params?.pVersion?window.kadence_blocks_params.pVersion:""},r={text:e,stream:!0};"tone"===a?(r.tone=t,r.lang=window?.kadence_blocks_params?.aiLang?window.kadence_blocks_params.aiLang:"en-US"):r.prompt=t;const i=await fetch(`${R}proxy/transform/${a}`,{method:"POST",headers:{"Content-Type":"application/json","X-Prophecy-Token":btoa(JSON.stringify(o))},body:JSON.stringify(r)});if(200!==i?.status){if(423===i?.status)return Promise.reject("credits");const e=i?.message?i.message:i;return Promise.reject(e)}return i.body}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}},getAvailableCredits:async function(){try{return await H()({path:"/kb-design-library/v1/get_remaining_credits"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"error"}}},pe=!!(T&&T.length>0),[ge,ue]=(0,v.useState)(!1),[me,ke]=(0,v.useState)(!1),ye=(0,d.SafeParseJSON)(localStorage.getItem("kadenceBlocksPrebuilt"),!0),be=void 0!==ye?.credits&&""!==ye?.credits&&null!==ye?.credits?ye.credits:"fetch",fe=""!==K?K:be;function he(e){let t="";O(!0),E(""),X(""),G("ai_inline_requested",{tool_name:V,type:"get_new_content",initial_text:""}),le(e).then((e=>{const a=e.getReader();a.read().then((function e({done:n,value:o}){if(n)return O(!1),k(""),ue(!0),Q(parseInt(fe)-L),j("fetch"),void G("ai_inline_completed",{tool_name:V,type:"get_new_content",initial_text:"",result:t,credits_before:parseInt(fe),credits_after:parseInt(fe)-1,credits_used:1});const r=D(o);return r?.content&&(t+=r.content,E((e=>e+r.content))),a.read().then(e)}))})).catch((e=>{console.log(e),O(!1),X("credits"===e?"credits":"failed")}))}function ve(e,t,a){let n="";const o=e,r=a;O(!0),E(""),X(""),G("ai_inline_requested",{tool_name:V,type:r,initial_text:o}),se(e,t,a).then((e=>{const t=e.getReader();t.read().then((function e({done:a,value:i}){if(a)return O(!1),k(""),Q(parseInt(fe)-L),j("fetch"),ue(!0),void G("ai_inline_completed",{tool_name:V,type:r,initial_text:o,result:n,credits_before:parseInt(fe),credits_after:parseInt(fe)-1,credits_used:1});const l=D(i);return l?.content&&(n+=l.content,E((e=>e+l.content))),t.read().then(e)}))})).catch((e=>{console.log(e),O(!1),X("credits"===e?"credits":"failed")}))}function Se(e,t){let a="";const n=e,o=t;O(!0),E(""),X(""),G("ai_inline_requested",{tool_name:V,type:o,initial_text:n}),de(e,t).then((e=>{const t=e.getReader();t.read().then((function e({done:r,value:i}){if(r)return O(!1),k(""),ue(!0),Q(parseInt(fe)-L),j("fetch"),void G("ai_inline_completed",{tool_name:V,type:o,initial_text:n,result:a,credits_before:parseInt(fe),credits_after:parseInt(fe)-1,credits_used:1});const l=D(i);return l?.content&&(a+=l.content,E((e=>e+l.content))),t.read().then(e)}))})).catch((e=>{console.log(e),O(!1),X("credits"===e?"credits":"failed")}))}return(0,v.useEffect)((()=>{"fetch"===fe&&async function(){const e=await ce(),t=(0,d.SafeParseJSON)(localStorage.getItem("kadenceBlocksPrebuilt"),!0);"error"===e?(console.log("Error getting credits"),t.credits="fetch",localStorage.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),j(0),Q("")):(t.credits=parseInt(e),localStorage.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),j(parseInt(e)),Q(""))}()}),[K]),(0,v.useEffect)((()=>{a?.text&&a?.text.length>0&&a?.text.length<800&&a?.end&&a.start!==a.end?(w(a.text.substring(a.start,a.end)),!ge&&a?.text.length>30&&ue(!0)):a?.text&&a?.text.length>0&&a?.text.length<800&&a.start===a.end&&a?.text.length!==a.start?(w(a.text),!ge&&a?.text.length>30&&ue(!0)):(a?.text&&a?.text.length>=800||T&&T.length>0)&&(w(""),ge&&ue(!1)),a?.text&&a?.text.length>400?$(2):$(1)}),[a]),(0,o.createElement)(_.BlockControls,null,(0,o.createElement)(C.ToolbarGroup,{group:"ai-text",className:"kb-ai-toolbar-group"},(0,o.createElement)(C.ToolbarButton,{className:"kb-ai-dropdown-toggle",label:(0,s.__)("Kadence AI","kadence-blocks"),tooltip:(0,s.__)("Kadence AI","kadence-blocks"),icon:n.aiIcon,onClick:()=>{U(!q)},"aria-expanded":q,ref:oe}),q&&!l&&(0,o.createElement)(C.Popover,{onClose:()=>{U(!1)},flip:!1,placement:"bottom",anchor:ne,className:"kb-ai-dropdown-container-content kb-activation-ai-needed"},(0,o.createElement)("div",{className:"kb-ai-dropdown-container-content-wrap activation-needed"},(0,o.createElement)(C.Button,{className:"kadence-generate-copy-button",iconPosition:"right",variant:"primary",icon:n.aiIcon,text:(0,s.__)("Activate Kadence AI","kadence-blocks"),target:g?"_blank":"",disabled:!g,href:g||""}))),q&&l&&(0,o.createElement)(C.Popover,{onClose:()=>{U(!1)},flip:!1,placement:"bottom",anchor:ne,className:"kb-ai-dropdown-container-content"},(0,o.createElement)("div",{className:"kb-ai-dropdown-container-content-wrap"},pe&&(0,o.createElement)("div",{className:"kb-ai-selected-text"},(0,o.createElement)("strong",null,(0,s.__)("Selected Text:","kadence-blocks"))," ",(0,o.createElement)("span",null,T)),x&&(0,o.createElement)("div",{className:"kb-ai-suggesed-text"},(0,o.createElement)("div",{className:"kb-ai-suggestion-content"},x),(0,o.createElement)(C.Button,{className:"kb-ai-send",text:(0,s.__)("Use This Copy","kadence-blocks"),icon:n.check,disabled:B,iconPosition:"left",iconSize:16,onClick:()=>{pe?T.length!==a.text.length&&a.start!==a.end?r((0,S.insert)((0,S.remove)(a,a.start,a.end),(0,S.create)({html:x}))):r((0,S.insert)((0,S.remove)(a,0,a.replacements.length),(0,S.create)({html:x}))):r((0,S.insert)(a,(0,S.create)({html:x}))),E(""),b(""),k(""),h(""),ue(!1),U(!1)}})),Z&&(0,o.createElement)("div",{className:"kb-ai-error-text"},(0,o.createElement)("div",{className:"kb-ai-error-content"},"credits"===Z?(0,s.__)("Error, Can not generate AI content because of insufficient credits.","kadence-blocks"):(0,s.__)("Error, AI content generation failed, please try again.","kadence-blocks"))),(0,o.createElement)("div",{className:"kb-ai-prompt-wrap"},!B&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(C.TextareaControl,{className:P>1?"kb-ai-prompt-text-input":"kb-ai-prompt-text-input kb-ai-prompt-single",placeholder:pe||x?(0,s.__)("Ask Kadence AI to edit…","kadence-blocks"):(0,s.__)("Ask Kadence AI to generate…","kadence-blocks"),value:m,rows:P,onChange:e=>{ge&&ue(!1),e.length>60&&1===P?F(2):2===P&&e.length<=60&&F(1),k(e)},onKeyDown:e=>{e.keyCode===A.ENTER&&(e.preventDefault(),ue(!1),h(m),pe?ve(T,m,"edit"):he(m))}}),(0,o.createElement)(C.Button,{className:"kb-ai-send",label:(0,s.__)("Send","kadence-blocks"),icon:I,disabled:!m,iconPosition:"right",onClick:()=>{ue(!1),h(m),pe?ve(T,m,"edit"):he(m)}})),B&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(C.TextareaControl,{className:"kb-ai-prompt-text-input kb-ai-prompt-single",value:"Kadence AI is working...",rows:1})),(0,o.createElement)("div",{className:"kb-ai-prompt-icon"},B?(0,o.createElement)(C.Spinner,null):(0,o.createElement)(o.Fragment,null,x&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(C.Button,{className:"kb-ai-quick-prompts-toggle",label:(0,s.__)("Quick Prompts","kadence-blocks"),tooltip:(0,s.__)("Quick Prompts","kadence-blocks"),icon:n.aiIcon,onClick:()=>ue(!ge),"aria-expanded":ge,ref:ie}),ge&&(0,o.createElement)(C.Popover,{onClose:()=>{},focusOnMount:!1,flip:!1,placement:"bottom-start",anchor:re,className:"kb-ai-quick-prompt-icon-dropdown"},(0,o.createElement)("div",{className:"components-dropdown-menu__menu",role:"menu","aria-orientation":"vertical","aria-label":"Options"},(0,o.createElement)(C.MenuGroup,null,(0,o.createElement)(C.MenuItem,{icon:n.notes,onClick:()=>{h(""),Se(x,"shorten")},iconPosition:"left"},(0,s.__)("Make Shorter","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:n.subject,onClick:()=>{h(""),Se(x,"lengthen")},iconPosition:"left"},(0,s.__)("Make Longer","kadence-blocks")),!pe&&f&&(0,o.createElement)(C.MenuItem,{icon:n.autoFix,onClick:()=>{he(f)},iconPosition:"left"},(0,s.__)("Try Again","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:n.playlist,onClick:()=>{Se(x,"simplify")},iconPosition:"left"},(0,s.__)("Simplify","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:I,className:"kb-ai-quick-prompt-change-tone",onClick:()=>ke(!me),disabled:!(T&&T.length>5),iconPosition:"right",ref:ae},n.chatBubble," ",(0,s.__)("Change Tone","kadence-blocks")),me&&(0,o.createElement)(C.Popover,{onClose:()=>{},placement:"right-start",anchor:te,focusOnMount:!1,className:"kb-ai-quick-prompt-change-tone-dropdown"},(0,o.createElement)("div",{className:"components-dropdown-menu__menu",role:"menu","aria-orientation":"vertical","aria-label":"Options"},(0,o.createElement)(C.MenuGroup,null,(0,o.createElement)(C.MenuItem,{onClick:()=>{ve(x,"Professional","tone")}},(0,s.__)("Professional","kadence-blocks")),(0,o.createElement)(C.MenuItem,{onClick:()=>{ve(x,"Friendly","tone")}},(0,s.__)("Friendly","kadence-blocks")),(0,o.createElement)(C.MenuItem,{onClick:()=>{ve(x,"Informative","tone")}},(0,s.__)("Informative","kadence-blocks")),(0,o.createElement)(C.MenuItem,{onClick:()=>{ve(x,"Engaging","tone")}},(0,s.__)("Engaging","kadence-blocks")),(0,o.createElement)(C.MenuItem,{onClick:()=>{ve(x,"Funny","tone")}},(0,s.__)("Funny","kadence-blocks"))))),(0,o.createElement)(C.MenuItem,{icon:z,onClick:()=>{E(""),b(""),k(""),h(""),ue(!1),U(!1)},iconPosition:"left"},(0,s.__)("Discard","kadence-blocks")))))),!x&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(C.Button,{className:"kb-ai-quick-prompts-toggle",label:(0,s.__)("Quick Prompts","kadence-blocks"),tooltip:(0,s.__)("Quick Prompts","kadence-blocks"),icon:n.aiIcon,onClick:()=>ue(!ge),"aria-expanded":ge,ref:ee}),ge&&(0,o.createElement)(C.Popover,{onClose:()=>{},flip:!1,placement:"bottom-start",anchor:Y,focusOnMount:!1,className:"kb-ai-quick-prompt-icon-dropdown"},(0,o.createElement)("div",{className:"components-dropdown-menu__menu",role:"menu","aria-orientation":"vertical","aria-label":"Options"},(0,o.createElement)(C.MenuGroup,null,(0,o.createElement)(C.MenuItem,{icon:n.autoFix,onClick:()=>{Se(T,"improve")},disabled:!(T&&T.length>5),iconPosition:"left"},(0,s.__)("Improve Writing","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:n.check,onClick:()=>{Se(T,"spelling")},disabled:!(T&&T.length>5),iconPosition:"left"},(0,s.__)("Fix Spelling & Grammar","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:n.notes,onClick:()=>{Se(T,"shorten")},disabled:!(T&&T.length>5),iconPosition:"left"},(0,s.__)("Make Shorter","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:n.subject,onClick:()=>{Se(T,"lengthen")},disabled:!(T&&T.length>5),iconPosition:"left"},(0,s.__)("Make Longer","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:n.playlist,onClick:()=>{Se(T,"simplify")},disabled:!(T&&T.length>5),iconPosition:"left"},(0,s.__)("Simplify","kadence-blocks")),(0,o.createElement)(C.MenuItem,{icon:I,className:"kb-ai-quick-prompt-change-tone",onClick:()=>ke(!me),disabled:!(T&&T.length>5),iconPosition:"right",ref:ae},n.chatBubble," ",(0,s.__)("Change Tone","kadence-blocks")),me&&(0,o.createElement)(C.Popover,{onClose:()=>{},placement:"right-start",anchor:te,focusOnMount:!1,className:"kb-ai-quick-prompt-change-tone-dropdown"},(0,o.createElement)("div",{className:"components-dropdown-menu__menu",role:"menu","aria-orientation":"vertical","aria-label":"Options"},(0,o.createElement)(C.MenuGroup,null,(0,o.createElement)(C.MenuItem,{disabled:!(T&&T.length>5),onClick:()=>{ve(T,"Professional","tone")}},(0,s.__)("Professional","kadence-blocks")),(0,o.createElement)(C.MenuItem,{disabled:!(T&&T.length>5),onClick:()=>{ve(T,"Friendly","tone")}},(0,s.__)("Friendly","kadence-blocks")),(0,o.createElement)(C.MenuItem,{disabled:!(T&&T.length>5),onClick:()=>{ve(T,"Informative","tone")}},(0,s.__)("Informative","kadence-blocks")),(0,o.createElement)(C.MenuItem,{onClick:()=>{ve(T,"Engaging","tone")}},(0,s.__)("Engaging","kadence-blocks")),(0,o.createElement)(C.MenuItem,{disabled:!(T&&T.length>5),onClick:()=>{ve(T,"Funny","tone")}},(0,s.__)("Funny","kadence-blocks")))))))))))),(0,o.createElement)("div",{className:"kb-ai-credits"+(0===fe?" kb-ai-credits-out":"")},(0,s.__)("Credits Remaining:","kadence-blocks")," ","fetch"!==fe?fe:J),(0,o.createElement)("style",null,".edit-post-visual-editor .edit-post-visual-editor__content-area > div {padding-bottom:300px;}")))))}};(0,S.registerFormatType)(V,q);var U=a(7560),K=a.n(U);const j=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Advanced Text","name":"kadence/advancedheading","category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"content":{"type":"string","source":"html","selector":"h1,h2,h3,h4,h5,h6,p.wp-block-kadence-advancedheading,span.wp-block-kadence-advancedheading,div.wp-block-kadence-advancedheading","__experimentalRole":"content"},"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"},"tabletLetterSpacing":{"type":"number"},"mobileLetterSpacing":{"type":"number"},"letterSpacingType":{"type":"string","default":"px"},"typography":{"type":"string","default":""},"googleFont":{"type":"boolean","default":false},"loadGoogleFont":{"type":"boolean","default":true},"fontSubset":{"type":"string","default":""},"fontVariant":{"type":"string","default":""},"fontWeight":{"type":"string","default":""},"fontStyle":{"type":"string","default":"normal"},"topMargin":{"type":"number","default":""},"bottomMargin":{"type":"number","default":""},"leftMargin":{"type":"number","default":""},"rightMargin":{"type":"number","default":""},"margin":{"type":"array","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"},"tabletMarkLetterSpacing":{"type":"number"},"mobileMarkLetterSpacing":{"type":"number"},"markLetterSpacingType":{"type":"string","default":"px"},"markTypography":{"type":"string","default":""},"markGoogleFont":{"type":"boolean","default":false},"markLoadGoogleFont":{"type":"boolean","default":true},"markFontSubset":{"type":"string","default":""},"markFontVariant":{"type":"string","default":""},"markFontWeight":{"type":"string","default":""},"markFontStyle":{"type":"string","default":"normal"},"enableMarkGradient":{"type":"boolean","default":false},"enableMarkBackgroundGradient":{"type":"boolean","default":false},"markGradient":{"type":"string","default":""},"markBackgroundGradient":{"type":"string","default":""},"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"},"markPaddingType":{"type":"string","default":"px"},"markBorder":{"type":"string"},"markBorderStyles":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletMarkBorderStyles":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileMarkBorderStyles":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"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"},"enableTextShadow":{"type":"boolean","default":false},"textShadow":{"type":"array","default":[{"enable":false,"color":"rgba(0, 0, 0, 0.2)","blur":1,"hOffset":1,"vOffset":1}]},"textShadowTablet":{"type":"array","default":[{"enable":false,"color":"","blur":"","hOffset":"","vOffset":""}]},"textShadowMobile":{"type":"array","default":[{"enable":false,"color":"","blur":"","hOffset":"","vOffset":""}]},"htmlTag":{"type":"string","default":"heading"},"loadItalic":{"type":"boolean","default":false},"link":{"type":"string"},"linkTarget":{"type":"boolean","default":false},"linkNoFollow":{"type":"boolean","default":false},"linkSponsored":{"type":"boolean","default":false},"background":{"type":"string"},"backgroundColorClass":{"type":"string"},"linkStyle":{"type":"string"},"linkColor":{"type":"string"},"linkHoverColor":{"type":"string"},"inQueryBlock":{"type":"boolean","default":false},"fontSize":{"type":"array","default":["","",""]},"fontHeight":{"type":"array","default":["","",""]},"fontHeightType":{"type":"string","default":""},"maxWidth":{"type":"array","default":["","",""]},"maxWidthType":{"type":"string","default":"px"},"icon":{"type":"string","default":""},"iconColor":{"type":"string","default":""},"iconColorHover":{"type":"string","default":""},"iconSide":{"type":"string","default":"left"},"iconHover":{"type":"boolean","default":false},"iconPadding":{"type":"array","default":["","","",""]},"tabletIconPadding":{"type":"array","default":["","","",""]},"mobileIconPadding":{"type":"array","default":["","","",""]},"iconPaddingUnit":{"type":"string","default":"px"},"iconSize":{"type":"array","default":["","",""]},"iconSizeUnit":{"type":"string","default":"px"},"iconVerticalAlign":{"type":"string","default":"center"},"borderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"borderRadius":{"type":"array","default":["","","",""]},"tabletBorderRadius":{"type":"array","default":["","","",""]},"mobileBorderRadius":{"type":"array","default":["","","",""]},"borderRadiusUnit":{"type":"string","default":"px"},"iconTitle":{"type":"string","default":""},"markBorderRadius":{"type":"array","default":["","","",""]},"tabletMarkBorderRadius":{"type":"array","default":["","","",""]},"mobileMarkBorderRadius":{"type":"array","default":["","","",""]},"markBorderRadiusUnit":{"type":"string","default":"px"},"altTitle":{"type":"string","default":""},"iconTooltip":{"type":"string","default":""},"iconTooltipPlacement":{"type":"string","default":""},"iconTooltipDash":{"type":"boolean","default":false},"enableTextGradient":{"type":"boolean","default":false},"textGradient":{"type":"string","default":""}},"usesContext":["postId","queryId","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"],"supports":{"ktanimate":true,"ktanimatereveal":true,"ktanimatepreview":true,"ktdynamic":true,"kbMetadata":true,"kbContentLabel":"content"}}'),J=window.wp.blocks,Q=window.wp.hooks,Z=window.lodash,X=/[\s#]/g,Y=[{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:""},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:""},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},background:{type:"string"},backgroundColorClass:{type:"string"},linkStyle:{type:"string"},linkColor:{type:"string"},linkHoverColor:{type:"string"},inQueryBlock:{type:"boolean",default:!1}},save:({attributes:e})=>{const{anchor:t,level:a,content:n,colorClass:r,color:l,textShadow:d,letterSpacing:s,topMargin:c,bottomMargin:p,marginType:g,align:u,uniqueID:m,className:k,kadenceAnimation:y,kadenceAOSOptions:b,htmlTag:f,link:h,linkNoFollow:S,linkSponsored:C,linkTarget:T,backgroundColorClass:w,linkStyle:x}=e,E=f&&"heading"!==f?f:"h"+a,B=(0,_.getColorClassName)("color",r),O=(0,_.getColorClassName)("background-color",w),P=!(!y||"reveal-left"!==y&&"reveal-right"!==y&&"reveal-up"!==y&&"reveal-down"!==y),F=!!P,M=i()({[`kt-adv-heading${m}`]:m,[k]:!F&&!h&&k,[(0,J.getBlockDefaultClassName)("kadence/advancedheading")]:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),[B]:B,"has-text-color":B,[O]:O,"has-background":O,[`hls-${x}`]:!h&&x});let N;T&&(N="noopener noreferrer"),void 0!==S&&!0===S&&(N=N?N.concat(" nofollow"):"nofollow"),void 0!==C&&!0===C&&(N=N?N.concat(" sponsored"):"sponsored");const L=(0,o.createElement)(_.RichText.Content,{tagName:E,id:t||void 0,className:M,"data-kb-block":`kb-adv-heading${m}`,"data-aos":y||void 0,"data-aos-offset":b&&b[0]&&b[0].offset?b[0].offset:void 0,"data-aos-duration":b&&b[0]&&b[0].duration?b[0].duration:void 0,"data-aos-delay":b&&b[0]&&b[0].delay?b[0].delay:void 0,"data-aos-easing":b&&b[0]&&b[0].easing?b[0].easing:void 0,"data-aos-once":b&&b[0]&&void 0!==b[0].once&&""!==b[0].once?b[0].once:void 0,value:n}),I=(0,o.createElement)("a",{href:h,className:`kb-advanced-heading-link kt-adv-heading-link${m}${!F&&k?" "+k:""}${x?" hls-"+x:""}`,target:T?"_blank":void 0,relAttr:N||void 0,rel:"noreferrer"},L),z=h?I:L;return(0,o.createElement)(v.Fragment,null,F&&(0,o.createElement)("div",{className:`kb-adv-heading-wrap${m} kadence-advanced-heading-wrapper${P?" kadence-heading-clip-animation":""}${k?" "+k:""}`},z),!F&&z)}},{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},background:{type:"string"},backgroundColorClass:{type:"string"}},save:({attributes:e})=>{const{anchor:t,level:a,content:n,colorClass:r,color:l,textShadow:d,letterSpacing:s,topMargin:c,bottomMargin:p,marginType:g,align:u,uniqueID:m,className:k,kadenceAnimation:y,kadenceAOSOptions:b,htmlTag:f,link:h,linkNoFollow:S,linkSponsored:C,linkTarget:T,backgroundColorClass:w,linkStyle:x}=e,E=f&&"heading"!==f?f:"h"+a,B=(0,_.getColorClassName)("color",r),O=(0,_.getColorClassName)("background-color",w),P=!(!y||"reveal-left"!==y&&"reveal-right"!==y&&"reveal-up"!==y&&"reveal-down"!==y),F=!!P,M=i()({[`kt-adv-heading${m}`]:m,[k]:!F&&!h&&k,[(0,J.getBlockDefaultClassName)("kadence/advancedheading")]:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),[B]:B,"has-text-color":B,[O]:O,"has-background":O});let N;T&&(N="noopener noreferrer"),void 0!==S&&!0===S&&(N=N?N.concat(" nofollow"):"nofollow"),void 0!==C&&!0===C&&(N=N?N.concat(" sponsored"):"sponsored");const L=(0,o.createElement)(_.RichText.Content,{tagName:E,id:t||void 0,className:M,"data-kb-block":`kb-adv-heading${m}`,"data-aos":y||void 0,"data-aos-offset":b&&b[0]&&b[0].offset?b[0].offset:void 0,"data-aos-duration":b&&b[0]&&b[0].duration?b[0].duration:void 0,"data-aos-delay":b&&b[0]&&b[0].delay?b[0].delay:void 0,"data-aos-easing":b&&b[0]&&b[0].easing?b[0].easing:void 0,"data-aos-once":b&&b[0]&&void 0!==b[0].once&&""!==b[0].once?b[0].once:void 0,value:n}),I=(0,o.createElement)("a",{href:h,className:"kb-advanced-heading-link",target:T?"_blank":void 0,relAttr:N||void 0,rel:"noreferrer"},L),z=h?I:L;return(0,o.createElement)(v.Fragment,null,F&&(0,o.createElement)("div",{className:`kb-adv-heading-wrap${m} kadence-advanced-heading-wrapper${P?" kadence-heading-clip-animation":""}${k?" "+k:""}`},z),!F&&z)}},{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},background:{type:"string"},backgroundColorClass:{type:"string"}},save:({attributes:e})=>{const{anchor:t,level:a,content:n,colorClass:r,color:l,textShadow:d,letterSpacing:s,topMargin:c,bottomMargin:p,marginType:g,align:u,uniqueID:m,className:k,kadenceAnimation:y,kadenceAOSOptions:b,htmlTag:f,link:h,linkNoFollow:S,linkSponsored:C,linkTarget:T,backgroundColorClass:w}=e,x=f&&"heading"!==f?f:"h"+a,E=(0,_.getColorClassName)("color",r),B=(0,_.getColorClassName)("background-color",w),O=!(!y||"reveal-left"!==y&&"reveal-right"!==y&&"reveal-up"!==y&&"reveal-down"!==y),P=!!O,F=i()({[`kt-adv-heading${m}`]:m,[k]:!P&&k,[(0,J.getBlockDefaultClassName)("kadence/advancedheading")]:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),[E]:E,"has-text-color":E,[B]:B,"has-background":B});let M;T&&(M="noopener noreferrer"),void 0!==S&&!0===S&&(M=M?M.concat(" nofollow"):"nofollow"),void 0!==C&&!0===C&&(M=M?M.concat(" sponsored"):"sponsored");const N=(0,o.createElement)(_.RichText.Content,{tagName:x,id:t||void 0,className:F,"data-kb-block":`kb-adv-heading${m}`,"data-aos":y||void 0,"data-aos-offset":b&&b[0]&&b[0].offset?b[0].offset:void 0,"data-aos-duration":b&&b[0]&&b[0].duration?b[0].duration:void 0,"data-aos-delay":b&&b[0]&&b[0].delay?b[0].delay:void 0,"data-aos-easing":b&&b[0]&&b[0].easing?b[0].easing:void 0,"data-aos-once":b&&b[0]&&void 0!==b[0].once&&""!==b[0].once?b[0].once:void 0,value:n}),L=(0,o.createElement)("a",{href:h,className:"kb-advanced-heading-link",target:T?"_blank":void 0,relAttr:M||void 0,rel:"noreferrer"},N),I=h?L:N;return(0,o.createElement)(v.Fragment,null,P&&(0,o.createElement)("div",{className:`kb-adv-heading-wrap${m} kadence-advanced-heading-wrapper${O?" kadence-heading-clip-animation":""}${k?" "+k:""}`},I),!P&&I)}},{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:a,content:n,colorClass:r,color:l,textShadow:d,letterSpacing:s,topMargin:c,bottomMargin:p,marginType:g,align:u,uniqueID:m,className:k,kadenceAnimation:y,kadenceAOSOptions:b,htmlTag:f}=e,h=f&&"heading"!==f?f:"h"+a,S=(0,_.getColorClassName)("color",r),C=!(!y||"reveal-left"!==y&&"reveal-right"!==y&&"reveal-up"!==y&&"reveal-down"!==y),T=!!C,w=i()({[`kt-adv-heading${m}`]:m,[k]:!T&&k,[(0,J.getBlockDefaultClassName)("kadence/advancedheading")]:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),[S]:S}),x=(0,o.createElement)(_.RichText.Content,{tagName:h,id:t||void 0,className:w,"data-kb-block":`kb-adv-heading${m}`,"data-aos":y||void 0,"data-aos-offset":b&&b[0]&&b[0].offset?b[0].offset:void 0,"data-aos-duration":b&&b[0]&&b[0].duration?b[0].duration:void 0,"data-aos-delay":b&&b[0]&&b[0].delay?b[0].delay:void 0,"data-aos-easing":b&&b[0]&&b[0].easing?b[0].easing:void 0,"data-aos-once":b&&b[0]&&void 0!==b[0].once&&""!==b[0].once?b[0].once:void 0,value:n});return(0,o.createElement)(v.Fragment,null,T&&(0,o.createElement)("div",{className:`kb-adv-heading-wrap${m} kadence-advanced-heading-wrapper${C?" kadence-heading-clip-animation":""}${k?" "+k:""}`},x),!T&&x)}},{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:a,level:n,content:r,color:l,colorClass:s,textShadow:c,uniqueID:p,letterSpacing:g,topMargin:u,bottomMargin:m,marginType:k,className:y,kadenceAnimation:b,kadenceAOSOptions:f,htmlTag:h}=e,S=h&&"heading"!==h?h:"h"+n,C=(0,_.getColorClassName)("color",s),T=k||"px";let w=t||`kt-adv-heading${p}`;const x=!(!b||"reveal-left"!==b&&"reveal-right"!==b&&"reveal-up"!==b&&"reveal-down"!==b),E=!(!t&&!x);w=x&&!t?`kt-adv-inner-heading${p}`:w;const B=i()({[`kt-adv-heading${p}`]:p,[y]:!E&&y,[(0,J.getBlockDefaultClassName)("kadence/advancedheading")]:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),[C]:C}),O=(0,o.createElement)(_.RichText.Content,{tagName:S,id:w,className:B,"data-aos":b||void 0,"data-aos-offset":f&&f[0]&&f[0].offset?f[0].offset:void 0,"data-aos-duration":f&&f[0]&&f[0].duration?f[0].duration:void 0,"data-aos-delay":f&&f[0]&&f[0].delay?f[0].delay:void 0,"data-aos-easing":f&&f[0]&&f[0].easing?f[0].easing:void 0,"data-aos-once":f&&f[0]&&void 0!==f[0].once&&""!==f[0].once?f[0].once:void 0,style:{textAlign:a,color:!C&&l?(0,d.KadenceColorOutput)(l):void 0,letterSpacing:g?g+"px":void 0,marginTop:void 0!==u&&""!==u?u+T:void 0,marginBottom:void 0!==m&&""!==m?m+T: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?(0,d.KadenceColorOutput)(c[0].color):"rgba(0,0,0,0.2)"):void 0},value:r});return(0,o.createElement)(v.Fragment,null,E&&(0,o.createElement)("div",{id:`kt-adv-heading${p}`,className:`kadence-advanced-heading-wrapper${x?" kadence-heading-clip-animation":""}${y?" "+y:""}`},O),!E&&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:a,level:n,content:r,color:i,uniqueID:l,letterSpacing:d,topMargin:s,bottomMargin:c,marginType:p,className:g,kadenceAnimation:u,kadenceAOSOptions:m}=e,k="h"+n,y=p||"px";let b=t||`kt-adv-heading${l}`;const f=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),h=!(!t&&!f);b=f&&!t?`kt-adv-inner-heading${l}`:b;const S=g?`${g} ${(0,J.getBlockDefaultClassName)("kadence/advancedheading")}`:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),C=(0,o.createElement)(_.RichText.Content,{tagName:k,id:b,className:`kt-adv-heading${l} ${S}`,"data-aos":u||void 0,"data-aos-offset":m&&m[0]&&m[0].offset?m[0].offset:void 0,"data-aos-duration":m&&m[0]&&m[0].duration?m[0].duration:void 0,"data-aos-delay":m&&m[0]&&m[0].delay?m[0].delay:void 0,"data-aos-easing":m&&m[0]&&m[0].easing?m[0].easing:void 0,"data-aos-once":m&&m[0]&&void 0!==m[0].once&&""!==m[0].once?m[0].once:void 0,style:{textAlign:a,color:i,letterSpacing:d?d+"px":void 0,marginTop:void 0!==s&&""!==s?s+y:void 0,marginBottom:void 0!==c&&""!==c?c+y:void 0},value:r});return(0,o.createElement)(v.Fragment,null,h&&(0,o.createElement)("div",{id:`kt-adv-heading${l}`,className:"kadence-advanced-heading-wrapper"+(f?" kadence-heading-clip-animation":"")},C),!h&&C)}},{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:a,level:n,content:r,color:i,uniqueID:l,letterSpacing:d,topMargin:s,bottomMargin:c,marginType:p,className:g,kadenceAnimation:u,kadenceAOSOptions:m}=e,k="h"+n,y=p||"px";let b=t||`kt-adv-heading${l}`;const f=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),h=!(!t&&!f);b=f&&!t?`kt-adv-inner-heading${l}`:b;const S=g?`${g} ${(0,J.getBlockDefaultClassName)("kadence/advancedheading")}`:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),C=(0,o.createElement)(_.RichText.Content,{tagName:k,id:b,className:`kt-adv-heading${l} ${S}`,"data-aos":u||void 0,"data-aos-offset":m&&m[0]&&m[0].offset?m[0].offset:void 0,"data-aos-duration":m&&m[0]&&m[0].duration?m[0].duration:void 0,"data-aos-delay":m&&m[0]&&m[0].delay?m[0].delay:void 0,"data-aos-easing":m&&m[0]&&m[0].easing?m[0].easing:void 0,"data-aos-once":m&&m[0]&&void 0!==m[0].once&&""!==m[0].once?m[0].once:void 0,style:{textAlign:a,color:i,letterSpacing:d?d+"px":void 0,marginTop:s?s+y:void 0,marginBottom:c?c+y:void 0},value:r});return(0,o.createElement)(v.Fragment,null,h&&(0,o.createElement)("div",{id:`kt-adv-heading${l}`,className:"kadence-advanced-heading-wrapper"+(f?" kadence-heading-clip-animation":"")},C),!h&&C)}},{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:a,level:n,content:r,color:i,uniqueID:l,letterSpacing:d,topMargin:s,bottomMargin:c,marginType:p,className:g,kadenceAnimation:u,kadenceAOSOptions:m}=e,k="h"+n,y=p||"px";let b=t||`kt-adv-heading${l}`;const f=!(!u||"reveal-left"!==u&&"reveal-right"!==u&&"reveal-up"!==u&&"reveal-down"!==u),h=!(!t&&!f);b=f&&!t?`kt-adv-inner-heading${l}`:`kt-adv-heading${l}`;const S=g?`${g} ${(0,J.getBlockDefaultClassName)("kadence/advancedheading")}`:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),C=(0,o.createElement)(_.RichText.Content,{tagName:k,id:b,className:`kt-adv-heading${l} ${S}`,"data-aos":u||void 0,"data-aos-offset":m&&m[0]&&m[0].offset?m[0].offset:void 0,"data-aos-duration":m&&m[0]&&m[0].duration?m[0].duration:void 0,"data-aos-delay":m&&m[0]&&m[0].delay?m[0].delay:void 0,"data-aos-easing":m&&m[0]&&m[0].easing?m[0].easing:void 0,"data-aos-once":m&&m[0]&&void 0!==m[0].once&&""!==m[0].once?m[0].once:void 0,style:{textAlign:a,color:i,letterSpacing:d?d+"px":void 0,marginTop:s?s+y:void 0,marginBottom:c?c+y:void 0},value:r});return(0,o.createElement)(v.Fragment,null,h&&(0,o.createElement)("div",{id:`kt-adv-heading${l}`,className:"kadence-advanced-heading-wrapper"+(f?" kadence-heading-clip-animation":"")},C),!h&&C)}},{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:a,content:n,color:r,uniqueID:i,letterSpacing:l,topMargin:d,bottomMargin:s,marginType:c}=e,p="h"+a,g=c||"px";return(0,o.createElement)(_.RichText.Content,{tagName:p,id:`kt-adv-heading${i}`,style:{textAlign:t,color:r,letterSpacing:l?l+"px":void 0,marginTop:d?d+g:void 0,marginBottom:s?s+g:void 0},value:n})}},{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:a,content:n,color:r,uniqueID:i,letterSpacing:l}=e,d="h"+a;return(0,o.createElement)(_.RichText.Content,{tagName:d,id:`kt-adv-heading${i}`,style:{textAlign:t,color:r,letterSpacing:l?l+"px":void 0},value:n})}}];(0,J.registerBlockType)("kadence/advancedheading",{...j,title:(0,s._x)("Text (Adv)","block title","kadence-blocks"),description:(0,s.__)("Create a heading or paragraph and define sizes for desktop, tablet and mobile along with font family, colors, etc.","kadence-blocks"),keywords:[(0,s.__)("text","kadence-blocks"),(0,s.__)("advanced","kadence-blocks"),(0,s.__)("heading","kadence-blocks"),"KB"],icon:{src:n.advancedHeadingIcon},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,J.createBlock)("kadence/advancedheading",{content:e,htmlTag:"p"})},{type:"block",blocks:["core/heading"],transform:({content:e,level:t})=>(0,J.createBlock)("kadence/advancedheading",{content:e,level:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,J.createBlock)("core/paragraph",{content:e})},{type:"block",blocks:["core/heading"],transform:({content:e,level:t})=>(0,J.createBlock)("core/heading",{content:e,level:t})}]},edit:function(e){const{attributes:t,className:a,isSelected:n,setAttributes:r,mergeBlocks:p,onReplace:g,clientId:u,context:m}=e,{inQueryBlock:k,uniqueID:y,align:b,level:f,content:h,color:S,colorClass:T,enableTextShadow:w,textShadow:x,textShadowTablet:E,textShadowMobile:B,mobileAlign:O,tabletAlign:P,size:F,sizeType:M,lineType:N,lineHeight:L,tabLineHeight:I,tabSize:z,mobileSize:A,mobileLineHeight:$,letterSpacing:H,typography:R,fontVariant:D,fontWeight:G,fontStyle:V,fontSubset:W,googleFont:q,loadGoogleFont:U,marginType:Y,topMargin:ee,bottomMargin:te,markSize:ae,markSizeType:ne,markLineHeight:oe,markLineType:re,markLetterSpacing:ie,markTypography:le,markGoogleFont:de,markLoadGoogleFont:se,markFontSubset:ce,markFontVariant:pe,markFontWeight:ge,markFontStyle:ue,markPadding:me,markColor:ke,markBG:ye,markBGOpacity:be,markBorder:fe,markBorderWidth:he,markBorderOpacity:ve,markBorderStyle:Se,anchor:_e,textTransform:Ce,markTextTransform:Te,kadenceAnimation:we,kadenceAOSOptions:xe,htmlTag:Ee,leftMargin:Be,rightMargin:Oe,tabletMargin:Pe,mobileMargin:Fe,margin:Me,padding:Ne,tabletPadding:Le,mobilePadding:Ie,paddingType:ze,markMobilePadding:Ae,markTabPadding:$e,loadItalic:He,kadenceDynamic:Re,link:De,linkTarget:Ge,linkNoFollow:Ve,linkSponsored:We,background:qe,backgroundColorClass:Ue,linkStyle:Ke,linkColor:je,linkHoverColor:Je,fontSize:Qe,fontHeight:Ze,fontHeightType:Xe,letterSpacingType:Ye,tabletLetterSpacing:et,mobileLetterSpacing:tt,markLetterSpacingType:at,markPaddingType:nt,tabletMarkLetterSpacing:ot,mobileMarkLetterSpacing:rt,markBorderStyles:it,tabletMarkBorderStyles:lt,mobileMarkBorderStyles:dt,maxWidthType:st,maxWidth:ct,beforeIcon:pt,afterIcon:gt,icon:ut,iconTitle:mt,iconColor:kt,iconColorHover:yt,iconSide:bt,iconVerticalAlign:ft,iconPadding:ht,tabletIconPadding:vt,mobileIconPadding:St,iconSize:_t,iconSizeUnit:Ct,iconPaddingUnit:Tt,borderStyle:wt,tabletBorderStyle:xt,mobileBorderStyle:Et,borderRadius:Bt,tabletBorderRadius:Ot,mobileBorderRadius:Pt,borderRadiusUnit:Ft,markBorderRadius:Mt,tabletMarkBorderRadius:Nt,mobileMarkBorderRadius:Lt,markBorderRadiusUnit:It,altTitle:zt,iconTooltipPlacement:At,iconTooltipDash:$t,iconTooltip:Ht,textGradient:Rt,enableTextGradient:Dt,enableMarkGradient:Gt,enableMarkBackgroundGradient:Vt,markGradient:Wt,markBackgroundGradient:qt}=t,[Ut,Kt]=(0,v.useState)("style"),[jt,Jt]=(0,v.useState)(),{addUniqueID:Qt}=(0,c.useDispatch)("kadenceblocks/data"),{isUniqueID:Zt,isUniqueBlock:Xt,previewDevice:Yt,parentData:ea,allowedFormats:ta}=(0,c.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,a)=>e("kadenceblocks/data").isUniqueBlock(t,a),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(u)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(u,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()},allowedFormats:e("core/rich-text").getFormatTypes()})),[u]),aa=(0,d.mouseOverVisualizer)(),na=(0,d.mouseOverVisualizer)(),oa=(0,Z.get)(kadence_blocks_params,"globalSettings")?JSON.parse(kadence_blocks_params.globalSettings):{},ra=void 0!==oa.adv_text_is_default_editor_block&&oa.adv_text_is_default_editor_block;let ia;(0,v.useEffect)((()=>{(0,d.setBlockDefaults)("kadence/advancedheading",t);const a=(0,d.getPostOrFseId)(e,ea),n=(0,d.getUniqueId)(y,u,Zt,Xt,a);n!==y?(t.uniqueID=n,r({uniqueID:n}),Qt(n,u)):Qt(y,u),r({inQueryBlock:(0,d.getInQueryBlock)(m,k)}),""===ee&&""===Oe&&""===te&&""===Be||r({margin:[ee,Oe,te,Be],topMargin:"",rightMargin:"",bottomMargin:"",leftMargin:""}),(F||z||A)&&r({fontSize:[F,z,A],size:"",tabSize:"",mobileSize:""}),(L||I||$)&&r({fontHeight:[L,I,$],fontHeightType:N,lineHeight:"",tabLineHeight:"",mobileLineHeight:""}),"regular"===G&&r({fontWeight:"normal"});const o=JSON.parse(JSON.stringify(t.markBorderStyles?t.markBorderStyles:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let i=!1;""!==fe&&(o[0].top[0]=(0,d.KadenceColorOutput)(fe,ve),o[0].right[0]=(0,d.KadenceColorOutput)(fe,ve),o[0].bottom[0]=(0,d.KadenceColorOutput)(fe,ve),o[0].left[0]=(0,d.KadenceColorOutput)(fe,ve),i=!0,r({markBorder:""})),""!==he&&0!==he&&(o[0].top[2]=he,o[0].right[2]=he,o[0].bottom[2]=he,o[0].left[2]=he,i=!0,r({markBorderWidth:0})),""!==Se&&"solid"!==Se&&(o[0].top[1]=Se,o[0].right[1]=Se,o[0].bottom[1]=Se,o[0].left[1]=Se,i=!0,r({markBorderStyle:"solid"})),i&&(r({markBorderStyles:o}),r({tabletMarkBorderStyles:o}),r({mobileMarkBorderStyles:o})),!w&&x[0].enable&&r({enableTextShadow:!0})}),[]);const la=e=>{if("reset"===e.enable){const e=[{type:"array",default:[{enable:!1,color:"rgba(0, 0, 0, 0.2)",blur:1,hOffset:1,vOffset:1}],enable:!1}];switch(Yt){case"Desktop":r({textShadow:e});break;case"Tablet":r({textShadowTablet:e});break;case"Mobile":r({textShadowMobile:e})}}else"Desktop"===Yt?(ia=x.map(((t,a)=>(0===a&&(t={...t,...e}),t))),r({textShadow:ia})):"Tablet"===Yt?(ia=E.map(((t,a)=>(0===a&&(t={...t,...e}),t))),r({textShadowTablet:ia})):"Mobile"===Yt&&(ia=B.map(((t,a)=>(0===a&&(t={...t,...e}),t))),r({textShadowMobile:ia}))},da=void 0!==Re&&void 0!==Re.content&&void 0!==Re.content.enable&&Re.content.enable;let sa=(0,Q.applyFilters)("kadence.whitelist_richtext_formats",["core/bold","core/italic","kadence/mark","kadence/typed","core/strikethrough","core/superscript","core/superscript","toolset/inline-field"],"kadence/advancedheading"),ca=ta.map((e=>e.name));(De||Re?.content?.shouldReplace)&&(sa=Re?.content?.shouldReplace?sa:["kadence/insert-dynamic",...sa],ca=sa);const pa=R&&!R.includes(",")?"'"+R+"'":R,ga=ye?(0,d.KadenceColorOutput)(ye,be):"",ua=(fe&&(0,d.KadenceColorOutput)(fe,ve),(0,_.getColorClassName)("color",T)),ma=(0,_.getColorClassName)("background-color",Ue),ka=Ee&&"heading"!==Ee?Ee:"h"+f,ya=(0,d.getPreviewSize)(Yt,void 0!==Me?Me[0]:"",void 0!==Pe?Pe[0]:"",void 0!==Fe?Fe[0]:""),ba=(0,d.getPreviewSize)(Yt,void 0!==Me?Me[1]:"",void 0!==Pe?Pe[1]:"",void 0!==Fe?Fe[1]:""),fa=(0,d.getPreviewSize)(Yt,void 0!==Me?Me[2]:"",void 0!==Pe?Pe[2]:"",void 0!==Fe?Fe[2]:""),ha=(0,d.getPreviewSize)(Yt,void 0!==Me?Me[3]:"",void 0!==Pe?Pe[3]:"",void 0!==Fe?Fe[3]:""),va=(0,d.getPreviewSize)(Yt,void 0!==Ne?Ne[0]:"",void 0!==Le?Le[0]:"",void 0!==Ie?Ie[0]:""),Sa=(0,d.getPreviewSize)(Yt,void 0!==Ne?Ne[1]:"",void 0!==Le?Le[1]:"",void 0!==Ie?Ie[1]:""),_a=(0,d.getPreviewSize)(Yt,void 0!==Ne?Ne[2]:"",void 0!==Le?Le[2]:"",void 0!==Ie?Ie[2]:""),Ca=(0,d.getPreviewSize)(Yt,void 0!==Ne?Ne[3]:"",void 0!==Le?Le[3]:"",void 0!==Ie?Ie[3]:""),Ta=(0,d.getPreviewSize)(Yt,void 0!==Qe?.[0]?Qe[0]:"",void 0!==Qe?.[1]?Qe[1]:"",void 0!==Qe?.[2]?Qe[2]:""),wa=(0,d.getPreviewSize)(Yt,void 0!==Ze?.[0]?Ze[0]:"",void 0!==Ze?.[1]?Ze[1]:"",void 0!==Ze?.[2]?Ze[2]:""),xa=(0,d.getPreviewSize)(Yt,void 0!==H?H:"",void 0!==et?et:"",void 0!==tt?tt:""),Ea=(0,d.getPreviewSize)(Yt,void 0!==b?b:"",void 0!==P?P:"",void 0!==O?O:""),Ba=(0,d.getPreviewSize)(Yt,void 0!==x?.[0]?.color?x[0].color:"rgba(0, 0, 0, 0.2)",void 0!==E?.[0]?.color?E[0].color:"",void 0!==B?.[0]?.color?B[0].color:""),Oa=(0,d.getPreviewSize)(Yt,void 0!==x?.[0]?.hOffset?x[0].hOffset:1,void 0!==E?.[0]?.hOffset?E[0].hOffset:"",void 0!==B?.[0]?.hOffset?B[0].hOffset:""),Pa=(0,d.getPreviewSize)(Yt,void 0!==x?.[0]?.vOffset?x[0].vOffset:1,void 0!==E?.[0]?.vOffset?E[0].vOffset:"",void 0!==B?.[0]?.vOffset?B[0].vOffset:""),Fa=(0,d.getPreviewSize)(Yt,void 0!==x?.[0]?.blur?x[0].blur:1,void 0!==E?.[0]?.blur?E[0].blur:"",void 0!==B?.[0]?.blur?B[0].blur:"");let Ma=Ea;switch(Ea){case"left":Ma="flex-start";break;case"right":Ma="flex-end"}const Na=(0,d.getPreviewSize)(Yt,void 0!==me?me[0]:0,void 0!==$e?$e[0]:"",void 0!==Ae?Ae[0]:""),La=(0,d.getPreviewSize)(Yt,void 0!==me?me[1]:0,void 0!==$e?$e[1]:"",void 0!==Ae?Ae[1]:""),Ia=(0,d.getPreviewSize)(Yt,void 0!==me?me[2]:0,void 0!==$e?$e[2]:"",void 0!==Ae?Ae[2]:""),za=(0,d.getPreviewSize)(Yt,void 0!==me?me[3]:0,void 0!==$e?$e[3]:"",void 0!==Ae?Ae[3]:""),Aa=(0,d.getPreviewSize)(Yt,void 0!==ae?ae[0]:"",void 0!==ae?ae[1]:"",void 0!==ae?ae[2]:""),$a=(0,d.getPreviewSize)(Yt,void 0!==oe?oe[0]:"",void 0!==oe?oe[1]:"",void 0!==oe?oe[2]:""),Ha=(0,d.getPreviewSize)(Yt,void 0!==_t?.[0]?_t[0]:"",void 0!==_t?.[1]?_t[1]:"",void 0!==_t?.[2]?_t[2]:""),Ra=(0,d.getPreviewSize)(Yt,void 0!==ht?.[0]?ht[0]:"",void 0!==vt?.[0]?vt[0]:"",void 0!==St?.[0]?St[0]:""),Da=(0,d.getPreviewSize)(Yt,void 0!==ht?.[1]?ht[1]:"",void 0!==vt?.[1]?vt[1]:"",void 0!==St?.[1]?St[1]:""),Ga=(0,d.getPreviewSize)(Yt,void 0!==ht?.[2]?ht[2]:"",void 0!==vt?.[2]?vt[2]:"",void 0!==St?.[2]?St[2]:""),Va=(0,d.getPreviewSize)(Yt,void 0!==ht?.[3]?ht[3]:"",void 0!==vt?.[3]?vt[3]:"",void 0!==St?.[3]?St[3]:""),Wa=(0,d.getPreviewSize)(Yt,void 0!==ie?ie:"",void 0!==ot?ot:"",void 0!==rt?rt:""),qa=(0,d.getPreviewSize)(Yt,ct&&ct[0]?ct[0]:"",ct&&ct[1]?ct[1]:"",ct&&ct[2]?ct[2]:""),Ua=(0,d.getBorderStyle)(Yt,"top",it,lt,dt),Ka=(0,d.getBorderStyle)(Yt,"right",it,lt,dt),ja=(0,d.getBorderStyle)(Yt,"bottom",it,lt,dt),Ja=(0,d.getBorderStyle)(Yt,"left",it,lt,dt),Qa=(0,d.getBorderStyle)(Yt,"top",wt,xt,Et),Za=(0,d.getBorderStyle)(Yt,"right",wt,xt,Et),Xa=(0,d.getBorderStyle)(Yt,"bottom",wt,xt,Et),Ya=(0,d.getBorderStyle)(Yt,"left",wt,xt,Et),en=(0,d.getPreviewSize)(Yt,void 0!==Bt?Bt[0]:"",void 0!==Ot?Ot[0]:"",void 0!==Pt?Pt[0]:""),tn=(0,d.getPreviewSize)(Yt,void 0!==Bt?Bt[1]:"",void 0!==Ot?Ot[1]:"",void 0!==Pt?Pt[1]:""),an=(0,d.getPreviewSize)(Yt,void 0!==Bt?Bt[2]:"",void 0!==Ot?Ot[2]:"",void 0!==Pt?Pt[2]:""),nn=(0,d.getPreviewSize)(Yt,void 0!==Bt?Bt[3]:"",void 0!==Ot?Ot[3]:"",void 0!==Pt?Pt[3]:""),on=(0,d.getPreviewSize)(Yt,void 0!==Mt?Mt[0]:"",void 0!==Nt?Nt[0]:"",void 0!==Lt?Lt[0]:""),rn=(0,d.getPreviewSize)(Yt,void 0!==Mt?Mt[1]:"",void 0!==Nt?Nt[1]:"",void 0!==Lt?Lt[1]:""),ln=(0,d.getPreviewSize)(Yt,void 0!==Mt?Mt[2]:"",void 0!==Nt?Nt[2]:"",void 0!==Lt?Lt[2]:""),dn=(0,d.getPreviewSize)(Yt,void 0!==Mt?Mt[3]:"",void 0!==Nt?Nt[3]:"",void 0!==Lt?Lt[3]:""),sn=void 0!==It?It:"px";let cn=!Ue;!cn&&!kadence_blocks_params.isKadenceT&&qe&&qe.startsWith("palette")&&(cn=!0);const pn=[[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:1,isPressed:!(1!==f||!Ee||"heading"!==Ee)}),title:(0,s.__)("Heading 1","kadence-blocks"),isActive:!(1!==f||!Ee||"heading"!==Ee),onClick:()=>r({level:1,htmlTag:"heading"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:2,isPressed:!(2!==f||!Ee||"heading"!==Ee)}),title:(0,s.__)("Heading 2","kadence-blocks"),isActive:!(2!==f||!Ee||"heading"!==Ee),onClick:()=>r({level:2,htmlTag:"heading"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:3,isPressed:!(3!==f||!Ee||"heading"!==Ee)}),title:(0,s.__)("Heading 3","kadence-blocks"),isActive:!(3!==f||!Ee||"heading"!==Ee),onClick:()=>r({level:3,htmlTag:"heading"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:4,isPressed:!(4!==f||!Ee||"heading"!==Ee)}),title:(0,s.__)("Heading 4","kadence-blocks"),isActive:!(4!==f||!Ee||"heading"!==Ee),onClick:()=>r({level:4,htmlTag:"heading"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:5,isPressed:!(5!==f||!Ee||"heading"!==Ee)}),title:(0,s.__)("Heading 5","kadence-blocks"),isActive:!(5!==f||!Ee||"heading"!==Ee),onClick:()=>r({level:5,htmlTag:"heading"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:6,isPressed:!(6!==f||!Ee||"heading"!==Ee)}),title:(0,s.__)("Heading 6","kadence-blocks"),isActive:!(6!==f||!Ee||"heading"!==Ee),onClick:()=>r({level:6,htmlTag:"heading"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:"p",isPressed:!(!Ee||"p"!==Ee)}),title:(0,s.__)("Paragraph","kadence-blocks"),isActive:!(!Ee||"p"!==Ee),onClick:()=>r({htmlTag:"p"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:"span",isPressed:!(!Ee||"span"!==Ee)}),title:(0,s.__)("Span","kadence-blocks"),isActive:!(!Ee||"span"!==Ee),onClick:()=>r({htmlTag:"span"})}],[{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:"div",isPressed:!(!Ee||"div"!==Ee)}),title:(0,s.__)("div","kadence-blocks"),isActive:!(!Ee||"div"!==Ee),onClick:()=>r({htmlTag:"div"})}]],gn=i()({[`kt-adv-heading${y}`]:y,"kadence-advancedheading-text":!0,"kb-content-is-dynamic":da,[ua]:ua,"has-text-color":ua,[ma]:ma,"has-background":ma,[`hls-${Ke}`]:!De&&Ke,"kt-adv-heading-has-icon":ut}),un=()=>ut?(0,o.createElement)(C.Tooltip,{text:Ht||void 0,className:"kb-custom-tooltip",placement:At||"top"},(0,o.createElement)("span",{className:"kb-advanced-heading-icon-wrap"+($t?" kb-adv-text-icon-dash":""),style:{display:"inline-flex",justifyContent:"center",alignItems:"center"}},(0,o.createElement)(l.IconRender,{className:`kb-advanced-heading-svg-icon kb-advanced-heading-svg-icon-${ut} kb-advanced-heading-icon-side-${bt}`,name:ut,size:"1em",style:{fontSize:Ha?(0,d.getFontSizeOptionOutput)(Ha,void 0!==Ct?Ct:"px"):void 0,color:""!==kt?(0,d.KadenceColorOutput)(kt):void 0,paddingTop:Ra?(0,d.getSpacingOptionOutput)(Ra,Tt):void 0,paddingRight:Da?(0,d.getSpacingOptionOutput)(Da,Tt):void 0,paddingBottom:Ga?(0,d.getSpacingOptionOutput)(Ga,Tt):void 0,paddingLeft:Va?(0,d.getSpacingOptionOutput)(Va,Tt):void 0}}))):null,mn=(0,o.createElement)(ka,{className:gn,"data-alt-title":zt||void 0,style:{display:ut?"flex":void 0,alignItems:ut?ft:void 0,gap:ut?"0.25em":void 0,justifyContent:ut&&Ma?Ma:void 0,textAlign:Ea||void 0,backgroundColor:!Dt&&qe&&cn?(0,d.KadenceColorOutput)(qe):void 0,backgroundImage:Dt&&""!==Rt?Rt:void 0,paddingTop:""!==va?(0,d.getSpacingOptionOutput)(va,ze):void 0,paddingRight:""!==Sa?(0,d.getSpacingOptionOutput)(Sa,ze):void 0,paddingBottom:""!==_a?(0,d.getSpacingOptionOutput)(_a,ze):void 0,paddingLeft:""!==Ca?(0,d.getSpacingOptionOutput)(Ca,ze):void 0,marginTop:""!==ya?(0,d.getSpacingOptionOutput)(ya,Y):void 0,marginRight:""!==ba?(0,d.getSpacingOptionOutput)(ba,Y):void 0,marginBottom:""!==fa?(0,d.getSpacingOptionOutput)(fa,Y):void 0,marginLeft:""!==ha?(0,d.getSpacingOptionOutput)(ha,Y):void 0,lineHeight:wa?wa+(Xe||""):void 0,color:!S||Dt&&""===Rt?void 0:(0,d.KadenceColorOutput)(S),fontSize:Ta?(0,d.getFontSizeOptionOutput)(Ta,M||"px"):void 0,borderTopLeftRadius:en+Ft,borderTopRightRadius:tn+Ft,borderBottomRightRadius:an+Ft,borderBottomLeftRadius:nn+Ft,borderTop:Qa||void 0,borderRight:Za||void 0,borderBottom:Xa||void 0,borderLeft:Ya||void 0}},"left"===bt&&un(),!da&&(0,o.createElement)(_.RichText,{id:"adv-heading"+y,tagName:"span",className:"kb-adv-heading-inner",allowedFormats:ca,value:h,onChange:e=>r({content:e}),onMerge:p,onSplit:e=>e||ra?(0,J.createBlock)("kadence/advancedheading",{...t,content:null!=e?e:""}):(0,J.createBlock)("core/paragraph"),onReplace:g,onRemove:()=>g([]),style:{fontWeight:G,fontStyle:V,letterSpacing:xa?xa+(Ye||"px"):void 0,textTransform:Ce||void 0,fontFamily:R?pa:"",textShadow:w?`${Oa}px ${Pa}px ${Fa}px ${(0,d.KadenceColorOutput)(Ba)}`:void 0},placeholder:(0,s.__)("Write something…","kadence-blocks")}),da&&(0,o.createElement)(o.Fragment,null,(0,Q.applyFilters)("kadence.dynamicContent",(0,o.createElement)(C.Spinner,null),t,"content",r,m)),"right"===bt&&un()),kn=(0,o.createElement)("a",{href:De,className:"kb-advanced-heading-link"+(Ke?" hls-"+Ke:""),onClick:e=>{e.preventDefault()}},mn),yn=i()({"kb-is-heading":Ee&&"heading"===Ee,"kb-adv-text":!0}),bn=["content","altTitle"],fn=(0,_.useBlockProps)({className:yn});function hn(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'/]/gi,(e=>t[e]))}const vn=(0,v.useRef)(null);return(0,v.useEffect)((()=>{if(!n&&void 0!==t.content&&t.content.includes("kt-typed-text")){const e=(new DOMParser).parseFromString(t.content,"text/html");if(e.querySelectorAll(".kt-typed-text")[0]){const t=e.querySelectorAll(".kt-typed-text")[0],a=t.getAttribute("data-strings"),n=a?JSON.parse(a.replaceAll("&","&")):[];n.unshift(t.textContent.replaceAll("&","&")),n.unshift(t.textContent.replaceAll("&","&"));const o={strings:n,cursorChar:t.getAttribute("data-cursor-char")?hn(t.getAttribute("data-cursor-char")):"_",startDelay:t.getAttribute("data-start-delay")?parseInt(t.getAttribute("data-start-delay")):0,backDelay:t.getAttribute("data-back-delay")?parseInt(t.getAttribute("data-back-delay")):700,typeSpeed:t.getAttribute("data-type-speed")?parseInt(t.getAttribute("data-type-speed")):40,backSpeed:t.getAttribute("data-back-speed")?parseInt(t.getAttribute("data-back-speed")):0,smartBackspace:"true"===t.getAttribute("data-smart-backspace"),loop:"false"!==t.getAttribute("data-loop"),loopCount:!1,showCursor:""!==t.getAttribute("data-cursor-char"),shuffle:"true"===t.getAttribute("data-shuffle")},r=(document.getElementsByName("editor-canvas").length>0?document.getElementsByName("editor-canvas")[0].contentWindow.document:document).getElementById("adv-heading"+y).querySelector(".kt-typed-text");vn.current=new(K())(r,o)}return function(){vn.current.destroy();const e=document.getElementsByName("editor-canvas").length>0?document.getElementsByName("editor-canvas")[0].contentWindow.document:document;e.getElementById("adv-heading"+y)&&(e.getElementById("adv-heading"+y).innerHTML=t.content)}}}),[n]),(0,o.createElement)("div",{...fn},(0,o.createElement)("style",null,`.kt-adv-heading${y} mark.kt-highlight, .kt-adv-heading${y} .rich-text:focus mark.kt-highlight[data-rich-text-format-boundary] {\n\t\t\t\t\t\tcolor: ${Gt?void 0:(0,d.KadenceColorOutput)(ke)};\n\t\t\t\t\t\tbackground: ${ye&&!Gt?ga:"transparent"};\n\t\t\t\t\t\tbackground-image: ${Gt?Wt:Vt?qt:"none"};\n\t\t\t\t\t\t-webkit-background-clip: ${Gt?"text":Dt?"initial !important":void 0};\n\t\t\t\t\t\tbackground-clip: ${Gt?"text":Dt?"initial !important":void 0};\n\t\t\t\t\t\t-webkit-text-fill-color: ${Gt?"transparent":Dt?"initial !important":void 0};\n\t\t\t\t\t\t-webkit-box-decoration-break: clone;\n\t\t\t\t\t\tbox-decoration-break: clone;\n\t\t\t\t\t\tfont-weight: ${ge||"inherit"};\n\t\t\t\t\t\tfont-style: ${ue||"inherit"};\n\t\t\t\t\t\tfont-size: ${Aa?(0,d.getFontSizeOptionOutput)(Aa,ne):"inherit"};\n\t\t\t\t\t\tline-height: ${$a?$a+re:"inherit"};\n\t\t\t\t\t\tletter-spacing: ${Wa?Wa+(at||"px"):"inherit"};\n\t\t\t\t\t\ttext-transform: ${Te||"inherit"};\n\t\t\t\t\t\tfont-family: ${le||"inherit"};\n\t\t\t\t\t\tborder-top: ${Ua||"inherit"};\n\t\t\t\t\t\tborder-right: ${Ka||"inherit"};\n\t\t\t\t\t\tborder-bottom: ${ja||"inherit"};\n\t\t\t\t\t\tborder-left: ${Ja||"inherit"};\n\t\t\t\t\t\tpadding-top: ${Na?(0,d.getSpacingOptionOutput)(Na,nt):"0"};\n\t\t\t\t\t\tpadding-right: ${La?(0,d.getSpacingOptionOutput)(La,nt):"0"};\n\t\t\t\t\t\tpadding-bottom: ${Ia?(0,d.getSpacingOptionOutput)(Ia,nt):"0"};\n\t\t\t\t\t\tpadding-left: ${za?(0,d.getSpacingOptionOutput)(za,nt):"0"};\n\t\t\t\t\t\t${""!==on?"border-top-left-radius:"+on+sn+";":""}\n\t\t\t\t\t\t${""!==rn?"border-top-right-radius:"+rn+sn+";":""}\n\t\t\t\t\t\t${""!==ln?"border-bottom-right-radius:"+ln+sn+";":""}\n\t\t\t\t\t\t${""!==dn?"border-bottom-left-radius:"+dn+sn+";":""}\n\t\t\t\t\t}`,qa?`.editor-styles-wrapper *:not(.kadence-inner-column-direction-horizontal) > .wp-block-kadence-advancedheading .kt-adv-heading${y}, .editor-styles-wrapper .kadence-inner-column-direction-horizontal > .wp-block-kadence-advancedheading[data-block="${u}"] { max-width:${qa+(st||"px")} !important; }`:"",qa&&"center"===Ea?`.editor-styles-wrapper *:not(.kadence-inner-column-direction-horizontal) > .wp-block-kadence-advancedheading .kt-adv-heading${y}, .editor-styles-wrapper .kadence-inner-column-direction-horizontal > .wp-block-kadence-advancedheading[data-block="${u}"] { margin-left: auto; margin-right:auto; }`:"",qa&&"right"===Ea?`.editor-styles-wrapper *:not(.kadence-inner-column-direction-horizontal) > .wp-block-kadence-advancedheading .kt-adv-heading${y}, .editor-styles-wrapper .kadence-inner-column-direction-horizontal > .wp-block-kadence-advancedheading[data-block="${u}"] { margin-left: auto; margin-right:0; }`:"",Ke&&`.kt-adv-heading${y} a, #block-${u} a {\n\t\t\t\t\t\t\t${"underline"===Ke?"text-decoration: underline;":""}\n\t\t\t\t\t\t\t${"none"===Ke?"text-decoration: none;":""}\n\t\t\t\t\t}\n\t\t\t\t\t.kt-adv-heading${y} a, #block-${u} a:hover {\n\t\t\t\t\t\t\t${"hover_underline"===Ke?"text-decoration: underline;":""}\n\t\t\t\t\t}\n\t\t\t\t\t`,je&&`.kt-adv-heading${y} a, #block-${u} a.kb-advanced-heading-link, #block-${u} a.kb-advanced-heading-link > .kadence-advancedheading-text {\n\t\t\t\t\t\t\tcolor: ${(0,d.KadenceColorOutput)(je)} !important;\n\t\t\t\t\t\t}`,Je&&`.kt-adv-heading${y} a:hover, #block-${u} a.kb-advanced-heading-link:hover, #block-${u} a.kb-advanced-heading-link:hover > .kadence-advancedheading-text {\n\t\t\t\t\t\t\tcolor: ${(0,d.KadenceColorOutput)(Je)}!important;\n\t\t\t\t\t\t}`,Dt&&""!==Rt&&`.kt-adv-heading${y}.kadence-advancedheading-text, .kt-adv-heading${y} .kadence-advancedheading-text {\n\t\t\t\t\t\t-webkit-background-clip: text;\n\t\t\t\t\t\tbackground-clip: text;\n\t\t\t\t\t\t-webkit-text-fill-color: transparent;\n\t\t\t\t\t\t-webkit-box-decoration-break: clone;\n\t\t\t\t}`,yt&&`#block-${u} .kadence-advancedheading-text:hover > .kb-advanced-heading-svg-icon {\n\t\t\t\t\t\t\tcolor: ${(0,d.KadenceColorOutput)(yt)}!important;\n\t\t\t\t\t\t}`,Dt&&`.kt-adv-heading${y} > span#adv-heading${y} {\n\t\t\t\t\t\tbackground-image: ${Rt};\n\t\t\t\t\t\t-webkit-background-clip: text;\n\t\t\t\t\t\tbackground-clip: text;\n\t\t\t\t\t\t-webkit-text-fill-color: transparent;\n\t\t\t\t\t\t-webkit-box-decoration-break: clone;\n\t\t\t\t\t\tbox-decoration-break: clone;\n\t\t\t\t\t\tdisplay: inline;\n\t\t\t\t\t}`),(0,o.createElement)(_.BlockControls,null,(0,o.createElement)(C.ToolbarGroup,{group:"tag"},(0,o.createElement)(C.ToolbarDropdownMenu,{icon:(0,o.createElement)(l.HeadingLevelIcon,{level:"heading"!==Ee?Ee:f}),label:(0,s.__)("Change heading tag","kadence-blocks"),controls:pn})),(0,d.showSettings)("allSettings","kadence/advancedheading")&&(0,d.showSettings)("toolbarTypography","kadence/advancedheading",!1)&&(0,o.createElement)(l.InlineTypographyControls,{uniqueID:y,fontGroup:"heading",letterSpacing:H,onLetterSpacing:e=>r({letterSpacing:e}),fontFamily:R,onFontFamily:e=>r({typography:e}),onFontChange:e=>{r({typography:e.value,googleFont:e.google})},googleFont:q,onGoogleFont:e=>r({googleFont:e}),loadGoogleFont:U,onLoadGoogleFont:e=>r({loadGoogleFont:e}),fontVariant:D,onFontVariant:e=>r({fontVariant:e}),fontWeight:G,onFontWeight:e=>r({fontWeight:e}),fontStyle:V,onFontStyle:e=>r({fontStyle:e}),fontSubset:W,onFontSubset:e=>r({fontSubset:e}),textTransform:Ce,onTextTransform:e=>r({textTransform:e}),fontSizeArray:!1,fontSizeType:M,onFontSizeType:e=>r({sizeType:e}),lineHeightType:Xe,onLineHeightType:e=>r({fontHeightType:e}),fontSize:void 0!==Qe?.[0]?Qe[0]:"",onFontSize:e=>r({fontSize:[e,void 0!==Qe[1]?Qe[1]:"",void 0!==Qe[2]?Qe[2]:""]}),tabSize:void 0!==Qe?.[1]?Qe[1]:"",onTabSize:e=>r({fontSize:[void 0!==Qe[0]?Qe[0]:"",e,void 0!==Qe[2]?Qe[2]:""]}),mobileSize:void 0!==Qe?.[2]?Qe[2]:"",onMobileSize:e=>r({fontSize:[void 0!==Qe[0]?Qe[0]:"",void 0!==Qe[1]?Qe[1]:"",e]}),lineHeight:void 0!==Ze?.[0]?Ze[0]:"",onLineHeight:e=>r({fontHeight:[e,void 0!==Ze[1]?Ze[1]:"",void 0!==Ze[2]?Ze[2]:""]}),tabLineHeight:void 0!==Ze?.[1]?Ze[1]:"",onTabLineHeight:e=>r({fontHeight:[void 0!==Ze[0]?Ze[0]:"",e,void 0!==Ze[2]?Ze[2]:""]}),mobileLineHeight:void 0!==Ze?.[2]?Ze[2]:"",onMobileLineHeight:e=>r({fontHeight:[void 0!==Ze[0]?Ze[0]:"",void 0!==Ze[1]?Ze[1]:"",e]})}),(0,d.showSettings)("allSettings","kadence/advancedheading")&&(0,d.showSettings)("toolbarColor","kadence/advancedheading",!1)&&(0,o.createElement)(l.InlinePopColorControl,{label:(0,s.__)("Color","kadence-blocks"),value:S||"",default:"",onChange:e=>r({color:e}),onClassChange:e=>r({colorClass:e})}),(0,o.createElement)(_.AlignmentToolbar,{value:b,onChange:e=>{r({align:e})}}),(0,o.createElement)(l.CopyPasteAttributes,{attributes:t,excludedAttrs:bn,defaultAttributes:j.attributes,blockSlug:j.name,onPaste:e=>r(e)}),Boolean(Re?.content?.shouldReplace)&&(0,o.createElement)(l.DynamicTextControl,{dynamicAttribute:"content",...e})),(0,d.showSettings)("allSettings","kadence/advancedheading")&&(0,o.createElement)(_.InspectorControls,null,(0,o.createElement)(l.InspectorControlTabs,{panelName:"advancedheading",initialOpen:"style",setActiveTab:e=>Kt(e),activeTab:Ut}),"general"===Ut&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.KadencePanelBody,{panelName:"kb-adv-heading-general-settings"},(0,o.createElement)(l.TagSelect,{label:(0,s.__)("HTML Tag","kadence-blocks"),value:"heading"===Ee?f:Ee,onChange:e=>{r("div"===e||"p"===e||"span"===e?{level:2,htmlTag:e}:{level:e,htmlTag:"heading"})}}),(0,o.createElement)(l.ResponsiveAlignControls,{label:(0,s.__)("Text Alignment","kadence-blocks"),value:b||"",mobileValue:O||"",tabletValue:P||"",onChange:e=>r({align:e}),onChangeTablet:e=>r({tabletAlign:e}),onChangeMobile:e=>r({mobileAlign:e})}),(0,o.createElement)(l.ResponsiveRangeControls,{reset:()=>{r({maxWidth:["","",""],maxWidthType:"px"})},label:(0,s.__)("Max Width","kadence-blocks"),value:void 0!==ct&&void 0!==ct[0]?ct[0]:"",onChange:e=>{r({maxWidth:[e,void 0!==ct&&void 0!==ct[1]?ct[1]:"",void 0!==ct&&void 0!==ct[2]?ct[2]:""]})},tabletValue:void 0!==ct&&void 0!==ct[1]?ct[1]:"",onChangeTablet:e=>{r({maxWidth:[void 0!==ct&&void 0!==ct[0]?ct[0]:"",e,void 0!==ct&&void 0!==ct[2]?ct[2]:""]})},mobileValue:void 0!==ct&&void 0!==ct[2]?ct[2]:"",onChangeMobile:e=>{r({maxWidth:[void 0!==ct&&void 0!==ct[0]?ct[0]:"",void 0!==ct&&void 0!==ct[1]?ct[1]:"",e]})},min:0,max:"px"===st?2e3:100,step:1,unit:st||"px",onUnit:e=>{r({maxWidthType:e})},units:["px","%","vw"]})),(0,d.showSettings)("linkSettings","kadence/advancedheading")&&(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Link Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-heading-link-settings"},(0,o.createElement)(l.PopColorControl,{label:(0,s.__)("Link Color","kadence-blocks"),swatchLabel:(0,s.__)("Link Color","kadence-blocks"),value:je||"",default:"",onChange:e=>r({linkColor:e}),swatchLabel2:(0,s.__)("Hover Color","kadence-blocks"),value2:Je||"",default2:"",onChange2:e=>r({linkHoverColor:e})}),(0,o.createElement)(C.SelectControl,{label:(0,s.__)("Link Style","kadence-blocks"),value:Ke,options:[{value:"",label:(0,s.__)("Unset","kadence-blocks")},{value:"none",label:(0,s.__)("None","kadence-blocks")},{value:"underline",label:(0,s.__)("Underline","kadence-blocks")},{value:"hover_underline",label:(0,s.__)("Underline on Hover","kadence-blocks")}],onChange:e=>r({linkStyle:e})}),(0,o.createElement)(l.URLInputControl,{label:(0,s.__)("Text Wrap Link","kadence-blocks"),url:De,onChangeUrl:e=>r({link:e}),additionalControls:!0,opensInNewTab:void 0!==Ge&&Ge,onChangeTarget:e=>r({linkTarget:e}),linkNoFollow:void 0!==Ve&&Ve,onChangeFollow:e=>r({linkNoFollow:e}),linkSponsored:void 0!==We&&We,onChangeSponsored:e=>r({linkSponsored:e}),dynamicAttribute:"link",allowClear:!0,...e}))),"style"===Ut&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.KadencePanelBody,{panelName:"kb-adv-heading-style"},(0,d.showSettings)("colorSettings","kadence/advancedheading")&&(0,o.createElement)(o.Fragment,null,!Dt&&(0,o.createElement)(l.ColorGroup,null,(0,o.createElement)(l.PopColorControl,{label:(0,s.__)("Color","kadence-blocks"),value:S||"",default:"",onChange:e=>r({color:e}),onClassChange:e=>r({colorClass:e})}),(0,o.createElement)(l.PopColorControl,{label:(0,s.__)("Background Color","kadence-blocks"),value:qe||"",default:"",onChange:e=>r({background:e}),onClassChange:e=>r({backgroundColorClass:e})})),(0,o.createElement)(C.ToggleControl,{style:{marginTop:"10px"},label:(0,s.__)("Enable Text Gradient","kadence-blocks"),checked:Dt,onChange:e=>r({enableTextGradient:e})}),Dt&&(0,o.createElement)(l.GradientControl,{value:Rt,onChange:e=>r({textGradient:e}),gradients:[]})),(0,d.showSettings)("sizeSettings","kadence/advancedheading")&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.ResponsiveFontSizeControl,{label:(0,s.__)("Font Size","kadence-blocks"),value:void 0!==Qe?.[0]?Qe[0]:"",onChange:e=>r({fontSize:[e,void 0!==Qe[1]?Qe[1]:"",void 0!==Qe[2]?Qe[2]:""]}),tabletValue:void 0!==Qe?.[1]?Qe[1]:"",onChangeTablet:e=>r({fontSize:[void 0!==Qe[0]?Qe[0]:"",e,void 0!==Qe[2]?Qe[2]:""]}),mobileValue:void 0!==Qe?.[2]?Qe[2]:"",onChangeMobile:e=>r({fontSize:[void 0!==Qe[0]?Qe[0]:"",void 0!==Qe[1]?Qe[1]:"",e]}),min:0,max:"px"===M?200:12,step:"px"===M?1:.001,unit:M||"px",onUnit:e=>{r({sizeType:e})},units:["px","em","rem","vw"]}),(0,o.createElement)(l.TwoColumn,{className:"kb-font-settings"},(0,o.createElement)(l.ResponsiveUnitControl,{label:(0,s.__)("Line Height","kadence-blocks"),value:void 0!==Ze?.[0]?Ze[0]:"",onChange:e=>r({fontHeight:[e,void 0!==Ze[1]?Ze[1]:"",void 0!==Ze[2]?Ze[2]:""]}),tabletValue:void 0!==Ze?.[1]?Ze[1]:"",onChangeTablet:e=>r({fontHeight:[void 0!==Ze[0]?Ze[0]:"",e,void 0!==Ze[2]?Ze[2]:""]}),mobileValue:void 0!==Ze?.[2]?Ze[2]:"",onChangeMobile:e=>r({fontHeight:[void 0!==Ze[0]?Ze[0]:"",void 0!==Ze[1]?Ze[1]:"",e]}),min:0,max:"px"===Xe?200:12,step:"px"===Xe?1:.1,unit:Xe||"",onUnit:e=>r({fontHeightType:e}),units:["-","px","em","rem"],compressedDevice:!0}),(0,o.createElement)(l.KadenceRadioButtons,{label:(0,s.__)("Letter Case","kadence-blocks"),value:Ce,className:"kb-letter-case",options:[{value:"none",label:(0,s.__)("-","kadence-blocks"),tooltip:(0,s.__)("None","kadence-blocks")},{value:"uppercase",label:(0,s.__)("AB","kadence-blocks"),tooltip:(0,s.__)("Uppercase","kadence-blocks")},{value:"lowercase",label:(0,s.__)("ab","kadence-blocks"),tooltip:(0,s.__)("Lowercase","kadence-blocks")},{value:"capitalize",label:(0,s.__)("Ab","kadence-blocks"),tooltip:(0,s.__)("Capitalize","kadence-blocks")}],allowClear:!0,onChange:e=>r({textTransform:e})})))),(0,d.showSettings)("advancedSettings","kadence/advancedheading")&&(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Advanced Typography Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-heading-typography-settings"},(0,o.createElement)(l.TypographyControls,{fontGroup:"heading"!==Ee?"body":"heading",reLetterSpacing:[H,et,tt],onLetterSpacing:e=>r({letterSpacing:e[0],tabletLetterSpacing:e[1],mobileLetterSpacing:e[2]}),letterSpacingType:Ye,onLetterSpacingType:e=>r({letterSpacingType:e}),fontFamily:R,onFontFamily:e=>r({typography:e}),onFontChange:e=>{r({typography:e.value,googleFont:e.google})},googleFont:q,onGoogleFont:e=>r({googleFont:e}),loadGoogleFont:U,onLoadGoogleFont:e=>r({loadGoogleFont:e}),fontVariant:D,onFontVariant:e=>r({fontVariant:e}),fontWeight:G,onFontWeight:e=>r({fontWeight:e}),fontStyle:V,onFontStyle:e=>r({fontStyle:e}),fontSubset:W,onFontSubset:e=>r({fontSubset:e}),loadItalic:He,onLoadItalic:e=>r({loadItalic:e})})),(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Border Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-heading-border"},(0,o.createElement)(l.ResponsiveBorderControl,{label:(0,s.__)("Border","kadence-blocks"),value:wt,tabletValue:xt,mobileValue:Et,onChange:e=>r({borderStyle:e}),onChangeTablet:e=>r({tabletBorderStyle:e}),onChangeMobile:e=>r({mobileBorderStyle:e})}),(0,o.createElement)(l.ResponsiveMeasurementControls,{label:(0,s.__)("Border Radius","kadence-blocks"),value:Bt,tabletValue:Ot,mobileValue:Pt,onChange:e=>r({borderRadius:e}),onChangeTablet:e=>r({tabletBorderRadius:e}),onChangeMobile:e=>r({mobileBorderRadius:e}),unit:Ft,units:["px","em","rem","%"],onUnit:e=>r({borderRadiusUnit:e}),max:"em"===Ft||"rem"===Ft?24:500,step:"em"===Ft||"rem"===Ft?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0})),(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Text Shadow Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-heading-text-shadow"},(0,o.createElement)(C.ToggleControl,{label:"Enable Text Shadow",checked:w,onChange:e=>{r({enableTextShadow:e})}}),!0===w&&(0,o.createElement)(l.ResponsiveShadowControl,{label:(0,s.__)("Text Shadow","kadence-blocks"),enable:w,color:Ba,colorDefault:"rgba(0, 0, 0, 0.2)",hOffset:Oa,vOffset:Pa,blur:Fa,onEnableChange:e=>{la({enable:e})},onColorChange:e=>{la({color:e})},onHOffsetChange:e=>{la({hOffset:e})},onVOffsetChange:e=>{la({vOffset:e})},onBlurChange:e=>{la({blur:e})}})),(0,d.showSettings)("iconSettings","kadence/advancedheading")&&(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Icon Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-heading-icon"},(0,o.createElement)("div",{className:"kt-select-icon-container"},(0,o.createElement)(l.KadenceIconPicker,{value:ut,onChange:e=>{r({icon:e})},allowClear:!0})),(0,o.createElement)(C.SelectControl,{label:(0,s.__)("Icon Location","kadence-blocks"),value:bt,options:[{value:"left",label:(0,s.__)("Left","kadence-blocks")},{value:"right",label:(0,s.__)("Right","kadence-blocks")}],onChange:e=>{r({iconSide:e})}}),(0,o.createElement)(C.SelectControl,{label:(0,s.__)("Vertical Alignment","kadence-blocks"),value:ft,options:[{value:"unset",label:(0,s.__)("Unset","kadence-blocks")},{value:"baseline",label:(0,s.__)("Baseline","kadence-blocks")},{value:"center",label:(0,s.__)("Center","kadence-blocks")},{value:"end",label:(0,s.__)("End","kadence-blocks")},{value:"start",label:(0,s.__)("Start","kadence-blocks")}],onChange:e=>{r({iconVerticalAlign:e})}}),(0,o.createElement)(l.ResponsiveRangeControls,{label:(0,s.__)("Icon Size","kadence-blocks"),value:void 0!==_t?.[0]?_t[0]:"",onChange:e=>{r({iconSize:[e,void 0!==_t[1]?_t[1]:"",void 0!==_t?.[2]&&_t[2]?_t[2]:""]})},tabletValue:void 0!==_t?.[1]?_t[1]:"",onChangeTablet:e=>{r({iconSize:[void 0!==_t?.[0]?_t[0]:"",e,void 0!==_t?.[2]?_t[2]:""]})},mobileValue:void 0!==_t?.[2]?_t[2]:"",onChangeMobile:e=>{r({iconSize:[void 0!==_t?.[0]?_t[0]:"",void 0!==_t?.[1]?_t[1]:"",e]})},min:0,max:"px"!==(Ct||"px")?12:200,step:"px"!==(Ct||"px")?.1:1,unit:Ct||"px",onUnit:e=>{r({iconSizeUnit:e})},units:["px","em","rem"],reset:!0}),(0,o.createElement)(l.PopColorControl,{label:(0,s.__)("Icon Color","kadence-blocks"),value:kt||"",default:"",onChange:e=>{r({iconColor:e})},swatchLabel2:(0,s.__)("Hover Color","kadence-blocks"),value2:yt||"",default2:"",onChange2:e=>{r({iconColorHover:e})}}),(0,o.createElement)(l.ResponsiveMeasureRangeControl,{label:(0,s.__)("Icon Padding","kadence-blocks"),value:void 0!==ht?ht:["","","",""],tabletValue:void 0!==vt?vt:["","","",""],mobileValue:void 0!==St?St:["","","",""],onChange:e=>r({iconPadding:e}),onChangeTablet:e=>r({tabletIconPadding:e}),onChangeMobile:e=>r({mobileIconPadding:e}),min:"em"===Tt||"rem"===Tt?-2:-999,max:"em"===Tt||"rem"===Tt?12:999,step:"em"===Tt||"rem"===Tt?.1:1,unit:Tt,units:["px","em","rem"],onUnit:e=>r({iconPaddingUnit:e})}),(0,o.createElement)(C.TextControl,{label:(0,s.__)("Title for screen readers","kadence-blocks"),help:(0,s.__)("If no title added screen readers will ignore, good if the icon is purely decorative.","kadence-blocks"),value:mt,onChange:e=>{r({iconTitle:e})}}),(0,o.createElement)(C.TextareaControl,{label:(0,s.__)("Icon Tooltip Content","kadence-blocks"),value:Ht,onChange:e=>r({iconTooltip:e})}),(0,o.createElement)(C.SelectControl,{label:(0,s.__)("Icon Tooltip Placement","kadence-blocks"),value:At||"top",options:[{label:(0,s.__)("Top","kadence-blocks"),value:"top"},{label:(0,s.__)("Top Start","kadence-blocks"),value:"top-start"},{label:(0,s.__)("Top End","kadence-blocks"),value:"top-end"},{label:(0,s.__)("Right","kadence-blocks"),value:"right"},{label:(0,s.__)("Right Start","kadence-blocks"),value:"right-start"},{label:(0,s.__)("Right End","kadence-blocks"),value:"right-end"},{label:(0,s.__)("Bottom","kadence-blocks"),value:"bottom"},{label:(0,s.__)("Bottom Start","kadence-blocks"),value:"bottom-start"},{label:(0,s.__)("Bottom End","kadence-blocks"),value:"bottom-end"},{label:(0,s.__)("Left","kadence-blocks"),value:"left"},{label:(0,s.__)("Left Start","kadence-blocks"),value:"left-start"},{label:(0,s.__)("Left End","kadence-blocks"),value:"left-end"},{label:(0,s.__)("Auto","kadence-blocks"),value:"auto"},{label:(0,s.__)("Auto Start","kadence-blocks"),value:"auto-start"},{label:(0,s.__)("Auto End","kadence-blocks"),value:"auto-end"}],onChange:e=>{r({iconTooltipPlacement:e})}}),(0,o.createElement)(C.ToggleControl,{label:(0,s.__)("Show indicator underline","kadence-blocks"),checked:$t,onChange:e=>{r({iconTooltipDash:e})}})),(0,d.showSettings)("highlightSettings","kadence/advancedheading")&&(0,o.createElement)(l.KadencePanelBody,{title:(0,s.__)("Advanced Highlight Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-heading-highlight-settings"},(0,o.createElement)(o.Fragment,null,!Gt&&(0,o.createElement)(l.PopColorControl,{label:(0,s.__)("Color","kadence-blocks"),value:ke||"",default:"",onChange:e=>r({markColor:e})}),!Vt&&(0,o.createElement)(C.ToggleControl,{style:{marginTop:"10px"},label:(0,s.__)("Enable Text Gradient","kadence-blocks"),help:(0,s.__)("Enabling Text Gradient disables Background Color and Gradient.","kadence-blocks"),checked:Gt,onChange:e=>r({enableMarkGradient:e})}),Gt&&(0,o.createElement)(l.GradientControl,{value:Wt,onChange:e=>r({markGradient:e}),gradients:[]}),!Gt&&!Vt&&(0,o.createElement)(l.PopColorControl,{label:(0,s.__)("Background","kadence-blocks"),value:ye||"",default:"",onChange:e=>r({markBG:e}),opacityValue:be,onOpacityChange:e=>r({markBGOpacity:e}),onArrayChange:(e,t)=>r({markBG:e,markBGOpacity:t})})),!Gt&&(0,o.createElement)(C.ToggleControl,{style:{marginTop:"10px"},label:(0,s.__)("Enable Background Gradient","kadence-blocks"),help:(0,s.__)("Enabling Background Gradient disables Text Gradient.","kadence-blocks"),checked:Vt,onChange:e=>r({enableMarkBackgroundGradient:e})}),Vt&&(0,o.createElement)(l.GradientControl,{value:qt,onChange:e=>r({markBackgroundGradient:e}),gradients:[]}),(0,o.createElement)(l.ResponsiveBorderControl,{label:(0,s.__)("Border","kadence-blocks"),value:it,tabletValue:lt,mobileValue:dt,onChange:e=>r({markBorderStyles:e}),onChangeTablet:e=>r({tabletMarkBorderStyles:e}),onChangeMobile:e=>r({mobileMarkBorderStyles:e})}),(0,o.createElement)(l.ResponsiveMeasurementControls,{label:(0,s.__)("Border Radius","kadence-blocks"),value:Mt,tabletValue:Nt,mobileValue:Lt,onChange:e=>r({markBorderRadius:e}),onChangeTablet:e=>r({tabletMarkBorderRadius:e}),onChangeMobile:e=>r({mobileMarkBorderRadius:e}),unit:It,units:["px","em","rem","%"],onUnit:e=>r({markBorderRadiusUnit:e}),max:"em"===It||"rem"===It?24:500,step:"em"===It||"rem"===It?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),(0,o.createElement)(l.TypographyControls,{fontGroup:"heading",fontSize:ae,onFontSize:e=>r({markSize:e}),fontSizeType:ne,onFontSizeType:e=>r({markSizeType:e}),lineHeight:oe,onLineHeight:e=>r({markLineHeight:e}),lineHeightType:re,onLineHeightType:e=>r({markLineType:e}),reLetterSpacing:[ie,ot,rt],onLetterSpacing:e=>r({markLetterSpacing:e[0],tabletMarkLetterSpacing:e[1],mobileMarkLetterSpacing:e[2]}),letterSpacingType:at,onLetterSpacingType:e=>r({markLetterSpacingType:e}),fontFamily:le,onFontFamily:e=>r({markTypography:e}),onFontChange:e=>{r({markTypography:e.value,markGoogleFont:e.google})},googleFont:de,onGoogleFont:e=>r({markGoogleFont:e}),loadGoogleFont:se,onLoadGoogleFont:e=>r({markLoadGoogleFont:e}),fontVariant:pe,onFontVariant:e=>r({markFontVariant:e}),fontWeight:ge,onFontWeight:e=>r({markFontWeight:e}),fontStyle:ue,onFontStyle:e=>r({markFontStyle:e}),fontSubset:ce,onFontSubset:e=>r({markFontSubset:e}),textTransform:Te,onTextTransform:e=>r({markTextTransform:e})}),(0,o.createElement)(l.ResponsiveMeasureRangeControl,{label:(0,s.__)("Padding","kadence-blocks"),value:me,tabletValue:$e,mobileValue:Ae,onChange:e=>r({markPadding:e}),onChangeTablet:e=>r({markTabPadding:e}),onChangeMobile:e=>r({markMobilePadding:e}),min:0,max:"em"===nt||"rem"===nt?12:999,step:"em"===nt||"rem"===nt?.1:1,unit:nt,units:["px","em","rem","%"],onUnit:e=>r({markPaddingType:e})}))),"advanced"===Ut&&(0,o.createElement)(o.Fragment,null,(0,d.showSettings)("marginSettings","kadence/advancedheading")&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.KadencePanelBody,{panelName:"kb-row-padding"},(0,o.createElement)(l.ResponsiveMeasureRangeControl,{label:(0,s.__)("Padding","kadence-blocks"),value:Ne,tabletValue:Le,mobileValue:Ie,onChange:e=>r({padding:e}),onChangeTablet:e=>r({tabletPadding:e}),onChangeMobile:e=>r({mobilePadding:e}),min:0,max:"em"===ze||"rem"===ze?12:999,step:"em"===ze||"rem"===ze?.1:1,unit:ze,units:["px","em","rem","%"],onUnit:e=>r({paddingType:e}),onMouseOver:aa.onMouseOver,onMouseOut:aa.onMouseOut}),(0,o.createElement)(l.ResponsiveMeasureRangeControl,{label:(0,s.__)("Margin","kadence-blocks"),value:Me,tabletValue:Pe,mobileValue:Fe,onChange:e=>{r({margin:e})},onChangeTablet:e=>r({tabletMargin:e}),onChangeMobile:e=>r({mobileMargin:e}),min:"em"===Y||"rem"===Y?-25:-999,max:"em"===Y||"rem"===Y?25:999,step:"em"===Y||"rem"===Y?.1:1,unit:Y,units:["px","em","rem","%","vh"],onUnit:e=>r({marginType:e}),onMouseOver:na.onMouseOver,onMouseOut:na.onMouseOut,allowAuto:!0})),(0,o.createElement)("div",{className:"kt-sidebar-settings-spacer"})),(0,o.createElement)(l.KadenceBlockDefaults,{attributes:t,defaultAttributes:j.attributes,blockSlug:j.name,excludedAttrs:bn}))),(0,o.createElement)(l.DynamicInlineReplaceControl,{dynamicAttribute:"content",...e}),(0,o.createElement)(_.InspectorAdvancedControls,null,"heading"===Ee&&(0,o.createElement)(C.TextControl,{label:(0,s.__)("Alterative title for table of contents","kadence-blocks"),help:(0,s.__)("If using table of contents block you can define a custom title here.","kadence-blocks"),value:zt,onChange:e=>{r({altTitle:e})}}),(0,o.createElement)(C.TextControl,{label:(0,s.__)("HTML Anchor","kadence-blocks"),help:(0,s.__)("Anchors lets you link directly to a section on a page.","kadence-blocks"),value:_e||"",onChange:e=>{e=e.replace(X,"-"),r({anchor:e})}})),we&&(0,o.createElement)("div",{className:`kt-animation-wrap-${we}`},(0,o.createElement)("div",{id:`animate-id${y}`,className:"aos-animate kt-animation-wrap","data-aos":we||void 0,"data-aos-duration":xe&&xe[0]&&xe[0].duration?xe[0].duration:void 0,"data-aos-easing":xe&&xe[0]&&xe[0].easing?xe[0].easing:void 0},De?kn:mn)),!we&&(De?kn:mn),q&&R&&(0,o.createElement)(l.KadenceWebfontLoader,{typography:[{family:R,variant:D||""}],clientId:u,id:"advancedHeading"}),de&&le&&(0,o.createElement)(l.KadenceWebfontLoader,{typography:[{family:le,variant:pe||""}],clientId:u,id:"advancedHeadingMark"}),(0,o.createElement)(l.SpacingVisualizer,{type:"outsideVertical",forceShow:na.isMouseOver,spacing:[(0,d.getSpacingOptionOutput)(ya,Y),(0,d.getSpacingOptionOutput)(ba,Y),(0,d.getSpacingOptionOutput)(fa,Y),(0,d.getSpacingOptionOutput)(ha,Y)]}),(0,o.createElement)(l.SpacingVisualizer,{style:{marginLeft:void 0!==ha?(0,d.getSpacingOptionOutput)(ha,Y):void 0,marginRight:void 0!==ba?(0,d.getSpacingOptionOutput)(ba,Y):void 0,marginTop:void 0!==ya?(0,d.getSpacingOptionOutput)(ya,Y):void 0,marginBottom:void 0!==fa?(0,d.getSpacingOptionOutput)(fa,Y):void 0},type:"inside",forceShow:aa.isMouseOver,spacing:[(0,d.getSpacingOptionOutput)(va,ze),(0,d.getSpacingOptionOutput)(Sa,ze),(0,d.getSpacingOptionOutput)(_a,ze),(0,d.getSpacingOptionOutput)(Ca,ze)]}))},save:function({attributes:e}){const{anchor:t,level:a,content:n,colorClass:r,uniqueID:l,className:d,kadenceAnimation:s,kadenceAOSOptions:c,htmlTag:p,link:g,linkNoFollow:u,linkSponsored:m,linkTarget:k,backgroundColorClass:y,linkStyle:b,icon:f,altTitle:h}=e,v=p&&"heading"!==p?p:"h"+a,S=(0,_.getColorClassName)("color",r),C=(0,_.getColorClassName)("background-color",y),T=!(!s||"reveal-left"!==s&&"reveal-right"!==s&&"reveal-up"!==s&&"reveal-down"!==s),w=!!T,x=i()({[`kt-adv-heading${l}`]:l,[d]:!w&&!g&&d,[(0,J.getBlockDefaultClassName)("kadence/advancedheading")]:(0,J.getBlockDefaultClassName)("kadence/advancedheading"),[S]:S,"has-text-color":S,[C]:C,"has-background":C,[`hls-${b}`]:!g&&b});let E;k&&(E="noopener noreferrer"),void 0!==u&&!0===u&&(E=E?E.concat(" nofollow"):"nofollow"),void 0!==m&&!0===m&&(E=E?E.concat(" sponsored"):"sponsored");const B=(0,o.createElement)(_.RichText.Content,{tagName:v,id:t||void 0,className:x,"data-kb-block":`kb-adv-heading${l}`,"data-aos":s||void 0,"data-aos-offset":c&&c[0]&&c[0].offset?c[0].offset:void 0,"data-aos-duration":c&&c[0]&&c[0].duration?c[0].duration:void 0,"data-aos-delay":c&&c[0]&&c[0].delay?c[0].delay:void 0,"data-aos-easing":c&&c[0]&&c[0].easing?c[0].easing:void 0,"data-aos-once":c&&c[0]&&void 0!==c[0].once&&""!==c[0].once?c[0].once:void 0,"data-alt-title":h||void 0,value:n}),O=(0,o.createElement)("a",{href:g,className:`kb-advanced-heading-link kt-adv-heading-link${l}${!w&&d?" "+d:""}${b?" hls-"+b:""}`,target:k?"_blank":void 0,rel:E||void 0},B),P=g?O:B;return f&&""!==f?B:(0,o.createElement)(o.Fragment,null,w&&(0,o.createElement)("div",{className:`kb-adv-heading-wrap${l} kadence-advanced-heading-wrapper${T?" kadence-heading-clip-animation":""}${d?" "+d:""}`},P),!w&&P)},deprecated:Y,example:{attributes:{content:(0,s.__)("Example Heading","kadence-blocks")}}})},2485:(e,t)=>{var a;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)){if(a.length){var i=o.apply(null,a);i&&e.push(i)}}else if("object"===r)if(a.toString===Object.prototype.toString)for(var l in a)n.call(a,l)&&a[l]&&e.push(l);else e.push(a.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(a=function(){return o}.apply(t,[]))||(e.exports=a)}()},7560:function(e){var t;t=function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),o=a(1),r=a(3),i=function(){function e(t,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o.initializer.load(this,a,t),this.begin()}return n(e,[{key:"toggle",value:function(){this.pause.status?this.start():this.stop()}},{key:"stop",value:function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))}},{key:"start",value:function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))}},{key:"destroy",value:function(){this.reset(!1),this.options.onDestroy(this)}},{key:"reset",value:function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0];clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,e&&(this.insertCursor(),this.options.onReset(this),this.begin())}},{key:"begin",value:function(){var e=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){e.currentElContent&&0!==e.currentElContent.length?e.backspace(e.currentElContent,e.currentElContent.length):e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos)}),this.startDelay)}},{key:"typewrite",value:function(e,t){var a=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var n=this.humanizer(this.typeSpeed),o=1;!0!==this.pause.status?this.timeout=setTimeout((function(){t=r.htmlParser.typeHtmlChars(e,t,a);var n=0,i=e.substr(t);if("^"===i.charAt(0)&&/^\^\d+/.test(i)){var l=1;l+=(i=/\d+/.exec(i)[0]).length,n=parseInt(i),a.temporaryPause=!0,a.options.onTypingPaused(a.arrayPos,a),e=e.substring(0,t)+e.substring(t+l),a.toggleBlinking(!0)}if("`"===i.charAt(0)){for(;"`"!==e.substr(t+o).charAt(0)&&(o++,!(t+o>e.length)););var d=e.substring(0,t),s=e.substring(d.length+1,t+o),c=e.substring(t+o+1);e=d+s+c,o--}a.timeout=setTimeout((function(){a.toggleBlinking(!1),t>=e.length?a.doneTyping(e,t):a.keepTyping(e,t,o),a.temporaryPause&&(a.temporaryPause=!1,a.options.onTypingResumed(a.arrayPos,a))}),n)}),n):this.setPauseStatus(e,t,!0)}},{key:"keepTyping",value:function(e,t,a){0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),t+=a;var n=e.substr(0,t);this.replaceText(n),this.typewrite(e,t)}},{key:"doneTyping",value:function(e,t){var a=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){a.backspace(e,t)}),this.backDelay))}},{key:"backspace",value:function(e,t){var a=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var n=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){t=r.htmlParser.backSpaceHtmlChars(e,t,a);var n=e.substr(0,t);if(a.replaceText(n),a.smartBackspace){var o=a.strings[a.arrayPos+1];o&&n===o.substr(0,t)?a.stopNum=t:a.stopNum=0}t>a.stopNum?(t--,a.backspace(e,t)):t<=a.stopNum&&(a.arrayPos++,a.arrayPos===a.strings.length?(a.arrayPos=0,a.options.onLastStringBackspaced(),a.shuffleStringsIfNeeded(),a.begin()):a.typewrite(a.strings[a.sequence[a.arrayPos]],t))}),n)}else this.setPauseStatus(e,t,!1)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(e,t,a){this.pause.typewrite=a,this.pause.curString=e,this.pause.curStrPos=t}},{key:"toggleBlinking",value:function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(e){return Math.round(Math.random()*e/2)+e}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.el.innerHTML=e:this.el.textContent=e}},{key:"bindFocusEvents",value:function(){var e=this;this.isInput&&(this.el.addEventListener("focus",(function(t){e.stop()})),this.el.addEventListener("blur",(function(t){e.el.value&&0!==e.el.value.length||e.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),e}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),i=(n=a(2))&&n.__esModule?n:{default:n},l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"load",value:function(e,t,a){if(e.el="string"==typeof a?document.querySelector(a):a,e.options=o({},i.default,t),e.isInput="input"===e.el.tagName.toLowerCase(),e.attr=e.options.attr,e.bindInputFocusEvents=e.options.bindInputFocusEvents,e.showCursor=!e.isInput&&e.options.showCursor,e.cursorChar=e.options.cursorChar,e.cursorBlinking=!0,e.elContent=e.attr?e.el.getAttribute(e.attr):e.el.textContent,e.contentType=e.options.contentType,e.typeSpeed=e.options.typeSpeed,e.startDelay=e.options.startDelay,e.backSpeed=e.options.backSpeed,e.smartBackspace=e.options.smartBackspace,e.backDelay=e.options.backDelay,e.fadeOut=e.options.fadeOut,e.fadeOutClass=e.options.fadeOutClass,e.fadeOutDelay=e.options.fadeOutDelay,e.isPaused=!1,e.strings=e.options.strings.map((function(e){return e.trim()})),"string"==typeof e.options.stringsElement?e.stringsElement=document.querySelector(e.options.stringsElement):e.stringsElement=e.options.stringsElement,e.stringsElement){e.strings=[],e.stringsElement.style.display="none";var n=Array.prototype.slice.apply(e.stringsElement.children),r=n.length;if(r)for(var l=0;l<r;l+=1){var d=n[l];e.strings.push(d.innerHTML.trim())}}for(var l in e.strPos=0,e.arrayPos=0,e.stopNum=0,e.loop=e.options.loop,e.loopCount=e.options.loopCount,e.curLoop=0,e.shuffle=e.options.shuffle,e.sequence=[],e.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},e.typingComplete=!1,e.strings)e.sequence[l]=l;e.currentElContent=this.getCurrentElContent(e),e.autoInsertCss=e.options.autoInsertCss,this.appendAnimationCss(e)}},{key:"getCurrentElContent",value:function(e){return e.attr?e.el.getAttribute(e.attr):e.isInput?e.el.value:"html"===e.contentType?e.el.innerHTML:e.el.textContent}},{key:"appendAnimationCss",value:function(e){var t="data-typed-js-css";if(e.autoInsertCss&&(e.showCursor||e.fadeOut)&&!document.querySelector("["+t+"]")){var a=document.createElement("style");a.type="text/css",a.setAttribute(t,!0);var n="";e.showCursor&&(n+="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n "),e.fadeOut&&(n+="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n "),0!==a.length&&(a.innerHTML=n,document.body.appendChild(a))}}}]),e}();t.default=l;var d=new l;t.initializer=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(e){},onComplete:function(e){},preStringTyped:function(e,t){},onStringTyped:function(e,t){},onLastStringBackspaced:function(e){},onTypingPaused:function(e,t){},onTypingResumed:function(e,t){},onReset:function(e){},onStop:function(e,t){},onStart:function(e,t){},onDestroy:function(e){}},e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return a(e,[{key:"typeHtmlChars",value:function(e,t,a){if("html"!==a.contentType)return t;var n=e.substr(t).charAt(0);if("<"===n||"&"===n){var o;for(o="<"===n?">":";";e.substr(t+1).charAt(0)!==o&&!(1+ ++t>e.length););t++}return t}},{key:"backSpaceHtmlChars",value:function(e,t,a){if("html"!==a.contentType)return t;var n=e.substr(t).charAt(0);if(">"===n||";"===n){var o;for(o=">"===n?"<":"&";e.substr(t-1).charAt(0)!==o&&!(--t<0););t--}return t}}]),e}();t.default=n;var o=new n;t.htmlParser=o}])},e.exports=t()}},a={};function n(e){var o=a[e];if(void 0!==o)return o.exports;var r=a[e]={exports:{}};return t[e].call(r.exports,r,r.exports,n),r.exports}n.m=t,e=[],n.O=(t,a,o,r)=>{if(!a){var i=1/0;for(c=0;c<e.length;c++){a=e[c][0],o=e[c][1],r=e[c][2];for(var l=!0,d=0;d<a.length;d++)(!1&r||i>=r)&&Object.keys(n.O).every((e=>n.O[e](a[d])))?a.splice(d--,1):(l=!1,r<i&&(i=r));if(l){e.splice(c--,1);var s=o();void 0!==s&&(t=s)}}return t}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[a,o,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5114:0,323:0};n.O.j=t=>0===e[t];var t=(t,a)=>{var o,r,i=a[0],l=a[1],d=a[2],s=0;if(i.some((t=>0!==e[t]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(d)var c=d(n)}for(t&&t(a);s<i.length;s++)r=i[s],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return n.O(c)},a=self.webpackChunkkadence=self.webpackChunkkadence||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var o=n.O(void 0,[323],(()=>n(1409)));o=n.O(o),(this.kadence=this.kadence||{})["blocks-advancedheading"]=o})();