(()=>{var e={4184:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t{"use strict";e.exports=window.React},2819:e=>{"use strict";e.exports=window.lodash},9543:e=>{"use strict";e.exports=window.kadence.components},6222:e=>{"use strict";e.exports=window.kadence.helpers},9995:e=>{"use strict";e.exports=window.kadence.icons},2175:e=>{"use strict";e.exports=window.wp.blockEditor},4981:e=>{"use strict";e.exports=window.wp.blocks},5609:e=>{"use strict";e.exports=window.wp.components},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n);const e=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Single Button","name":"kadence/singlebtn","parent":["kadence/advancedbtn"],"category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string","default":""},"text":{"type":"string","default":"","__experimentalRole":"content"},"link":{"type":"string","default":"","__experimentalRole":"content"},"target":{"type":"string","default":"_self","__experimentalRole":"content"},"noFollow":{"type":"boolean","default":false,"__experimentalRole":"content"},"sponsored":{"type":"boolean","default":false,"__experimentalRole":"content"},"download":{"type":"boolean","default":false,"__experimentalRole":"content"},"style":{"type":"string","default":"basic"},"sizePreset":{"type":"string","default":"standard"},"gap":{"type":"array","default":["","",""]},"width":{"type":"array","default":["","",""]},"widthUnit":{"type":"string","default":"px"},"widthType":{"type":"string","default":"auto"},"padding":{"type":"array","default":["","","",""]},"tabletPadding":{"type":"array","default":["","","",""]},"mobilePadding":{"type":"array","default":["","","",""]},"paddingUnit":{"type":"string","default":"px"},"margin":{"type":"array","default":["","","",""]},"tabletMargin":{"type":"array","default":["","","",""]},"mobileMargin":{"type":"array","default":["","","",""]},"marginUnit":{"type":"string","default":"px"},"color":{"type":"string","default":""},"background":{"type":"string","default":""},"gradient":{"type":"string","default":""},"backgroundType":{"type":"string","default":"normal"},"colorHover":{"type":"string","default":""},"backgroundHover":{"type":"string","default":""},"backgroundHoverType":{"type":"string","default":"normal"},"gradientHover":{"type":"string","default":""},"borderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"borderHoverStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletBorderHoverStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderHoverStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"borderRadius":{"type":"array","default":["","","",""]},"tabletBorderRadius":{"type":"array","default":["","","",""]},"mobileBorderRadius":{"type":"array","default":["","","",""]},"borderRadiusUnit":{"type":"string","default":"px"},"borderHoverRadius":{"type":"array","default":["","","",""]},"tabletBorderHoverRadius":{"type":"array","default":["","","",""]},"mobileBorderHoverRadius":{"type":"array","default":["","","",""]},"borderHoverRadiusUnit":{"type":"string","default":"px"},"icon":{"type":"string","default":""},"iconColor":{"type":"string","default":""},"iconColorHover":{"type":"string","default":""},"iconSide":{"type":"string","default":"right"},"iconHover":{"type":"boolean","default":false},"iconPadding":{"type":"array","default":["","","",""]},"iconPaddingUnit":{"type":"string","default":"px"},"tabletIconPadding":{"type":"array","default":["","","",""]},"mobileIconPadding":{"type":"array","default":["","","",""]},"iconSize":{"type":"array","default":["","",""]},"iconSizeUnit":{"type":"string","default":"px"},"onlyIcon":{"type":"array","default":[false,"",""]},"onlyText":{"type":"array","default":[false,""]},"label":{"type":"string","default":""},"inheritStyles":{"type":"string","default":"fill"},"typography":{"type":"array","default":[{"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"","letterSpacing":["","",""],"letterType":"px","textTransform":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true}]},"displayShadow":{"type":"boolean","default":false},"displayHoverShadow":{"type":"boolean","default":false},"shadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":2,"hOffset":1,"vOffset":1,"inset":false}]},"shadowHover":{"type":"array","default":[{"color":"#000000","opacity":0.4,"spread":0,"blur":3,"hOffset":2,"vOffset":2,"inset":false}]},"inQueryBlock":{"type":"boolean","default":false},"textUnderline":{"type":"string"},"anchor":{"type":"string"},"hideLink":{"type":"boolean","default":false},"noCustomDefaults":{"type":"boolean","default":false},"iconTitle":{"type":"string","default":""}},"supports":{"anchor":true,"ktanimate":true,"ktanimateadd":true,"ktanimatepreview":true,"ktdynamic":true,"html":false,"reusable":false,"kbMetadata":true,"kbContentLabel":"text"},"usesContext":["postId","queryId","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"]}');var t=o(9995),a=o(9196),i=o(6222),l=o(9543),r=o(4184),d=o.n(r),s=(o(2819),o(5736)),c=o(9818),u=o(9307),p=o(444);const v=(0,u.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(p.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),g=window.wp.keycodes;var b=o(2175),m=o(5609);const y=window.wp.hooks;(0,o(4981).registerBlockType)("kadence/singlebtn",{...e,title:(0,s.__)("Single Button","kadence-blocks"),description:(0,s.__)("Single button within a button block","kadence-blocks"),keywords:[(0,s.__)("Button","kadence-blocks"),(0,s.__)("btn","kadence-blocks"),"KB"],icon:{src:t.advancedBtnIcon},edit:function(t){const{attributes:o,setAttributes:n,isSelected:r,context:p,clientId:k,name:f}=t,{uniqueID:h,text:S,link:C,target:x,sponsored:w,download:_,noFollow:O,sizePreset:B,padding:T,tabletPadding:E,mobilePadding:P,paddingUnit:R,color:I,background:H,backgroundType:z,gradient:U,colorHover:A,backgroundHover:F,backgroundHoverType:M,gradientHover:D,borderStyle:L,tabletBorderStyle:V,mobileBorderStyle:N,borderHoverStyle:K,tabletBorderHoverStyle:$,mobileBorderHoverStyle:q,typography:G,borderRadius:j,tabletBorderRadius:W,mobileBorderRadius:Q,borderRadiusUnit:J,borderHoverRadius:X,tabletBorderHoverRadius:Y,mobileBorderHoverRadius:Z,borderHoverRadiusUnit:ee,icon:te,iconSide:oe,iconHover:ne,width:ae,widthUnit:ie,widthType:le,displayShadow:re,shadow:de,displayHoverShadow:se,shadowHover:ce,inheritStyles:ue,iconSize:pe,iconPadding:ve,tabletIconPadding:ge,mobileIconPadding:be,iconPaddingUnit:me,onlyIcon:ye,onlyText:ke,iconColor:fe,iconColorHover:he,label:Se,marginUnit:Ce,margin:xe,iconSizeUnit:we,tabletMargin:_e,mobileMargin:Oe,kadenceAOSOptions:Be,kadenceAnimation:Te,hideLink:Ee,iconTitle:Pe,textUnderline:Re,inQueryBlock:Ie,kadenceDynamic:He,className:ze}=o;if(""!==h){const e="\x3c!-- KB:BTN:"+h+" --\x3e"+(""!==C?''+S+"":"")+"\x3c!-- /KB:BTN:"+h+" --\x3e";(0,y.addFilter)("rank_math_content","kadence/advbtn",(t=>{const o=new RegExp("\x3c!-- KB:BTN:"+h+" --\x3e[^]*?\x3c!-- /KB:BTN:"+h+" --\x3e","g");return t.replace(o,"")+e}))}const{updateBlockAttributes:Ue}=(0,c.useDispatch)(b.store),{btnsBlock:Ae,rootID:Fe}=(0,c.useSelect)((e=>{const{getBlockRootClientId:t,getBlocksByClientId:o}=e(b.store),n=t(k),a=o(n);return{btnsBlock:void 0!==a?a:"",rootID:void 0!==n?n:""}}),[k]),Me=(e,t)=>{Ue(Fe,{[e]:t})},{addUniqueID:De}=(0,c.useDispatch)("kadenceblocks/data"),{isUniqueID:Le,isUniqueBlock:Ve,previewDevice:Ne,parentData:Ke}=(0,c.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,o)=>e("kadenceblocks/data").isUniqueBlock(t,o),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(k)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(k,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[k]),$e=(0,i.mouseOverVisualizer)(),qe=(0,i.mouseOverVisualizer)();(0,u.useEffect)((()=>{(0,i.setBlockDefaults)("kadence/singlebtn",o);const e=(0,i.getPostOrFseId)(t,Ke),a=(0,i.getUniqueId)(h,k,Le,Ve,e);a!==h?(o.uniqueID=a,n({uniqueID:a}),De(a,k)):De(h,k),n({inQueryBlock:(0,i.getInQueryBlock)(p,Ie)}),(0,y.doAction)("kadence.triggerDynamicUpdate","link","link",t)}),[]);const[Ge,je]=(0,u.useState)("general"),[We,Qe]=(0,u.useState)(!1);(0,u.useEffect)((()=>{r||Qe(!1)}),[r]);const Je=e=>{const t=G.map(((t,o)=>(0===o&&(t={...t,...e}),t)));n({typography:t})},Xe=e=>{const t=de.map(((t,o)=>(0===o&&(t={...t,...e}),t)));n({shadow:t})},Ye=e=>{const t=ce.map(((t,o)=>(0===o&&(t={...t,...e}),t)));n({shadowHover:t})},Ze=[{value:"small",label:(0,s.__)("SM","kadence-blocks")},{value:"standard",label:(0,s.__)("MD","kadence-blocks")},{value:"large",label:(0,s.__)("LG","kadence-blocks")},{value:"xlarge",label:(0,s.__)("XL","kadence-blocks")}],et=[{value:"auto",label:(0,s.__)("Auto","kadence-blocks")},{value:"fixed",label:(0,s.__)("Fixed","kadence-blocks")},{value:"full",label:(0,s.__)("Full","kadence-blocks")}],tt=[{value:"fill",label:(0,s.__)("Fill","kadence-blocks")},{value:"outline",label:(0,s.__)("Outline","kadence-blocks")},{value:"inherit",label:(0,s.__)("Theme","kadence-blocks")}],ot=(0,i.getPreviewSize)(Ne,void 0!==xe?.[0]?xe[0]:"",void 0!==_e?.[0]?_e[0]:"",void 0!==Oe?.[0]?Oe[0]:""),nt=(0,i.getPreviewSize)(Ne,void 0!==xe?.[1]?xe[1]:"",void 0!==_e?.[1]?_e[1]:"",void 0!==Oe?.[1]?Oe[1]:""),at=(0,i.getPreviewSize)(Ne,void 0!==xe?.[2]?xe[2]:"",void 0!==_e?.[2]?_e[2]:"",void 0!==Oe?.[2]?Oe[2]:""),it=(0,i.getPreviewSize)(Ne,void 0!==xe?.[3]?xe[3]:"",void 0!==_e?.[3]?_e[3]:"",void 0!==Oe?.[3]?Oe[3]:""),lt=Ce||"px",rt=(0,i.getPreviewSize)(Ne,void 0!==T?.[0]?T[0]:"",void 0!==E?.[0]?E[0]:"",void 0!==P?.[0]?P[0]:""),dt=(0,i.getPreviewSize)(Ne,void 0!==T?.[1]?T[1]:"",void 0!==E?.[1]?E[1]:"",void 0!==P?.[1]?P[1]:""),st=(0,i.getPreviewSize)(Ne,void 0!==T?.[2]?T[2]:"",void 0!==E?.[2]?E[2]:"",void 0!==P?.[2]?P[2]:""),ct=(0,i.getPreviewSize)(Ne,void 0!==T?.[3]?T[3]:"",void 0!==E?.[3]?E[3]:"",void 0!==P?.[3]?P[3]:""),ut=(0,i.getPreviewSize)(Ne,void 0!==j?j[0]:"",void 0!==W?W[0]:"",void 0!==Q?Q[0]:""),pt=(0,i.getPreviewSize)(Ne,void 0!==j?j[1]:"",void 0!==W?W[1]:"",void 0!==Q?Q[1]:""),vt=(0,i.getPreviewSize)(Ne,void 0!==j?j[2]:"",void 0!==W?W[2]:"",void 0!==Q?Q[2]:""),gt=(0,i.getPreviewSize)(Ne,void 0!==j?j[3]:"",void 0!==W?W[3]:"",void 0!==Q?Q[3]:""),bt=(0,i.getPreviewSize)(Ne,void 0!==pe?.[0]?pe[0]:"",void 0!==pe?.[1]?pe[1]:"",void 0!==pe?.[2]?pe[2]:""),mt=(0,i.getPreviewSize)(Ne,void 0!==ve?.[0]?ve[0]:"",void 0!==ge?.[0]?ge[0]:"",void 0!==be?.[0]?be[0]:""),yt=(0,i.getPreviewSize)(Ne,void 0!==ve?.[1]?ve[1]:"",void 0!==ge?.[1]?ge[1]:"",void 0!==be?.[1]?be[1]:""),kt=(0,i.getPreviewSize)(Ne,void 0!==ve?.[2]?ve[2]:"",void 0!==ge?.[2]?ge[2]:"",void 0!==be?.[2]?be[2]:""),ft=(0,i.getPreviewSize)(Ne,void 0!==ve?.[3]?ve[3]:"",void 0!==ge?.[3]?ge[3]:"",void 0!==be?.[3]?be[3]:""),ht=(0,i.getPreviewSize)(Ne,void 0!==ae?.[0]?ae[0]:"",void 0!==ae?.[1]?ae[1]:void 0,void 0!==ae?.[2]?ae[2]:void 0),St=(0,i.getBorderStyle)(Ne,"top",L,V,N),Ct=(0,i.getBorderStyle)(Ne,"right",L,V,N),xt=(0,i.getBorderStyle)(Ne,"bottom",L,V,N),wt=(0,i.getBorderStyle)(Ne,"left",L,V,N),_t=(0,i.getBorderColor)(Ne,"top",L,V,N),Ot=(0,i.getBorderColor)(Ne,"right",L,V,N),Bt=(0,i.getBorderColor)(Ne,"bottom",L,V,N),Tt=(0,i.getBorderColor)(Ne,"left",L,V,N),Et=[L,V,N],Pt=(0,i.getBorderStyle)(Ne,"top",K,$,q,Et),Rt=(0,i.getBorderStyle)(Ne,"right",K,$,q,Et),It=(0,i.getBorderStyle)(Ne,"bottom",K,$,q,Et),Ht=(0,i.getBorderStyle)(Ne,"left",K,$,q,Et),zt=(0,i.getBorderColor)(Ne,"top",K,$,q,Et),Ut=(0,i.getBorderColor)(Ne,"right",K,$,q,Et),At=(0,i.getBorderColor)(Ne,"bottom",K,$,q,Et),Ft=(0,i.getBorderColor)(Ne,"left",K,$,q,Et),Mt=(0,i.getPreviewSize)(Ne,void 0!==X?X[0]:"",void 0!==Y?Y[0]:"",void 0!==Z?Z[0]:""),Dt=(0,i.getPreviewSize)(Ne,void 0!==X?X[1]:"",void 0!==Y?Y[1]:"",void 0!==Z?Z[1]:""),Lt=(0,i.getPreviewSize)(Ne,void 0!==X?X[2]:"",void 0!==Y?Y[2]:"",void 0!==Z?Z[2]:""),Vt=(0,i.getPreviewSize)(Ne,void 0!==X?X[3]:"",void 0!==Y?Y[3]:"",void 0!==Z?Z[3]:""),Nt=(0,i.getPreviewSize)(Ne,void 0!==Ae?.[0]?.attributes?.hAlign?Ae?.[0]?.attributes?.hAlign:"",void 0!==Ae?.[0]?.attributes?.thAlign?Ae?.[0]?.attributes?.thAlign:"",void 0!==Ae?.[0]?.attributes?.mhAlign?Ae?.[0]?.attributes?.mhAlign:""),Kt=(0,i.getPreviewSize)(Ne,void 0!==Ae?.[0]?.attributes?.vAlign?Ae?.[0]?.attributes?.vAlign:"",void 0!==Ae?.[0]?.attributes?.tvAlign?Ae?.[0]?.attributes?.tvAlign:"",void 0!==Ae?.[0]?.attributes?.mvAlign?Ae?.[0]?.attributes?.mvAlign:""),$t=(0,i.getPreviewSize)(Ne,void 0!==ye?.[0]?ye[0]:"",void 0!==ye?.[1]?ye[1]:void 0,void 0!==ye?.[2]?ye[2]:void 0),qt=(0,i.getPreviewSize)(Ne,!1,void 0!==ke?.[0]?ke[0]:void 0,void 0!==ke?.[1]?ke[1]:void 0);let Gt;Gt=void 0!==z&&"gradient"===z?U:"transparent"===H||void 0===H?void 0:(0,i.KadenceColorOutput)(H);const jt=["hideLink","link","target","download","text","sponsor"],Wt=d()({"kt-button":!0,[`kt-button-${h}`]:!0,[`kb-btn-global-${ue}`]:ue,"wp-block-button__link":ue&&"inherit"===ue,"kb-btn-has-icon":(void 0===qt||!qt)&&te,["kt-btn-svg-show-"+(ne?"hover":"always")]:te,"kb-btn-only-icon":$t,"kb-btn-only-text":qt,[`kt-btn-size-${B||"standard"}`]:!0,[`kb-btn-underline-${Re}`]:Re,[`${ze}`]:ze}),Qt=d()({[`kb-single-btn-${h}`]:!0,[`kt-btn-width-type-${le||"auto"}`]:!0}),Jt=(0,b.useBlockProps)({className:Qt,style:{width:void 0!==le&&"fixed"===le&&"%"===(void 0!==ie?ie:"px")&&""!==ht?ht+(void 0!==ie?ie:"px"):void 0}});let Xt="0",Yt="",Zt="";const eo="gradient"===M?D:(0,i.KadenceColorOutput)(F);void 0!==se&&se&&void 0!==ce?.[0]&&void 0!==ce?.[0].inset&&!1===ce?.[0].inset&&(Yt=(void 0!==ce?.[0].inset&&ce[0].inset?"inset ":"")+(void 0!==ce?.[0].hOffset?ce[0].hOffset:0)+"px "+(void 0!==ce?.[0].vOffset?ce[0].vOffset:0)+"px "+(void 0!==ce?.[0].blur?ce[0].blur:14)+"px "+(void 0!==ce?.[0].spread?ce[0].spread:0)+"px "+(0,i.KadenceColorOutput)(void 0!==ce?.[0].color?ce[0].color:"#000000",void 0!==ce?.[0].opacity?ce[0].opacity:1),Zt="none",Xt="0"),void 0!==se&&se&&void 0!==ce?.[0]&&void 0!==ce?.[0].inset&&!0===ce?.[0].inset&&(Zt=(void 0!==ce?.[0].inset&&ce[0].inset?"inset ":"")+(void 0!==ce?.[0].hOffset?ce[0].hOffset:0)+"px "+(void 0!==ce?.[0].vOffset?ce[0].vOffset:0)+"px "+(void 0!==ce?.[0].blur?ce[0].blur:14)+"px "+(void 0!==ce?.[0].spread?ce[0].spread:0)+"px "+(0,i.KadenceColorOutput)(void 0!==ce?.[0].color?ce[0].color:"#000000",void 0!==ce?.[0].opacity?ce[0].opacity:1),Xt=void 0!==j?j:"3",Yt="none");const to=(0,i.typographyStyle)(G,`.editor-styles-wrapper .wp-block-kadence-advancedbtn .kb-single-btn-${h} .kt-button-${h}`,Ne),oo=(0,a.createElement)("style",null,""!==to?to:"",`.kb-single-btn-${h} .kt-button-${h}.kb-btn-global-outline {`,!St&&_t?"border-top-color:"+_t+";":"",!Ct&&Ot?"border-right-color:"+Ot+";":"",!wt&&Tt?"border-left-color:"+Tt+";":"",!xt&&Bt?"border-bottom-color:"+Bt+";":"","}",`.kb-single-btn-${h} .kt-button-${h}.kb-btn-global-outline:hover {`,!Pt&&zt?"border-top-color:"+zt+";":"",!Rt&&Ut?"border-right-color:"+Ut+";":"",!Ht&&Ft?"border-left-color:"+Ft+";":"",!It&&At?"border-bottom-color:"+At+";":"","}",`.kb-single-btn-${h} .kt-button-${h}:hover {`,A?"color:"+(0,i.KadenceColorOutput)(A)+"!important;":"",Yt?"box-shadow:"+Yt+"!important;":"",Pt?"border-top:"+Pt+"!important;":"",Rt?"border-right:"+Rt+"!important;":"",Ht?"border-left:"+Ht+"!important;":"",It?"border-bottom:"+It+"!important;":"",""!==Mt?"border-top-left-radius:"+Mt+(ee||"px")+"!important;":"",""!==Dt?"border-top-right-radius:"+Dt+(ee||"px")+"!important;":"",""!==Vt?"border-bottom-left-radius:"+Vt+(ee||"px")+"!important;":"",""!==Lt?"border-bottom-right-radius:"+Lt+(ee||"px")+"!important;":"","}",he?`.kb-single-btn-${h} .kt-button-${h}:hover .kt-btn-svg-icon { color:${(0,i.KadenceColorOutput)(he)} !important;}`:"",`.kb-single-btn-${h} .kt-button-${h}::before {`,eo?"background:"+eo+";":"",Zt?"box-shadow:"+Zt+";":"",Xt?"border-radius:"+Xt+"px;":"","}"),no=void 0!==He&&void 0!==He.text&&void 0!==He.text.enable&&He.text.enable,ao=["core/bold","core/italic","core/strikethrough","toolset/inline-field"],io=He?.text?.shouldReplace?ao:["kadence/insert-dynamic",...ao];return(0,a.createElement)("div",{...Jt},oo,(0,a.createElement)(b.BlockControls,null,(0,a.createElement)(m.ToolbarGroup,null,(0,a.createElement)(b.JustifyContentControl,{value:Nt,onChange:e=>{"Mobile"===Ne?Me("mhAlign",e||""):"Tablet"===Ne?Me("thAlign",e||""):Me("hAlign",e||"center")}}),(0,a.createElement)(b.BlockVerticalAlignmentControl,{value:Kt,onChange:e=>{"Mobile"===Ne?Me("mvAlign",e||""):"Tablet"===Ne?Me("tvAlign",e||""):Me("vAlign",e||"center")}})),!Ee&&(0,a.createElement)(m.ToolbarGroup,null,(0,a.createElement)(m.ToolbarButton,{name:"link",icon:v,title:(0,s.__)("Link","kadence-blocks"),shortcut:g.displayShortcut.primary("k"),onClick:function(e){e.preventDefault(),Qe(!0)}})),(0,a.createElement)(l.CopyPasteAttributes,{attributes:o,excludedAttrs:jt,defaultAttributes:e.attributes,blockSlug:e.name,onPaste:e=>n(e)}),Boolean(He?.text?.shouldReplace)&&(0,a.createElement)(l.DynamicTextControl,{dynamicAttribute:"text",...t})),!Ee&&r&&We&&(0,a.createElement)(l.URLInputInline,{url:C,onChangeUrl:e=>{n({link:e})},additionalControls:!0,changeTargetType:!0,opensInNewTab:void 0!==x?x:"",onChangeTarget:e=>{n({target:e})},linkNoFollow:void 0!==O&&O,onChangeFollow:e=>{n({noFollow:e})},linkSponsored:void 0!==w&&w,onChangeSponsored:e=>{n({sponsored:e})},linkDownload:void 0!==_&&_,onChangeDownload:e=>{n({download:e})},dynamicAttribute:"link",allowClear:!0,isSelected:r,attributes:o,setAttributes:n,name:f,clientId:k,context:p}),(0,i.showSettings)("allSettings","kadence/advancedbtn")&&(0,a.createElement)(u.Fragment,null,(0,a.createElement)(b.InspectorControls,null,(0,a.createElement)(l.InspectorControlTabs,{panelName:"singlebtn",setActiveTab:e=>je(e),activeTab:Ge}),"general"===Ge&&(0,a.createElement)(u.Fragment,null,(0,a.createElement)(l.KadencePanelBody,{title:(0,s.__)("Button Settings","kadence-blocks"),initialOpen:!0,panelName:"kb-adv-single-btn"},!Ee&&(0,a.createElement)(l.URLInputControl,{label:(0,s.__)("Button Link","kadence-blocks"),url:C,onChangeUrl:e=>{n({link:e})},additionalControls:!0,changeTargetType:!0,opensInNewTab:void 0!==x?x:"",onChangeTarget:e=>{n({target:e})},linkNoFollow:void 0!==O&&O,onChangeFollow:e=>{n({noFollow:e})},linkSponsored:void 0!==w&&w,onChangeSponsored:e=>{n({sponsored:e})},linkDownload:void 0!==_&&_,onChangeDownload:e=>{n({download:e})},dynamicAttribute:"link",allowClear:!0,isSelected:r,attributes:o,setAttributes:n,name:f,clientId:k,context:p}),(0,a.createElement)(l.KadenceRadioButtons,{value:ue,options:tt,hideLabel:!1,label:(0,s.__)("Button Inherit Styles","kadence-blocks"),onChange:e=>{n({inheritStyles:e})}}),(0,i.showSettings)("sizeSettings","kadence/advancedbtn")&&(0,a.createElement)(u.Fragment,null,(0,a.createElement)(l.KadenceRadioButtons,{value:B,options:Ze,hideLabel:!1,label:(0,s.__)("Button Size","kadence-blocks"),onChange:e=>{n({sizePreset:e})}}),(0,a.createElement)(l.KadenceRadioButtons,{value:le,options:et,hideLabel:!1,label:(0,s.__)("Button Width","kadence-blocks"),onChange:e=>{n({widthType:e})}}),"fixed"===le&&(0,a.createElement)("div",{className:"kt-inner-sub-section"},(0,a.createElement)(l.ResponsiveRangeControls,{label:(0,s.__)("Fixed Width","kadence-blocks"),value:void 0!==ae?.[0]?ae[0]:void 0,onChange:e=>{n({width:[e,void 0!==ae?.[1]?ae[1]:"",void 0!==ae?.[2]?ae[2]:""]})},tabletValue:void 0!==ae?.[1]?ae[1]:void 0,onChangeTablet:e=>{n({width:[void 0!==ae?.[0]?ae[0]:"",e,void 0!==ae?.[2]?ae[2]:""]})},mobileValue:void 0!==ae?.[2]?ae[2]:void 0,onChangeMobile:e=>{n({width:[void 0!==ae?.[0]?ae[0]:"",void 0!==ae?.[1]?ae[1]:"",e]})},min:0,max:"px"!==(ie||"px")?100:600,step:1,unit:ie||"px",onUnit:e=>{n({widthUnit:e})},units:["px","%"]}))))),"style"===Ge&&(0,a.createElement)(u.Fragment,null,(0,i.showSettings)("colorSettings","kadence/advancedbtn")&&(0,a.createElement)(l.KadencePanelBody,{title:(0,s.__)("Button Styles","kadence-blocks"),initialOpen:!0,panelName:"kb-adv-single-btn-styles"},(0,a.createElement)(l.HoverToggleControl,{hover:(0,a.createElement)(u.Fragment,null,(0,a.createElement)(l.PopColorControl,{label:(0,s.__)("Color Hover","kadence-blocks"),value:A||"",default:"",onChange:e=>n({colorHover:e})}),(0,a.createElement)(l.BackgroundTypeControl,{label:(0,s.__)("Hover Type","kadence-blocks"),type:M||"normal",onChange:e=>n({backgroundHoverType:e}),allowedTypes:["normal","gradient"]}),"gradient"===M&&(0,a.createElement)(l.GradientControl,{value:D,onChange:e=>n({gradientHover:e}),gradients:[]}),"normal"===M&&(0,a.createElement)(l.PopColorControl,{label:(0,s.__)("Background Color","kadence-blocks"),value:F||"",default:"",onChange:e=>n({backgroundHover:e})}),(0,a.createElement)(l.ResponsiveBorderControl,{label:(0,s.__)("Border","kadence-blocks"),value:K,tabletValue:$,mobileValue:q,onChange:e=>n({borderHoverStyle:e}),onChangeTablet:e=>n({tabletBorderHoverStyle:e}),onChangeMobile:e=>n({mobileBorderHoverStyle:e})}),(0,a.createElement)(l.ResponsiveMeasurementControls,{label:(0,s.__)("Border Radius","kadence-blocks"),value:X,tabletValue:Y,mobileValue:Z,onChange:e=>n({borderHoverRadius:e}),onChangeTablet:e=>n({tabletBorderHoverRadius:e}),onChangeMobile:e=>n({mobileBorderHoverRadius:e}),unit:ee,units:["px","em","rem","%"],onUnit:e=>n({borderHoverRadiusUnit:e}),max:"em"===ee||"rem"===ee?24:500,step:"em"===ee||"rem"===ee?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),(0,a.createElement)(l.BoxShadowControl,{label:(0,s.__)("Box Shadow","kadence-blocks"),enable:void 0!==se&&se,color:void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].color?ce[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>{Ye({color:e,opacity:t})},opacity:void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].opacity?ce[0].opacity:.2,hOffset:void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].hOffset?ce[0].hOffset:0,vOffset:void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].vOffset?ce[0].vOffset:0,blur:void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].blur?ce[0].blur:14,spread:void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].spread?ce[0].spread:0,inset:void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].inset&&ce[0].inset,onEnableChange:e=>{n({displayHoverShadow:e})},onColorChange:e=>{Ye({color:e})},onOpacityChange:e=>{Ye({opacity:e})},onHOffsetChange:e=>{Ye({hOffset:e})},onVOffsetChange:e=>{Ye({vOffset:e})},onBlurChange:e=>{Ye({blur:e})},onSpreadChange:e=>{Ye({spread:e})},onInsetChange:e=>{Ye({inset:e})}})),normal:(0,a.createElement)(u.Fragment,null,(0,a.createElement)(l.PopColorControl,{label:(0,s.__)("Color","kadence-blocks"),value:I||"",default:"",onChange:e=>n({color:e})}),(0,a.createElement)(l.BackgroundTypeControl,{label:(0,s.__)("Type","kadence-blocks"),type:z||"normal",onChange:e=>n({backgroundType:e}),allowedTypes:["normal","gradient"]}),"gradient"===z&&(0,a.createElement)(l.GradientControl,{value:U,onChange:e=>n({gradient:e}),gradients:[]}),"normal"===z&&(0,a.createElement)(l.PopColorControl,{label:(0,s.__)("Background Color","kadence-blocks"),value:H||"",default:"",onChange:e=>n({background:e})}),(0,a.createElement)(l.ResponsiveBorderControl,{label:(0,s.__)("Border","kadence-blocks"),value:L,tabletValue:V,mobileValue:N,onChange:e=>n({borderStyle:e}),onChangeTablet:e=>n({tabletBorderStyle:e}),onChangeMobile:e=>n({mobileBorderStyle:e})}),(0,a.createElement)(l.ResponsiveMeasurementControls,{label:(0,s.__)("Border Radius","kadence-blocks"),value:j,tabletValue:W,mobileValue:Q,onChange:e=>n({borderRadius:e}),onChangeTablet:e=>n({tabletBorderRadius:e}),onChangeMobile:e=>n({mobileBorderRadius:e}),unit:J,units:["px","em","rem","%"],onUnit:e=>n({borderRadiusUnit:e}),max:"em"===J||"rem"===J?24:500,step:"em"===J||"rem"===J?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),(0,a.createElement)(l.BoxShadowControl,{label:(0,s.__)("Box Shadow","kadence-blocks"),enable:void 0!==re&&re,color:void 0!==de&&void 0!==de[0]&&void 0!==de[0].color?de[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>{Xe({color:e,opacity:t})},opacity:void 0!==de&&void 0!==de[0]&&void 0!==de[0].opacity?de[0].opacity:.2,hOffset:void 0!==de&&void 0!==de[0]&&void 0!==de[0].hOffset?de[0].hOffset:0,vOffset:void 0!==de&&void 0!==de[0]&&void 0!==de[0].vOffset?de[0].vOffset:0,blur:void 0!==de&&void 0!==de[0]&&void 0!==de[0].blur?de[0].blur:14,spread:void 0!==de&&void 0!==de[0]&&void 0!==de[0].spread?de[0].spread:0,inset:void 0!==de&&void 0!==de[0]&&void 0!==de[0].inset&&de[0].inset,onEnableChange:e=>{n({displayShadow:e})},onColorChange:e=>{Xe({color:e})},onOpacityChange:e=>{Xe({opacity:e})},onHOffsetChange:e=>{Xe({hOffset:e})},onVOffsetChange:e=>{Xe({vOffset:e})},onBlurChange:e=>{Xe({blur:e})},onSpreadChange:e=>{Xe({spread:e})},onInsetChange:e=>{Xe({inset:e})}}))})),(0,i.showSettings)("iconSettings","kadence/advancedbtn")&&(0,a.createElement)(l.KadencePanelBody,{title:(0,s.__)("Icon Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-single-btn-icons"},(0,a.createElement)("div",{className:"kt-select-icon-container"},(0,a.createElement)(l.KadenceIconPicker,{value:te,onChange:e=>{n({icon:e})},allowClear:!0})),(0,a.createElement)(l.SmallResponsiveControl,{label:(0,s.__)("Icon and Text Display","kadence-blocks"),desktopChildren:(0,a.createElement)(m.SelectControl,{value:void 0!==ye?.[0]&&ye[0]?"true":"false",options:[{value:"false",label:(0,s.__)("Show Icon and Text","kadence-blocks")},{value:"true",label:(0,s.__)("Show Only Icon","kadence-blocks")}],onChange:e=>{n({onlyIcon:["true"===e,void 0!==ye?.[1]?ye[1]:"",void 0!==ye?.[2]?ye[2]:""]})}}),tabletChildren:(0,a.createElement)(m.SelectControl,{value:void 0!==ke?.[0]&&ke[0]?"text":void 0!==ye?.[1]&&ye[1]?"true":void 0!==ye?.[1]&&!1===ye[1]?"false":"",options:[{value:"",label:(0,s.__)("Inherit","kadence-blocks")},{value:"false",label:(0,s.__)("Show Icon and Text","kadence-blocks")},{value:"true",label:(0,s.__)("Show Only Icon","kadence-blocks")},{value:"text",label:(0,s.__)("Show Only Text","kadence-blocks")}],onChange:e=>{if("text"!==e){let t=e;"true"===e?t=!0:"false"===e&&(t=!1),n({onlyIcon:[void 0!==ye?.[0]?ye[0]:"",t,void 0!==ye?.[2]?ye[2]:""],onlyText:[void 0===ke?.[0]&&"",void 0!==ke?.[1]?ke[1]:""]})}else n({onlyText:[void 0!==ke?.[0]||"",void 0!==ke?.[1]?ke[1]:""],onlyIcon:[void 0!==ye?.[0]?ye[0]:"",!1,void 0!==ye?.[2]?ye[2]:""]})}}),mobileChildren:(0,a.createElement)(m.SelectControl,{value:void 0!==ke?.[1]&&ke[1]?"text":void 0!==ye?.[2]&&ye[2]?"true":void 0!==ye?.[2]&&!1===ye[2]?"false":"",options:[{value:"",label:(0,s.__)("Inherit","kadence-blocks")},{value:"false",label:(0,s.__)("Show Icon and Text","kadence-blocks")},{value:"true",label:(0,s.__)("Show Only Icon","kadence-blocks")},{value:"text",label:(0,s.__)("Show Only Text","kadence-blocks")}],onChange:e=>{if("text"!==e){let t=e;"true"===e?t=!0:"false"===e&&(t=!1),n({onlyIcon:[void 0!==ye?.[0]?ye[0]:"",void 0!==ye?.[1]?ye[1]:"",t],onlyText:[void 0!==ke?.[0]?ke?.[0]:"",void 0===ke?.[1]&&""]})}else n({onlyText:[void 0!==ke?.[0]?ke?.[0]:"",void 0!==ke?.[1]||""],onlyIcon:[void 0!==ye?.[0]?ye[0]:"",void 0!==ye?.[1]?ye[1]:"",!1]})}})}),(0,a.createElement)(m.SelectControl,{label:(0,s.__)("Icon Location","kadence-blocks"),value:oe,options:[{value:"right",label:(0,s.__)("Right")},{value:"left",label:(0,s.__)("Left")}],onChange:e=>{n({iconSide:e})}}),(0,a.createElement)(l.ResponsiveRangeControls,{label:(0,s.__)("Icon Size","kadence-blocks"),value:void 0!==pe?.[0]?pe[0]:"",onChange:e=>{n({iconSize:[e,void 0!==pe[1]?pe[1]:"",void 0!==pe?.[2]&&pe[2]?pe[2]:""]})},tabletValue:void 0!==pe?.[1]?pe[1]:"",onChangeTablet:e=>{n({iconSize:[void 0!==pe?.[0]?pe[0]:"",e,void 0!==pe?.[2]?pe[2]:""]})},mobileValue:void 0!==pe?.[2]?pe[2]:"",onChangeMobile:e=>{n({iconSize:[void 0!==pe?.[0]?pe[0]:"",void 0!==pe?.[1]?pe[1]:"",e]})},min:0,max:"px"!==(we||"px")?12:200,step:"px"!==(we||"px")?.1:1,unit:we||"px",onUnit:e=>{n({iconSizeUnit:e})},units:["px","em","rem"]}),(0,a.createElement)(l.PopColorControl,{label:(0,s.__)("Icon Color","kadence-blocks"),value:fe||"",default:"",onChange:e=>{n({iconColor:e})},swatchLabel2:(0,s.__)("Hover Color","kadence-blocks"),value2:he||"",default2:"",onChange2:e=>{n({iconColorHover:e})}}),(0,a.createElement)(l.ResponsiveMeasureRangeControl,{label:(0,s.__)("Icon Padding","kadence-blocks"),value:void 0!==ve?ve:["","","",""],tabletValue:void 0!==ge?ge:["","","",""],mobileValue:void 0!==be?be:["","","",""],onChange:e=>n({iconPadding:e}),onChangeTablet:e=>n({tabletIconPadding:e}),onChangeMobile:e=>n({mobileIconPadding:e}),min:"em"===me||"rem"===me?-2:-999,max:"em"===me||"rem"===me?12:999,step:"em"===me||"rem"===me?.1:1,unit:me,units:["px","em","rem"],onUnit:e=>n({iconPaddingUnit:e})}),(0,a.createElement)(m.TextControl,{label:(0,s.__)("Title for screen readers","kadence-blocks"),help:(0,s.__)("If no title added screen readers will ignore, good if the icon is purely decorative.","kadence-blocks"),value:Pe,onChange:e=>{n({iconTitle:e})}})),(0,i.showSettings)("fontSettings","kadence/advancedbtn")&&(0,a.createElement)(l.KadencePanelBody,{title:(0,s.__)("Typography Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-btn-font-family"},(0,a.createElement)(l.TypographyControls,{fontGroup:"button",fontSize:G[0].size,onFontSize:e=>Je({size:e}),fontSizeType:G[0].sizeType,onFontSizeType:e=>Je({sizeType:e}),lineHeight:G[0].lineHeight,onLineHeight:e=>Je({lineHeight:e}),lineHeightType:G[0].lineType,onLineHeightType:e=>Je({lineType:e}),reLetterSpacing:G[0].letterSpacing,onLetterSpacing:e=>Je({letterSpacing:e}),letterSpacingType:G[0].letterType,onLetterSpacingType:e=>Je({letterType:e}),textTransform:G[0].textTransform,onTextTransform:e=>Je({textTransform:e}),fontFamily:G[0].family,onFontFamily:e=>Je({family:e}),onFontChange:e=>{Je({family:e.value,google:e.google})},onFontArrayChange:e=>Je(e),googleFont:G[0].google,onGoogleFont:e=>Je({google:e}),loadGoogleFont:G[0].loadGoogle,onLoadGoogleFont:e=>Je({loadGoogle:e}),fontVariant:G[0].variant,onFontVariant:e=>Je({variant:e}),fontWeight:G[0].weight,onFontWeight:e=>Je({weight:e}),fontStyle:G[0].style,onFontStyle:e=>Je({style:e}),fontSubset:G[0].subset,onFontSubset:e=>Je({subset:e})}),(0,a.createElement)(m.SelectControl,{label:(0,s.__)("Text Underline","kadence-blocks"),value:Re,options:[{value:"",label:(0,s.__)("Unset","kadence-blocks")},{value:"none",label:(0,s.__)("None","kadence-blocks")},{value:"underline",label:(0,s.__)("Underline","kadence-blocks")}],onChange:e=>n({textUnderline:e})}))),"advanced"===Ge&&(0,a.createElement)(u.Fragment,null,(0,i.showSettings)("marginSettings","kadence/advancedbtn")&&(0,a.createElement)(u.Fragment,null,(0,a.createElement)(l.KadencePanelBody,{panelName:"kb-single-button-margin-settings"},(0,a.createElement)(l.ResponsiveMeasureRangeControl,{label:(0,s.__)("Padding","kadence-blocks"),value:T,onChange:e=>n({padding:e}),tabletValue:E,onChangeTablet:e=>n({tabletPadding:e}),mobileValue:P,onChangeMobile:e=>n({mobilePadding:e}),min:"em"===R||"rem"===R?-25:-999,max:"em"===R||"rem"===R?25:999,step:"em"===R||"rem"===R?.1:1,unit:R,units:["px","em","rem"],onUnit:e=>n({paddingUnit:e}),onMouseOver:qe.onMouseOver,onMouseOut:qe.onMouseOut}),(0,a.createElement)(l.ResponsiveMeasureRangeControl,{label:(0,s.__)("Margin","kadence-blocks"),value:xe,onChange:e=>n({margin:e}),tabletValue:_e,onChangeTablet:e=>n({tabletMargin:e}),mobileValue:Oe,onChangeMobile:e=>n({mobileMargin:e}),min:"em"===Ce||"rem"===Ce?-25:-999,max:"em"===Ce||"rem"===Ce?25:999,step:"em"===Ce||"rem"===Ce?.1:1,unit:Ce,units:["px","em","rem"],onUnit:e=>n({marginUnit:e}),onMouseOver:$e.onMouseOver,onMouseOut:$e.onMouseOut,allowAuto:!0}),(0,a.createElement)(m.TextControl,{label:(0,s.__)("Add Aria Label","kadence-blocks"),value:Se||"",onChange:e=>n({label:e}),className:"kb-textbox-style"})),(0,a.createElement)("div",{className:"kt-sidebar-settings-spacer"})),(0,a.createElement)(l.KadenceBlockDefaults,{attributes:o,defaultAttributes:e.attributes,blockSlug:e.name,excludedAttrs:jt}))),(0,a.createElement)(l.DynamicInlineReplaceControl,{dynamicAttribute:"text",...t})),(0,a.createElement)("div",{id:`animate-id${h}`,className:"btn-inner-wrap aos-animate kt-animation-wrap","data-aos":Te||void 0,"data-aos-duration":Be&&Be[0]&&Be[0].duration?Be[0].duration:void 0,"data-aos-easing":Be&&Be[0]&&Be[0].easing?Be[0].easing:void 0},(0,a.createElement)("span",{className:Wt,style:{paddingTop:""!==rt?(0,i.getSpacingOptionOutput)(rt,R):void 0,paddingRight:""!==dt?(0,i.getSpacingOptionOutput)(dt,R):void 0,paddingBottom:""!==st?(0,i.getSpacingOptionOutput)(st,R):void 0,paddingLeft:""!==ct?(0,i.getSpacingOptionOutput)(ct,R):void 0,marginTop:""!==ot?(0,i.getSpacingOptionOutput)(ot,lt):void 0,marginRight:""!==nt?(0,i.getSpacingOptionOutput)(nt,lt):void 0,marginBottom:""!==at?(0,i.getSpacingOptionOutput)(at,lt):void 0,marginLeft:""!==it?(0,i.getSpacingOptionOutput)(it,lt):void 0,borderTop:St||void 0,borderRight:Ct||void 0,borderBottom:xt||void 0,borderLeft:wt||void 0,borderTopLeftRadius:""!==ut?ut+(J||"px"):void 0,borderTopRightRadius:""!==pt?pt+(J||"px"):void 0,borderBottomRightRadius:""!==vt?vt+(J||"px"):void 0,borderBottomLeftRadius:""!==gt?gt+(J||"px"):void 0,boxShadow:void 0!==re&&re&&void 0!==de&&void 0!==de[0]&&void 0!==de[0].color?(void 0!==de[0].inset&&de[0].inset?"inset ":"")+(void 0!==de[0].hOffset?de[0].hOffset:0)+"px "+(void 0!==de[0].vOffset?de[0].vOffset:0)+"px "+(void 0!==de[0].blur?de[0].blur:14)+"px "+(void 0!==de[0].spread?de[0].spread:0)+"px "+(0,i.KadenceColorOutput)(void 0!==de[0].color?de[0].color:"#000000",void 0!==de[0].opacity?de[0].opacity:1):void 0,background:void 0!==Gt?Gt:void 0,color:void 0!==I?(0,i.KadenceColorOutput)(I):void 0,width:void 0!==le&&"fixed"===le&&"px"===(void 0!==ie?ie:"px")&&""!==ht?ht+(void 0!==ie?ie:"px"):void 0}},te&&"left"===oe&&(0,a.createElement)(l.IconRender,{className:`kt-btn-svg-icon kt-btn-svg-icon-${te} kt-btn-side-${oe}`,name:te,size:"1em",style:{fontSize:bt?(0,i.getFontSizeOptionOutput)(bt,void 0!==we?we:"px"):void 0,color:""!==fe?(0,i.KadenceColorOutput)(fe):void 0,paddingTop:mt?(0,i.getSpacingOptionOutput)(mt,me):void 0,paddingRight:yt?(0,i.getSpacingOptionOutput)(yt,me):void 0,paddingBottom:kt?(0,i.getSpacingOptionOutput)(kt,me):void 0,paddingLeft:ft?(0,i.getSpacingOptionOutput)(ft,me):void 0}}),!no&&(0,a.createElement)(b.RichText,{tagName:"div",placeholder:(0,s.__)("Button...","kadence-blocks"),value:S,onChange:e=>n({text:e}),allowedFormats:(0,y.applyFilters)("kadence.whitelist_richtext_formats",io,"kadence/advancedbtn"),className:"kt-button-text",keepPlaceholderOnFocus:!0}),no&&(0,a.createElement)(u.Fragment,null,(0,y.applyFilters)("kadence.dynamicContent",(0,a.createElement)(m.Spinner,null),o,"text",n,p)),te&&"left"!==oe&&(0,a.createElement)(l.IconRender,{className:`kt-btn-svg-icon kt-btn-svg-icon-${te} kt-btn-side-${oe}`,name:te,size:"1em",style:{fontSize:bt?(0,i.getFontSizeOptionOutput)(bt,void 0!==we?we:"px"):void 0,color:""!==fe?(0,i.KadenceColorOutput)(fe):void 0,paddingTop:mt?(0,i.getSpacingOptionOutput)(mt,me):void 0,paddingRight:yt?(0,i.getSpacingOptionOutput)(yt,me):void 0,paddingBottom:kt?(0,i.getSpacingOptionOutput)(kt,me):void 0,paddingLeft:ft?(0,i.getSpacingOptionOutput)(ft,me):void 0}}),(0,a.createElement)(l.SpacingVisualizer,{type:"inside",forceShow:qe.isMouseOver,spacing:[(0,i.getSpacingOptionOutput)(rt,R),(0,i.getSpacingOptionOutput)(dt,R),(0,i.getSpacingOptionOutput)(st,R),(0,i.getSpacingOptionOutput)(ct,R)]})),(0,a.createElement)(l.SpacingVisualizer,{type:"inside",forceShow:$e.isMouseOver,spacing:[(0,i.getSpacingOptionOutput)(ot,lt),(0,i.getSpacingOptionOutput)(nt,lt),(0,i.getSpacingOptionOutput)(at,lt),(0,i.getSpacingOptionOutput)(it,lt)]}),G?.[0]?.google&&(0,a.createElement)(l.KadenceWebfontLoader,{typography:G,clientId:k,id:"typography"})))},save:()=>null,example:{attributes:{text:(0,s.__)("Click Me!","kadence-blocks")}}})})(),(this.kadence=this.kadence||{})["blocks-singlebtn"]=n})();.license-test-results { margin-top: 10px; } .key-validity { display: inline-block; } .valid-key { color: green; } .invalid-key { color: red; } .stellarwp-uplink__settings-group-inline { display: flex; } .stellarwp-uplink__settings .button-primary[disabled] { display:none !important; } .stellarwp-uplink-license-key-field-clear { background: transparent; border: 1px solid #999; min-height: 30px; }<# data = _.defaults( data, { id: '', label: '', description: '', input_attrs: {} }); <# var elementIdPrefix = 'el' + String( Math.random() ); #>
<# if ( data.label ) { #> <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #>
(()=>{var e,t={7646:(e,t,a)=>{"use strict";a.r(t);const l=window.kadence.icons,n=window.React;var o=a(4184),c=a.n(o);function r(e,t){const{postType:a,taxType:l,offsetQuery:n,postTax:o,excludeTax:c,allowSticky:r,categories:s,tags:i,postsToShow:d,orderBy:m,order:g,postIds:b}=e;let u=0;if(wp.data.select("core/editor")){const{getCurrentPostId:e}=wp.data.select("core/editor");u=e()}null===u&&(u=0);const p={query:t,per_page:d,type:a,offset:n||0,allow_sticky:!!r,exclude:c||"include",post_tax:!!o,tax_type:l||"",post_id:u};if(s&&s.length){const e=s.map((({value:e})=>e));p.category=e.join(",")}if(i&&i.length){const e=i.map((({value:e})=>e));p.tags=e.join(",")}return m&&(p.order_by=m),"query"===t&&g&&(p.order=g),"individual"===t&&b&&b.length&&(p.include=b,p.per_page=b.length),p}const s=window.lodash,i=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Posts","name":"kadence/posts","category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string"},"columns":{"type":"number","default":3},"postsToShow":{"type":"number","default":6},"offsetQuery":{"type":"number","default":0},"allowSticky":{"type":"boolean","default":false},"postType":{"type":"string","default":"post"},"postTax":{"type":"boolean","default":false},"taxType":{"type":"string","default":""},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"excludeTax":{"type":"string","default":"include"},"categories":{"type":"array","default":[]},"tags":{"type":"array","default":[]},"alignImage":{"type":"string","default":"beside"},"image":{"type":"boolean","default":true},"imageSize":{"type":"string","default":"medium_large"},"imageRatio":{"type":"string","default":"2-3"},"aboveCategories":{"type":"boolean","default":true},"categoriesDivider":{"type":"string","default":"vline"},"categoriesStyle":{"type":"string","default":"normal"},"meta":{"type":"boolean","default":true},"metaDivider":{"type":"string","default":"dot"},"author":{"type":"boolean","default":true},"authorImage":{"type":"boolean","default":false},"authorLink":{"type":"boolean","default":false},"authorImageSize":{"type":"number","default":25},"authorEnabledLabel":{"type":"boolean","default":true},"authorLabel":{"type":"string","default":""},"date":{"type":"boolean","default":true},"dateEnabledLabel":{"type":"boolean","default":false},"dateLabel":{"type":"string","default":""},"dateUpdated":{"type":"boolean","default":false},"dateUpdatedEnabledLabel":{"type":"boolean","default":false},"dateUpdatedLabel":{"type":"string","default":""},"metaCategories":{"type":"boolean","default":false},"metaCategoriesEnabledLabel":{"type":"boolean","default":false},"metaCategoriesLabel":{"type":"string","default":""},"comments":{"type":"boolean","default":false},"excerpt":{"type":"boolean","default":true},"excerptCustomLength":{"type":"boolean","default":false},"excerptLength":{"type":"number","default":40},"readmore":{"type":"boolean","default":true},"readmoreLabel":{"type":"string","default":""},"loopStyle":{"type":"string","default":"boxed"},"titleFont":{"type":"array","default":[{"level":2,"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"px","letterSpacing":["","",""],"letterType":"px","textTransform":""}]},"tabletColumns":{"type":"number"},"mobileColumns":{"type":"number"},"showUnique":{"type":"boolean","default":false}},"supports":{"html":false,"kbMetadata":true}}'),d=window.kadence.helpers,m=window.wp.i18n,g=window.wp.data,b=window.kadence.components,u=window.wp.date,p=window.wp.element,k=window.wp.blockEditor,_=window.wp.components,h=window.wp.apiFetch;var y=a.n(h);const v=window.wp.url,f=window.wp.htmlEntities,{postTypes:E,taxonomies:C,postQueryEndpoint:x}=kadence_blocks_params,T=(0,g.withSelect)(((e,t)=>({getPreviewDevice:e("kadenceblocks/data").getPreviewDeviceType()})))((function(e){const{attributes:t,className:a,setAttributes:l,getPreviewDevice:o,clientId:h}=e,{uniqueID:C,order:T,columns:S,tabletColumns:w,mobileColumns:L,orderBy:N,categories:I,tags:P,postsToShow:z,alignImage:F,postType:O,taxType:B,offsetQuery:D,postTax:A,excludeTax:U,showUnique:q,allowSticky:H,image:M,imageRatio:R,imageSize:j,author:K,authorLink:$,authorEnabledLabel:Q,authorLabel:W,authorImage:Z,authorImageSize:G,comments:J,metaCategories:V,metaCategoriesEnabledLabel:X,metaCategoriesLabel:Y,date:ee,dateUpdated:te,dateEnabledLabel:ae,dateLabel:le,dateUpdatedEnabledLabel:ne,dateUpdatedLabel:oe,meta:ce,metaDivider:re,categoriesDivider:se,aboveCategories:ie,categoriesStyle:de,excerpt:me,readmore:ge,readmoreLabel:be,loopStyle:ue,titleFont:pe,excerptCustomLength:ke,excerptLength:_e}=t,[he,ye]=(0,p.useState)({}),[ve,fe]=(0,p.useState)(!1),[Ee,Ce]=(0,p.useState)("content"),{addUniqueID:xe}=(0,g.useDispatch)("kadenceblocks/data"),{isUniqueID:Te,isUniqueBlock:Se,previewDevice:we,parentData:Le}=(0,g.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,a)=>e("kadenceblocks/data").isUniqueBlock(t,a),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(h)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(h,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[h]),Ne=()=>{fe(!1),y()({path:(0,v.addQueryArgs)(x,r(t,"query"))}).then((e=>{ye(e),fe(!0)})).catch((()=>{ye([]),fe(!0)}))},Ie=e=>{if(e&&void 0===window.kadence_blocks_params.taxonomies[e]&&!window.kadence_blocks_params.taxonomies[e]){const t={source:e,page:1,per_page:50};y()({path:(0,v.addQueryArgs)(window.kadence_blocks_params.termEndpoint,t)}).then((t=>{window.kadence_blocks_params.taxonomies[e]=t||[]})).catch((()=>{window.kadence_blocks_params.taxonomies[e]=[]}))}},Pe=(0,s.debounce)(Ie,200);(0,p.useEffect)((()=>{const a=(0,d.getPostOrFseId)(e,Le),n=(0,d.getUniqueId)(C,h,Te,Se,a);n!==C?(t.uniqueID=n,l({uniqueID:n}),xe(n,h)):xe(C,h),Ne(),B&&Ie(B)}),[]),(0,p.useEffect)((()=>{fe(!1),Ne()}),[O,B,D,A,U,H,N,T,I,P,z]),(0,p.useEffect)((()=>{Pe(t.taxType)}),[B,I]);const ze=(0,k.useBlockProps)();let Fe,Oe;Fe="dash"===se?(0,n.createElement)(p.Fragment,null,"‐"):"slash"===se?(0,n.createElement)(p.Fragment,null,"/"):"dot"===se?(0,n.createElement)(p.Fragment,null,"·"):(0,n.createElement)(p.Fragment,null,"|"),Oe=1===S?"grid-xs-col-1 grid-sm-col-1 grid-lg-col-1":2===S?void 0!==w&&1===w?"grid-xs-col-1 grid-sm-col-1 grid-lg-col-2":"grid-xs-col-1 grid-sm-col-2 grid-lg-col-2":void 0!==w&&1===w?"grid-xs-col-1 grid-sm-col-1 grid-lg-col-3":void 0!==w&&3===w?"grid-xs-col-1 grid-sm-col-3 grid-lg-col-3":"grid-xs-col-1 grid-sm-col-2 grid-lg-col-3";const Be=(0,d.getPreviewSize)(o,void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].size&&void 0!==pe[0].size[0]?pe[0].size[0]:"",void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].size&&void 0!==pe[0].size[1]?pe[0].size[1]:"",void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].size&&void 0!==pe[0].size[2]?pe[0].size[2]:""),De=(0,d.getPreviewSize)(o,void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].lineHeight&&void 0!==pe[0].lineHeight[0]?pe[0].lineHeight[0]:"",void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].lineHeight&&void 0!==pe[0].lineHeight[1]?pe[0].lineHeight[1]:"",void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].lineHeight&&void 0!==pe[0].lineHeight[2]?pe[0].lineHeight[2]:""),Ae=(0,d.getPreviewSize)(o,void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].letterSpacing&&void 0!==pe[0].letterSpacing[0]?pe[0].letterSpacing[0]:"",void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].letterSpacing&&void 0!==pe[0].letterSpacing[1]?pe[0].letterSpacing[1]:"",void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].letterSpacing&&void 0!==pe[0].letterSpacing[2]?pe[0].letterSpacing[2]:""),Ue=Array.isArray(he)&&he.length,qe=e=>{const t=pe.map(((t,a)=>(0===a&&(t={...t,...e}),t)));l({titleFont:t})},He="h"+(void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].level?pe[0].level:"2"),Me=(0,u.getSettings)().formats.date,Re=(0,n.createElement)(p.Fragment,null,(0,n.createElement)(k.BlockControls,null,(0,n.createElement)(b.CopyPasteAttributes,{attributes:t,defaultAttributes:i.attributes,blockSlug:i.name,onPaste:e=>l(e)})),(0,n.createElement)(b.KadenceInspectorControls,{blockSlug:"kadence/posts"},(0,n.createElement)(b.InspectorControlTabs,{panelName:"posts",setActiveTab:e=>Ce(e),activeTab:Ee}),"general"===Ee&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(b.KadencePanelBody,{panelName:"kb-posts-settings"},(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Select Posts Type:","kadence-blocks"),options:E,value:O,onChange:e=>{l({postType:e}),l({taxType:""}),l({categories:[]})}}),(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Order by","kadence-blocks"),options:[{label:(0,m.__)("Newest to Oldest","kadence-blocks"),value:"date/desc"},{label:(0,m.__)("Oldest to Newest","kadence-blocks"),value:"date/asc"},{label:(0,m.__)("Modified Ascending","kadence-blocks"),value:"modified/asc"},{label:(0,m.__)("Modified Decending","kadence-blocks"),value:"modified/desc"},{ /* translators: label for ordering posts by title in ascending order */ label:(0,m.__)("A → Z","kadence-blocks"),value:"title/asc"},{ /* translators: label for ordering posts by title in descending order */ label:(0,m.__)("Z → A","kadence-blocks"),value:"title/desc"},{ /* translators: label for ordering posts by title in descending order */ label:(0,m.__)("Menu Order","kadence-blocks"),value:"menu_order/asc"},{ /* translators: label for ordering posts by title in descending order */ label:(0,m.__)("Random","kadence-blocks"),value:"rand/desc"}],value:`${N}/${T}`,onChange:e=>{const[t,a]=e.split("/");a!==T&&l({order:a}),t!==N&&l({orderBy:t})}}),(0,n.createElement)(b.RangeControl,{key:"query-controls-range-control",label:(0,m.__)("Number of items","kadence-blocks"),value:z,onChange:e=>l({postsToShow:e}),min:1,max:300}),(0,n.createElement)(b.RangeControl,{key:"query-controls-range-control",label:(0,m.__)("Offset Starting Post","kadence-blocks"),value:D,onChange:e=>l({offsetQuery:e}),min:0,max:100}),(O&&"post"!==O||A)&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(p.Fragment,null,(0,n.createElement)("div",{className:"term-select-form-row"},(0,n.createElement)(b.TaxonomySelect,{label:(0,m.__)("Select Taxonomy","kadence-blocks"),value:(()=>{let e=[];return e=I.map((e=>({value:B+"|"+e.value,label:e.label}))),e})(),source:O,termIsMulti:!0,termIsOptional:!1,onChange:e=>{(e=>{if(e&&"object"==typeof e){let t="";const a=[];e.forEach((e=>{let l=[];[t,l]=e.value.split("|");const n={value:l,label:e.label};a.push(n)})),l({taxType:t}),l({categories:a})}else e&&"string"==typeof e?(l({taxType:e}),l({categories:[]})):(l({taxType:""}),l({categories:[]}))})(e)}}))),(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.RadioControl,{help:(0,m.__)("Whether to include or exclude items from selected terms.","kadence-blocks"),selected:void 0!==U?U:"include",options:[{label:(0,m.__)("Include","kadence-blocks"),value:"include"},{label:(0,m.__)("Exclude","kadence-blocks"),value:"exclude"}],onChange:e=>l({excludeTax:e})})),(!O||"post"===O)&&(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Select the post Taxonomy","kadence-blocks"),checked:A,onChange:e=>l({postTax:e})})),(!O||"post"===O&&!A)&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(b.KadenceSelectTerms,{placeholder:(0,m.__)("Filter by Category","kadence-blocks"),restBase:"wp/v2/categories",fieldId:"tax-select-category",value:I,onChange:e=>{l({categories:e||[]})}}),(0,n.createElement)(b.KadenceSelectTerms,{placeholder:(0,m.__)("Filter by Tag","kadence-blocks"),restBase:"wp/v2/tags",fieldId:"tax-select-tags",value:P,onChange:e=>{l({tags:e||[]})}}),(0,n.createElement)(_.RadioControl,{help:(0,m.__)("Whether to include or exclude items from selected terms.","kadence-blocks"),selected:void 0!==U?U:"include",options:[{label:(0,m.__)("Include","kadence-blocks"),value:"include"},{label:(0,m.__)("Exclude","kadence-blocks"),value:"exclude"}],onChange:e=>l({excludeTax:e})}),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Select the post Taxonomy","kadence-blocks"),checked:A,onChange:e=>l({postTax:e})})),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Show Unique","kadence-blocks"),help:(0,m.__)("Exclude posts in this block from showing in others on the same page.","kadence-blocks"),checked:q,onChange:e=>l({showUnique:e})}),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Allow Sticky Posts?","kadence-blocks"),checked:H,onChange:e=>l({allowSticky:e})})),(0,n.createElement)(b.KadencePanelBody,{title:(0,m.__)("Layout Settings","kadence-blocks"),initialOpen:!1,panelName:"layoutSettings",blockSlug:"kadence/posts"},(0,n.createElement)(b.RangeControl,{label:(0,m.__)("Columns","kadence-blocks"),value:S,onChange:e=>l({columns:e}),min:1,max:3}),1!==S&&(0,n.createElement)(b.RangeControl,{label:(0,m.__)("Tablet Columns","kadence-blocks"),value:w,onChange:e=>l({tabletColumns:e}),min:1,max:S}),1===S&&M&&(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Align Image","kadence-blocks"),options:[{label:(0,m.__)("Top","kadence-blocks"),value:"above"},{label:(0,m.__)("Left","kadence-blocks"),value:"beside"}],value:F,onChange:e=>l({alignImage:e})}),(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Style","kadence-blocks"),options:[{label:(0,m.__)("Boxed","kadence-blocks"),value:"boxed"},{label:(0,m.__)("Unboxed","kadence-blocks"),value:"unboxed"}],value:ue,onChange:e=>l({loopStyle:e})}))),"style"===Ee&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(b.KadencePanelBody,{title:(0,m.__)("Title Size","kadence-blocks"),panelName:"titleSettings",blockSlug:"kadence/posts"},(0,n.createElement)(b.TypographyControls,{fontGroup:"heading",tagLevel:pe[0].level,tagLowLevel:2,tagHighLevel:7,onTagLevel:e=>qe({level:e}),fontSize:pe[0].size,onFontSize:e=>qe({size:e}),fontSizeType:pe[0].sizeType,onFontSizeType:e=>qe({sizeType:e}),lineHeight:pe[0].lineHeight,onLineHeight:e=>qe({lineHeight:e}),lineHeightType:pe[0].lineType,onLineHeightType:e=>qe({lineType:e}),reLetterSpacing:pe[0].letterSpacing,onLetterSpacing:e=>qe({letterSpacing:e}),letterSpacingType:pe[0].letterType,onLetterSpacingType:e=>qe({letterType:e}),textTransform:pe[0].textTransform,onTextTransform:e=>qe({textTransform:e})})),(0,n.createElement)(b.KadencePanelBody,{title:(0,m.__)("Image Settings","kadence-blocks"),initialOpen:!1,panelName:"imageSettings",blockSlug:"kadence/posts"},(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Image","kadence-blocks"),checked:M,onChange:e=>l({image:e})}),M&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Image Ratio","kadence-blocks"),options:[{label:(0,m.__)("Inherit","kadence-blocks"),value:"inherit"},{label:(0,m.__)("1:1","kadence-blocks"),value:"1-1"},{label:(0,m.__)("4:3","kadence-blocks"),value:"3-4"},{label:(0,m.__)("3:2","kadence-blocks"),value:"2-3"},{label:(0,m.__)("16:9","kadence-blocks"),value:"9-16"},{label:(0,m.__)("2:1","kadence-blocks"),value:"1-2"},{label:(0,m.__)("4:5","kadence-blocks"),value:"5-4"},{label:(0,m.__)("3:4","kadence-blocks"),value:"4-3"},{label:(0,m.__)("2:3","kadence-blocks"),value:"3-2"}],value:R,onChange:e=>l({imageRatio:e})}),(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Image Size","kadence-blocks"),options:[{label:(0,m.__)("Thumbnail","kadence-blocks"),value:"thumbnail"},{label:(0,m.__)("Medium","kadence-blocks"),value:"medium"},{label:(0,m.__)("Medium Large","kadence-blocks"),value:"medium_large"},{label:(0,m.__)("Large","kadence-blocks"),value:"large"},{label:(0,m.__)("Full","kadence-blocks"),value:"full"}],value:j,onChange:e=>l({imageSize:e})}))),(!O||"post"===O)&&(0,n.createElement)(b.KadencePanelBody,{title:(0,m.__)("Category Settings","kadence-blocks"),initialOpen:!1,panelName:"categorySettings",blockSlug:"kadence/posts"},(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Above Title Category","kadence-blocks"),checked:ie,onChange:e=>l({aboveCategories:e})}),ie&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Category Style","kadence-blocks"),options:[{label:(0,m.__)("Normal","kadence-blocks"),value:"normal"},{label:(0,m.__)("Pill","kadence-blocks"),value:"pill"}],value:de,onChange:e=>l({categoriesStyle:e})}),"normal"===de&&(0,n.createElement)(_.SelectControl,{label:(0,m.__)("Category Divider","kadence-blocks"),options:[{label:"|",value:"vline"},{label:"-",value:"dash"},{label:"\\",value:"slash"},{label:"·",value:"dot"}],value:se,onChange:e=>l({categoriesDivider:e})})))),"advanced"===Ee&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(b.KadencePanelBody,{title:(0,m.__)("Meta Settings","kadence-blocks"),panelName:"metaSettings",blockSlug:"kadence/posts"},(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Meta Info","kadence-blocks"),checked:ce,onChange:e=>l({meta:e})}),ce&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Author","kadence-blocks"),checked:K,onChange:e=>l({author:e})}),K&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Author Image","kadence-blocks"),checked:Z,onChange:e=>l({authorImage:e})}),Z&&(0,n.createElement)(b.RangeControl,{label:(0,m.__)("Author Image Size"),value:G,onChange:e=>l({authorImageSize:e}),min:5,max:100}),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Author Link","kadence-blocks"),checked:$,onChange:e=>l({authorLink:e})}),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Author Label","kadence-blocks"),checked:Q,onChange:e=>l({authorEnabledLabel:e})}),Q&&(0,n.createElement)(_.TextControl,{label:(0,m.__)("Author Label"),value:W||(0,m.__)("By","kadence-blocks"),onChange:e=>l({authorLabel:e})})),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Date","kadence-blocks"),checked:ee,onChange:e=>l({date:e})}),ee&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Date Label","kadence-blocks"),checked:ae,onChange:e=>l({dateEnabledLabel:e})}),ae&&(0,n.createElement)(_.TextControl,{label:(0,m.__)("Date Label"),value:le||(0,m.__)("Posted On","kadence-blocks"),onChange:e=>l({dateLabel:e})})),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Modified Date","kadence-blocks"),checked:te,onChange:e=>l({dateUpdated:e})}),te&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Modified Date Label","kadence-blocks"),checked:ne,onChange:e=>l({dateUpdatedEnabledLabel:e})}),ne&&(0,n.createElement)(_.TextControl,{label:(0,m.__)("Modified Date Label"),value:oe||(0,m.__)("Updated On","kadence-blocks"),onChange:e=>l({dateUpdatedLabel:e})})),(!O||"post"===O)&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Categories","kadence-blocks"),checked:V,onChange:e=>l({metaCategories:e})}),V&&(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Categories Label","kadence-blocks"),checked:X,onChange:e=>l({metaCategoriesEnabledLabel:e})}),X&&(0,n.createElement)(_.TextControl,{label:(0,m.__)("Categories Label"),value:Y||(0,m.__)("Posted In","kadence-blocks"),onChange:e=>l({metaCategoriesLabel:e})})),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Comments","kadence-blocks"),checked:J,onChange:e=>l({comments:e})})))),(0,n.createElement)(b.KadencePanelBody,{title:(0,m.__)("Content Settings","kadence-blocks"),initialOpen:!1,panelName:"contentSettings",blockSlug:"kadence/posts"},(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Excerpt","kadence-blocks"),checked:me,onChange:e=>l({excerpt:e})}),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Custom Excerpt Length","kadence-blocks"),checked:ke,onChange:e=>l({excerptCustomLength:e})}),ke&&(0,n.createElement)(b.RangeControl,{label:(0,m.__)("Max number of words in excerpt","kadence-blocks"),value:_e,onChange:e=>l({excerptLength:e}),min:10,max:100}),(0,n.createElement)(_.ToggleControl,{label:(0,m.__)("Enable Read More","kadence-blocks"),checked:ge,onChange:e=>l({readmore:e})}),ge&&(0,n.createElement)(_.TextControl,{label:(0,m.__)("Read More","kadence-blocks"),value:be,onChange:e=>l({readmoreLabel:e})})),(0,n.createElement)(b.KadenceBlockDefaults,{attributes:t,defaultAttributes:i.attributes,blockSlug:i.name}))));if(!ve)return(0,n.createElement)("div",{...ze},Re,(0,n.createElement)(_.Placeholder,{icon:"admin-post",label:(0,m.__)("Posts","kadence-blocks")},(0,n.createElement)(_.Spinner,null)));if(!Ue)return(0,n.createElement)("div",{...ze},Re,(0,n.createElement)(_.Placeholder,{icon:"admin-post",label:(0,m.__)("Posts","kadence-blocks")},Array.isArray(he)?(0,m.__)("No posts found.","kadence-blocks"):(0,n.createElement)(_.Spinner,null)));const je=he.length>z?he.slice(0,z):he;return(0,n.createElement)("div",{...ze},Re,(0,n.createElement)("div",{className:`${a} kb-posts kb-posts-id-${C} ${Oe} grid-cols content-wrap kb-posts-style-${ue||"boxed"} item-image-style-${1===S?F:"above"}`},je.map(((e,t)=>((e,t)=>{let a=void 0!==e.excerpt&&e.excerpt&&void 0!==e.excerpt.rendered?e.excerpt.rendered:"";const l=document.createElement("div");l.innerHTML=a,a=l.textContent||l.innerText||"";let o="";return o=ke&&a&&_ea.length-1===t||"pill"===de?(0,n.createElement)("a",{key:e.id,className:"kb-posts-block-category-link",href:"#category"},e.name):(0,n.createElement)(p.Fragment,{key:e.id},(0,n.createElement)("a",{key:e.id,className:"kb-posts-block-category-link",href:"#category"},e.name),(0,n.createElement)("span",null," ",Fe," ")))))),(0,n.createElement)(He,{className:"entry-title",style:{fontSize:Be?(0,d.getFontSizeOptionOutput)(Be,pe[0].sizeType):void 0,lineHeight:De?De+pe[0].lineType:void 0,letterSpacing:Ae?Ae+pe[0].letterType:void 0,textTransform:pe[0].textTransform?pe[0].textTransform:void 0}},(0,n.createElement)("a",{href:"#",dangerouslySetInnerHTML:{__html:e.title.rendered.trim()||(0,m.__)("(Untitled)")}})),ce&&(0,n.createElement)("div",{className:`entry-meta entry-meta-divider-${re}`},K&&e.author_info&&e.author_info.display_name&&(0,n.createElement)("span",{className:"posted-by"},Z&&e.author_info.author_image&&(0,n.createElement)("span",{className:"author-avatar",style:{width:G?G+"px":void 0,height:G?G+"px":void 0}},(0,n.createElement)("span",{className:"author-image"},(0,n.createElement)("img",{src:e.author_info.author_image,style:{width:G?G+"px":void 0,height:G?G+"px":void 0}}))),Q&&(0,n.createElement)("span",{className:"meta-label"},W||(0,m.__)("By","kadence-blocks")),(0,n.createElement)("span",{className:"author vcard"},$?(0,n.createElement)("a",{className:"url fn n",href:"#"},e.author_info.display_name):(0,n.createElement)("span",{className:"fn n"},e.author_info.display_name))),ee&&e.date_gmt&&(0,n.createElement)("span",{className:"posted-on"},ae&&(0,n.createElement)("span",{className:"meta-label"},le||(0,m.__)("Posted On","kadence-blocks")),(0,n.createElement)("time",{dateTime:(0,u.format)("c",e.date_gmt),className:"entry-date published"},(0,u.dateI18n)(Me,e.date_gmt))),te&&e.modified_gmt&&(0,n.createElement)("span",{className:"updated-on"},ne&&(0,n.createElement)("span",{className:"meta-label"},oe||(0,m.__)("Updated On","kadence-blocks")),(0,n.createElement)("time",{dateTime:(0,u.format)("c",e.modified_gmt),className:"updated entry-date published"},(0,u.dateI18n)(Me,e.modified_gmt))),V&&e.category_info&&(0,n.createElement)("span",{className:"category-links"},X&&(0,n.createElement)("span",{className:"meta-label"},Y||(0,m.__)("Posted In","kadence-blocks")),(0,n.createElement)("span",{className:"category-link-items"},e.category_info.map(((e,t,a)=>a.length-1===t?(0,n.createElement)("a",{key:e.id,className:"kb-posts-block-category-link",href:"#category"},e.name):(0,n.createElement)(p.Fragment,{key:e.id},(0,n.createElement)("a",{key:e.id,className:"kb-posts-block-category-link",href:"#category"},e.name),(0,n.createElement)("span",null,", ")))))),J&&0!==e.comment_info&&(0,n.createElement)("span",{className:"meta-comments"},(0,n.createElement)("a",{className:"meta-comments-link anchor-scroll",href:"#comments"},1===e.comment_info&&e.comment_info+" "+(0,m.__)("Comment","kadence-blocks"),1!==e.comment_info&&e.comment_info+" "+(0,m.__)("Comments","kadence-blocks"))))),me&&e.excerpt&&e.excerpt.rendered&&(0,n.createElement)("div",{className:"entry-summary"},o),(0,n.createElement)("footer",{className:"entry-footer"},ge&&(0,n.createElement)("div",{className:"entry-actions"},(0,n.createElement)("p",{className:"more-link-wrap"},(0,n.createElement)("a",{href:"#",className:"post-more-link"},be||(0,m.__)("Read More","kadence-blocks")))))))})(e,t)))))}));(0,window.wp.blocks.registerBlockType)("kadence/posts",{...i,title:(0,m._x)("Posts","block title","kadence-blocks"),keywords:[(0,m.__)("posts","kadence-blocks"),(0,m.__)("latest posts","kadence-blocks"),(0,m.__)("blog","kadence-blocks"),"KB"],icon:{src:l.postsIcon},edit:T,save:()=>null,example:{attributes:{columns:1,postsToShow:2}}})},4184:(e,t)=>{var a;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var e=[],t=0;t{if(!a){var c=1/0;for(d=0;d=o)&&Object.keys(l.O).every((e=>l.O[e](a[s])))?a.splice(s--,1):(r=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[a,n,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={5384:0,9746:0};l.O.j=t=>0===e[t];var t=(t,a)=>{var n,o,[c,r,s]=a,i=0;if(c.some((t=>0!==e[t]))){for(n in r)l.o(r,n)&&(l.m[n]=r[n]);if(s)var d=s(l)}for(t&&t(a);il(7646)));n=l.O(n),(this.kadence=this.kadence||{})["blocks-posts"]=n})();!function(m){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),y=function(){},x=function(n,r){return function(){for(var e=[],t=0;tn.maxRow()||sn.maxCol()||(mn.getAt(t,l,s).filter(r).isNone()?(o=f,i=e[l].element(),u=xe.fromTag("td"),Rt(u,xe.fromTag("br")),(o?Rt:Ct)(i,u)):f=!0)}(m,g,h,d),o=e,f=h,s=A(tn.firstLayer(o,"tr"),function(e){return 0===e.dom().childElementCount}),k(s,Nt),f.minCol()!==f.maxCol()&&f.minRow()!==f.maxRow()||k(tn.firstLayer(o,"th,td"),function(e){he(e,"rowspan"),he(e,"colspan")}),he(o,"width"),he(o,"height"),Ae(o,"width"),Ae(o,"height"),e},pn=(Gt=le,Yt="text",{get:function(e){if(!Gt(e))throw new Error("Can only get "+Yt+" value of a "+Yt+" node");return Xt(e).getOr("")},getOption:Xt=function(e){return Gt(e)?R.from(e.dom().nodeValue):R.none()},set:function(e,t){if(!Gt(e))throw new Error("Can only set raw "+Yt+" value of a "+Yt+" node");e.dom().nodeValue=t}}),vn=function(e){return pn.get(e)},bn=function(e){return pn.getOption(e)},wn=function(e,t){pn.set(e,t)},yn=function(e){return"img"===oe(e)?1:bn(e).fold(function(){return bt(e).length},function(e){return e.length})},xn=["img","br"],Cn=function(e){return bn(e).filter(function(e){return 0!==e.trim().length||-1=e.startCol()&&t.column()+t.colspan()-1<=e.finishCol()&&t.row()>=e.startRow()&&t.row()+t.rowspan()-1<=e.finishRow()},_n=function(e,t){var n=t.column(),r=t.column()+t.colspan()-1,o=t.row(),i=t.row()+t.rowspan()-1;return n<=e.finishCol()&&r>=e.startCol()&&o<=e.finishRow()&&i>=e.startRow()},Ln=function(e,t){for(var n=!0,r=b(Mn,t),o=t.startRow();o<=t.finishRow();o++)for(var i=t.startCol();i<=t.finishCol();i++)n=n&&mn.getAt(e,o,i).exists(r);return n?R.some(t):R.none()},Fn=function(e,t,n){var r=mn.findItem(e,t,ft),o=mn.findItem(e,n,ft);return r.bind(function(r){return o.map(function(e){return t=r,n=e,jt(Math.min(t.row(),n.row()),Math.min(t.column(),n.column()),Math.max(t.row()+t.rowspan()-1,n.row()+n.rowspan()-1),Math.max(t.column()+t.colspan()-1,n.column()+n.colspan()-1));var t,n})})},jn=Fn,zn=function(t,e,n){return Fn(t,e,n).bind(function(e){return Ln(t,e)})},Hn=function(r,e,o,i){return mn.findItem(r,e,ft).bind(function(e){var t=0=t.length-1)return R.none();var e=t[n].fold(function(){var e=F(t.slice(0,n));return xo(e,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return R.some({value:e,delta:0})}),r=t[n+1].fold(function(){var e=t.slice(n+1);return xo(e,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return R.some({value:e,delta:1})});return e.bind(function(n){return r.map(function(e){var t=e.delta+n.delta;return Math.abs(e.value-n.value)/t})})},Bo=function(e,t,n){var r=e();return B(r,t).orThunk(function(){return R.from(r[0]).orThunk(n)}).map(function(e){return e.element()})},Wo=function(n){var e=n.grid(),t=Po(0,e.columns()),r=Po(0,e.rows());return E(t,function(t){return Bo(function(){return _(r,function(e){return mn.getAt(n,e,t).filter(function(e){return e.column()===t}).fold(C([]),function(e){return[e]})})},function(e){return 1===e.colspan()},function(){return mn.getAt(n,0,t)})})},Mo=function(n){var e=n.grid(),t=Po(0,e.rows()),r=Po(0,e.columns());return E(t,function(t){return Bo(function(){return _(r,function(e){return mn.getAt(n,t,e).filter(function(e){return e.row()===t}).fold(C([]),function(e){return[e]})})},function(e){return 1===e.rowspan()},function(){return mn.getAt(n,t,0)})})},_o=function(e){var t=e.replace(/\./g,"-");return{resolve:function(e){return t+"-"+e}}},Lo={resolve:_o("ephox-snooker").resolve},Fo=function(e,t,n,r,o){var i=xe.fromTag("div");return Oe(i,{position:"absolute",left:t-r/2+"px",top:n+"px",height:o+"px",width:r+"px"}),de(i,{"data-column":e,role:"presentation"}),i},jo=function(e,t,n,r,o){var i=xe.fromTag("div");return Oe(i,{position:"absolute",left:t+"px",top:n-o/2+"px",height:o+"px",width:r+"px"}),de(i,{"data-row":e,role:"presentation"}),i},zo=Lo.resolve("resizer-bar"),Ho=Lo.resolve("resizer-rows"),Uo=Lo.resolve("resizer-cols"),qo=function(e){var t=qt(e.parent(),"."+zo);k(t,Nt)},Vo=function(n,e,r){var o=n.origin();k(e,function(e,t){e.each(function(e){var t=r(o,e);Eo(t,zo),Rt(n.parent(),t)})})},Go=function(e,t,n,r,o,i){var u,a,c,l,f=no(t),s=0=t.length||e.column()>ni.cellLength(t[0]))return pi.error("invalid start address out of table bounds, row: "+e.row()+", column: "+e.column());var r=t.slice(e.row()),o=r[0].cells().slice(e.column()),i=ni.cellLength(n[0]),u=n.length;return pi.value({rowDelta:C(r.length-u),colDelta:C(o.length-i)})},xi=function(e,t){var n=ni.cellLength(e[0]),r=ni.cellLength(t[0]);return{rowDelta:C(0),colDelta:C(n-r)}},Ci=function(e,t,n){var r=t.colDelta()<0?wi:o;return(t.rowDelta()<0?bi:o)(r(e,Math.abs(t.colDelta()),n),Math.abs(t.rowDelta()),n)},Ri=function(e,t,n,r){if(0===e.length)return e;for(var o=t.startRow();o<=t.finishRow();o++)for(var i=t.startCol();i<=t.finishCol();i++)ni.mutateCell(e[o],i,Mt(r(),!1));return e},Si=function(e,t,n,r){for(var o=!0,i=0;i',t.insertBefore(r,t.firstChild)),ga(e,t),o.align&&da(e,t,o.align),e.focus(),e.addVisual()})},Pa=function(t,e){var n,r,o,i,u,a,c,l,f,s,d=t.dom,m={};!0===e?(n=d.getParent(t.selection.getStart(),"table"))&&(c=n,l=(a=t).dom,f={width:l.getStyle(c,"width")||l.getAttrib(c,"width"),height:l.getStyle(c,"height")||l.getAttrib(c,"height"),cellspacing:l.getStyle(c,"border-spacing")||l.getAttrib(c,"cellspacing"),cellpadding:l.getAttrib(c,"data-mce-cell-padding")||l.getAttrib(c,"cellpadding")||pa(a.dom,c,"padding"),border:l.getAttrib(c,"data-mce-border")||l.getAttrib(c,"border")||pa(a.dom,c,"border"),borderColor:l.getAttrib(c,"data-mce-border-color"),caption:!!l.select("caption",c)[0],"class":l.getAttrib(c,"class")},sa.each("left center right".split(" "),function(e){a.formatter.matchNode(c,"align"+e)&&(f.align=e)}),Zu(a)&&sa.extend(f,wa.extractAdvancedStyles(l,c)),m=f):(r={label:"Cols",name:"cols"},o={label:"Rows",name:"rows"}),0=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Nc=function(n,r,e,t,o){var i=function(e){var t=n.dom().createRange();return t.setStart(r.dom(),e),t.collapse(!0),t},u=vn(r).length,a=function(e,t,n,r,o){if(0===o)return 0;if(t===r)return o-1;for(var i=r,u=1;ur.left&&o.left ("+e.right()+", "+e.bottom()+")"}},Ml=function(e){return Wl.nu({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},_l=function(e,t){return R.some(e.getRect(t))},Ll=function(e,t,n){return ce(t)?_l(e,t).map(Ml):le(t)?(r=e,o=t,i=n,0<=i&&in.right();var t,n})});var n,o,i},Hl={point:Wl.getTop,adjuster:function(e,t,n,r,o){var i=Wl.moveUp(o,5);return Math.abs(n.top()-r.top())<1?jl.retry(i):n.bottom()o.bottom()?jl.retry(i):n.top()===o.bottom()?jl.retry(Wl.moveDown(o,1)):zl(e,t,o)?jl.retry(Wl.translate(i,5,0)):jl.none()},move:Wl.moveDown,gather:Cl},ql=function(n,r,o,i,u){return 0===u?R.some(i):(c=n,l=i.left(),f=r.point(i),c.elementFromPoint(l,f).filter(function(e){return"table"===oe(e)}).isSome()?(t=i,a=u-1,ql(n,e=r,o,e.move(t,5),a)):n.situsFromPoint(i.left(),r.point(i)).bind(function(e){return e.start().fold(R.none,function(t){return Fl(n,t).bind(function(e){return r.adjuster(n,t,e,o,i).fold(R.none,function(e){return ql(n,r,o,e,u-1)})}).orThunk(function(){return R.some(i)})},R.none)}));var e,t,a,c,l,f},Vl=function(t,n,e){var r,o,i,u=t.move(e,5),a=ql(n,t,e,u,100).getOr(u);return(r=t,o=a,i=n,r.point(o)>i.getInnerHeight()?R.some(r.point(o)-i.getInnerHeight()):r.point(o)<0?R.some(-r.point(o)):R.none()).fold(function(){return n.situsFromPoint(a.left(),t.point(a))},function(e){return n.scrollBy(0,e),n.situsFromPoint(a.left(),t.point(a)-e)})},Gl={tryUp:b(Vl,Hl),tryDown:b(Vl,Ul),ieTryUp:function(e,t){return e.situsFromPoint(t.left(),t.top()-5)},ieTryDown:function(e,t){return e.situsFromPoint(t.left(),t.bottom()+5)},getJumpSize:C(5)},Yl=it.detect(),Xl=function(r,o,i,u,a,c){return 0===c?R.none():$l(r,o,i,u,a).bind(function(e){var t=r.fromSitus(e),n=Dl.verify(r,i,u,t.finish(),t.foffset(),a.failure,o);return Dl.cata(n,function(){return R.none()},function(){return R.some(e)},function(e){return ft(i,e)&&0===u?Kl(r,i,u,Wl.moveUp,a):Xl(r,o,e,0,a,c-1)},function(e){return ft(i,e)&&u===yn(e)?Kl(r,i,u,Wl.moveDown,a):Xl(r,o,e,yn(e),a,c-1)})})},Kl=function(t,e,n,r,o){return Ll(t,e,n).bind(function(e){return Jl(t,o,r(e,Gl.getJumpSize()))})},Jl=function(e,t,n){return Yl.browser.isChrome()||Yl.browser.isSafari()||Yl.browser.isFirefox()||Yl.browser.isEdge()?t.otherRetry(e,n):Yl.browser.isIE()?t.ieRetry(e,n):R.none()},$l=function(t,e,n,r,o){return Ll(t,n,r).bind(function(e){return Jl(t,o,e)})},Ql=function(t,n,r){return(o=t,i=n,u=r,o.getSelection().bind(function(r){return Pl(i,r.finish(),r.foffset(),u).fold(function(){return R.some(Rl(r.finish(),r.foffset()))},function(e){var t=o.fromSitus(e),n=Dl.verify(o,r.finish(),r.foffset(),t.finish(),t.foffset(),u.failure,i);return Il(n)})})).bind(function(e){return Xl(t,n,e.element(),e.offset(),r,20).map(t.fromSitus)});var o,i,u},Zl=it.detect(),ef=function(e,t){return Kt(e,function(e){return gt(e).exists(function(e){return ft(e,t)})},n).isSome();var n},tf=function(t,r,o,e,i){return Zt(e,"td,th",r).bind(function(n){return Zt(n,"table",r).bind(function(e){return ef(i,e)?Ql(t,r,o).bind(function(t){return Zt(t.finish(),"td,th",r).map(function(e){return{start:C(n),finish:C(e),range:C(t)}})}):R.none()})})},nf=function(e,t,n,r,o,i){return Zl.browser.isIE()?R.none():i(r,t).orThunk(function(){return tf(e,t,n,r,o).map(function(e){var t=e.range();return rl.create(R.some(il.makeSitus(t.start(),t.soffset(),t.finish(),t.foffset())),!0)})})},rf=function(e,t,n,r,o,i,u){return tf(e,n,r,o,i).bind(function(e){return al.detect(t,n,e.start(),e.finish(),u)})},of=function(e,u){return Zt(e,"tr",u).bind(function(i){return Zt(i,"table",u).bind(function(e){var t,n,r,o=qt(e,"tr");return ft(i,o[0])?(t=e,n=function(e){return Sn(e).isSome()},r=u,bl(yl,t,n,r)).map(function(e){var t=yn(e);return rl.create(R.some(il.makeSitus(e,t,e,t)),!0)}):R.none()})})},uf=function(e,u){return Zt(e,"tr",u).bind(function(i){return Zt(i,"table",u).bind(function(e){var t,n,r,o=qt(e,"tr");return ft(i,o[o.length-1])?(t=e,n=function(e){return Rn(e).isSome()},r=u,wl(yl,t,n,r)).map(function(e){return rl.create(R.some(il.makeSitus(e,0,e,0)),!0)}):R.none()})})},af=function(e,t){return Zt(e,"td,th",t)},cf={down:{traverse:vt,gather:Cl,relative:pc.before,otherRetry:Gl.tryDown,ieRetry:Gl.ieTryDown,failure:Dl.failedDown},up:{traverse:pt,gather:xl,relative:pc.before,otherRetry:Gl.tryUp,ieRetry:Gl.ieTryUp,failure:Dl.failedUp}},lf=function(t){return function(e){return e===t}},ff=lf(38),sf=lf(40),df={ltr:{isBackward:lf(37),isForward:lf(39)},rtl:{isBackward:lf(39),isForward:lf(37)},isUp:ff,isDown:sf,isNavigation:function(e){return 37<=e&&e<=40}},mf=function(e){return{left:e.left(),top:e.top(),right:e.right(),bottom:e.bottom(),width:e.width(),height:e.height()}},gf=(it.detect().browser.isSafari(),function(a){return{elementFromPoint:function(e,t){return xe.fromPoint(xe.fromDom(a.document),e,t)},getRect:function(e){return e.dom().getBoundingClientRect()},getRangedRect:function(e,t,n,r){var o=bc.exact(e,t,n,r);return Yc(a,o).map(mf)},getSelection:function(){return Gc(a).map(function(e){return il.convertToRange(a,e)})},fromSitus:function(e){var t=bc.relative(e.start(),e.finish());return il.convertToRange(a,t)},situsFromPoint:function(e,t){return Xc(a,e,t).map(function(e){return ol(e.start(),e.soffset(),e.finish(),e.foffset())})},clearSelection:function(){a.getSelection().removeAllRanges()},setSelection:function(e){var t,n,r,o,i,u;t=a,n=e.start(),r=e.soffset(),o=e.finish(),i=e.foffset(),u=Lc(n,r,o,i),Hc(t,u)},setRelativeSelection:function(e,t){var n,r;n=a,r=_c(e,t),Hc(n,r)},selectContents:function(e){Vc(a,e)},getInnerHeight:function(){return a.innerHeight},getScrollY:function(){var e,t,n,r;return(e=xe.fromDom(a.document),t=e!==undefined?e.dom():m.document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop,eo(n,r)).top()},scrollBy:function(e,t){var n,r,o;n=e,r=t,((o=xe.fromDom(a.document))!==undefined?o.dom():m.document).defaultView.scrollBy(n,r)}}}),hf=q("rows","cols"),pf={mouse:function(e,t,n,r){var o,i,u,a,c,l,f=gf(e),s=(o=f,i=t,u=n,a=r,c=R.none(),l=function(){c=R.none()},{mousedown:function(e){a.clear(i),c=af(e.target(),u)},mouseover:function(e){c.each(function(r){a.clear(i),af(e.target(),u).each(function(n){sr(r,n,u).each(function(e){var t=e.boxes().getOr([]);(1";for(var n=0;n<10;n++)e+='';e+=""}return e+="",e+=''}(),onPostRender:function(){this.lastX=this.lastY=0},onmousemove:function(e){var t,n,r=e.target;"A"===r.tagName.toUpperCase()&&(t=parseInt(r.getAttribute("data-mce-x"),10),n=parseInt(r.getAttribute("data-mce-y"),10),(this.isRtl()||"tl-tr"===this.parent().rel)&&(t=9-t),t===this.lastX&&n===this.lastY||(s(o,t,n,e.control),this.lastX=t,this.lastY=n))},onclick:function(e){var t=this;"A"===e.target.tagName.toUpperCase()&&(e.preventDefault(),e.stopPropagation(),t.parent().cancel(),o.undoManager.transact(function(){Na(o,t.lastX+1,t.lastY+1)}),o.addVisual())}}]};function m(e){return function(){o.execCommand(e)}}var g={text:"Table properties",context:"table",onPostRender:e,onclick:m("mceTableProps")},h={text:"Delete table",context:"table",onPostRender:e,cmd:"mceTableDelete"},p={text:"Row",context:"table",menu:[{text:"Insert row before",onclick:m("mceTableInsertRowBefore"),onPostRender:t},{text:"Insert row after",onclick:m("mceTableInsertRowAfter"),onPostRender:t},{text:"Delete row",onclick:m("mceTableDeleteRow"),onPostRender:t},{text:"Row properties",onclick:m("mceTableRowProps"),onPostRender:t},{text:"-"},{text:"Cut row",onclick:m("mceTableCutRow"),onPostRender:t},{text:"Copy row",onclick:m("mceTableCopyRow"),onPostRender:t},{text:"Paste row before",onclick:m("mceTablePasteRowBefore"),onPostRender:t},{text:"Paste row after",onclick:m("mceTablePasteRowAfter"),onPostRender:t}]},v={text:"Column",context:"table",menu:[{text:"Insert column before",onclick:m("mceTableInsertColBefore"),onPostRender:t},{text:"Insert column after",onclick:m("mceTableInsertColAfter"),onPostRender:t},{text:"Delete column",onclick:m("mceTableDeleteCol"),onPostRender:t}]},b={separator:"before",text:"Cell",context:"table",menu:[{text:"Cell properties",onclick:m("mceTableCellProps"),onPostRender:t},{text:"Merge cells",onclick:m("mceTableMergeCells"),onPostRender:function(){var t=this;a.push(t),r.fold(function(){l(t)},function(e){t.disabled(e.mergable().isNone())})}},{text:"Split cell",onclick:m("mceTableSplitCells"),onPostRender:function(){var t=this;c.push(t),r.fold(function(){l(t)},function(e){t.disabled(e.unmergable().isNone())})}}]};o.addMenuItem("inserttable",d),o.addMenuItem("tableprops",g),o.addMenuItem("deletetable",h),o.addMenuItem("row",p),o.addMenuItem("column",v),o.addMenuItem("cell",b)},Tf=function(n,r){return{insertTable:function(e,t){return Na(n,e,t)},setClipboardRows:function(e){return t=r,n=E(e,xe.fromDom),void t.set(R.from(n));var t,n},getClipboardRows:function(){return r.get().fold(function(){},function(e){return E(e,function(e){return e.dom()})})}}};e.add("table",function(t){var n,r=cc(t),e=yf(t,r.lazyResize),o=la(t,r.lazyWire),i=(n=t,{get:function(){var e=Fu(n);return hr(e,yr.selectedSelector()).fold(function(){return n.selection.getStart()===undefined?Rr.none():Rr.single(n.selection)},function(e){return Rr.multiple(e)})}}),u=lu(R.none());return Ba(t,o,e,i,u),Ar(t,i,o,e),Sf(t,i),Cf(t),Rf(t),t.on("PreInit",function(){t.serializer.addTempAttr(yr.firstSelected()),t.serializer.addTempAttr(yr.lastSelected())}),t.getParam("table_tab_navigation",!0,"boolean")&&t.on("keydown",function(e){nl(e,t,o,r.lazyWire)}),t.on("remove",function(){r.destroy(),e.destroy()}),Tf(t,u)})}(window);{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "title": "Count Up", "name": "kadence/countup", "category": "kadence-blocks", "textdomain": "kadence-blocks", "description": "", "attributes": { "uniqueID": { "type": "string", "default": "" }, "title": { "type": "string", "default": "" }, "displayTitle": { "type": "boolean", "default": true }, "titleFont": { "type": "array", "default": [ { "level": 4, "htmlTag": "div", "size": [ "", "", "" ], "sizeType": "px", "lineHeight": [ "", "", "" ], "lineType": "", "letterSpacing": "", "textTransform": "", "family": "", "google": false, "style": "", "weight": "", "variant": "", "subset": "", "loadGoogle": true } ] }, "titlePaddingType": { "type": "string", "default": "px" }, "titlePadding": { "type": "array", "default": [ "", "", "", "" ] }, "titleTabletPadding": { "type": "array", "default": [ "", "", "", "" ] }, "titleMobilePadding": { "type": "array", "default": [ "", "", "", "" ] }, "titleMarginType": { "type": "string", "default": "px" }, "titleMargin": { "type": "array", "default": [ "", "", "", "" ] }, "titleTabletMargin": { "type": "array", "default": [ "", "", "", "" ] }, "titleMobileMargin": { "type": "array", "default": [ "", "", "", "" ] }, "titleAlign": { "type": "array", "default": [ "", "", "" ] }, "titleColor": { "type": "string", "default": "" }, "titleHoverColor": { "type": "string", "default": "" }, "titleMinHeight": { "type": "array", "default": [ "", "", "" ] }, "numberFont": { "type": "array", "default": [ { "size": [ "50", "", "" ], "sizeType": "px", "lineHeight": [ "", "", "" ], "lineType": "px", "letterSpacing": "", "textTransform": "", "family": "", "google": false, "style": "", "weight": "", "variant": "", "subset": "", "loadGoogle": true } ] }, "numberPaddingType": { "type": "string", "default": "px" }, "numberPadding": { "type": "array", "default": [ "", "", "", "" ] }, "numberTabletPadding": { "type": "array", "default": [ "", "", "", "" ] }, "numberMobilePadding": { "type": "array", "default": [ "", "", "", "" ] }, "numberMarginType": { "type": "string", "default": "px" }, "numberMargin": { "type": "array", "default": [ "", "", "", "" ] }, "numberTabletMargin": { "type": "array", "default": [ "", "", "", "" ] }, "numberMobileMargin": { "type": "array", "default": [ "", "", "", "" ] }, "numberAlign": { "type": "array", "default": [ "", "", "" ] }, "numberColor": { "type": "string", "default": "" }, "numberHoverColor": { "type": "string", "default": "" }, "numberMinHeight": { "type": "array", "default": [ "", "", "" ] }, "start": { "type": "number", "default": 0 }, "end": { "type": "number", "default": 100 }, "startDecimal": { "type": "string" }, "endDecimal": { "type": "string" }, "prefix": { "type": "string", "default": "" }, "suffix": { "type": "string", "default": "" }, "duration": { "type": "number", "default": 2.5 }, "separator": { "type": "string", "default": "" }, "decimal": { "type": "string", "default": "" }, "decimalSpaces": { "type": "number", "default": 2 } }, "supports": { "kbMetadata": true } } Are there courses that focus on specific types of survival gear and equipment - Spectrum Medical
  • Home
  • blog
  • Are there courses that focus on specific types of survival gear and equipment

