Файловый менеджер - Редактировать - /home/admin/domains/octawebtools.com/public_html/wp-content/plugins/kadence-blocks/dist/blocks-icon.js
�азад
(()=>{var e,t={790:e=>{"use strict";e.exports=window.ReactJSXRuntime},1454:(e,t,i)=>{"use strict";const o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Icon","name":"kadence/icon","category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"icons":{"type":"array","default":[{"icon":"fe_aperture","link":"","target":"_self","size":50,"width":2,"title":"","color":"palette4","background":"transparent","border":"palette4","borderRadius":0,"borderWidth":2,"padding":[20,20,20,20],"paddingUnit":"px","style":"default","margin":["","","",""],"marginUnit":"px","hColor":"","hBackground":"","hBorder":"","linkTitle":"","tabletSize":"","mobileSize":"","tabletMargin":["","","",""],"mobileMargin":["","","",""],"tabletPadding":["","","",""],"mobilePadding":["","","",""]}]},"iconCount":{"type":"number","default":1},"uniqueID":{"type":"string","default":""},"blockAlignment":{"type":"string","default":""},"textAlignment":{"type":"string","default":"center"},"tabletTextAlignment":{"type":"string"},"mobileTextAlignment":{"type":"string"},"wrapIcons":{"type":"boolean","default":false},"verticalAlignment":{"type":"string"},"gap":{"type":"array","default":["","",""]},"gapUnit":{"type":"string","default":"px"},"inQueryBlock":{"type":"boolean","default":false}},"supports":{"ktdynamic":true,"kbMetadata":true},"usesContext":["postId","queryId","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"]}');i(3156);var n=i(9091),r=i(6942),a=i.n(r),l=i(9621),d=i(4510),s=i(7143),c=i(4997);const g=window.lodash;function u(e){const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n}=e,r=[];t?.length&&(0,g.times)(i,e=>{const i=t[e];if(void 0===i?.padding?.[0]){const e=parseInt(i.padding,10);i.padding=[e,e,e,e]}void 0===i?.margin?.[0]&&(i.margin=["","","",""]),void 0!==i?.marginTop&&i.marginTop&&(i.margin[0]=i.marginTop?parseInt(i.marginTop,10):""),void 0!==i?.marginRight&&i.marginRight&&(i.margin[1]=i.marginRight?parseInt(i.marginRight,10):""),void 0!==i?.marginBottom&&i.marginBottom&&(i.margin[2]=i.marginBottom?parseInt(i.marginBottom,10):""),void 0!==i?.marginLeft&&i.marginLeft&&(i.margin[3]=i.marginLeft?parseInt(i.marginLeft,10):"");const o={...i};r.push((0,c.createBlock)("kadence/single-icon",o))});let a=o,l=n;return"center"===o&&(a="none",l="center"),[{...e,blockAlignment:a,textAlignment:l,icons:[],iconCount:1},r]}var p=i(7723),b=i(4715),v=i(6087);const k=window.wp.primitives;var m=i(790);const f=(0,m.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,m.jsx)(k.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"})});var h=i(6427);const y=(0,s.withDispatch)((e,t,i)=>({insertIcon(o){const{clientId:n}=t,{insertBlock:r}=e(b.store),{getBlock:a}=i.select(b.store),l=a(n);console.log(n),console.log(parseInt(l.innerBlocks.length)),r(o,void 0!==l?.innerBlocks?.length?parseInt(l.innerBlocks.length):0,n)},insertIcons(i){const{clientId:o}=t,{replaceInnerBlocks:n}=e(b.store);n(o,i)}}))(function(e){const{attributes:t,className:i,setAttributes:n,iconsBlock:r,insertIcon:k,insertIcons:y,clientId:x,context:C}=e,{inQueryBlock:_,icons:w,blockAlignment:j,textAlignment:R,tabletTextAlignment:T,mobileTextAlignment:B,wrapIcons:A,uniqueID:I,verticalAlignment:S,gap:W,gapUnit:z}=t,[$,N]=(0,v.useState)("general"),{removeBlock:O}=(0,s.useDispatch)("core/block-editor"),{previewDevice:P}=(0,s.useSelect)(e=>({previewDevice:e("kadenceblocks/data").getPreviewDeviceType()}),[x]);(0,d.uniqueIdHelper)(e),(0,v.useEffect)(()=>{(0,d.setBlockDefaults)("kadence/icon",t),n({inQueryBlock:(0,d.getInQueryBlock)(C,_)})},[]),(0,v.useEffect)(()=>{if(I&&!r.innerBlocks.length)if(w?.length&&void 0!==o?.attributes?.icons?.default&&!(0,g.isEqual)(o.attributes.icons.default,w)){const e=u(t);n(e[0]),y(e[1])}else O(x,!0)},[r.innerBlocks.length]);const D=(0,b.useBlockProps)({className:i,"data-align":"left"===j||"right"===j||"center"===j?j:void 0}),L=(0,d.getPreviewSize)(P,void 0!==W?.[0]?W[0]:"",void 0!==W?.[1]?W[1]:"",void 0!==W?.[2]?W[2]:""),q=S&&"middle"===S?"center":S,K=(0,d.getPreviewSize)(P,R||void 0,void 0!==T&&T?T:void 0,void 0!==B&&B?B:void 0),M=a()({"kt-svg-icons":!0,[`kt-svg-icons-${I}`]:I,[`kb-icon-halign-${K}`]:K,[`kb-icon-valign-${q}`]:q,"kb-icon-wrap":A}),U=(0,b.useInnerBlocksProps)({className:M,style:{gap:""!==L?(0,d.getGapSizeOptionOutput)(L,z||"px"):void 0}},{allowedBlocks:["kadence/single-icon"],orientation:"horizontal",templateLock:!1,template:[["kadence/single-icon"]],renderAppender:!1,templateInsertUpdatesSelection:!0});return(0,m.jsxs)("div",{...D,children:[(0,m.jsxs)(b.BlockControls,{children:[(0,m.jsx)(b.BlockAlignmentToolbar,{value:j,controls:["left","right"],onChange:e=>n({blockAlignment:e})}),(0,m.jsxs)(h.ToolbarGroup,{children:[(0,m.jsx)(b.JustifyContentControl,{value:K,onChange:e=>{n("Mobile"===P?{mobileTextAlignment:e||""}:"Tablet"===P?{tabletTextAlignment:e||""}:{textAlignment:e||"center"})}}),(0,m.jsx)(b.BlockVerticalAlignmentControl,{value:q||"center",onChange:e=>n({verticalAlignment:e})})]}),(0,m.jsx)(h.ToolbarGroup,{children:(0,m.jsx)(h.ToolbarButton,{className:"kb-icons-add-icon",icon:f,onClick:()=>{const e=r.innerBlocks[r.innerBlocks.length-1].attributes,t=JSON.parse(JSON.stringify(e));t.uniqueID="";const i=(0,c.createBlock)("kadence/single-icon",t);k(i)},label:(0,p.__)("Add Another Icon","kadence-blocks"),showTooltip:!0})})]}),(0,m.jsxs)(l.KadenceInspectorControls,{blockSlug:"kadence/icon",children:[(0,m.jsx)(l.InspectorControlTabs,{panelName:"icon",allowedTabs:["general","advanced"],setActiveTab:e=>N(e),activeTab:$}),"general"===$&&(0,m.jsxs)(l.KadencePanelBody,{panelName:"kb-icon-alignment-settings",children:[(0,m.jsx)(l.ResponsiveAlignControls,{label:(0,p.__)("Icon Alignment","kadence-blocks"),value:R||"center",mobileValue:B||"",tabletValue:T||"",onChange:e=>n({textAlignment:e||"center"}),onChangeTablet:e=>n({tabletTextAlignment:e||""}),onChangeMobile:e=>n({mobileTextAlignment:e||""}),type:"justify"}),(0,m.jsx)(h.ToggleControl,{label:(0,p.__)("Wrap Icons?","kadence-blocks"),checked:A,onChange:e=>{n({wrapIcons:e})}}),void 0!==r?.innerBlocks?.length&&r.innerBlocks.length>1&&(0,m.jsx)(l.ResponsiveGapSizeControl,{label:(0,p.__)("Icons Gap","kadence-blocks"),value:void 0!==W?.[0]?W[0]:"",onChange:e=>n({gap:[e,void 0!==W[1]?W[1]:"",void 0!==W[2]?W[2]:""]}),tabletValue:void 0!==W?.[1]?W[1]:"",onChangeTablet:e=>n({gap:[void 0!==W[0]?W[0]:"",e,void 0!==W[2]?W[2]:""]}),mobileValue:void 0!==W?.[2]?W[2]:"",onChangeMobile:e=>n({gap:[void 0!==W[0]?W[0]:"",void 0!==W[1]?W[1]:"",e]}),min:0,max:"px"===z?200:12,step:"px"===z?1:.1,unit:z||"px",onUnit:e=>{n({gapUnit:e})},units:["px","em","rem"]})]})]}),(0,m.jsx)("div",{...U})]})}),x=[{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"palette4",background:"transparent",border:"palette4",borderRadius:0,borderWidth:2,padding:[20,20,20,20],paddingUnit:"px",style:"default",margin:["","","",""],marginUnit:"px",hColor:"",hBackground:"",hBorder:"",linkTitle:"",tabletSize:"",mobileSize:"",tabletMargin:["","","",""],mobileMargin:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""]}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:""},textAlignment:{type:"string",default:"center"},tabletTextAlignment:{type:"string"},mobileTextAlignment:{type:"string"},verticalAlignment:{type:"string"},inQueryBlock:{type:"boolean",default:!1}},migrate:u,supports:{ktdynamic:!0},save({attributes:e}){const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n,uniqueID:r,verticalAlignment:d}=e,s=a()({"kt-svg-icons":!0,[`kt-svg-icons${r}`]:r,[`align${o||"none"}`]:!0,[`kb-icon-valign-${d}`]:d}),c=b.useBlockProps.save({className:s});return(0,m.jsx)("div",{...c,children:(0,g.times)(i,e=>(e=>{if(void 0!==t?.[e])return(0,m.jsxs)("div",{className:`kt-svg-style-${t[e].style} kt-svg-icon-wrap kt-svg-item-${e}`,children:[t[e].icon&&t[e].link&&(0,m.jsx)("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,"aria-label":void 0!==t[e].linkTitle&&""!==t[e].linkTitle?t[e].linkTitle:void 0,children:(0,m.jsx)(l.IconSpanTag,{name:t[e].icon,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:""})}),t[e].icon&&!t[e].link&&(0,m.jsx)(l.IconSpanTag,{name:t[e].icon,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:""})]})})(e))})}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default",marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,hColor:"",hBackground:"",hBorder:"",linkTitle:""}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:""},textAlignment:{type:"string",default:"center"},tabletTextAlignment:{type:"string"},mobileTextAlignment:{type:"string"},verticalAlignment:{type:"string"},inQueryBlock:{type:"boolean",default:!1}},migrate:u,supports:{ktdynamic:!0},save:({attributes:e})=>{const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n,uniqueID:r,verticalAlignment:a}=e;return(0,m.jsx)("div",{className:`kt-svg-icons kt-svg-icons${r} align${o||"none"}${a?" kb-icon-valign-"+a:""}`,style:{textAlign:n||"center"},children:(0,g.times)(i,e=>(e=>{if(void 0!==t?.[e])return(0,m.jsxs)("div",{className:`kt-svg-style-${t[e].style} kt-svg-icon-wrap kt-svg-item-${e}`,children:[t[e].icon&&t[e].link&&(0,m.jsx)("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,"aria-label":void 0!==t[e].linkTitle&&""!==t[e].linkTitle?t[e].linkTitle:void 0,style:{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},children:(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",ariaHidden:t[e].title?void 0:"true",style:{color:t[e].color?(0,d.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,d.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,d.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}})}),t[e].icon&&!t[e].link&&(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",ariaHidden:t[e].title?void 0:"true",style:{color:t[e].color?(0,d.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,d.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,d.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}})]})})(e))})}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default",marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,hColor:"",hBackground:"",hBorder:""}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"},tabletTextAlignment:{type:"string"},mobileTextAlignment:{type:"string"}},migrate:u,supports:{ktdynamic:!0},save:({attributes:e})=>{const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n,uniqueID:r,verticalAlignment:a}=e;return(0,m.jsx)("div",{className:`kt-svg-icons kt-svg-icons${r} align${o||"center"}${a||""}`,style:{textAlign:n||"center"},children:(0,g.times)(i,e=>(e=>{if(void 0!==t?.[e])return(0,m.jsxs)("div",{className:`kt-svg-style-${t[e].style} kt-svg-icon-wrap kt-svg-item-${e}`,children:[t[e].icon&&t[e].link&&(0,m.jsx)("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,"aria-label":void 0!==t[e].linkTitle&&""!==t[e].linkTitle?t[e].linkTitle:void 0,style:{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},children:(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?(0,d.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,d.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,d.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}})}),t[e].icon&&!t[e].link&&(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?(0,d.KadenceColorOutput)(t[e].color):void 0,backgroundColor:t[e].background&&"default"!==t[e].style?(0,d.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,d.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}})]})})(e))})}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},supports:{ktdynamic:!0},migrate:u,save:({attributes:e})=>{const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n,uniqueID:r}=e;return(0,m.jsx)("div",{className:`kt-svg-icons kt-svg-icons${r} align${o||"center"}`,style:{textAlign:n||"center"},children:(0,g.times)(i,e=>(e=>{if(void 0!==t?.[e])return(0,m.jsxs)("div",{className:`kt-svg-style-${t[e].style} kt-svg-icon-wrap kt-svg-item-${e}`,children:[t[e].icon&&t[e].link&&(0,m.jsx)("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,children:(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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}})}),t[e].icon&&!t[e].link&&(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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}})]})})(e))})}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},supports:{ktdynamic:!0},migrate:u,save:({attributes:e})=>{const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n,uniqueID:r}=e;return(0,m.jsx)("div",{className:`kt-svg-icons kt-svg-icons${r} align${o||"center"}`,style:{textAlign:n||"center"},children:(0,g.times)(i,e=>(e=>{if(void 0!==t?.[e])return(0,m.jsxs)("div",{className:`kt-svg-style-${t[e].style} kt-svg-icon-wrap kt-svg-item-${e}`,children:[t[e].icon&&t[e].link&&(0,m.jsx)("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,children:(0,m.jsx)("div",{style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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},className:`kt-svg-icon kt-svg-icon-${t[e].icon}`})}),t[e].icon&&!t[e].link&&(0,m.jsx)("div",{style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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},className:`kt-svg-icon kt-svg-icon-${t[e].icon}`})]})})(e))})}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},supports:{ktdynamic:!0},migrate:u,save:({attributes:e})=>{const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n,uniqueID:r}=e;return(0,m.jsx)("div",{className:`kt-svg-icons kt-svg-icons${r} align${o||"center"}`,style:{textAlign:n||"center"},children:(0,g.times)(i,e=>(e=>{if(void 0!==t?.[e])return(0,m.jsxs)("div",{className:`kt-svg-style-${t[e].style} kt-svg-icon-wrap kt-svg-item-${e}`,children:[t[e].icon&&t[e].link&&(0,m.jsx)("a",{href:t[e].link,className:"kt-svg-icon-link",target:t[e].target,children:(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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}})}),t[e].icon&&!t[e].link&&(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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}})]})})(e))})}},{attributes:{icons:{type:"array",default:[{icon:"fe_aperture",link:"",target:"_self",size:50,width:2,title:"",color:"#444444",background:"transparent",border:"#444444",borderRadius:0,borderWidth:2,padding:20,style:"default"}]},iconCount:{type:"number",default:1},uniqueID:{type:"string",default:""},blockAlignment:{type:"string",default:"center"},textAlignment:{type:"string",default:"center"}},supports:{ktdynamic:!0},migrate:u,save:({attributes:e})=>{const{icons:t,iconCount:i,blockAlignment:o,textAlignment:n,uniqueID:r}=e;return(0,m.jsx)("div",{className:`kt-svg-icons kt-svg-icons${r} align${o||"center"}`,style:{textAlign:n||"center"},children:(0,g.times)(i,e=>(e=>{if(void 0!==t?.[e])return(0,m.jsxs)("div",{className:`kt-svg-style-${t[e].style} kt-svg-icon-wrap kt-svg-item-${e}`,children:[t[e].icon&&t[e].link&&(0,m.jsx)("a",{href:t[e].link,className:"kt-svg-icon-link",target:t[e].target,rel:"noopener noreferrer",children:(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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}})}),t[e].icon&&!t[e].link&&(0,m.jsx)(l.IconRender,{className:`kt-svg-icon kt-svg-icon-${t[e].icon}`,name:t[e].icon,size:t[e].size,strokeWidth:"fe"===t[e].icon.substring(0,2)?t[e].width:void 0,title:t[e].title?t[e].title:"",style:{color:t[e].color?t[e].color:void 0,backgroundColor:t[e].background&&"default"!==t[e].style?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?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}})]})})(e))})}}];(0,c.registerBlockType)("kadence/icon",{...o,title:(0,p._x)("Icon","block title","kadence-blocks"),description:(0,p.__)("Create engaging lists with icons for bullets.","kadence-blocks"),keywords:[(0,p.__)("icon","kadence-blocks"),(0,p.__)("svg","kadence-blocks"),"KB"],icon:{src:n.iconIcon},edit:e=>{const{clientId:t}=e,{iconsBlock:i}=(0,s.useSelect)(e=>{const{getBlock:i}=e("core/block-editor");return{iconsBlock:i(t)}},[t]);return(0,m.jsx)(y,{iconsBlock:i,...e})},save:function({attributes:e,className:t}){const{blockAlignment:i,uniqueID:o,verticalAlignment:n}=e,r=a()({"kt-svg-icons":!0,[`kt-svg-icons${o}`]:o,[`align${i||"none"}`]:!0,[`kb-icon-valign-${n}`]:n}),l=b.useBlockProps.save({className:r});return(0,m.jsx)("div",{...l,children:(0,m.jsx)(b.InnerBlocks.Content,{})})},deprecated:x,example:{}})},3156:(e,t,i)=>{"use strict";const o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Single Icon","name":"kadence/single-icon","parent":["kadence/icon"],"category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string","default":""},"icon":{"type":"string","default":"fe_aperture"},"link":{"type":"string","default":""},"target":{"type":"string","default":"_self"},"size":{"type":"number","default":50},"width":{"type":"number","default":2},"title":{"type":"string","default":""},"color":{"type":"string","default":""},"background":{"type":"string","default":"transparent"},"border":{"type":"string","default":""},"borderRadius":{"type":"number","default":0},"borderWidth":{"type":"number","default":2},"padding":{"type":"array","default":["xs","xs","xs","xs"]},"paddingUnit":{"type":"string","default":"px"},"style":{"type":"string","default":"default"},"margin":{"type":"array","default":["","","",""]},"marginUnit":{"type":"string","default":"px"},"hColor":{"type":"string","default":""},"hBackground":{"type":"string","default":""},"hBorder":{"type":"string","default":""},"linkTitle":{"type":"string","default":""},"tabletSize":{"type":"number","default":""},"mobileSize":{"type":"number","default":""},"tabletMargin":{"type":"array","default":["","","",""]},"mobileMargin":{"type":"array","default":["","","",""]},"tabletPadding":{"type":"array","default":["","","",""]},"mobilePadding":{"type":"array","default":["","","",""]},"tooltip":{"type":"string","source":"html","selector":".kb-tooltip-hidden-content","__experimentalRole":"content"},"tooltipPlacement":{"type":"string","default":""},"tooltipDash":{"type":"boolean","default":false},"inQueryBlock":{"type":"boolean","default":false}},"supports":{"ktdynamic":true,"html":false,"reusable":false,"kbMetadata":true},"usesContext":["postId","queryId","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"]}');var n=i(9091),r=i(9621),a=i(4510),l=i(7143),d=i(6087),s=i(790);function c({attributes:e,previewDevice:t}){(0,d.useRef)();const{inQueryBlock:i,icon:o,link:n,target:l,size:c,width:g,title:u,text:p,hColor:b,hBackground:v,tabletSize:k,hBorder:m,color:f,background:h,border:y,borderRadius:x,padding:C,borderWidth:_,style:w,linkTitle:j,level:R,blockAlignment:T,textAlignment:B,tabletTextAlignment:A,mobileTextAlignment:I,tabletPadding:S,mobilePadding:W,paddingUnit:z,tabletMargin:$,mobileMargin:N,margin:O,marginUnit:P,mobileSize:D,uniqueID:L,verticalAlignment:q,tooltip:K,tooltipPlacement:M,tooltipDash:U}=e,V=(0,a.getPreviewSize)(t,void 0!==c?c:void 0,void 0!==k||0===k?k:void 0,void 0!==D||0===D?D:void 0),E=(0,a.getPreviewSize)(t,O&&void 0!==O[0]?O[0]:void 0,$&&void 0!==$[0]?$[0]:void 0,N&&void 0!==N[0]?N[0]:void 0),H=(0,a.getPreviewSize)(t,O&&void 0!==O[1]?O[1]:void 0,$&&void 0!==$[1]?$[1]:void 0,N&&void 0!==N[1]?N[1]:void 0),Q=(0,a.getPreviewSize)(t,O&&void 0!==O[2]?O[2]:void 0,$&&void 0!==$[2]?$[2]:void 0,N&&void 0!==N[2]?N[2]:void 0),G=(0,a.getPreviewSize)(t,O&&void 0!==O[3]?O[3]:void 0,$&&void 0!==$[3]?$[3]:void 0,N&&void 0!==N[3]?N[3]:void 0),J=(0,a.getPreviewSize)(t,C&&void 0!==C[0]?C[0]:void 0,S&&void 0!==S[0]?S[0]:void 0,W&&void 0!==W[0]?W[0]:void 0),F=(0,a.getPreviewSize)(t,C&&void 0!==C[1]?C[1]:void 0,S&&void 0!==S[1]?S[1]:void 0,W&&void 0!==W[1]?W[1]:void 0),X=(0,a.getPreviewSize)(t,C&&void 0!==C[2]?C[2]:void 0,S&&void 0!==S[2]?S[2]:void 0,W&&void 0!==W[2]?W[2]:void 0),Y=(0,a.getPreviewSize)(t,C&&void 0!==C[3]?C[3]:void 0,S&&void 0!==S[3]?S[3]:void 0,W&&void 0!==W[3]?W[3]:void 0),Z=void 0!==z&&z?z:"px",ee=void 0!==P&&P?P:"px";return(0,s.jsx)(r.Tooltip,{text:K,placement:M||"top",children:(0,s.jsx)("div",{className:`kt-svg-style-${w} kt-svg-icon-wrap kt-svg-item-${L}${U&&K?" kb-icon-tooltip-border":""}`,children:o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.IconRender,{className:`kt-svg-icon kt-svg-icon-${o}`,name:o,size:V,strokeWidth:"fe"===o.substring(0,2)?g:void 0,title:u||"",style:{color:f?(0,a.KadenceColorOutput)(f):void 0,backgroundColor:h&&"default"!==w?(0,a.KadenceColorOutput)(h):void 0,paddingTop:J&&"default"!==w?(0,a.getSpacingOptionOutput)(J,Z):void 0,paddingRight:F&&"default"!==w?(0,a.getSpacingOptionOutput)(F,Z):void 0,paddingBottom:X&&"default"!==w?(0,a.getSpacingOptionOutput)(X,Z):void 0,paddingLeft:Y&&"default"!==w?(0,a.getSpacingOptionOutput)(Y,Z):void 0,borderColor:y&&"default"!==w?(0,a.KadenceColorOutput)(y):void 0,borderWidth:_&&"default"!==w?_+"px":void 0,borderRadius:x&&"default"!==w?x+"%":void 0,marginTop:E?(0,a.getSpacingOptionOutput)(E,ee):void 0,marginRight:H?(0,a.getSpacingOptionOutput)(H,ee):void 0,marginBottom:Q?(0,a.getSpacingOptionOutput)(Q,ee):void 0,marginLeft:G?(0,a.getSpacingOptionOutput)(G,ee):void 0}})})})})}var g=i(7723);function u({attributes:e,setAttributes:t}){const{margin:i,tabletMargin:o,mobileMargin:n,marginUnit:a,padding:l,tabletPadding:d,mobilePadding:c,paddingUnit:u,style:p}=e;return(0,s.jsxs)(r.KadencePanelBody,{title:(0,g.__)("Icon","kadence-blocks")+" "+(0,g.__)("Spacing Settings","kadence-blocks"),initialOpen:!0,panelName:"iconSpacing",blockSlug:"kadence/icon",children:["default"!==p&&(0,s.jsx)(r.ResponsiveMeasureRangeControl,{label:(0,g.__)("Icon Padding","kadence-blocks"),value:l||["","","",""],onChange:e=>t({padding:e}),tabletValue:d||["","","",""],onChangeTablet:e=>t({tabletPadding:e}),mobileValue:c||["","","",""],onChangeMobile:e=>t({mobilePadding:e}),min:0,max:"em"===(u||"px")||"rem"===(u||"px")?25:999,step:"em"===(u||"px")||"rem"===(u||"px")?.1:1,unit:u||"px",units:["px","em","rem"],onUnit:e=>t({paddingUnit:e})}),(0,s.jsx)(r.ResponsiveMeasureRangeControl,{label:(0,g.__)("Icon Margin","kadence-blocks"),value:i||["","","",""],onChange:e=>t({margin:e}),tabletValue:o||["","","",""],onChangeTablet:e=>t({tabletMargin:e}),mobileValue:n||["","","",""],onChangeMobile:e=>t({mobileMargin:e}),min:"em"===(a||"px")||"rem"===(a||"px")?-25:-999,max:"em"===(a||"px")||"rem"===(a||"px")?25:999,step:"em"===(a||"px")||"rem"===(a||"px")?.1:1,unit:a||"px",units:["px","em","rem"],onUnit:e=>t({marginUnit:e}),allowAuto:!0})]})}var p=i(4715),b=i(6427);var v=i(6942),k=i.n(v);const m=[{attributes:o.attributes,supports:o.supports,apiVersion:2,save:({attributes:e})=>{const{icon:t,link:i,target:o,width:n,title:a,style:l,linkTitle:d,uniqueID:c}=e;return(0,s.jsxs)("div",{className:`kt-svg-style-${l} kt-svg-icon-wrap kt-svg-item-${c}`,children:[t&&i&&(0,s.jsx)("a",{href:i,className:"kt-svg-icon-link",target:"_blank"===o?o:void 0,rel:"_blank"===o?"noopener noreferrer":void 0,"aria-label":void 0!==d&&""!==d?d:void 0,children:(0,s.jsx)(r.IconSpanTag,{name:t,strokeWidth:"fe"===t.substring(0,2)?n:void 0,title:a||""})}),t&&!i&&(0,s.jsx)(r.IconSpanTag,{name:t,strokeWidth:"fe"===t.substring(0,2)?n:void 0,title:a||""})]})}}];(0,i(4997).registerBlockType)("kadence/single-icon",{...o,title:(0,g.__)("Single Icon","kadence-blocks"),description:(0,g.__)("Single icon within Icon block","kadence-blocks"),keywords:[(0,g.__)("icon","kadence-blocks"),(0,g.__)("svg","kadence-blocks"),"KB"],icon:{src:n.iconIcon},getEditWrapperProps({blockAlignment:e}){if("left"===e||"right"===e||"center"===e)return{"data-align":e}},edit:function(e){const{attributes:t,className:i,setAttributes:v,clientId:k,isSelected:m,name:f,context:h}=e,{inQueryBlock:y,icon:x,link:C,target:_,size:w,width:j,title:R,hColor:T,hBackground:B,tabletSize:A,hBorder:I,color:S,background:W,border:z,borderRadius:$,borderWidth:N,style:O,linkTitle:P,mobileSize:D,uniqueID:L,tooltip:q,tooltipPlacement:K,tooltipDash:M}=t,U=["icon","link","target"],[V,E]=(0,d.useState)("general"),{previewDevice:H}=(0,l.useSelect)(e=>({previewDevice:e("kadenceblocks/data").getPreviewDeviceType()}),[k]),Q=(0,a.getPreviewSize)(H,void 0!==w?w:void 0,void 0!==A?A:void 0,void 0!==D?D:void 0);(0,a.uniqueIdHelper)(e),(0,d.useEffect)(()=>{(0,a.setBlockDefaults)("kadence/single-icon",t),v({inQueryBlock:(0,a.getInQueryBlock)(h,y)})},[]);const G=(0,p.useBlockProps)({className:i}),J=(0,s.jsx)("style",{children:`.wp-block-kadence-single-icon .kt-svg-item-${L}:hover .kt-svg-icon {\n\t\t\t\t\t${void 0!==T&&T?"color:"+(0,a.KadenceColorOutput)(T)+"!important;":""}\n }\n .wp-block-kadence-single-icon .kt-svg-style-stacked.kt-svg-item-${L}:hover .kt-svg-icon {\n\t\t\t\t\t${void 0!==B&&B?"background:"+(0,a.KadenceColorOutput)(B)+"!important;":""}\n\t\t\t\t\t${void 0!==I&&I?"border-color:"+(0,a.KadenceColorOutput)(I)+"!important;":""}\n }`});return(0,s.jsxs)("div",{...G,children:[J,(0,s.jsxs)(p.BlockControls,{children:[(0,s.jsx)(b.ToolbarGroup,{group:"tooltip",children:(0,s.jsx)(b.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,s.jsx)(b.Button,{className:"components-dropdown-menu__toggle kb-inline-tooltip-toolbar-icon",label:(0,g.__)("Tooltip Settings","kadence-blocks"),icon:n.tooltip,onClick:t,"aria-expanded":e}),renderContent:()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"kb-inline-tooltip-control",children:[(0,s.jsx)(b.TextareaControl,{label:(0,g.__)("Tooltip Content","kadence-blocks"),value:q,onChange:e=>v({tooltip:e})}),(0,s.jsx)(b.SelectControl,{label:(0,g.__)("Placement","kadence-blocks"),value:K||"top",options:[{label:(0,g.__)("Top","kadence-blocks"),value:"top"},{label:(0,g.__)("Top Start","kadence-blocks"),value:"top-start"},{label:(0,g.__)("Top End","kadence-blocks"),value:"top-end"},{label:(0,g.__)("Right","kadence-blocks"),value:"right"},{label:(0,g.__)("Right Start","kadence-blocks"),value:"right-start"},{label:(0,g.__)("Right End","kadence-blocks"),value:"right-end"},{label:(0,g.__)("Bottom","kadence-blocks"),value:"bottom"},{label:(0,g.__)("Bottom Start","kadence-blocks"),value:"bottom-start"},{label:(0,g.__)("Bottom End","kadence-blocks"),value:"bottom-end"},{label:(0,g.__)("Left","kadence-blocks"),value:"left"},{label:(0,g.__)("Left Start","kadence-blocks"),value:"left-start"},{label:(0,g.__)("Left End","kadence-blocks"),value:"left-end"},{label:(0,g.__)("Auto","kadence-blocks"),value:"auto"},{label:(0,g.__)("Auto Start","kadence-blocks"),value:"auto-start"},{label:(0,g.__)("Auto End","kadence-blocks"),value:"auto-end"}],onChange:e=>{v({tooltipPlacement:e})}}),(0,s.jsx)(b.ToggleControl,{label:(0,g.__)("Show indicator underline","kadence-blocks"),checked:M,onChange:e=>{v({tooltipDash:e})}})]})})})}),(0,s.jsx)(r.CopyPasteAttributes,{attributes:t,excludedAttrs:U,defaultAttributes:o.attributes,blockSlug:o.name,onPaste:e=>v(e)})]}),(0,s.jsxs)(r.KadenceInspectorControls,{blockSlug:"kadence/icon",children:[(0,s.jsx)(r.InspectorControlTabs,{panelName:"single-icon",allowedTabs:["general","advanced"],setActiveTab:e=>E(e),activeTab:V}),"general"===V&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(r.KadencePanelBody,{title:(0,g.__)("Icon Settings","kadence-blocks"),initialOpen:!0,panelName:"kb-icon-settings",children:[(0,s.jsx)(r.KadenceIconPicker,{value:x,onChange:e=>{v({icon:e})}}),(0,s.jsx)(r.ResponsiveRangeControls,{label:(0,g.__)("Icon Size","kadence-blocks"),value:Q,onChange:e=>{v({size:e})},tabletValue:void 0!==A?A:"",onChangeTablet:e=>{v({tabletSize:e})},mobileValue:void 0!==D?D:"",onChangeMobile:e=>{v({mobileSize:e})},min:0,max:300,step:1,unit:"px"}),x&&"fe"===x.substring(0,2)&&(0,s.jsx)(r.RangeControl,{label:(0,g.__)("Line Width","kadence-blocks"),value:j,onChange:e=>{v({width:e})},step:.5,min:.5,max:4}),(0,s.jsx)(r.KadenceRadioButtons,{label:(0,g.__)("Icon Style","kadence-blocks"),value:O,options:[{value:"default",label:(0,g.__)("Default","kadence-blocks")},{value:"stacked",label:(0,g.__)("Stacked","kadence-blocks")}],onChange:e=>v({style:e})}),(0,s.jsx)(r.PopColorControl,{label:(0,g.__)("Icon Color","kadence-blocks"),value:S||"",default:"",onChange:e=>{v({color:e})},swatchLabel2:(0,g.__)("Hover Color","kadence-blocks"),value2:T||"",default2:"",onChange2:e=>{v({hColor:e})}}),"default"!==O&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.PopColorControl,{label:(0,g.__)("Background Color","kadence-blocks"),value:W||"",default:"",onChange:e=>{v({background:e})},swatchLabel2:(0,g.__)("Hover Background","kadence-blocks"),value2:B||"",default2:"",onChange2:e=>{v({hBackground:e})}}),(0,s.jsx)(r.PopColorControl,{label:(0,g.__)("Border Color","kadence-blocks"),value:z||"",default:"",onChange:e=>{v({border:e})},swatchLabel2:(0,g.__)("Hover Border","kadence-blocks"),value2:I||"",default2:"",onChange2:e=>{v({hBorder:e})}}),(0,s.jsx)(r.RangeControl,{label:(0,g.__)("Border Size (px)","kadence-blocks"),value:N,onChange:e=>{v({borderWidth:e})},min:0,max:20}),(0,s.jsx)(r.RangeControl,{label:(0,g.__)("Border Radius (%)","kadence-blocks"),value:$,onChange:e=>{v({borderRadius:e})},min:0,max:50})]}),(0,s.jsx)(r.URLInputControl,{label:(0,g.__)("Link","kadence-blocks"),url:C,onChangeUrl:e=>{v({link:e})},additionalControls:!0,opensInNewTab:!(!_||"_blank"!=_),onChangeTarget:e=>{v(e?{target:"_blank"}:{target:"_self"})},linkTitle:P,onChangeTitle:e=>{v({linkTitle:e})},dynamicAttribute:"link",allowClear:!0,isSelected:m,attributes:t,setAttributes:v,name:f,clientId:k,context:h}),(0,s.jsx)(b.TextControl,{label:(0,g.__)("Title for screen readers","kadence-blocks"),help:(0,g.__)("If no title added screen readers will ignore, good if the icon is purely decorative.","kadence-blocks"),value:R,onChange:e=>{v({title:e})}})]})}),"advanced"===V&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{attributes:t,setAttributes:v}),(0,s.jsx)(r.KadenceBlockDefaults,{attributes:t,defaultAttributes:o.attributes,blockSlug:o.name,excludedAttrs:U})]})]}),(0,s.jsx)(c,{attributes:t,previewDevice:H})]})},save:function({attributes:e,className:t}){const{icon:i,link:o,target:n,width:a,title:l,style:d,linkTitle:c,uniqueID:g,tooltip:u,tooltipPlacement:b,tooltipDash:v}=e,m=k()({[`kt-svg-style-${d}`]:d,"kt-svg-icon-wrap":!0,[`kt-svg-item-${g}`]:g}),f=p.useBlockProps.save({className:m}),h=u&&g?`kt-svg-tooltip-${g}`:void 0;return(0,s.jsxs)("div",{...f,children:[i&&o&&(0,s.jsx)("a",{href:o,className:"kt-svg-icon-link"+(v&&h?" kb-icon-tooltip-border":""),"data-tooltip-id":h||void 0,"data-tooltip-placement":h&&b?b:void 0,target:"_blank"===n?n:void 0,rel:"_blank"===n?"noopener noreferrer":void 0,"aria-label":void 0!==c&&""!==c?c:void 0,children:(0,s.jsx)(r.IconSpanTag,{name:i,strokeWidth:"fe"===i.substring(0,2)?a:void 0,title:l||""})}),i&&!o&&(0,s.jsx)(r.IconSpanTag,{extraClass:v&&h?"kb-icon-tooltip-border":void 0,name:i,strokeWidth:"fe"===i.substring(0,2)?a:void 0,title:l||"",tooltipID:h||void 0,tooltipPlacement:b||void 0}),h&&(0,s.jsx)("span",{className:"kb-tooltip-hidden-content",style:{display:"none"},id:h,dangerouslySetInnerHTML:{__html:u}})]})},deprecated:m,example:{}})},4510:e=>{"use strict";e.exports=window.kadence.helpers},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4997:e=>{"use strict";e.exports=window.wp.blocks},6087:e=>{"use strict";e.exports=window.wp.element},6427:e=>{"use strict";e.exports=window.wp.components},6942:(e,t)=>{var i;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=a(e,r(i)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)o.call(e,i)&&e[i]&&(t=a(t,i));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(i=function(){return n}.apply(t,[]))||(e.exports=i)}()},7143:e=>{"use strict";e.exports=window.wp.data},7723:e=>{"use strict";e.exports=window.wp.i18n},9091:e=>{"use strict";e.exports=window.kadence.icons},9621:e=>{"use strict";e.exports=window.kadence.components}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,i,n,r)=>{if(!i){var a=1/0;for(c=0;c<e.length;c++){for(var[i,n,r]=e[c],l=!0,d=0;d<i.length;d++)(!1&r||a>=r)&&Object.keys(o.O).every(e=>o.O[e](i[d]))?i.splice(d--,1):(l=!1,r<a&&(a=r));if(l){e.splice(c--,1);var s=n();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]=[i,n,r]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={2485:0,8664:0,82:0};o.O.j=t=>0===e[t];var t=(t,i)=>{var n,r,[a,l,d]=i,s=0;if(a.some(t=>0!==e[t])){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(d)var c=d(o)}for(t&&t(i);s<a.length;s++)r=a[s],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(c)},i=globalThis.webpackChunkkadence=globalThis.webpackChunkkadence||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n=o.O(void 0,[82],()=>o(1454));n=o.O(n),(this.kadence=this.kadence||{})["blocks-icon"]=n})();
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка