(()=>{var e,t={9534:(e,t,n)=>{"use strict";const l=window.React,o=window.kadence.helpers,i=window.kadence.components,a=window.wp.hooks,s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"parent":["kadence/iconlist"],"title":"List item","name":"kadence/listitem","category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string","default":""},"icon":{"type":"string","default":""},"showIcon":{"type":"boolean","default":true},"link":{"type":"string","default":"","__experimentalRole":"content"},"linkNoFollow":{"type":"boolean","default":false},"linkSponsored":{"type":"boolean","default":false},"target":{"type":"string","default":"_self","__experimentalRole":"content"},"size":{"type":"number","default":""},"width":{"type":"number","default":""},"text":{"type":"string","source":"html","selector":".kt-svg-icon-list-text","__experimentalRole":"content"},"color":{"type":"string","default":""},"background":{"type":"string","default":""},"border":{"type":"string","default":""},"borderRadius":{"type":"number","default":""},"padding":{"type":"number","default":""},"borderWidth":{"type":"number","default":""},"style":{"type":"string","default":""},"level":{"type":"number","default":0},"iconTitle":{"type":"string","default":""},"tooltip":{"type":"string","source":"html","selector":".kb-tooltip-hidden-content","__experimentalRole":"content"},"tooltipPlacement":{"type":"string","default":""},"tooltipSelection":{"type":"string","default":"both"},"tooltipDash":{"type":"boolean","default":true}},"usesContext":["kadence/listIcon","kadence/listIconWidth","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"],"supports":{"ktdynamic":true,"html":false,"reusable":false,"kbMetadata":true,"kbContentLabel":"text"}}'),r=window.wp.i18n,c=window.wp.blocks,d=window.wp.blockEditor,u=window.wp.element,g=window.wp.components,m=window.wp.data,p=window.wp.primitives,k=(0,u.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(p.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),b=(0,u.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(p.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),v=window.kadence.icons;var y=n(2485),f=n.n(y);const h=[{attributes:s.attributes,apiVersion:2,save:({attributes:e})=>{const{uniqueID:t,icon:n,link:o,target:a,width:s,text:r,style:c,level:u,showIcon:g,size:m}=e,p=f()({"kt-svg-icon-list-item-wrap":!0,[`kt-svg-icon-list-item-${t}`]:t,[`kt-svg-icon-list-style-${c}`]:c,[`kt-svg-icon-list-level-${u}`]:u}),k=d.useBlockProps.save({className:p}),b=n||"USE_PARENT_DEFAULT_ICON",v=(0,l.createElement)(i.IconSpanTag,{extraClass:"kt-svg-icon-list-single",name:b,strokeWidth:"fe"===n.substring(0,2)?s:void 0,ariaHidden:"true"}),y=0===m?(0,l.createElement)(l.Fragment,null):(0,l.createElement)("div",{className:"kt-svg-icon-list-single",style:"display: inline-flex; justify-content: center; align-items: center;"},(0,l.createElement)("svg",{viewBox:"0 0 24 24",height:"1em",width:"1em",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:"display: inline-block; vertical-align: middle;"}));return(0,l.createElement)("li",{...k},o&&(0,l.createElement)("a",{href:o,className:"kt-svg-icon-link",target:"_blank"===a?a:void 0,rel:"_blank"===a?"noopener noreferrer":void 0},g?v:y,(0,l.createElement)(d.RichText.Content,{tagName:"span",value:r,className:"kt-svg-icon-list-text"})),!o&&(0,l.createElement)(l.Fragment,null,g?v:y,(0,l.createElement)(d.RichText.Content,{tagName:"span",value:r,className:"kt-svg-icon-list-text"})))}},{attributes:{uniqueID:{type:"string",default:""},icon:{type:"string",default:""},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",default:""},width:{type:"number",default:""},text:{type:"string",default:""},color:{type:"string",default:""},background:{type:"string",default:""},border:{type:"string",default:""},borderRadius:{type:"number",default:""},padding:{type:"number",default:""},borderWidth:{type:"number",default:""},style:{type:"string",default:""},level:{type:"number",default:0}},save:({attributes:e})=>{const{uniqueID:t,icon:n,link:o,target:a,width:s,text:r,style:c,level:u}=e,g=f()({"kt-svg-icon-list-item-wrap":!0,[`kt-svg-icon-list-item-${t}`]:t,[`kt-svg-icon-list-style-${c}`]:c,[`kt-svg-icon-list-level-${u}`]:u}),m=d.useBlockProps.save({className:g});return(0,l.createElement)("li",{...m},o&&(0,l.createElement)("a",{href:o,className:"kt-svg-icon-link",target:"_blank"===a?a:void 0,rel:"_blank"===a?"noopener noreferrer":void 0},n&&(0,l.createElement)(i.IconSpanTag,{extraClass:"kt-svg-icon-list-single",name:n,strokeWidth:"fe"===n.substring(0,2)?s:void 0,ariaHidden:"true"}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:r,className:"kt-svg-icon-list-text"})),!o&&(0,l.createElement)(l.Fragment,null,n&&(0,l.createElement)(i.IconSpanTag,{extraClass:"kt-svg-icon-list-single",name:n,strokeWidth:"fe"===n.substring(0,2)?s:void 0,ariaHidden:"true"}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:r,className:"kt-svg-icon-list-text"})))}},{attributes:{uniqueID:{type:"string",default:""},icon:{type:"string",default:""},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",default:""},width:{type:"number",default:""},text:{type:"string",default:""},color:{type:"string",default:""},background:{type:"string",default:""},border:{type:"string",default:""},borderRadius:{type:"number",default:""},padding:{type:"number",default:""},borderWidth:{type:"number",default:""},style:{type:"string",default:""},level:{type:"number",default:0},iconTitle:{type:"string",default:""}},save:({attributes:e})=>{const{uniqueID:t,icon:n,link:o,linkSponsored:a,linkNoFollow:s,target:r,width:c,text:u,style:g,level:m,showIcon:p,size:k,iconTitle:b}=e,v=f()({"kt-svg-icon-list-item-wrap":!0,[`kt-svg-icon-list-item-${t}`]:t,[`kt-svg-icon-list-style-${g}`]:g,[`kt-svg-icon-list-level-${m}`]:m}),y=d.useBlockProps.save({className:v}),h=n||"USE_PARENT_DEFAULT_ICON",C=n&&c?c:"USE_PARENT_DEFAULT_WIDTH",_=n&&b?b:"",x=n&&b?"false":"true",w=(0,l.createElement)(i.IconSpanTag,{extraClass:"kt-svg-icon-list-single",name:h,strokeWidth:C,title:_,ariaHidden:x}),E=0===k?(0,l.createElement)(l.Fragment,null):(0,l.createElement)("div",{className:"kt-svg-icon-list-single",style:"display: inline-flex; justify-content: center; align-items: center;"},(0,l.createElement)("svg",{viewBox:"0 0 24 24",height:"1em",width:"1em",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:"display: inline-block; vertical-align: middle;"}));let S="";return"_blank"===r&&(S="noopener noreferrer"),s&&(""!==S?S+=" nofollow":S="nofollow"),a&&(""!==S?S+=" sponsored":S="sponsored"),(0,l.createElement)("li",{...y},o&&(0,l.createElement)("a",{href:o,className:"kt-svg-icon-link",target:"_blank"===r?r:void 0,rel:""!==S?S:void 0},p?w:E,(0,l.createElement)(d.RichText.Content,{tagName:"span",value:u,className:"kt-svg-icon-list-text"})),!o&&(0,l.createElement)(l.Fragment,null,p?w:E,(0,l.createElement)(d.RichText.Content,{tagName:"span",value:u,className:"kt-svg-icon-list-text"})))}}];(0,c.registerBlockType)("kadence/listitem",{...s,title:(0,r.__)("List item","kadence-blocks"),description:(0,r.__)("Icon list item","kadence-blocks"),icon:{src:v.iconListItemBlockIcon},edit:function(e){const{attributes:t,className:n,setAttributes:s,clientId:p,isSelected:y,name:f,onReplace:h,onRemove:C,mergeBlocks:_,context:x}=e,{uniqueID:w,icon:E,link:S,linkNoFollow:I,linkSponsored:T,target:B,size:$,width:N,text:O,color:R,iconTitle:z,background:P,border:L,borderRadius:D,padding:A,borderWidth:W,style:M,level:F,showIcon:G,tooltipSelection:H,tooltip:U,tooltipPlacement:q,tooltipDash:K}=t,V=E||x["kadence/listIcon"],j=N||x["kadence/listIconWidth"],[J,Y]=(0,u.useState)("general"),{addUniqueID:Q}=(0,m.useDispatch)("kadenceblocks/data");let X=(0,a.applyFilters)("kadence.whitelist_richtext_formats",["core/bold","core/italic","kadence/mark","kadence/typed","core/strikethrough","core/superscript","core/superscript","toolset/inline-field"],"kadence/listitem");X=S?X:void 0;const Z=(0,u.useRef)(p),{isUniqueID:ee,isUniqueBlock:te,parentData:ne}=(0,m.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,n)=>e("kadenceblocks/data").isUniqueBlock(t,n),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(p)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(p,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[p]);(0,u.useEffect)((()=>{(0,o.setBlockDefaults)("kadence/listitem",t);const n=(0,o.getPostOrFseId)(e,ne),l=(0,o.getUniqueId)(w,p,ee,te,n);l!==w?(t.uniqueID=l,s({uniqueID:l}),Q(l,p)):Q(w,p)}),[]);const le=(0,d.useBlockProps)({className:n}),oe="icon"===H,ie="text"===H,ae=S?"a":"span",se=(0,l.createElement)(l.Fragment,null,V&&G&&(0,l.createElement)(i.Tooltip,{className:"kb-icon-list-single-wrap",text:U&&oe?U:void 0,placement:q||"top"},(0,l.createElement)(i.IconRender,{className:`kt-svg-icon-list-single kt-svg-icon-list-single-${V}${oe&&U?" kb-icon-list-tooltip":""}${!K&&oe&&U?" kb-list-tooltip-no-border":""}`,name:V,size:$||"1em",strokeWidth:"fe"===V.substring(0,2)?j:void 0,style:{color:R?(0,o.KadenceColorOutput)(R):void 0,backgroundColor:P&&"stacked"===M?(0,o.KadenceColorOutput)(P):void 0,padding:A&&"stacked"===M?A+"px":void 0,borderColor:L&&"stacked"===M?(0,o.KadenceColorOutput)(L):void 0,borderWidth:W&&"stacked"===M?W+"px":void 0,borderRadius:D&&"stacked"===M?D+"%":void 0}})),!G&&0!==$&&(0,l.createElement)("div",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center"},className:"kt-svg-icon-list-single"},(0,l.createElement)("svg",{style:{display:"inline-block",verticalAlign:"middle"},viewBox:"0 0 24 24",height:$||"1em",width:$||"1em",fill:"none",stroke:j,preserveAspectRatio:"xMinYMin meet","stroke-width":j})),(0,l.createElement)(i.Tooltip,{className:"kb-icon-list-text-wrap",text:U&&ie?U:void 0,placement:q||"top"},(0,l.createElement)(d.RichText,{tagName:"div",ref:Z,allowedFormats:X||void 0,identifier:"text",value:O,onChange:e=>{s({text:e})},onSplit:(e,n)=>{const l={...t};l.text=e,n||(l.uniqueID="",l.link="");const o=(0,c.createBlock)("kadence/listitem",l);return n&&(o.clientId=p),o},onMerge:_,onRemove:C,onReplace:h,className:`kt-svg-icon-list-text${ie&&U?" kb-icon-list-tooltip":""}${!K&&ie&&U?" kb-list-tooltip-no-border":""}`,"data-empty":!O})));return(0,l.createElement)("div",{...le},(0,l.createElement)(d.BlockControls,null,(0,l.createElement)(g.ToolbarGroup,{group:"add-indent"},(0,l.createElement)(g.ToolbarButton,{icon:k,title:(0,r.__)("Outdent","kadence-blocks"),describedBy:(0,r.__)("Outdent list item","kadence-blocks"),disabled:0===F,onClick:()=>(()=>{const e=F-1;s({level:Math.max(e,0)})})()}),(0,l.createElement)(g.ToolbarButton,{icon:b,title:(0,r.__)("Indent","kadence-blocks"),describedBy:(0,r.__)("Indent list item","kadence-blocks"),isDisabled:5===F,onClick:()=>{s({level:F+1})}})),(0,l.createElement)(g.ToolbarGroup,{group:"tooltip"},(0,l.createElement)(g.Dropdown,{className:"kb-popover-inline-tooltip-container components-dropdown-menu components-toolbar",contentClassName:"kb-popover-inline-tooltip",placement:"bottom",renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(g.Button,{className:"components-dropdown-menu__toggle kb-inline-tooltip-toolbar-icon",label:(0,r.__)("Tooltip Settings","kadence-blocks"),icon:v.tooltip,onClick:t,"aria-expanded":e}),renderContent:()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"kb-inline-tooltip-control"},(0,l.createElement)(g.TextareaControl,{label:(0,r.__)("Tooltip Content","kadence-blocks"),value:U,onChange:e=>s({tooltip:e})}),(0,l.createElement)(g.SelectControl,{label:(0,r.__)("Placement","kadence-blocks"),value:q||"top",options:[{label:(0,r.__)("Top","kadence-blocks"),value:"top"},{label:(0,r.__)("Top Start","kadence-blocks"),value:"top-start"},{label:(0,r.__)("Top End","kadence-blocks"),value:"top-end"},{label:(0,r.__)("Right","kadence-blocks"),value:"right"},{label:(0,r.__)("Right Start","kadence-blocks"),value:"right-start"},{label:(0,r.__)("Right End","kadence-blocks"),value:"right-end"},{label:(0,r.__)("Bottom","kadence-blocks"),value:"bottom"},{label:(0,r.__)("Bottom Start","kadence-blocks"),value:"bottom-start"},{label:(0,r.__)("Bottom End","kadence-blocks"),value:"bottom-end"},{label:(0,r.__)("Left","kadence-blocks"),value:"left"},{label:(0,r.__)("Left Start","kadence-blocks"),value:"left-start"},{label:(0,r.__)("Left End","kadence-blocks"),value:"left-end"},{label:(0,r.__)("Auto","kadence-blocks"),value:"auto"},{label:(0,r.__)("Auto Start","kadence-blocks"),value:"auto-start"},{label:(0,r.__)("Auto End","kadence-blocks"),value:"auto-end"}],onChange:e=>{s({tooltipPlacement:e})}}),(0,l.createElement)(g.SelectControl,{label:(0,r.__)("Only apply tooltip to:","kadence-blocks"),value:H||"both",options:[{label:(0,r.__)("Text and Icon","kadence-blocks"),value:"both"},{label:(0,r.__)("Text Only","kadence-blocks"),value:"text"},{label:(0,r.__)("Icon Only","kadence-blocks"),value:"icon"}],onChange:e=>{s({tooltipSelection:e})}}),!S&&(0,l.createElement)(g.ToggleControl,{label:(0,r.__)("Show indicator underline","kadence-blocks"),checked:K,onChange:e=>{s({tooltipDash:e})}})))}))),(0,l.createElement)(d.InspectorControls,null,(0,l.createElement)(i.SelectParentBlock,{clientId:p}),(0,l.createElement)(i.InspectorControlTabs,{panelName:"listitem",setActiveTab:e=>Y(e),activeTab:J}),"general"===J&&(0,l.createElement)(i.KadencePanelBody,{initialOpen:!0,panelName:"kb-icon-item-settings"},(0,l.createElement)(i.URLInputControl,{label:(0,r.__)("Link","kadence-blocks"),url:S,onChangeUrl:e=>{s({link:e})},additionalControls:!0,opensInNewTab:!(!B||"_blank"!=B),onChangeTarget:e=>{s(e?{target:"_blank"}:{target:"_self"})},linkNoFollow:void 0!==I&&I,onChangeFollow:e=>s({linkNoFollow:e}),linkSponsored:void 0!==T&&T,onChangeSponsored:e=>s({linkSponsored:e}),dynamicAttribute:"link",allowClear:!0,isSelected:y,attributes:t,setAttributes:s,name:f,clientId:p,context:x}),(0,l.createElement)(g.ToggleControl,{label:(0,r.__)("Hide icon","kadence-blocks"),checked:!G,onChange:e=>{s({showIcon:!e})}}),G&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.KadenceIconPicker,{value:E,onChange:e=>{s({icon:e})},allowClear:!0,placeholder:(0,r.__)("Select Icon","kadence-blocks")}),(0,l.createElement)(g.TextControl,{label:(0,r.__)("Icon title for screen readers","kadence-blocks"),help:(0,r.__)("If no title added screen readers will ignore, good if the icon is purely decorative.","kadence-blocks"),value:z,onChange:e=>{s({iconTitle:e})}}))),"style"===J&&(0,l.createElement)(i.KadencePanelBody,{initialOpen:!0,panelName:"kb-icon-item"},(0,l.createElement)(g.RangeControl,{label:(0,r.__)("Icon Size","kadence-blocks"),value:$,onChange:e=>{s({size:e})},min:0,max:250}),V&&"fe"===V.substring(0,2)&&(0,l.createElement)(g.RangeControl,{label:(0,r.__)("Line Width","kadence-blocks"),value:N,onChange:e=>{s({width:e})},step:.5,min:.5,max:4}),(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Icon Color","kadence-blocks"),value:R||"",default:"",onChange:e=>{s({color:e})}}),(0,l.createElement)(g.SelectControl,{label:(0,r.__)("Icon Style","kadence-blocks"),value:M,options:[{value:"",label:(0,r.__)("Inherit","kadence-blocks")},{value:"default",label:(0,r.__)("Default","kadence-blocks")},{value:"stacked",label:(0,r.__)("Stacked","kadence-blocks")}],onChange:e=>{s({style:e})}}),"stacked"===M&&(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Icon Background","kadence-blocks"),value:P||"",default:"",onChange:e=>{s({background:e})}}),"stacked"===M&&(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Border Color","kadence-blocks"),value:L||"",default:"",onChange:e=>{s({border:e})}}),"stacked"===M&&(0,l.createElement)(g.RangeControl,{label:(0,r.__)("Border Size (px)","kadence-blocks"),value:W,onChange:e=>{s({borderWidth:e})},min:0,max:20}),"stacked"===M&&(0,l.createElement)(g.RangeControl,{label:(0,r.__)("Border Radius (%)","kadence-blocks"),value:D,onChange:e=>{s({borderRadius:e})},min:0,max:50}),"stacked"===M&&(0,l.createElement)(g.RangeControl,{label:(0,r.__)("Padding (px)","kadence-blocks"),value:A,onChange:e=>{s({padding:e})},min:0,max:180}))),(0,l.createElement)("div",{className:`kt-svg-icon-list-item-wrap kt-svg-icon-list-item-0 kt-svg-icon-list-level-${F}${M?" kt-svg-icon-list-style-"+M:""}`},(0,l.createElement)(i.Tooltip,{TagName:ae,className:`kb-icon-list-tooltip-wrap${S||!U||oe||ie?"":" kb-icon-list-tooltip"}${S||!U||oe||ie||K?"":" kb-list-tooltip-no-border"}${S?" kt-svg-icon-link":""}`,text:!U||oe||ie?void 0:U,placement:q||"top"},se)))},save:function(e){const{attributes:t,clientId:n}=e,{uniqueID:o,icon:a,link:s,linkSponsored:r,linkNoFollow:c,target:u,width:g,text:m,style:p,level:k,showIcon:b,size:v,iconTitle:y,tooltip:h,tooltipSelection:C,tooltipPlacement:_,tooltipDash:x}=t,w=h&&o?`kt-svg-tooltip-${o}`:void 0,E="icon"===C,S="text"===C,I=f()({"kt-svg-icon-list-item-wrap":!0,[`kt-svg-icon-list-item-${o}`]:o,[`kt-svg-icon-list-style-${p}`]:p,[`kt-svg-icon-list-level-${k}`]:k}),T=d.useBlockProps.save({className:I}),B=a||"USE_PARENT_DEFAULT_ICON",$=a&&g?g:"USE_PARENT_DEFAULT_WIDTH",N=y||"",O=a&&y?"false":"true",R=(0,l.createElement)(i.IconSpanTag,{extraClass:`kt-svg-icon-list-single${E&&w?" kb-icon-list-tooltip":""}${!x&&E&&w?" kb-list-tooltip-no-border":""}`,name:B,strokeWidth:$,title:N,ariaHidden:O,tooltipID:E&&w?w:void 0,tooltipPlacement:E&&_?_:void 0}),z=0===v?(0,l.createElement)(l.Fragment,null):(0,l.createElement)("div",{className:"kt-svg-icon-list-single",style:"display: inline-flex; justify-content: center; align-items: center;"},(0,l.createElement)("svg",{viewBox:"0 0 24 24",height:"1em",width:"1em",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:"display: inline-block; vertical-align: middle;"}));let P="";return"_blank"===u&&(P="noopener noreferrer"),c&&(""!==P?P+=" nofollow":P="nofollow"),r&&(""!==P?P+=" sponsored":P="sponsored"),(0,l.createElement)("li",{...T},s&&(0,l.createElement)("a",{href:s,className:"kt-svg-icon-link",target:"_blank"===u?u:void 0,"data-tooltip-id":E||S||!w?void 0:w,"data-tooltip-placement":!E&&!S&&w&&_?_:void 0,rel:""!==P?P:void 0},b?R:z,(0,l.createElement)(d.RichText.Content,{tagName:"span",value:m,className:`kt-svg-icon-list-text${w&&S?" kb-icon-list-tooltip":""}${w&&S&&!x?" kb-list-tooltip-no-border":""}`,"data-tooltip-id":w&&S?w:void 0,"data-tooltip-placement":w&&S&&_?_:void 0})),!s&&(0,l.createElement)(l.Fragment,null,!E&&!S&&w&&(0,l.createElement)("span",{className:"kb-icon-list-tooltip-wrap kb-icon-list-tooltip"+(x?"":" kb-list-tooltip-no-border"),"data-tooltip-id":w,"data-tooltip-placement":_},b?R:z,(0,l.createElement)(d.RichText.Content,{tagName:"span",value:m,className:"kt-svg-icon-list-text"})),(!w||E||S)&&(0,l.createElement)(l.Fragment,null,b?R:z,(0,l.createElement)(d.RichText.Content,{tagName:"span",value:m,className:`kt-svg-icon-list-text${w&&S?" kb-icon-list-tooltip":""}${w&&S&&!x?" kb-list-tooltip-no-border":""}`,"data-tooltip-id":w&&S?w:void 0,"data-tooltip-placement":w&&S&&_?_:void 0}))),w&&(0,l.createElement)("span",{className:"kb-tooltip-hidden-content",style:{display:"none"},id:w,dangerouslySetInnerHTML:{__html:h}}))},merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),deprecated:h,example:{attributes:{text:(0,r.__)("List Item","kadence-blocks"),icon:"fe_checkCircle"}}});const C=window.lodash,_=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Icon List","name":"kadence/iconlist","category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"items":{"type":"array","default":[{"icon":"fe_checkCircle","link":"","target":"_self","size":20,"width":2,"text":"","color":"","background":"","border":"","borderRadius":0,"padding":5,"borderWidth":1,"style":"default","level":0}]},"listStyles":{"type":"array","default":[{"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"px","letterSpacing":"","family":"","google":false,"style":"","weight":"","variant":"","subset":"","loadGoogle":true,"color":"","textTransform":""}]},"listCount":{"type":"number","default":1},"columns":{"type":"number","default":1},"tabletColumns":{"type":"number","default":""},"mobileColumns":{"type":"number","default":""},"listGap":{"type":"number","default":5},"tabletListGap":{"type":"number","default":""},"mobileListGap":{"type":"number","default":""},"columnGap":{"type":"number","default":0},"tabletColumnGap":{"type":"number","default":""},"mobileColumnGap":{"type":"number","default":""},"listLabelGap":{"type":"number","default":10},"uniqueID":{"type":"string","default":""},"blockAlignment":{"type":"string","default":"none"},"listMargin":{"type":"array","default":["0","0","sm","0"]},"tabletListMargin":{"type":"array","default":["","","",""]},"mobileListMargin":{"type":"array","default":["","","",""]},"listMarginType":{"type":"string","default":"px"},"listPadding":{"type":"array","default":["","","",""]},"tabletListPadding":{"type":"array","default":["","","",""]},"mobileListPadding":{"type":"array","default":["","","",""]},"listPaddingType":{"type":"string","default":"px"},"iconAlign":{"type":"string","default":"middle"},"iconSize":{"type":"array","default":["","",""]},"icon":{"type":"string","default":"fe_checkCircle"},"width":{"type":"number","default":2},"color":{"type":"string","default":""},"background":{"type":"string","default":""},"border":{"type":"string","default":""},"borderRadius":{"type":"number","default":""},"padding":{"type":"number","default":""},"borderWidth":{"type":"number","default":""},"style":{"type":"string","default":"default"},"linkUnderline":{"type":"string","default":"inherit"},"linkColor":{"type":"string","default":""},"linkHoverColor":{"type":"string","default":""}},"providesContext":{"kadence/listIcon":"icon","kadence/listIconWidth":"width"},"usesContext":["kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"],"supports":{"ktdynamic":true,"kbMetadata":true}}');function x(e){const{items:t,listCount:n}=e,l=[];return t?.length&&(0,C.times)(n,(e=>{const n={...t[e]};l.push((0,c.createBlock)("kadence/listitem",n))})),[{...e,items:[],listCount:1},l]}const w=(0,u.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,u.createElement)(p.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),E=(0,m.withDispatch)(((e,t,n)=>({insertListItem(l){const{clientId:o}=t,{insertBlock:i}=e(d.store),{getBlock:a}=n.select(d.store),s=a(o);i(l,parseInt(s.innerBlocks.length),o)},insertListItems(n){const{clientId:l}=t,{replaceInnerBlocks:o}=e(d.store);o(l,n)},onDelete(){const{clientId:n}=t,{removeBlock:l}=e(d.store);l(n,!0)},updateBlockAttributes(...e){const{updateBlockAttributes:t}=n.select(d.store);t(...e)}})))((function(e){const{attributes:t,className:n,setAttributes:a,isSelected:s,insertListItem:p,insertListItems:k,listBlock:b,container:y,clientId:f,updateBlockAttributes:h,onDelete:E}=e,{listCount:S,items:I,listStyles:T,columns:B,listLabelGap:$,listGap:N,tabletListGap:O,mobileListGap:R,columnGap:z,tabletColumnGap:P,mobileColumnGap:L,blockAlignment:D,uniqueID:A,listMargin:W,tabletListMargin:M,mobileListMargin:F,listMarginType:G,listPadding:H,tabletListPadding:U,mobileListPadding:q,listPaddingType:K,iconAlign:V,tabletColumns:j,mobileColumns:J,icon:Y,iconSize:Q,width:X,color:Z,background:ee,border:te,borderRadius:ne,padding:le,borderWidth:oe,style:ie,linkUnderline:ae,linkColor:se,linkHoverColor:re,iconTitle:ce}=t,[de,ue]=(0,u.useState)("general"),{addUniqueID:ge}=(0,m.useDispatch)("kadenceblocks/data"),{isUniqueID:me,isUniqueBlock:pe,previewDevice:ke,parentData:be}=(0,m.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,n)=>e("kadenceblocks/data").isUniqueBlock(t,n),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(f)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(f,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[f]);(0,u.useEffect)((()=>{if((0,o.setBlockDefaults)("kadence/iconlist",t),!A){const e=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==t.noCustomDefaults&&t.noCustomDefaults||void 0!==e["kadence/iconlist"]&&"object"==typeof e["kadence/iconlist"]&&Object.keys(e["kadence/iconlist"]).map((n=>{"items"===n&&(t[n]=t[n].map(((t,l)=>(t.icon=e["kadence/iconlist"][n][0].icon,t.size=e["kadence/iconlist"][n][0].size,t.color=e["kadence/iconlist"][n][0].color,t.background=e["kadence/iconlist"][n][0].background,t.border=e["kadence/iconlist"][n][0].border,t.borderRadius=e["kadence/iconlist"][n][0].borderRadius,t.padding=e["kadence/iconlist"][n][0].padding,t.borderWidth=e["kadence/iconlist"][n][0].borderWidth,t.style=e["kadence/iconlist"][n][0].style,t.level=(0,C.get)(e["kadence/iconlist"][n][0],"level",0),t))))}))}const n=(0,o.getPostOrFseId)(e,be),l=(0,o.getUniqueId)(A,f,me,pe,n);l!==A?(t.uniqueID=l,a({uniqueID:l}),ge(l,f)):ge(A,f)}),[]),(0,u.useEffect)((()=>{if(A&&!b.innerBlocks.length)if(I?.length&&I.length&&void 0!==_?.attributes?.items?.default&&!(0,C.isEqual)(_.attributes.items.default,I)){const e=x(t);a(e[0]),k(e[1])}else E()}),[b.innerBlocks.length]);const ve=(0,o.getPreviewSize)(ke,void 0!==W?W[0]:"",void 0!==M?M[0]:"",void 0!==F?F[0]:""),ye=(0,o.getPreviewSize)(ke,void 0!==W?W[1]:"",void 0!==M?M[1]:"",void 0!==F?F[1]:""),fe=(0,o.getPreviewSize)(ke,void 0!==W?W[2]:"",void 0!==M?M[2]:"",void 0!==F?F[2]:""),he=(0,o.getPreviewSize)(ke,void 0!==W?W[3]:"",void 0!==M?M[3]:"",void 0!==F?F[3]:""),Ce=(0,o.getPreviewSize)(ke,void 0!==H?H[0]:"",void 0!==U?U[0]:"",void 0!==q?q[0]:""),_e=(0,o.getPreviewSize)(ke,void 0!==H?H[1]:"",void 0!==U?U[1]:"",void 0!==q?q[1]:""),xe=(0,o.getPreviewSize)(ke,void 0!==H?H[2]:"",void 0!==U?U[2]:"",void 0!==q?q[2]:""),we=(0,o.getPreviewSize)(ke,void 0!==H?H[3]:"",void 0!==U?U[3]:"",void 0!==q?q[3]:""),Ee=(0,o.getPreviewSize)(ke,void 0!==z?z:"",void 0!==P?P:"",void 0!==L?L:""),Se=(0,o.getPreviewSize)(ke,void 0!==N?N:"",void 0!==O?O:"",void 0!==R?R:""),Ie=(0,o.getPreviewSize)(ke,void 0!==B?B:"",void 0!==j?j:"",void 0!==J?J:""),Te=(0,o.mouseOverVisualizer)(),Be=(0,o.mouseOverVisualizer)(),$e=(0,o.getPreviewSize)(ke,void 0!==T[0].size&&void 0!==T[0].size[0]?T[0].size[0]:"",void 0!==T[0].size&&void 0!==T[0].size[1]?T[0].size[1]:"",void 0!==T[0].size&&void 0!==T[0].size[2]?T[0].size[2]:""),Ne=(0,o.getPreviewSize)(ke,void 0!==T[0].lineHeight&&void 0!==T[0].lineHeight[0]?T[0].lineHeight[0]:"",void 0!==T[0].lineHeight&&void 0!==T[0].lineHeight[1]?T[0].lineHeight[1]:"",void 0!==T[0].lineHeight&&void 0!==T[0].lineHeight[2]?T[0].lineHeight[2]:""),Oe=(0,o.getPreviewSize)(ke,void 0!==Q?.[0]?Q[0]:"",void 0!==Q?.[1]?Q[1]:"",void 0!==Q?.[2]?Q[2]:""),Re=e=>{const t=T.map(((t,n)=>(0===n&&(t={...t,...e}),t)));a({listStyles:t})},ze=[{key:"top",name:(0,r.__)("Top","kadence-blocks"),icon:v.alignTopIcon},{key:"middle",name:(0,r.__)("Middle","kadence-blocks"),icon:v.alignMiddleIcon},{key:"bottom",name:(0,r.__)("Bottom","kadence-blocks"),icon:v.alignBottomIcon}],Pe=["listCount"],Le=(0,d.useBlockProps)({className:n}),De=(0,d.useInnerBlocksProps)(Le,{allowedBlocks:["kadence/listitem"],template:[["kadence/listitem"]],templateLock:!1,templateInsertUpdatesSelection:!0});return(0,l.createElement)("div",{...Le},(0,l.createElement)(d.BlockControls,null,(0,l.createElement)(d.BlockAlignmentToolbar,{value:D,controls:["center","left","right"],onChange:e=>a({blockAlignment:e})}),(0,l.createElement)(g.ToolbarGroup,null,(0,l.createElement)(g.ToolbarButton,{className:"kb-icons-add-icon",icon:w,onClick:()=>{const e=b.innerBlocks[b.innerBlocks.length-1].attributes,t=JSON.parse(JSON.stringify(e));t.uniqueID="",t.text="";const n=(0,c.createBlock)("kadence/listitem",t);p(n)},label:(0,r.__)("Add Another List Item","kadence-blocks"),showTooltip:!0})),(0,l.createElement)(i.CopyPasteAttributes,{attributes:t,excludedAttrs:Pe,defaultAttributes:_.attributes,blockSlug:_.name,onPaste:e=>a(e)})),(0,o.showSettings)("allSettings","kadence/iconlist")&&(0,l.createElement)(d.InspectorControls,null,(0,l.createElement)(i.InspectorControlTabs,{panelName:"iconlist",setActiveTab:e=>ue(e),activeTab:de,initialOpen:"style"}),"general"===de&&(0,l.createElement)(u.Fragment,null,(0,l.createElement)(i.KadencePanelBody,{initialOpen:!0,panelName:"kb-icon-list-controls"},(0,o.showSettings)("column","kadence/iconlist")&&(0,l.createElement)(i.ResponsiveRangeControls,{label:(0,r.__)("List Columns","kadence-blocks"),value:B,onChange:e=>a({columns:e}),tabletValue:j||"",onChangeTablet:e=>a({tabletColumns:e}),mobileValue:J||"",onChangeMobile:e=>a({mobileColumns:e}),min:1,max:3,step:1,showUnit:!1}),(0,o.showSettings)("spacing","kadence/iconlist")&&(0,l.createElement)(u.Fragment,null,(0,l.createElement)(i.ResponsiveRangeControls,{label:(0,r.__)("List Column Gap","kadence-blocks"),value:z,onChange:e=>a({columnGap:e}),tabletValue:P||"",onChangeTablet:e=>a({tabletColumnGap:e}),mobileValue:L||"",onChangeMobile:e=>a({mobileColumnGap:e}),min:0,max:200,step:1,showUnit:!1}),(0,l.createElement)(i.ResponsiveRangeControls,{label:(0,r.__)("List Vertical Spacing","kadence-blocks"),value:N,onChange:e=>a({listGap:e}),tabletValue:void 0!==O?O:"",onChangeTablet:e=>a({tabletListGap:e}),mobileValue:void 0!==R?R:"",onChangeMobile:e=>a({mobileListGap:e}),min:0,max:60,step:1,showUnit:!1}),(0,l.createElement)(i.RangeControl,{label:(0,r.__)("List Horizontal Icon and Label Spacing","kadence-blocks"),value:$,onChange:e=>{a({listLabelGap:e})},min:0,max:60,reset:!0}),(0,l.createElement)("div",{className:"kt-btn-size-settings-container"},(0,l.createElement)("h2",{className:"kt-beside-btn-group"},(0,r.__)("Icon Align","kadence-blocks")),(0,l.createElement)(g.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,r.__)("Icon Align","kadence-blocks")},(0,C.map)(ze,(({name:e,icon:t,key:n})=>(0,l.createElement)(g.Tooltip,{text:e},(0,l.createElement)(g.Button,{key:n,className:"kt-btn-size-btn",isSmall:!0,isPrimary:V===n,"aria-pressed":V===n,onClick:()=>a({iconAlign:n})},t))))))))),"style"===de&&(0,l.createElement)(u.Fragment,null,(0,l.createElement)(i.KadencePanelBody,{title:(0,r.__)("Icon Styling","kadence-blocks"),panelName:"kb-list-icon-styling"},(0,l.createElement)(i.KadenceIconPicker,{value:Y,onChange:e=>{a({icon:e})}}),(0,l.createElement)(i.ResponsiveRangeControls,{label:(0,r.__)("Icon Size","kadence-blocks"),value:void 0!==Q?.[0]?Q[0]:"",onChange:e=>{a({iconSize:[e,void 0!==Q?.[1]?Q[1]:"",void 0!==Q?.[2]?Q[2]:""]})},tabletValue:void 0!==Q?.[1]?Q[1]:"",onChangeTablet:e=>{a({iconSize:[void 0!==Q?.[0]?Q[0]:"",e,void 0!==Q?.[2]?Q[2]:""]})},mobileValue:void 0!==Q?.[2]?Q[2]:"",onChangeMobile:e=>{a({iconSize:[void 0!==Q?.[0]?Q[0]:"",void 0!==Q?.[1]?Q[1]:"",e]})},min:0,max:300,step:1,unit:"px",showUnit:!0,units:["px"]}),Y&&"fe"===Y.substring(0,2)&&(0,l.createElement)(i.RangeControl,{label:(0,r.__)("Line Width","kadence-blocks"),value:X,onChange:e=>{a({width:e})},step:.5,min:.5,max:4,reset:!0}),(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Icon Color","kadence-blocks"),value:Z||"",default:"",onChange:e=>{a({color:e})}}),(0,l.createElement)(g.SelectControl,{label:(0,r.__)("Icon Style","kadence-blocks"),value:ie,options:[{value:"default",label:(0,r.__)("Default","kadence-blocks")},{value:"stacked",label:(0,r.__)("Stacked","kadence-blocks")}],onChange:e=>{a({style:e})}}),"stacked"===ie&&(0,l.createElement)(u.Fragment,null,(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Icon Background","kadence-blocks"),value:ee||"",default:"",onChange:e=>{a({background:e})}}),(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Border Color","kadence-blocks"),value:te||"",default:"",onChange:e=>{a({border:e})}}),(0,l.createElement)(i.RangeControl,{label:(0,r.__)("Border Size (px)","kadence-blocks"),value:oe,onChange:e=>{a({borderWidth:e})},min:0,max:20,reset:!0})),"stacked"===ie&&(0,l.createElement)(i.RangeControl,{label:(0,r.__)("Border Radius (%)","kadence-blocks"),value:ne,onChange:e=>{a({borderRadius:e})},min:0,max:50,reset:!0}),"stacked"===ie&&(0,l.createElement)(i.RangeControl,{label:(0,r.__)("Padding (px)","kadence-blocks"),value:le,onChange:e=>{a({padding:e})},min:0,max:180,reset:!0})),(0,o.showSettings)("textStyle","kadence/iconlist")&&(0,l.createElement)(i.KadencePanelBody,{title:(0,r.__)("Text Styling","kadence-blocks"),initialOpen:!1,panelName:"kb-list-text-styling"},(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Color","kadence-blocks"),value:T[0].color?T[0].color:"",default:"",onChange:e=>{Re({color:e})}}),(0,l.createElement)(i.TypographyControls,{fontGroup:"body",fontSize:T[0].size,onFontSize:e=>Re({size:e}),fontSizeType:T[0].sizeType,onFontSizeType:e=>Re({sizeType:e}),lineHeight:T[0].lineHeight,onLineHeight:e=>Re({lineHeight:e}),lineHeightType:T[0].lineType,onLineHeightType:e=>Re({lineType:e}),letterSpacing:T[0].letterSpacing,onLetterSpacing:e=>Re({letterSpacing:e}),fontFamily:T[0].family,onFontFamily:e=>Re({family:e}),onFontChange:e=>{Re({family:e.value,google:e.google})},onFontArrayChange:e=>Re(e),googleFont:T[0].google,onGoogleFont:e=>Re({google:e}),loadGoogleFont:T[0].loadGoogle,onLoadGoogleFont:e=>Re({loadGoogle:e}),fontVariant:T[0].variant,onFontVariant:e=>Re({variant:e}),fontWeight:T[0].weight,onFontWeight:e=>Re({weight:e}),fontStyle:T[0].style,onFontStyle:e=>Re({style:e}),fontSubset:T[0].subset,onFontSubset:e=>Re({subset:e}),textTransform:T[0].textTransform,onTextTransform:e=>Re({textTransform:e})})),(0,l.createElement)(i.KadencePanelBody,{title:(0,r.__)("Link Styling","kadence-blocks"),initialOpen:!1,panelName:"kb-list-link-styling"},(0,l.createElement)(i.PopColorControl,{label:(0,r.__)("Link Color","kadence-blocks"),value:se,default:"",onChange:e=>{a({linkColor:e})},swatchLabel2:(0,r.__)("Hover Color","kadence-blocks"),value2:re||"",default2:"",onChange2:e=>a({linkHoverColor:e})}),(0,l.createElement)(g.SelectControl,{label:(0,r.__)("Underline Links","kadence-blocks"),value:ae,options:[{value:"inherit",label:(0,r.__)("Inherit","kadence-blocks")},{value:"always",label:(0,r.__)("Underline","kadence-blocks")},{value:"hover",label:(0,r.__)("Underline on Hover","kadence-blocks")},{value:"none",label:(0,r.__)("None","kadence-blocks")}],onChange:e=>a({linkUnderline:e})}))),"advanced"===de&&(0,l.createElement)(u.Fragment,null,(0,l.createElement)(i.KadencePanelBody,{panelName:"kb-icon-list-spacing-settings"},(0,l.createElement)(i.ResponsiveMeasureRangeControl,{label:(0,r.__)("Padding","kadence-blocks"),value:H,tabletValue:U,mobileValue:q,onChange:e=>a({listPadding:e}),onChangeTablet:e=>a({tabletListPadding:e}),onChangeMobile:e=>a({mobileListPadding:e}),min:"em"===K||"rem"===K?-25:-999,max:"em"===K||"rem"===K?25:999,step:"em"===K||"rem"===K?.1:1,unit:K,units:["px","em","rem","%"],onUnit:e=>a({listPaddingType:e}),onMouseOver:Be.onMouseOver,onMouseOut:Be.onMouseOut}),(0,l.createElement)(i.ResponsiveMeasureRangeControl,{label:(0,r.__)("Margin","kadence-blocks"),value:W,tabletValue:M,mobileValue:F,onChange:e=>a({listMargin:e}),onChangeTablet:e=>a({tabletListMargin:e}),onChangeMobile:e=>a({mobileListMargin:e}),min:"em"===G||"rem"===G?-25:-999,max:"em"===G||"rem"===G?25:999,step:"em"===G||"rem"===G?.1:1,unit:G,units:["px","em","rem","%"],onUnit:e=>a({listMarginType:e}),onMouseOver:Te.onMouseOver,onMouseOut:Te.onMouseOut,allowAuto:!0})),(0,l.createElement)(i.KadenceBlockDefaults,{attributes:t,defaultAttributes:_.attributes,blockSlug:_.name,excludedAttrs:Pe,preventMultiple:["items"]}))),(0,l.createElement)("style",null,$?`body:not(.rtl) .kt-svg-icon-list-items${A} .kt-svg-icon-list-single { margin-right: ${$}px; }`:"",$?`body.rtl .kt-svg-icon-list-items${A} .kt-svg-icon-list-single { margin-left: ${$}px; }`:"",T?.[0]?`.kt-svg-icon-list-items${A} .kt-svg-icon-list-item-wrap {\n\t\t\t\t\t\t${T[0].weight?`font-weight:${T[0].weight};`:""}\n\t\t\t\t\t\t${T[0].style?`font-style:${T[0].style};`:""}\n\t\t\t\t\t\t${T[0].color?`color:${(0,o.KadenceColorOutput)(T[0].color)};`:""}\n\t\t\t\t\t\t${$e?`font-size:${(0,o.getFontSizeOptionOutput)($e,T[0].sizeType)};`:""}\n\t\t\t\t\t\t${Ne?`line-height:${Ne+T[0].lineType};`:""}\n\t\t\t\t\t\t${T[0].letterSpacing?`letter-spacing:${T[0].letterSpacing}px;`:""}\n\t\t\t\t\t\t${T[0].family?`font-family:${T[0].family};`:""}\n\t\t\t\t\t\t${T[0].textTransform?`text-transform:${T[0].textTransform};`:""}\n\t\t\t\t\t}`:"",T[0].color?`.kt-svg-icon-list-items${A} .kt-svg-icon-list-item-wrap a {\n\t\t\t\t\t\tcolor:${(0,o.KadenceColorOutput)(T[0].color)};\n\t\t\t\t\t}`:"",`.kt-svg-icon-list-items${A} .kt-svg-icon-list-item-wrap a {\n\t\t\t\t\t\t${se?`color:${(0,o.KadenceColorOutput)(se)};`:""}\n\t\t\t\t\t\t${ae&&"always"===ae?"text-decoration: underline;":""}\n\t\t\t\t\t\t${!ae||"none"!==ae&&"hover"!==ae?"":"text-decoration: none;"}\n\t\t\t\t\t}`,`.kt-svg-icon-list-items${A} .kt-svg-icon-list-item-wrap a:hover {\n\t\t\t\t\t\t${re?`color:${(0,o.KadenceColorOutput)(re)};`:""}\n\t\t\t\t\t\t${ae&&"hover"===ae?"text-decoration: underline;":""}\n\t\t\t\t\t}`,""!==Se?`.kt-svg-icon-list-items${A} .wp-block-kadence-iconlist { row-gap: ${Se}px; }`:"",""!==Ee?`.kt-svg-icon-list-items${A} .wp-block-kadence-iconlist { column-gap: ${Ee}px; }`:"",Oe?`.kt-svg-icon-list-items${A} .kt-svg-icon-list-item-wrap .kt-svg-icon-list-single { font-size: ${Oe}px; }`:"",Z?`.kt-svg-icon-list-items${A} .kt-svg-icon-list-item-wrap .kt-svg-icon-list-single { color: ${(0,o.KadenceColorOutput)(Z)}; }`:"",ee?`.kt-svg-icon-list-items${A}.kb-icon-list-style-stacked .kt-svg-icon-list-item-wrap:not(.kt-svg-icon-list-style-default) .kt-svg-icon-list-single { background-color: ${(0,o.KadenceColorOutput)(ee)}; }`:"",le?`.kt-svg-icon-list-items${A}.kb-icon-list-style-stacked .kt-svg-icon-list-item-wrap:not(.kt-svg-icon-list-style-default) .kt-svg-icon-list-single { padding: ${le}px; }`:"",te?`.kt-svg-icon-list-items${A}.kb-icon-list-style-stacked .kt-svg-icon-list-item-wrap:not(.kt-svg-icon-list-style-default) .kt-svg-icon-list-single { border-color: ${(0,o.KadenceColorOutput)(te)}; }`:"",oe?`.kt-svg-icon-list-items${A}.kb-icon-list-style-stacked .kt-svg-icon-list-item-wrap:not(.kt-svg-icon-list-style-default) .kt-svg-icon-list-single { border-width: ${oe}px; }`:"",ne?`.kt-svg-icon-list-items${A}.kb-icon-list-style-stacked .kt-svg-icon-list-item-wrap:not(.kt-svg-icon-list-style-default) .kt-svg-icon-list-single { border-radius: ${ne}%; }`:""),T?.[0]?.google&&(0,l.createElement)(i.KadenceWebfontLoader,{typography:T,clientId:f,id:"listStyles"}),(0,l.createElement)("div",{ref:y,className:`kt-svg-icon-list-container kt-svg-icon-list-items${A} kb-icon-list-style-${ie} kt-svg-icon-list-columns-${Ie}${void 0!==V&&"middle"!==V?" kt-list-icon-align"+V:""}${void 0!==j&&""!==j?" kt-tablet-svg-icon-list-columns-"+j:""}${void 0!==J&&""!==J?" kt-mobile-svg-icon-list-columns-"+J:""}`,style:{marginTop:(0,o.getSpacingOptionOutput)(ve,G),marginRight:(0,o.getSpacingOptionOutput)(ye,G),marginBottom:(0,o.getSpacingOptionOutput)(fe,G),marginLeft:(0,o.getSpacingOptionOutput)(he,G),paddingTop:(0,o.getSpacingOptionOutput)(Ce,K),paddingRight:(0,o.getSpacingOptionOutput)(_e,K),paddingBottom:(0,o.getSpacingOptionOutput)(xe,K),paddingLeft:(0,o.getSpacingOptionOutput)(we,K)}},(0,l.createElement)("div",{...De}),(0,l.createElement)(i.SpacingVisualizer,{type:"inside",style:{marginLeft:void 0!==he?(0,o.getSpacingOptionOutput)(he,G):void 0,marginRight:void 0!==ye?(0,o.getSpacingOptionOutput)(ye,G):void 0,marginTop:void 0!==ve?(0,o.getSpacingOptionOutput)(ve,G):void 0,marginBottom:void 0!==fe?(0,o.getSpacingOptionOutput)(fe,G):void 0},forceShow:Be.isMouseOver,spacing:[(0,o.getSpacingOptionOutput)(Ce,K),(0,o.getSpacingOptionOutput)(_e,K),(0,o.getSpacingOptionOutput)(xe,K),(0,o.getSpacingOptionOutput)(we,K)]}),(0,l.createElement)(i.SpacingVisualizer,{type:"outsideVertical",forceShow:Te.isMouseOver,spacing:[(0,o.getSpacingOptionOutput)(ve,G),(0,o.getSpacingOptionOutput)(ye,G),(0,o.getSpacingOptionOutput)(fe,G),(0,o.getSpacingOptionOutput)(he,G)]})))})),S=[{attributes:{items:{type:"array",default:[{icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:"",color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default",level:0}]},listStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",textTransform:""}]},listCount:{type:"number",default:1},columns:{type:"number",default:1},tabletColumns:{type:"number",default:""},mobileColumns:{type:"number",default:""},listGap:{type:"number",default:5},tabletListGap:{type:"number",default:""},mobileListGap:{type:"number",default:""},columnGap:{type:"number",default:0},tabletColumnGap:{type:"number",default:""},mobileColumnGap:{type:"number",default:""},listLabelGap:{type:"number",default:10},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"none"},listMargin:{type:"array",default:[0,0,10,0]},tabletListMargin:{type:"array",default:["","","",""]},mobileListMargin:{type:"array",default:["","","",""]},listMarginType:{type:"string",default:"px"},iconAlign:{type:"string",default:"middle"}},save:({attributes:e})=>{const{items:t,listCount:n,columns:a,blockAlignment:s,iconAlign:r,uniqueID:c,tabletColumns:g,mobileColumns:m}=e,p=d.useBlockProps.save({className:`wp-block-kadence-iconlist kt-svg-icon-list-items kt-svg-icon-list-items${c} kt-svg-icon-list-columns-${a} align${s||"none"}${void 0!==r&&"middle"!==r?" kt-list-icon-align"+r:""}${void 0!==g&&""!==g?" kt-tablet-svg-icon-list-columns-"+g:""}${void 0!==m&&""!==m?" kt-mobile-svg-icon-list-columns-"+m:""}`});return(0,l.createElement)("div",{...p},(0,l.createElement)("ul",{className:"kt-svg-icon-list"},(0,C.times)(n,(e=>(e=>{if(void 0!==t?.[e])return(0,l.createElement)("li",{className:`kt-svg-icon-list-style-${t[e].style} kt-svg-icon-list-item-wrap kt-svg-icon-list-item-${e} kt-svg-icon-list-level-${t[e].level}`},t[e].link&&(0,l.createElement)("a",{href:t[e].link,className:"kt-svg-icon-link",target:"_blank"===t[e].target?t[e].target:void 0,rel:"_blank"===t[e].target?"noopener noreferrer":void 0},t[e].icon&&(0,l.createElement)(i.IconRender,{className:`kt-svg-icon-list-single kt-svg-icon-list-single-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,ariaHidden:"true",style:{color:t[e].color?(0,o.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].background):void 0,padding:t[e].padding&&"default"!==t[e].style?t[e].padding+"px":void 0,borderColor:t[e].border&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].border):void 0,borderWidth:t[e].borderWidth&&"default"!==t[e].style?t[e].borderWidth+"px":void 0,borderRadius:t[e].borderRadius&&"default"!==t[e].style?t[e].borderRadius+"%":void 0}}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:t[e].text,className:"kt-svg-icon-list-text"})),!t[e].link&&(0,l.createElement)(u.Fragment,null,t[e].icon&&(0,l.createElement)(i.IconRender,{className:`kt-svg-icon-list-single kt-svg-icon-list-single-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,ariaHidden:"true",style:{color:t[e].color?(0,o.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].background):void 0,padding:t[e].padding&&"default"!==t[e].style?t[e].padding+"px":void 0,borderColor:t[e].border&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].border):void 0,borderWidth:t[e].borderWidth&&"default"!==t[e].style?t[e].borderWidth+"px":void 0,borderRadius:t[e].borderRadius&&"default"!==t[e].style?t[e].borderRadius+"%":void 0,marginTop:t[e].marginTop?t[e].marginTop+"px":void 0,marginRight:t[e].marginRight?t[e].marginRight+"px":void 0,marginBottom:t[e].marginBottom?t[e].marginBottom+"px":void 0,marginLeft:t[e].marginLeft?t[e].marginLeft+"px":void 0}}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:t[e].text,className:"kt-svg-icon-list-text"})))})(e)))))},migrate:x},{attributes:{items:{type:"array",default:[{icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:"",color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"}]},listStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",textTransform:""}]},listCount:{type:"number",default:1},columns:{type:"number",default:1},tabletColumns:{type:"number",default:""},mobileColumns:{type:"number",default:""},listGap:{type:"number",default:5},listLabelGap:{type:"number",default:10},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"none"},listMargin:{type:"array",default:[0,0,10,0]},iconAlign:{type:"string",default:"middle"}},save:({attributes:e})=>{const{items:t,listCount:n,columns:a,blockAlignment:s,iconAlign:r,uniqueID:c,tabletColumns:g,mobileColumns:m}=e;return(0,l.createElement)("div",{className:`kt-svg-icon-list-items kt-svg-icon-list-items${c} kt-svg-icon-list-columns-${a} align${s||"none"}${void 0!==r&&"middle"!==r?" kt-list-icon-align"+r:""}${void 0!==g&&""!==g?" kt-tablet-svg-icon-list-columns-"+g:""}${void 0!==m&&""!==m?" kt-mobile-svg-icon-list-columns-"+m:""}`},(0,l.createElement)("ul",{className:"kt-svg-icon-list"},(0,C.times)(n,(e=>(e=>{if(void 0!==t?.[e])return(0,l.createElement)("li",{className:`kt-svg-icon-list-style-${t[e].style} kt-svg-icon-list-item-wrap kt-svg-icon-list-item-${e}`},t[e].icon&&t[e].link&&(0,l.createElement)("a",{href:t[e].link,className:"kt-svg-icon-link",target:"_blank"===t[e].target?t[e].target:void 0,rel:"_blank"===t[e].target?"noopener noreferrer":void 0},(0,l.createElement)(i.IconRender,{className:`kt-svg-icon-list-single kt-svg-icon-list-single-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,ariaHidden:"true",style:{color:t[e].color?(0,o.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].background):void 0,padding:t[e].padding&&"default"!==t[e].style?t[e].padding+"px":void 0,borderColor:t[e].border&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].border):void 0,borderWidth:t[e].borderWidth&&"default"!==t[e].style?t[e].borderWidth+"px":void 0,borderRadius:t[e].borderRadius&&"default"!==t[e].style?t[e].borderRadius+"%":void 0}}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:t[e].text,className:"kt-svg-icon-list-text"})),t[e].icon&&!t[e].link&&(0,l.createElement)(u.Fragment,null,(0,l.createElement)(i.IconRender,{className:`kt-svg-icon-list-single kt-svg-icon-list-single-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,ariaHidden:"true",style:{color:t[e].color?(0,o.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].background):void 0,padding:t[e].padding&&"default"!==t[e].style?t[e].padding+"px":void 0,borderColor:t[e].border&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].border):void 0,borderWidth:t[e].borderWidth&&"default"!==t[e].style?t[e].borderWidth+"px":void 0,borderRadius:t[e].borderRadius&&"default"!==t[e].style?t[e].borderRadius+"%":void 0,marginTop:t[e].marginTop?t[e].marginTop+"px":void 0,marginRight:t[e].marginRight?t[e].marginRight+"px":void 0,marginBottom:t[e].marginBottom?t[e].marginBottom+"px":void 0,marginLeft:t[e].marginLeft?t[e].marginLeft+"px":void 0}}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:t[e].text,className:"kt-svg-icon-list-text"})))})(e)))))},migrate:x},{attributes:{items:{type:"array",default:[{icon:"fe_checkCircle",link:"",target:"_self",size:20,width:2,text:"",color:"",background:"",border:"",borderRadius:0,padding:5,borderWidth:1,style:"default"}]},listStyles:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0,color:"",textTransform:""}]},listCount:{type:"number",default:1},columns:{type:"number",default:1},listGap:{type:"number",default:5},listLabelGap:{type:"number",default:10},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"none"},listMargin:{type:"array",default:[0,0,10,0]},iconAlign:{type:"string",default:"middle"}},save:({attributes:e})=>{const{items:t,listCount:n,columns:a,blockAlignment:s,iconAlign:r,uniqueID:c}=e;return(0,l.createElement)("div",{className:`kt-svg-icon-list-items kt-svg-icon-list-items${c} kt-svg-icon-list-columns-${a} align${s||"none"}${void 0!==r&&"middle"!==r?" kt-list-icon-align"+r:""}`},(0,l.createElement)("ul",{className:"kt-svg-icon-list"},(0,C.times)(n,(e=>(e=>{if(void 0!==t?.[e])return(0,l.createElement)("li",{className:`kt-svg-icon-list-style-${t[e].style} kt-svg-icon-list-item-wrap kt-svg-icon-list-item-${e}`},t[e].icon&&t[e].link&&(0,l.createElement)("a",{href:t[e].link,className:"kt-svg-icon-link",target:"_blank"===t[e].target?t[e].target:void 0,rel:"_blank"===t[e].target?"noopener noreferrer":void 0},(0,l.createElement)(i.IconRender,{className:`kt-svg-icon-list-single kt-svg-icon-list-single-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,style:{color:t[e].color?(0,o.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].background):void 0,padding:t[e].padding&&"default"!==t[e].style?t[e].padding+"px":void 0,borderColor:t[e].border&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].border):void 0,borderWidth:t[e].borderWidth&&"default"!==t[e].style?t[e].borderWidth+"px":void 0,borderRadius:t[e].borderRadius&&"default"!==t[e].style?t[e].borderRadius+"%":void 0}}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:t[e].text,className:"kt-svg-icon-list-text"})),t[e].icon&&!t[e].link&&(0,l.createElement)(u.Fragment,null,(0,l.createElement)(i.IconRender,{className:`kt-svg-icon-list-single kt-svg-icon-list-single-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,style:{color:t[e].color?(0,o.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].background):void 0,padding:t[e].padding&&"default"!==t[e].style?t[e].padding+"px":void 0,borderColor:t[e].border&&"default"!==t[e].style?(0,o.KadenceColorOutput)(t[e].border):void 0,borderWidth:t[e].borderWidth&&"default"!==t[e].style?t[e].borderWidth+"px":void 0,borderRadius:t[e].borderRadius&&"default"!==t[e].style?t[e].borderRadius+"%":void 0,marginTop:t[e].marginTop?t[e].marginTop+"px":void 0,marginRight:t[e].marginRight?t[e].marginRight+"px":void 0,marginBottom:t[e].marginBottom?t[e].marginBottom+"px":void 0,marginLeft:t[e].marginLeft?t[e].marginLeft+"px":void 0}}),(0,l.createElement)(d.RichText.Content,{tagName:"span",value:t[e].text,className:"kt-svg-icon-list-text"})))})(e)))))},migrate:x}],I=(window.wp.richText,(e,t=0)=>e.flatMap((e=>{if(void 0!==e.innerBlocks?.[0]?.name&&"core/list"===e.innerBlocks[0].name&&e.innerBlocks[0].innerBlocks.length>0){const n=(0,C.min)([t+1,5]),l=I(e.innerBlocks[0].innerBlocks,n);return[(0,c.createBlock)("kadence/listitem",{text:e.attributes.content,level:t}),...l]}return(0,c.createBlock)("kadence/listitem",{text:e.attributes.content,level:t})}))),T=(e,t,n=0,l=!0)=>{const o=[...e],i=[];for(;o.length>0;){const e=o[0],a=(0,C.get)(o,["1","attributes","level"]);if(o.shift(),e.attributes.level===n||l)if(a&&a>n){a>n+1&&(o[0].attributes.level=n+1);const l=T(o,t,n+1,!1);i.push((0,c.createBlock)("core/list-item",{content:e.attributes.text},[l])),o.splice(0,l.innerBlocks.length)}else i.push((0,c.createBlock)("core/list-item",{content:e.attributes.text}))}return(0,c.createBlock)("core/list",{style:{color:{text:(0,C.get)(t,["listStyles","0","color"])}}},i)},B={from:[{type:"block",blocks:["core/list"],transform:(e,t)=>{const n=I(t);return(0,c.createBlock)("kadence/iconlist",{listStyles:[{..._.attributes.listStyles.default[0],color:(0,C.get)(e,["style","color","text"],"")}]},n)}}],to:[{type:"block",blocks:["core/list"],transform:(e,t)=>T(t,e)}]};(0,c.registerBlockType)("kadence/iconlist",{..._,title:(0,r._x)("Icon List","block title","kadence-blocks"),description:(0,r._x)("Create engaging lists with icons for bullets.","block description","kadence-blocks"),keywords:[(0,r.__)("icon","kadence-blocks"),(0,r.__)("svg","kadence-blocks"),"KB"],icon:{src:v.iconListBlockIcon},transforms:B,getEditWrapperProps({blockAlignment:e}){if("left"===e||"right"===e||"center"===e)return{"data-align":e}},deprecated:S,edit:e=>{const{clientId:t}=e,{listBlock:n}=(0,m.useSelect)((e=>{const{getBlock:n}=e("core/block-editor");return{listBlock:n(t)}}),[t]);return(0,l.createElement)(E,{listBlock:n,...e})},save:function({attributes:e}){const{items:t,listCount:n,columns:o,blockAlignment:i,iconAlign:a,uniqueID:s,tabletColumns:r,mobileColumns:c}=e,u=d.useBlockProps.save({className:`wp-block-kadence-iconlist kt-svg-icon-list-items kt-svg-icon-list-items${s} kt-svg-icon-list-columns-${o} align${i||"none"}${void 0!==a&&"middle"!==a?" kt-list-icon-align"+a:""}${void 0!==r&&""!==r?" kt-tablet-svg-icon-list-columns-"+r:""}${void 0!==c&&""!==c?" kt-mobile-svg-icon-list-columns-"+c:""}`});return(0,l.createElement)("div",{...u},(0,l.createElement)("ul",{className:"kt-svg-icon-list"},(0,l.createElement)(d.InnerBlocks.Content,null)))},example:{innerBlocks:(0,C.times)(3,(e=>({name:"kadence/listitem",attributes:{text:(0,r.__)("List Item","kadence-blocks")}})))}})},2485:(e,t)=>{var n;!function(){"use strict";var l={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)l.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function l(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,l),i.exports}l.m=t,e=[],l.O=(t,n,o,i)=>{if(!n){var a=1/0;for(d=0;d<e.length;d++){n=e[d][0],o=e[d][1],i=e[d][2];for(var s=!0,r=0;r<n.length;r++)(!1&i||a>=i)&&Object.keys(l.O).every((e=>l.O[e](n[r])))?n.splice(r--,1):(s=!1,i<a&&(a=i));if(s){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[n,o,i]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={3485:0,1510:0};l.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,a=n[0],s=n[1],r=n[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)l.o(s,o)&&(l.m[o]=s[o]);if(r)var d=r(l)}for(t&&t(n);c<a.length;c++)i=a[c],l.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return l.O(d)},n=self.webpackChunkkadence=self.webpackChunkkadence||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=l.O(void 0,[1510],(()=>l(9534)));o=l.O(o),(this.kadence=this.kadence||{})["blocks-iconlist"]=o})();