Blog Details

https://si.vokasi.unair.ac.id/wp-content/languages/s-thai/ https://mathfkip.unmuhjember.ac.id/media/s777/ https://english.iainptk.ac.id/wp-content/upgrade/spulsa/ https://english.iainptk.ac.id/wp-content/upgrade/sdana/ https://mathfkip.unmuhjember.ac.id/media/server-thailand/ https://mikl.fpik.undip.ac.id/wp-content/upgrade/s777/ https://mikl.fpik.undip.ac.id/wp-content/upgrade/server-thailand/ https://bapengda.jatimprov.go.id/-/s777/ https://bapengda.jatimprov.go.id/-/server-thailand/ https://bapengda.jatimprov.go.id/-/spulsa/ https://disnakerin.payakumbuhkota.go.id/wp-content/plugins/sdana/ https://disnakerin.payakumbuhkota.go.id/wp-content/plugins/s-thai/ https://si.vokasi.unair.ac.id/wp-content/languages/s777/ https://mikl.fpik.undip.ac.id/wp-content/uploads/2016/s88/ https://si.vokasi.unair.ac.id/.well-known/sthai/ https://english.iainptk.ac.id/wp-content/uploads/2020/s-thai/ https://disnakerin.payakumbuhkota.go.id/wp-content/uploads/2021/s777/ https://kerjasama.polsri.ac.id/vendor/laravel/s777/ https://kerjasama.polsri.ac.id/vendor/laravel/spulsa/ https://159.223.77.70/ https://134.209.111.209/ https://faperta.unej.ac.id/wp-content/uploads/2014/akun-pro-kbj/ https://faperta.unej.ac.id/wp-content/uploads/2014/slot-dana/ https://fkunswagati.ac.id/wp-content/cache/sg-bet88/ https://fkunswagati.ac.id/wp-content/cache/sg-dana/ https://fkunswagati.ac.id/wp-content/cache/sg-pulsa/ https://fkunswagati.ac.id/wp-content/cache/sg-thai/ https://fkunswagati.ac.id/wp-content/cache/sg-777/ https://faperta.unej.ac.id/wp-content/uploads/2014/slot-thailand/ https://english.iainptk.ac.id/wp-content/uploads/2020/akun-pro-kbj/ wso slot scatter hitam bet88 slot77 https://opa.ufrn.br/wp-content/uploads/2022/mahjong-ways-2/ https://opa.ufrn.br/wp-content/uploads/2022/akun-pro-kamboja/

Are there courses that focus on specific types of survival gear and equipment

Yes, there are courses that focus on specific types of survival gear and equipment. These courses are often offered by organizations or experts in the field of survival and wilderness skills. They may cover topics such as how to effectively use a specific type of survival gear, like a knife or a compass, or how to navigate different environments using specific equipment. Some courses may also focus on specific survival situations, like wilderness survival or urban survival, and teach participants how to use the necessary gear and equipment in those situations. It’s recommended to research and find reputable organizations or experts who offer these courses in order to ensure quality instruction and a comprehensive learning experience.

Introduction to survival gear and equipment

Introduction to survival gear and equipment is a crucial aspect when it comes to preparing for outdoor adventures or emergencies. By familiarizing yourself with the essential tools and gear, you can ensure your safety and increase your chances of survival in challenging situations.

Survival gear and equipment courses provide individuals with a comprehensive understanding of the various tools and resources necessary for survival in different scenarios. These courses are designed to equip participants with the knowledge and skills required to select, use, and maintain survival gear effectively.

During an introduction to survival gear and equipment course, participants will learn about different categories of gear, including shelter, fire, water, food, navigation, first aid, and tools. They will gain an understanding of the purpose and functionality of each item, as well as how to choose the right gear for specific situations.

Participants will also learn about the importance of durability, versatility, and portability when selecting survival gear. Emphasis is placed on picking lightweight and compact equipment that can be easily carried during outdoor activities or emergency situations.

Moreover, an introduction to survival gear and equipment course may cover specific types of gear, such as knives, multi-tools, first aid kits, water filters, fire starters, and shelter options like tents, bivouacs, or tarps. Participants will learn how to properly use and maintain these tools, as well as how to troubleshoot common issues that may arise in the field.

Additionally, these courses often emphasize the importance of preparedness and developing a survival mindset. Participants will be encouraged to consider individual needs and preferences when selecting gear, taking into account factors like climate, terrain, and personal skill level.

By taking an introduction to survival gear and equipment course, individuals can gain the confidence and knowledge needed to make informed decisions when it comes to selecting and utilizing essential tools. Whether you are an outdoor enthusiast, a prepper, or simply interested in acquiring survival skills, these courses offer a valuable foundation for your journey towards self-reliance and preparedness.

Importance of having the right gear for different survival situations

Having the right gear for different survival situations is absolutely crucial. In a survival scenario, your equipment can be the difference between life and death. Each situation requires a unique set of tools and supplies, and having the right gear can greatly increase your chances of survival.

One important aspect of having the right gear is understanding the specific needs of different survival situations. For example, if you are planning a wilderness adventure or camping trip, you will need gear such as a tent, sleeping bag, and camping stove. On the other hand, if you are preparing for a natural disaster or emergency situation, you may require items like a first aid kit, emergency food and water supplies, and flashlights.

Different survival situations also have specific gear requirements based on the environment you will be facing. For instance, if you are venturing into a cold climate, you would need insulated clothing, snowshoes, and a stove for melting snow. In a desert environment, you might require lightweight clothing, a sun hat, and extra water storage containers.

Having the right gear not only ensures your safety and well-being but also allows you to tackle different challenges effectively. For example, in a survival situation where you need to navigate through dense vegetation, having a machete or a compact saw can make the task much easier. Similarly, having a reliable GPS device or a compass can be crucial for finding your way in unfamiliar territory.

Moreover, having the right gear for different survival situations gives you peace of mind. It allows you to approach various scenarios with confidence, knowing that you have the necessary tools to overcome obstacles and ensure your survival.

In conclusion, the importance of having the right gear for different survival situations cannot be overstated. It is essential for meeting the specific needs of each scenario, adapting to different environments, and effectively overcoming challenges. Properly equipping yourself with the right gear increases your chances of survival and provides a sense of security in uncertain situations.

Overview of different types of survival gear and equipment

When it comes to survival gear and equipment, there are myriad options available to meet various survival needs. Whether you are planning for outdoor adventures, emergency preparedness, or survival in extreme situations, having the right gear is essential. Here is an overview of different types of survival gear and equipment that you may find in specialized courses:

1. Shelter and Clothing:

– Tents, bivouac shelters, or hammocks: Provide protection from the elements.

– Sleeping bags and blankets: Keep you warm and comfortable in different conditions.

– Clothing layers: Include base layers, insulation layers, and outer shells for temperature regulation.

2. Navigation and Communication:

– Compasses and GPS devices: Help you determine directions and find your way.

– Maps: Provide crucial information about the terrain and potential hazards.

– Two-way radios: Allow communication with others in your group or for emergencies.

3. Fire and Lighting:

– Fire starters and lighters: Essential for warmth, cooking, and signaling.

– Flashlights, headlamps, and lanterns: Provide visibility during dark or low-light situations.

4. Food and Water:

– Water filters and purifiers: Ensure access to safe drinking water.

– Lightweight camping cookware: Facilitate cooking and food preparation in outdoor settings.

– Food storage containers and meal kits: Store and carry provisions efficiently.

5. First Aid and Medical Supplies:

– First aid kits: Include essential items for treating injuries and ailments.

– Medications: Cater to specific medical needs and emergencies.

6. Tools and Equipment:

– Multi-tools and pocket knives: Serve various purposes, such as cutting or repairing items.

– Survival axes and saws: Aid in gathering firewood or building shelters.

– Rope, paracord, and carabiners: Useful for securing gear, building structures, or climbing.

7. Personal Safety and Protection:

– Protective clothing and gear: Protect against extreme temperatures, insects, or hazardous materials.

– Whistles, signaling mirrors, and flares: Help attract attention in distress situations.

– Self-defense tools: Offer personal protection, such as pepper spray or whistles.

While this overview provides a glimpse into the types of survival gear and equipment available, specialized courses can delve deeper into each category. These courses often offer hands-on experience and guidance on selecting, using, and maintaining different gear for specific survival scenarios. By focusing on a particular type of survival gear or equipment in these courses, you can gain valuable knowledge and skills that enhance your preparedness and survival capabilities.

Related Posts

Leave A Comment

2024

Categories

Cart

No products in the cart.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the compare bar
Compare