[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.119.72: ~ $
(()=>{var e,t={7224:(e,t,a)=>{"use strict";a.r(t),a.d(t,{metadata:()=>B,name:()=>j,settings:()=>J});const i=window.wp.i18n,o=window.kadence.icons,l=window.lodash,n=window.wp.blocks,r=window.React;var s=a(2485),c=a.n(s);const d=window.wp.blob,g=window.wp.compose,u=window.wp.data,m=window.wp.blockEditor,p=(window.wp.hooks,window.wp.components),b=window.wp.element,k=window.wp.primitives,v=(0,b.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,b.createElement)(k.Path,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})),h=window.kadence.components,y=window.kadence.helpers,f=(0,b.createElement)(k.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,b.createElement)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})),_=(0,b.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,b.createElement)(k.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"})),S=(0,b.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,b.createElement)(k.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),w=window.wp.notices,E=window.wp.coreData;var C=a(7286),x=a.n(C),T=a(8616),O=a.n(T);const B=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/image","title":"Advanced Image","category":"kadence-blocks","usesContext":["postId","queryId","allowResize","imageCrop","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow","kadence/headerPostId","kadence/headerIsSticky","kadence/headerIsTransparent"],"description":"Image block with greater controls and advanced features","keywords":["img","image","photo","kb"],"textdomain":"kadence-blocks","attributes":{"align":{"type":"string"},"url":{"type":"string","source":"attribute","selector":"img","attribute":"src","__experimentalRole":"content"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":"","__experimentalRole":"content"},"caption":{"type":"string","source":"html","selector":"figcaption","__experimentalRole":"content"},"title":{"type":"string","source":"attribute","selector":"img","attribute":"title","__experimentalRole":"content"},"id":{"type":"number","__experimentalRole":"content"},"width":{"type":"number"},"height":{"type":"number"},"imgMaxWidth":{"type":"number"},"imgMaxWidthTablet":{"type":"number"},"imgMaxWidthMobile":{"type":"number"},"sizeSlug":{"type":"string"},"ratio":{"type":"string"},"useRatio":{"type":"boolean","default":false},"link":{"type":"string","__experimentalRole":"content"},"linkTarget":{"type":"boolean","default":false},"linkNoFollow":{"type":"boolean","default":false},"linkSponsored":{"type":"boolean","default":false},"linkDestination":{"type":"string"},"linkTitle":{"type":"string"},"linkClass":{"type":"string","source":"attribute","selector":"figure > a","attribute":"class"},"uniqueID":{"type":"string"},"marginDesktop":{"type":"array","default":["","","",""]},"marginTablet":{"type":"array","default":["","","",""]},"marginMobile":{"type":"array","default":["","","",""]},"marginUnit":{"type":"string","default":"px"},"paddingDesktop":{"type":"array","default":["","","",""]},"paddingTablet":{"type":"array","default":["","","",""]},"paddingMobile":{"type":"array","default":["","","",""]},"paddingUnit":{"type":"string","default":"px"},"borderColor":{"type":"string","default":""},"backgroundColor":{"type":"string","default":""},"borderRadius":{"type":"array","default":["","","",""]},"tabletBorderRadius":{"type":"array","default":["","","",""]},"mobileBorderRadius":{"type":"array","default":["","","",""]},"borderRadiusUnit":{"type":"string","default":"px"},"borderWidthUnit":{"type":"string","default":"px"},"borderWidthDesktop":{"type":"array","default":["","","",""]},"borderWidthTablet":{"type":"array","default":["","","",""]},"borderWidthMobile":{"type":"array","default":["","","",""]},"displayBoxShadow":{"type":"boolean","default":false},"boxShadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":14,"hOffset":0,"vOffset":0,"inset":false}]},"displayDropShadow":{"type":"boolean","default":false},"dropShadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"blur":14,"hOffset":0,"vOffset":0}]},"imageFilter":{"type":"string","default":"none"},"showCaption":{"type":"boolean","default":true},"captionStyles":{"type":"array","default":[{"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"px","letterSpacing":["","",""],"textTransform":"","family":"","google":false,"style":"","weight":"","variant":"","subset":"","loadGoogle":true,"color":"","background":""}]},"maskSvg":{"type":"string","default":"none"},"maskUrl":{"type":"string"},"maskSize":{"type":"string","default":"auto"},"maskPosition":{"type":"string","default":"center center"},"maskRepeat":{"type":"string","default":"no-repeat"},"zIndex":{"type":"number"},"inQueryBlock":{"type":"boolean","default":false},"preventLazyLoad":{"type":"boolean","default":false},"globalAlt":{"type":"boolean","default":false},"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"}]},"overlayOpacity":{"type":"number","default":0.3},"overlay":{"type":"string","default":""},"overlayType":{"type":"string","default":"normal"},"overlayGradient":{"type":"string","default":""},"overlayBlendMode":{"type":"string"},"urlSticky":{"type":"string"},"altSticky":{"type":"string"},"titleSticky":{"type":"string"},"idSticky":{"type":"number"},"widthSticky":{"type":"number"},"heightSticky":{"type":"number"},"sizeSlugSticky":{"type":"string"},"urlTransparent":{"type":"string"},"altTransparent":{"type":"string"},"titleTransparent":{"type":"string"},"idTransparent":{"type":"number"},"widthTransparent":{"type":"number"},"heightTransparent":{"type":"number"},"sizeSlugTransparent":{"type":"string"},"imagePosition":{"type":"string","default":""},"tooltip":{"type":"string","source":"html","selector":".kb-tooltip-hidden-content","__experimentalRole":"content"},"tooltipPlacement":{"type":"string","default":""},"tooltipDash":{"type":"boolean","default":false}},"supports":{"anchor":true,"ktanimate":true,"ktanimateadd":true,"ktanimatepreview":true,"ktdynamic":true,"kbMetadata":true}}'),{name:z}=B,I=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],R="wp-embed",M=e=>e&&e.includes('class="wp-embedded-content"'),N=e=>{if(!e)return e;const t=I.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return x()(e,t)};O()(((e,t,a,i,o=!0)=>{if(!e)return{};const n={};let{type:r="rich"}=e;const{html:s,provider_name:c}=e,d=(0,l.kebabCase)((c||t).toLowerCase());return M(s)&&(r=R),(s||"photo"===r)&&(n.type=r,n.providerNameSlug=d),n.className=function(e,t,a=!0){if(!a)return N(t);const i=document.implementation.createHTMLDocument("");i.body.innerHTML=e;const o=i.body.querySelector("iframe");if(o&&o.height&&o.width){const e=(o.width/o.height).toFixed(2);for(let a=0;a<I.length;a++){const i=I[a];if(e>=i.ratio)return e-i.ratio>.1?N(t):x()(N(t),i.className,"wp-has-aspect-ratio")}}return t}(s,a,i&&o),n}));const D="none",P="media",L="attachment",A="custom",U=["image"],W=[{value:"normal",label:(0,i.__)("Normal","kadence-blocks")},{value:"multiply",label:(0,i.__)("Multiply","kadence-blocks")},{value:"screen",label:(0,i.__)("Screen","kadence-blocks")},{value:"overlay",label:(0,i.__)("Overlay","kadence-blocks")},{value:"darken",label:(0,i.__)("Darken","kadence-blocks")},{value:"lighten",label:(0,i.__)("Lighten","kadence-blocks")},{value:"color-dodge",label:(0,i.__)("Color Dodge","kadence-blocks")},{value:"color-burn",label:(0,i.__)("Color Burn","kadence-blocks")},{value:"difference",label:(0,i.__)("Difference","kadence-blocks")},{value:"exclusion",label:(0,i.__)("Exclusion","kadence-blocks")},{value:"hue",label:(0,i.__)("Hue","kadence-blocks")},{value:"saturation",label:(0,i.__)("Saturation","kadence-blocks")},{value:"color",label:(0,i.__)("Color","kadence-blocks")},{value:"luminosity",label:(0,i.__)("Luminosity","kadence-blocks")}];function F({temporaryURL:e,dynamicURL:t,attributes:a,setAttributes:o,isSelected:s,insertBlocksAfter:c,onReplace:k,onSelectImage:v,onSelectURL:C,onUploadError:x,containerRef:T,context:O,clientId:I,previewDevice:N,marginMouseOver:D,paddingMouseOver:P}){const{url:L="",alt:A,caption:F,align:H,id:V,title:K,width:q,height:G,sizeSlug:j,useRatio:J,ratio:Z,imgMaxWidth:Q,imgMaxWidthTablet:X,imgMaxWidthMobile:Y,uniqueID:ee,marginDesktop:te,marginTablet:ae,marginMobile:ie,marginUnit:oe,paddingDesktop:le,paddingTablet:ne,paddingMobile:re,paddingUnit:se,backgroundColor:ce,borderColor:de,borderRadius:ge,borderWidthUnit:ue,borderRadiusUnit:me,borderWidthDesktop:pe,borderWidthTablet:be,borderWidthMobile:ke,displayBoxShadow:ve,boxShadow:he,displayDropShadow:ye,dropShadow:fe,imageFilter:_e,showCaption:Se,captionStyles:we,maskSvg:Ee,maskSize:Ce,maskPosition:xe,maskRepeat:Te,maskUrl:Oe,link:Be,linkTarget:ze,linkNoFollow:Ie,linkSponsored:Re,linkDestination:Me,linkTitle:Ne,zIndex:De,tabletBorderRadius:Pe,mobileBorderRadius:Le,borderStyle:Ae,tabletBorderStyle:Ue,mobileBorderStyle:We,preventLazyLoad:Fe,overlayType:$e,overlay:He,overlayGradient:Ve,overlayOpacity:Ke,overlayBlendMode:qe,globalAlt:Ge,urlSticky:je,idSticky:Je,altSticky:Ze,titleSticky:Qe,widthSticky:Xe,heightSticky:Ye,sizeSlugSticky:et,urlTransparent:tt,idTransparent:at,altTransparent:it,titleTransparent:ot,widthTransparent:lt,heightTransparent:nt,sizeSlugTransparent:rt,imagePosition:st,tooltip:ct,tooltipPlacement:dt,tooltipDash:gt}=a,ut=t||L,[mt,pt]=(0,b.useState)(!1),bt=((0,y.getPreviewSize)(N,void 0!==te?te[0]:"",void 0!==ae?ae[0]:"",void 0!==ie?ie[0]:""),(0,y.getPreviewSize)(N,void 0!==te?te[1]:"",void 0!==ae?ae[1]:"",void 0!==ie?ie[1]:""),(0,y.getPreviewSize)(N,void 0!==te?te[2]:"",void 0!==ae?ae[2]:"",void 0!==ie?ie[2]:""),(0,y.getPreviewSize)(N,void 0!==te?te[3]:"",void 0!==ae?ae[3]:"",void 0!==ie?ie[3]:""),(0,y.getPreviewSize)(N,void 0!==le?le[0]:"",void 0!==ne?ne[0]:"",void 0!==re?re[0]:"")),kt=(0,y.getPreviewSize)(N,void 0!==le?le[1]:"",void 0!==ne?ne[1]:"",void 0!==re?re[1]:""),vt=(0,y.getPreviewSize)(N,void 0!==le?le[2]:"",void 0!==ne?ne[2]:"",void 0!==re?re[2]:""),ht=(0,y.getPreviewSize)(N,void 0!==le?le[3]:"",void 0!==ne?ne[3]:"",void 0!==re?re[3]:""),yt=(0,y.getBorderStyle)(N,"top",Ae,Ue,We),ft=(0,y.getBorderStyle)(N,"right",Ae,Ue,We),_t=(0,y.getBorderStyle)(N,"bottom",Ae,Ue,We),St=(0,y.getBorderStyle)(N,"left",Ae,Ue,We),wt=(0,y.getPreviewSize)(N,void 0!==ge?ge[0]:"",void 0!==Pe?Pe[0]:"",void 0!==Le?Le[0]:""),Et=(0,y.getPreviewSize)(N,void 0!==ge?ge[1]:"",void 0!==Pe?Pe[1]:"",void 0!==Le?Le[1]:""),Ct=(0,y.getPreviewSize)(N,void 0!==ge?ge[2]:"",void 0!==Pe?Pe[2]:"",void 0!==Le?Le[2]:""),xt=(0,y.getPreviewSize)(N,void 0!==ge?ge[3]:"",void 0!==Pe?Pe[3]:"",void 0!==Le?Le[3]:""),Tt=(0,y.getPreviewSize)(N,void 0!==Q?Q:"",void 0!==X?X:"",void 0!==Y?Y:""),Ot=void 0!==we[0].sizeType?we[0].sizeType:"px",Bt=(0,y.getPreviewSize)(N,void 0!==we[0].size[0]?we[0].size[0]:"inherit",void 0!==we[0].size[1]?we[0].size[1]:"inherit",void 0!==we[0].size[2]?we[0].size[2]:"inherit"),zt=(0,y.getPreviewSize)(N,we&&void 0!==we[0]&&Array.isArray(we[0].letterSpacing)&&void 0!==we[0].letterSpacing[0]?we[0].letterSpacing[0]:void 0,we&&void 0!==we[0]&&Array.isArray(we[0].letterSpacing)&&void 0!==we[0].letterSpacing[1]?we[0].letterSpacing[1]:void 0,we&&void 0!==we[0]&&Array.isArray(we[0].letterSpacing)&&void 0!==we[0].letterSpacing[2]?we[0].letterSpacing[2]:void 0),It=void 0!==we[0].lineType?we[0].lineType:"px",Rt=(0,y.getPreviewSize)(N,void 0!==we[0].lineHeight[0]?we[0].lineHeight[0]+It:"normal",void 0!==we[0].lineHeight[1]?we[0].lineHeight[1]+It:"normal",void 0!==we[0].lineHeight[2]+It?we[0].lineHeight[2]:"normal"),Mt=(0,g.usePrevious)(F),[Nt,Dt]=(0,b.useState)(!!F),{allowResize:Pt=!0}=O;function Lt(e){const t=fe.map(((t,a)=>(0===a&&(t={...t,...e}),t)));o({dropShadow:t})}function At(e){const t=he.map(((t,a)=>(0===a&&(t={...t,...e}),t)));o({boxShadow:t})}const Ut=e=>{const t=we.map(((t,a)=>(0===a&&(t={...t,...e}),t)));o({captionStyles:t})},{image:Wt}=(0,u.useSelect)((e=>{const{getMedia:t}=e(E.store);return{image:V&&s?t(V,{context:"view"}):null}}),[V,s]),{imageSticky:Ft}=(0,u.useSelect)((e=>{const{getMedia:t}=e(E.store);return{image:Je&&s?t(Je,{context:"view"}):null}}),[Je,s]),{imageTransparent:$t}=(0,u.useSelect)((e=>{const{getMedia:t}=e(E.store);return{image:at&&s?t(at,{context:"view"}):null}}),[at,s]),{replaceBlocks:Ht,toggleSelection:Vt}=(0,u.useDispatch)(m.store),{createErrorNotice:Kt,createSuccessNotice:qt}=(0,u.useDispatch)(w.store),Gt=(0,g.useViewportMatch)("medium"),jt=(0,l.includes)(["wide","full"],H),[{naturalWidth:Jt,naturalHeight:Zt},Qt]=(0,b.useState)({}),[Xt,Yt]=(0,b.useState)(!1),[ea,ta]=(0,b.useState)("general"),[aa,ia]=(0,b.useState)(),oa=function(e,t){const[a,i]=(0,b.useState)();function o(){i(e.current.clientWidth)}return(0,b.useEffect)(o,t),(0,b.useEffect)((()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",o),()=>{t.removeEventListener("resize",o)}}),[]),a}(T,[H]),la=!(!ut||!ut.endsWith(".svg")),na=Pt&&!(jt&&Gt)&&!(la&&!Tt),ra=Pt&&!jt,{imageEditing:sa,imageSizes:ca,maxWidth:da,mediaUpload:ga}=(0,u.useSelect)((e=>{const{getSettings:t}=e(m.store);return{...(0,l.pick)(t(),["imageEditing","imageSizes","maxWidth","mediaUpload"])}}),[I]);(0,b.useEffect)((()=>{$(V,L)&&s&&!aa&&window.fetch(L).then((e=>e.blob())).then((e=>ia(e))).catch((()=>{}))}),[V,L,s,aa]),(0,b.useEffect)((()=>{F&&!Mt&&Dt(!0)}),[F,Mt]),(0,b.useEffect)((()=>{if(we[0].letterSpacing&&"number"==typeof we[0].letterSpacing){const e=we[0].letterSpacing;Ut({letterSpacing:[e,"",""]})}else void 0===we[0].letterSpacing&&Ut({letterSpacing:["","",""]})}));const ua=(0,b.useCallback)((e=>{e&&!F&&e.focus()}),[F]);function ma(e){o({url:e.url,id:e.id?e.id:void 0,alt:e?.alt?e.alt:void 0,width:void 0,height:void 0,sizeSlug:void 0}),e?.alt&&Wt?.alt_text&&(Wt.alt_text=e.alt)}function pa(e){o({urlSticky:e.url,idSticky:e.id?e.id:void 0,altSticky:e?.alt?e.alt:void 0,widthSticky:void 0,heightSticky:void 0,sizeSlugSticky:void 0}),e?.alt&&Ft?.alt_text&&(Ft.alt_text=e.alt)}function ba(e){o({urlTransparent:e.url,idTransparent:e.id?e.id:void 0,altTransparent:e?.alt?e.alt:void 0,widthTransparent:void 0,heightTransparent:void 0,sizeSlugTransparent:void 0}),e?.alt&&$t?.alt_text&&($t.alt_text=e.alt)}(0,b.useEffect)((()=>{s||(Yt(!1),F||Dt(!1))}),[s,F]);const ka=!!(a.kadenceDynamic&&a.kadenceDynamic.url&&a.kadenceDynamic.url.enable),va=!!(a.kadenceDynamic&&a.kadenceDynamic.link&&a.kadenceDynamic.link.enable),ha=V&&Jt&&Zt&&sa&&!ka&&!la,ya=ha&&!Xt,fa=["url","id","caption","alt"],_a="gradient"===$e?Ve:(0,y.KadenceColorOutput)(He),Sa=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.BlockControls,{group:"block"},(0,r.createElement)(m.BlockAlignmentControl,{value:H,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};o({...t,align:e})}}),Se&&(0,r.createElement)(p.ToolbarButton,{onClick:()=>{Dt(!Nt),Nt&&F&&o({caption:void 0})},icon:f,isPressed:Nt,label:Nt?(0,i.__)("Remove caption","kadence-blocks"):(0,i.__)("Add caption","kadence-blocks")}),!Xt&&!ka&&!va&&(0,r.createElement)(h.KadenceImageURLInputUI,{url:Be||"",onChangeUrl:e=>o({link:e}),linkDestination:Me,mediaUrl:Wt&&Wt.source_url||L,mediaLink:Wt&&Wt.link,onChangeLinkDestination:e=>o({linkDestination:e}),onChangeAttribute:e=>o(e),additionalControls:!0,opensInNewTab:void 0!==ze&&ze,onChangeTarget:e=>o({linkTarget:e}),linkNoFollow:void 0!==Ie&&Ie,onChangeFollow:e=>o({linkNoFollow:e}),linkSponsored:void 0!==Re&&Re,onChangeSponsored:e=>o({linkSponsored:e}),allowClear:!0,dynamicAttribute:"link",isSelected:s,attributes:a,setAttributes:o,name:"kadence/image",clientId:I,context:O}),ya&&(0,r.createElement)(p.ToolbarButton,{onClick:()=>Yt(!0),icon:_,label:(0,i.__)("Crop","kadence-blocks")}),aa&&!ka&&(0,r.createElement)(p.ToolbarButton,{onClick:function(){ga({filesList:[aa],onFileChange([e]){v(e),(0,d.isBlobURL)(e.url)||(ia(),qt((0,i.__)("Image uploaded.","kadence-blocks"),{type:"snackbar"}))},allowedTypes:U,onError(e){Kt(e,{type:"snackbar"})}})},icon:S,label:(0,i.__)("Upload external image","kadence-blocks")})),(0,r.createElement)(m.BlockControls,null,(0,r.createElement)(h.CopyPasteAttributes,{attributes:a,excludedAttrs:fa,defaultAttributes:B.attributes,blockSlug:B.name,onPaste:e=>o(e)})),!Xt&&!ka&&(0,r.createElement)(m.BlockControls,{group:"other"},(0,r.createElement)(m.MediaReplaceFlow,{mediaId:V,mediaURL:L,allowedTypes:U,accept:"image/*",onSelect:v,onSelectURL:C,onError:x})),(0,r.createElement)(m.InspectorControls,null,(0,r.createElement)(h.InspectorControlTabs,{panelName:"image",setActiveTab:ta,activeTab:ea}),"general"===ea&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Image settings","kadence-blocks"),initialOpen:!0,panelName:"kb-image-settings"},(0,r.createElement)(h.KadenceImageControl,{label:(0,i.__)("Image","kadence-blocks"),hasImage:!!L,imageURL:L||"",imageID:V,onRemoveImage:function(){o({url:void 0,id:void 0,width:void 0,height:void 0,sizeSlug:void 0})},onSaveImage:ma,disableMediaButtons:!!L,dynamicAttribute:"url",isSelected:s,attributes:a,setAttributes:o,name:"kadence/image",clientId:I,context:O}),V&&(0,r.createElement)(h.ImageSizeControl,{label:(0,i.__)("Image File Size","kadence-blocks"),id:V,url:L,fullSelection:!0,selectByValue:!0,onChange:function(e){o({url:e.value,width:void 0,height:void 0,sizeSlug:e.slug,imgMaxWidth:void 0,imgMaxWidthTablet:void 0,imgMaxWidthMobile:void 0})}}),(0,r.createElement)(p.ToggleControl,{label:(0,i.__)("Use fixed ratio instead of image ratio","kadence-blocks"),checked:J,onChange:e=>o({useRatio:e})}),J&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Size Ratio","kadence-blocks"),value:Z,options:[{label:(0,i.__)("Landscape 4:3","kadence-blocks"),value:"land43"},{label:(0,i.__)("Landscape 3:2","kadence-blocks"),value:"land32"},{label:(0,i.__)("Landscape 16:9","kadence-blocks"),value:"land169"},{label:(0,i.__)("Landscape 2:1","kadence-blocks"),value:"land21"},{label:(0,i.__)("Landscape 3:1","kadence-blocks"),value:"land31"},{label:(0,i.__)("Landscape 4:1","kadence-blocks"),value:"land41"},{label:(0,i.__)("Portrait 3:4","kadence-blocks"),value:"port34"},{label:(0,i.__)("Portrait 2:3","kadence-blocks"),value:"port23"},{label:(0,i.__)("Square 1:1","kadence-blocks"),value:"square"}],onChange:e=>o({ratio:e})}),(0,r.createElement)(h.KadenceFocalPicker,{url:L||"",value:st||"center center",onChange:e=>o({imagePosition:e})})),ra&&(0,r.createElement)(h.ResponsiveRangeControls,{label:(0,i.__)("Max Image Width","kadence-blocks"),value:Q||"",onChange:e=>o({imgMaxWidth:e}),tabletValue:X||"",onChangeTablet:e=>o({imgMaxWidthTablet:e}),mobileValue:Y||"",onChangeMobile:e=>o({imgMaxWidthMobile:e}),min:5,max:3e3,step:1,unit:"px",showUnit:!0,units:["px"],reset:()=>o({imgMaxWidth:"",imgMaxWidthTablet:"",imgMaxWidthMobile:""})}),(!Ge||!Wt)&&(0,r.createElement)(p.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","kadence-blocks"),value:A,onChange:function(e){o({alt:e})},help:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,i.__)("Describe the purpose of the image","kadence-blocks")),(0,i.__)("Leave empty if the image is purely decorative.","kadence-blocks"))}),Ge&&Wt&&(0,r.createElement)("div",{className:"components-base-control"},(0,r.createElement)(p.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","kadence-blocks"),value:Wt?.alt_text?Wt.alt_text:"",onChange:e=>console.log(e),disabled:!0,className:"mb-0"}),(0,r.createElement)(m.MediaUpload,{onSelect:ma,type:"image",value:V||"",render:({open:e})=>(0,r.createElement)(p.Button,{text:(0,i.__)("Edit Image Alt Text","kadence-blocks"),variant:"link",onClick:e})})),(0,r.createElement)(p.ToggleControl,{label:(0,i.__)("Dynamic Alt Text","kadence-blocks"),help:(0,i.__)("This makes it so alt text changed in the media library automatically updates on your website without needing to update this block.","kadence-blocks"),checked:Ge,onChange:e=>o({globalAlt:e})}),(0,r.createElement)(p.TextControl,{label:(0,i.__)("Title attribute","kadence-blocks"),value:K||"",onChange:function(e){o({title:e})},help:(0,r.createElement)(r.Fragment,null,(0,i.__)("Describe the role of this image on the page.","kadence-blocks"),(0,r.createElement)(p.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,i.__)("(Note: many devices and browsers do not display this text.)","kadence-blocks")))})),"1"==O?.["kadence/headerIsSticky"]&&(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Sticky Image settings","kadence-blocks"),initialOpen:!0,panelName:"kb-image-sticky-settings"},(0,r.createElement)(h.KadenceImageControl,{label:(0,i.__)("Image","kadence-blocks"),hasImage:!!je,imageURL:je||"",imageID:Je,onRemoveImage:function(){o({urlSticky:void 0,idSticky:void 0,widthSticky:void 0,heightSticky:void 0,sizeSlugSticky:void 0})},onSaveImage:pa,disableMediaButtons:!!je,dynamicAttribute:"urlSticky",isSelected:s,attributes:a,setAttributes:o,name:"kadence/image",clientId:I,context:O}),Je&&(0,r.createElement)(h.ImageSizeControl,{label:(0,i.__)("Image File Size","kadence-blocks"),id:Je,url:je,fullSelection:!0,selectByValue:!0,onChange:function(e){o({urlSticky:e.value,widthSticky:void 0,heightSticky:void 0,sizeSlugSticky:e.slug,imgMaxWidthSticky:void 0,imgMaxWidthStickyTablet:void 0,imgMaxWidthStickyMobile:void 0})}}),(!Ge||!Ft)&&(0,r.createElement)(p.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","kadence-blocks"),value:Ze,onChange:e=>o({altSticky:e}),help:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,i.__)("Describe the purpose of the image","kadence-blocks")),(0,i.__)("Leave empty if the image is purely decorative.","kadence-blocks"))}),Ge&&Ft&&(0,r.createElement)("div",{className:"components-base-control"},(0,r.createElement)(p.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","kadence-blocks"),value:Ft?.alt_text?Ft.alt_text:"",onChange:e=>console.log(e),disabled:!0,className:"mb-0"}),(0,r.createElement)(m.MediaUpload,{onSelect:pa,type:"image",value:Je||"",render:({open:e})=>(0,r.createElement)(p.Button,{text:(0,i.__)("Edit Image Alt Text","kadence-blocks"),variant:"link",onClick:e})})),(0,r.createElement)(p.TextControl,{label:(0,i.__)("Title attribute","kadence-blocks"),value:Qe||"",onChange:e=>o({titleSticky:e}),help:(0,r.createElement)(r.Fragment,null,(0,i.__)("Describe the role of this image on the page.","kadence-blocks"),(0,r.createElement)(p.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,i.__)("(Note: many devices and browsers do not display this text.)","kadence-blocks")))})),"1"==O?.["kadence/headerIsTransparent"]&&(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Transparent Image settings","kadence-blocks"),initialOpen:!0,panelName:"kb-image-transparent-settings"},(0,r.createElement)(h.KadenceImageControl,{label:(0,i.__)("Image","kadence-blocks"),hasImage:!!tt,imageURL:tt||"",imageID:at,onRemoveImage:function(){o({urlTransparent:void 0,idTransparent:void 0,widthTransparent:void 0,heightTransparent:void 0,sizeSlugTransparent:void 0})},onSaveImage:ba,disableMediaButtons:!!tt,dynamicAttribute:"urlTransparent",isSelected:s,attributes:a,setAttributes:o,name:"kadence/image",clientId:I,context:O}),at&&(0,r.createElement)(h.ImageSizeControl,{label:(0,i.__)("Image File Size","kadence-blocks"),id:at,url:tt,fullSelection:!0,selectByValue:!0,onChange:function(e){o({urlTransparent:e.value,widthTransparent:void 0,heightTransparent:void 0,sizeSlugTransparent:e.slug,imgMaxWidthTransparent:void 0,imgMaxWidthTransparentTablet:void 0,imgMaxWidthTransparentMobile:void 0})}}),(!Ge||!$t)&&(0,r.createElement)(p.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","kadence-blocks"),value:it,onChange:e=>o({altTransparent:e}),help:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,i.__)("Describe the purpose of the image","kadence-blocks")),(0,i.__)("Leave empty if the image is purely decorative.","kadence-blocks"))}),Ge&&$t&&(0,r.createElement)("div",{className:"components-base-control"},(0,r.createElement)(p.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","kadence-blocks"),value:$t?.alt_text?$t.alt_text:"",onChange:e=>console.log(e),disabled:!0,className:"mb-0"}),(0,r.createElement)(m.MediaUpload,{onSelect:ba,type:"image",value:at||"",render:({open:e})=>(0,r.createElement)(p.Button,{text:(0,i.__)("Edit Image Alt Text","kadence-blocks"),variant:"link",onClick:e})})),(0,r.createElement)(p.TextControl,{label:(0,i.__)("Title attribute","kadence-blocks"),value:ot||"",onChange:e=>o({titleTransparent:e}),help:(0,r.createElement)(r.Fragment,null,(0,i.__)("Describe the role of this image on the page.","kadence-blocks"),(0,r.createElement)(p.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,i.__)("(Note: many devices and browsers do not display this text.)","kadence-blocks")))})),(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Link Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-image-link-settings"},(0,r.createElement)(h.URLInputControl,{label:(0,i.__)("Image Link","kadence-blocks"),url:Be,onChangeUrl:e=>o({link:e}),additionalControls:!0,opensInNewTab:void 0!==ze&&ze,onChangeTarget:e=>o({linkTarget:e}),linkNoFollow:void 0!==Ie&&Ie,onChangeFollow:e=>o({linkNoFollow:e}),linkSponsored:void 0!==Re&&Re,onChangeSponsored:e=>o({linkSponsored:e}),allowClear:!0,linkTitle:Ne,onChangeTitle:e=>{o({linkTitle:e})},dynamicAttribute:"link",isSelected:s,attributes:a,setAttributes:o,name:"kadence/image",clientId:I,context:O}))),"style"===ea&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.KadencePanelBody,{panelName:"kb-image-border-settings"},(0,r.createElement)(h.PopColorControl,{label:(0,i.__)("Background Color","kadence-blocks"),value:ce||"",default:"",onChange:e=>{o({backgroundColor:e})}}),(0,r.createElement)(h.ResponsiveBorderControl,{label:(0,i.__)("Border","kadence-blocks"),value:Ae,tabletValue:Ue,mobileValue:We,onChange:e=>o({borderStyle:e}),onChangeTablet:e=>o({tabletBorderStyle:e}),onChangeMobile:e=>o({mobileBorderStyle:e})}),(0,r.createElement)(h.ResponsiveMeasurementControls,{label:(0,i.__)("Border Radius","kadence-blocks"),value:ge,tabletValue:Pe,mobileValue:Le,onChange:e=>o({borderRadius:e}),onChangeTablet:e=>o({tabletBorderRadius:e}),onChangeMobile:e=>o({mobileBorderRadius:e}),min:0,max:"em"===me||"rem"===me?24:200,step:"em"===me||"rem"===me?.1:1,unit:me,units:["px","em","rem","%"],onUnit:e=>o({borderRadiusUnit:e}),isBorderRadius:!0,allowEmpty:!0}),(0,r.createElement)(h.BoxShadowControl,{label:(0,i.__)("Box Shadow","kadence-blocks"),enable:void 0!==ve&&ve,color:void 0!==he&&void 0!==he[0]&&void 0!==he[0].color?he[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>At({color:e,opacity:t}),opacity:void 0!==he&&void 0!==he[0]&&void 0!==he[0].opacity?he[0].opacity:.2,hOffset:void 0!==he&&void 0!==he[0]&&void 0!==he[0].hOffset?he[0].hOffset:0,vOffset:void 0!==he&&void 0!==he[0]&&void 0!==he[0].vOffset?he[0].vOffset:0,blur:void 0!==he&&void 0!==he[0]&&void 0!==he[0].blur?he[0].blur:14,spread:void 0!==he&&void 0!==he[0]&&void 0!==he[0].spread?he[0].spread:0,inset:void 0!==he&&void 0!==he[0]&&void 0!==he[0].inset&&he[0].inset,onEnableChange:e=>{o({displayBoxShadow:e})},onColorChange:e=>{At({color:e})},onOpacityChange:e=>{At({opacity:e})},onHOffsetChange:e=>{At({hOffset:e})},onVOffsetChange:e=>{At({vOffset:e})},onBlurChange:e=>{At({blur:e})},onSpreadChange:e=>{At({spread:e})},onInsetChange:e=>{At({inset:e})}}),(0,r.createElement)(h.DropShadowControl,{label:(0,i.__)("Drop Shadow","kadence-blocks"),enable:void 0!==ye&&ye,color:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].color?fe[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>Lt({color:e,opacity:t}),opacity:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].opacity?fe[0].opacity:.2,hOffset:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].hOffset?fe[0].hOffset:0,vOffset:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].vOffset?fe[0].vOffset:0,blur:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].blur?fe[0].blur:14,onEnableChange:e=>{o({displayDropShadow:e})},onColorChange:e=>{Lt({color:e})},onOpacityChange:e=>{Lt({opacity:e})},onHOffsetChange:e=>{Lt({hOffset:e})},onVOffsetChange:e=>{Lt({vOffset:e})},onBlurChange:e=>{Lt({blur:e})}}),(0,r.createElement)("p",{className:"kb-sidebar-help"},(0,i.__)("Learn about the differences:","kadence-blocks"),(0,r.createElement)("br",null),(0,r.createElement)(p.ExternalLink,{href:"https://css-tricks.com/breaking-css-box-shadow-vs-drop-shadow/"},(0,i.__)("Box Shadow vs. Drop Shadow","kadence-blocks")))),(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Mask Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-image-mask-settings"},(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Mask Shape","kadence-blocks"),options:[{label:(0,i.__)("None","kadence-blocks"),value:"none"},{label:(0,i.__)("Circle","kadence-blocks"),value:"circle"},{label:(0,i.__)("Diamond","kadence-blocks"),value:"diamond"},{label:(0,i.__)("Hexagon","kadence-blocks"),value:"hexagon"},{label:(0,i.__)("Rounded","kadence-blocks"),value:"rounded"},{label:(0,i.__)("Blob 1","kadence-blocks"),value:"blob1"},{label:(0,i.__)("Blob 2","kadence-blocks"),value:"blob2"},{label:(0,i.__)("Blob 3","kadence-blocks"),value:"blob3"},{label:(0,i.__)("Custom","kadence-blocks"),value:"custom"}],value:Ee,onChange:e=>o({maskSvg:e})}),"custom"===Ee&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.KadenceImageControl,{label:(0,i.__)("Custom Mask Image","kadence-blocks"),hasImage:!!Oe,imageURL:Oe||"",imageID:"",onRemoveImage:()=>{o({maskUrl:void 0})},onSaveImage:e=>{o({maskUrl:e.url})},disableMediaButtons:!!Oe}),(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Mask Size","kadence-blocks"),options:[{label:(0,i.__)("Auto","kadence-blocks"),value:"auto"},{label:(0,i.__)("Contain","kadence-blocks"),value:"contain"},{label:(0,i.__)("Cover","kadence-blocks"),value:"cover"}],value:Ce,onChange:e=>o({maskSize:e})}),(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Mask Position","kadence-blocks"),options:[{value:"center top",label:(0,i.__)("Center Top","kadence-blocks")},{value:"center center",label:(0,i.__)("Center Center","kadence-blocks")},{value:"center bottom",label:(0,i.__)("Center Bottom","kadence-blocks")},{value:"left top",label:(0,i.__)("Left Top","kadence-blocks")},{value:"left center",label:(0,i.__)("Left Center","kadence-blocks")},{value:"left bottom",label:(0,i.__)("Left Bottom","kadence-blocks")},{value:"right top",label:(0,i.__)("Right Top","kadence-blocks")},{value:"right center",label:(0,i.__)("Right Center","kadence-blocks")},{value:"right bottom",label:(0,i.__)("Right Bottom","kadence-blocks")}],value:xe,onChange:e=>o({maskPosition:e})}),(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Mask Repeat","kadence-blocks"),options:[{value:"no-repeat",label:(0,i.__)("No Repeat","kadence-blocks")},{value:"repeat",label:(0,i.__)("Repeat","kadence-blocks")},{value:"repeat-x",label:(0,i.__)("Repeat-x","kadence-blocks")},{value:"repeat-y",label:(0,i.__)("Repeat-y","kadence-blocks")}],value:Te,onChange:e=>o({maskRepeat:e})}))),(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Caption Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-image-caption-settings"},(0,r.createElement)(p.ToggleControl,{label:(0,i.__)("Enable Caption","kadence-blocks"),checked:Se,onChange:e=>o({showCaption:e})}),Se&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.PopColorControl,{label:(0,i.__)("Caption Color","kadence-blocks"),value:we&&we[0]&&we[0].color?we[0].color:"",default:"",onChange:e=>Ut({color:e})}),(0,r.createElement)(h.TypographyControls,{fontGroup:"body",fontSize:we[0].size,onFontSize:e=>Ut({size:e}),fontSizeType:we[0].sizeType,onFontSizeType:e=>Ut({sizeType:e}),lineHeight:we[0].lineHeight,onLineHeight:e=>Ut({lineHeight:e}),lineHeightType:we[0].lineType,onLineHeightType:e=>Ut({lineType:e}),reLetterSpacing:[we[0].letterSpacing[0],we[0].letterSpacing[1],we[0].letterSpacing[2]],onLetterSpacing:e=>Ut({letterSpacing:e}),textTransform:we[0].textTransform,onTextTransform:e=>Ut({textTransform:e}),fontFamily:we[0].family,onFontFamily:e=>Ut({family:e}),onFontChange:e=>{Ut({family:e.value,google:e.google})},onFontArrayChange:e=>Ut(e),googleFont:we[0].google,onGoogleFont:e=>Ut({google:e}),loadGoogleFont:we[0].loadGoogle,onLoadGoogleFont:e=>Ut({loadGoogle:e}),fontVariant:we[0].variant,onFontVariant:e=>Ut({variant:e}),fontWeight:we[0].weight,onFontWeight:e=>Ut({weight:e}),fontStyle:we[0].style,onFontStyle:e=>Ut({style:e}),fontSubset:we[0].subset,onFontSubset:e=>Ut({subset:e})}))),(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Image Filter","kadence-blocks"),initialOpen:!1,panelName:"kb-image-filter"},(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Image Filter","kadence-blocks"),help:(0,i.__)("Not supported in Internet Explorer","kadence-blocks"),options:[{label:(0,i.__)("None","kadence-blocks"),value:"none"},{label:(0,i.__)("Grayscale","kadence-blocks"),value:"grayscale"},{label:(0,i.__)("Sepia","kadence-blocks"),value:"sepia"},{label:(0,i.__)("Saturation","kadence-blocks"),value:"saturation"},{label:(0,i.__)("Vintage","kadence-blocks"),value:"vintage"},{label:(0,i.__)("Earlybird","kadence-blocks"),value:"earlybird"},{label:(0,i.__)("Toaster","kadence-blocks"),value:"toaster"},{label:(0,i.__)("Mayfair","kadence-blocks"),value:"mayfair"}],value:_e,onChange:e=>o({imageFilter:e})})),(0,y.showSettings)("overlay","kadence/image")&&(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Overlay Color","kadence-blocks"),initialOpen:!1,panelName:"kb-image-overlay-settings"},(0,r.createElement)(h.BackgroundTypeControl,{label:(0,i.__)("Type","kadence-blocks"),type:$e||"normal",onChange:e=>o({overlayType:e}),allowedTypes:["normal","gradient"]}),(0,r.createElement)(p.RangeControl,{label:(0,i.__)("Overlay Opacity","kadence-blocks"),value:Ke,onChange:e=>{o({overlayOpacity:e})},step:.01,min:0,max:1,reset:!0}),"gradient"===$e&&(0,r.createElement)(h.GradientControl,{value:Ve,onChange:e=>o({overlayGradient:e}),gradients:[]}),"gradient"!==$e&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.PopColorControl,{label:(0,i.__)("Color","kadence-blocks"),value:He||"",default:"",onChange:e=>o({overlay:e})})),(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Blend Mode","kadence-blocks"),value:qe||"none",options:W,onChange:e=>o({overlayBlendMode:e})}),(0,r.createElement)("p",null,(0,i.__)("Notice: Blend Mode not supported in all browsers","kadence-blocks")))),"advanced"===ea&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.KadencePanelBody,null,(0,r.createElement)(h.ResponsiveMeasureRangeControl,{label:(0,i.__)("Padding","kadence-blocks"),value:le,tabletValue:ne,mobileValue:re,onChange:e=>o({paddingDesktop:e}),onChangeTablet:e=>o({paddingTablet:e}),onChangeMobile:e=>o({paddingMobile:e}),min:0,max:"em"===se||"rem"===se?24:999,step:"em"===se||"rem"===se?.1:1,unit:se,units:["px","em","rem","%"],onUnit:e=>o({paddingUnit:e}),onMouseOver:P.onMouseOver,onMouseOut:P.onMouseOut}),(0,r.createElement)(h.ResponsiveMeasureRangeControl,{label:(0,i.__)("Margin","kadence-blocks"),value:te,tabletValue:ae,mobileValue:ie,onChange:e=>{o({marginDesktop:e})},onChangeTablet:e=>o({marginTablet:e}),onChangeMobile:e=>o({marginMobile:e}),min:"em"===oe||"rem"===oe?-12:-999,max:"em"===oe||"rem"===oe?24:999,step:"em"===oe||"rem"===oe?.1:1,unit:oe,units:["px","em","rem","%","vh"],onUnit:e=>o({marginUnit:e}),onMouseOver:D.onMouseOver,onMouseOut:D.onMouseOut,allowAuto:!0})),(0,r.createElement)("div",{className:"kt-sidebar-settings-spacer"}),(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Tooltip","kadence-blocks"),initialOpen:!1,panelName:"kb-image-tooltip-settings"},(0,r.createElement)(p.TextareaControl,{label:(0,i.__)("Tooltip Content","kadence-blocks"),value:ct,onChange:e=>o({tooltip:e})}),(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Tooltip Placement","kadence-blocks"),value:dt||"top",options:[{label:(0,i.__)("Top","kadence-blocks"),value:"top"},{label:(0,i.__)("Top Start","kadence-blocks"),value:"top-start"},{label:(0,i.__)("Top End","kadence-blocks"),value:"top-end"},{label:(0,i.__)("Right","kadence-blocks"),value:"right"},{label:(0,i.__)("Right Start","kadence-blocks"),value:"right-start"},{label:(0,i.__)("Right End","kadence-blocks"),value:"right-end"},{label:(0,i.__)("Bottom","kadence-blocks"),value:"bottom"},{label:(0,i.__)("Bottom Start","kadence-blocks"),value:"bottom-start"},{label:(0,i.__)("Bottom End","kadence-blocks"),value:"bottom-end"},{label:(0,i.__)("Left","kadence-blocks"),value:"left"},{label:(0,i.__)("Left Start","kadence-blocks"),value:"left-start"},{label:(0,i.__)("Left End","kadence-blocks"),value:"left-end"},{label:(0,i.__)("Auto","kadence-blocks"),value:"auto"},{label:(0,i.__)("Auto Start","kadence-blocks"),value:"auto-start"},{label:(0,i.__)("Auto End","kadence-blocks"),value:"auto-end"}],onChange:e=>{o({tooltipPlacement:e})}}),(0,r.createElement)(p.ToggleControl,{label:(0,i.__)("Show indicator underline","kadence-blocks"),checked:gt,onChange:e=>{o({tooltipDash:e})}})),(0,r.createElement)(h.KadenceBlockDefaults,{attributes:a,defaultAttributes:B.attributes,blockSlug:B.name,excludedAttrs:fa}))),(0,r.createElement)(m.InspectorAdvancedControls,null,(0,r.createElement)(p.ToggleControl,{label:(0,i.__)("Prevent Lazy Load","kadence-blocks"),help:(0,i.__)("This adds a class to tell lazy load plugins to skip this image for lazy load.","kadence-blocks"),checked:Fe,onChange:e=>o({preventLazyLoad:e})}),(0,r.createElement)(p.RangeControl,{label:(0,i.__)("Z-Index Control","kadence-blocks"),value:De,onChange:e=>{o({zIndex:e})},min:-200,max:2e3,allowReset:!0})));let wa=!1;(Ke&&He&&$e&&"gradient"!==$e||Ke&&Ve&&$e&&"gradient"===$e)&&(wa=!0);const Ea=(e=>{let t;try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch(e){}if(t)return t})(L);let Ca;Ca=A||(Ea?(0,i.sprintf)(/* translators: %s: file name */ /* translators: %s: file name */
(0,i.__)("This image has an empty alt attribute; its file name is %s","kadence-blocks"),Ea):(0,i.__)("This image has an empty alt attribute","kadence-blocks"));let xa=!1,Ta="no-repeat",Oa="auto",Ba="center center";"custom"===Ee?Oe&&(xa=!0,Ta=Te||"no-repeat",Oa=Ce||"auto",Ba=xe||"center center"):"none"!==Ee&&(xa=!0);let za,Ia,Ra=(0,r.createElement)("div",{className:!J&&wa?"kb-image-has-overlay":""},(0,r.createElement)("img",{src:e||ut,alt:Ca,width:void 0!==Jt&&Jt&&la&&!Tt?Jt:void 0,height:void 0!==Zt&&Zt&&la&&!Tt?Zt:void 0,style:{WebkitMaskImage:xa?"url("+("custom"===Ee?Oe:kadence_blocks_params.svgMaskPath+Ee+".svg")+")":void 0,WebkitMaskRepeat:xa?Ta:void 0,WebkitMaskSize:xa?Oa:void 0,WebkitMaskPosition:xa?Ba:void 0,maskImage:xa?"url("+("custom"===Ee?Oe:kadence_blocks_params.svgMaskPath+Ee+".svg")+")":void 0,maskRepeat:xa?Ta:void 0,maskSize:xa?Oa:void 0,maskPosition:xa?Ba:void 0,paddingTop:J||""===bt?void 0:(0,y.getSpacingOptionOutput)(bt,se),paddingRight:J||""===kt?void 0:(0,y.getSpacingOptionOutput)(kt,se),paddingBottom:J||""===vt?void 0:(0,y.getSpacingOptionOutput)(vt,se),paddingLeft:J||""===ht?void 0:(0,y.getSpacingOptionOutput)(ht,se),borderTop:yt||void 0,borderRight:ft||void 0,borderBottom:_t||void 0,borderLeft:St||void 0,borderTopLeftRadius:""!==wt?wt+(me||"px"):void 0,borderTopRightRadius:""!==Et?Et+(me||"px"):void 0,borderBottomRightRadius:""!==Ct?Ct+(me||"px"):void 0,borderBottomLeftRadius:""!==xt?xt+(me||"px"):void 0,backgroundColor:""!==ce?(0,y.KadenceColorOutput)(ce):void 0,boxShadow:void 0!==ve&&ve&&void 0!==he&&void 0!==he[0]&&void 0!==he[0].color?(void 0!==he[0].inset&&he[0].inset?"inset ":"")+(void 0!==he[0].hOffset?he[0].hOffset:0)+"px "+(void 0!==he[0].vOffset?he[0].vOffset:0)+"px "+(void 0!==he[0].blur?he[0].blur:14)+"px "+(void 0!==he[0].spread?he[0].spread:0)+"px "+(0,y.KadenceColorOutput)(void 0!==he[0].color?he[0].color:"#000000",void 0!==he[0].opacity?he[0].opacity:.2):void 0,filter:void 0!==ye&&ye?"drop-shadow("+(void 0!==ye&&ye&&void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].color?(void 0!==fe[0].hOffset?fe[0].hOffset:0)+"px "+(void 0!==fe[0].vOffset?fe[0].vOffset:0)+"px "+(void 0!==fe[0].blur?fe[0].blur:14)+"px "+(0,y.KadenceColorOutput)(void 0!==fe[0].color?fe[0].color:"#000000",void 0!==fe[0].opacity?fe[0].opacity:.2):void 0)+")":void 0,objectPosition:st||void 0},onError:()=>function(){const e=((e,t={})=>{const{preview:a,attributes:i={}}=e,{url:o,providerNameSlug:l,type:r,...s}=i;if(!o||!(0,n.getBlockType)(z))return;const c=(e=>(0,n.getBlockVariations)(z)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(o),d="wordpress"===l||r===R;if(!d&&c&&(c.attributes.providerNameSlug!==l||!l))return(0,n.createBlock)(z,{url:o,...s,...c.attributes});const g=(0,n.getBlockVariations)(z)?.find((({name:e})=>"wordpress"===e));return g&&a&&M(a.html)&&!d?(0,n.createBlock)(z,{url:o,...g.attributes,...t}):void 0})({attributes:{url:L}});void 0!==e&&k(e)}(),onLoad:e=>{Qt((0,l.pick)(e.target,["naturalWidth","naturalHeight"]));const{naturalWidth:t,naturalHeight:a}=(0,l.pick)(e.target,["naturalWidth","naturalHeight"]),{width:i,height:o}=(0,l.pick)(e.target,["width","height"]);150==t&&150==a&&150!=i&&150!=o&&Qt({naturalWidth:0,naturalHeight:0})},className:"kb-img "+(gt&&ct?" kb-image-tooltip-border":"")}),e&&(0,r.createElement)(p.Spinner,null),!J&&(0,r.createElement)(h.SpacingVisualizer,{type:"inside",forceShow:P.isMouseOver,spacing:[(0,y.getSpacingOptionOutput)(bt,se),(0,y.getSpacingOptionOutput)(kt,se),(0,y.getSpacingOptionOutput)(vt,se),(0,y.getSpacingOptionOutput)(ht,se)]}));if(J&&(Ra=(0,r.createElement)("div",{className:`kb-is-ratio-image kb-image-ratio-${Z||"land43"}${wa?" kb-image-has-overlay":""}`},Ra)),oa&&Jt&&Zt){const e=Jt>oa;za=e?oa:Jt,Ia=e?oa*(Zt/Jt):Zt}if(ha&&Xt)Ra=(0,r.createElement)(m.__experimentalImageEditor,{id:V,url:ut,width:q,height:G,clientWidth:oa,naturalHeight:Zt,naturalWidth:Jt,onSaveImage:e=>o(e),onFinishEditing:()=>{Yt(!1)}});else if(na&&za&&"Desktop"===N){const e=J?"100%":"auto",t=Tt||q||za;let a=Jt/Zt;if(J)switch(Z){case"land43":a=4/3;break;case"land32":a=1.5;break;case"land169":a=16/9;break;case"land21":a=2;break;case"land31":a=3;break;case"land41":a=4;break;case"port34":a=3/4;break;case"port23":a=2/3;break;case"port916":a=9/16;break;case"square":a=1}const l=Jt<Zt?20:20*a,n=Zt<Jt?20:20/a,c=2.5*da;let d=!1,g=!1;"center"===H?(d=!0,g=!0):(0,i.isRTL)()?"left"===H?d=!0:g=!0:"right"===H?g=!0:d=!0,Ra=(0,r.createElement)(p.ResizableBox,{size:{width:Tt&&""!==Tt?Tt:e,height:"auto"},showHandle:s,minWidth:l,maxWidth:c,minHeight:n,maxHeight:c/a,lockAspectRatio:!0,enable:{top:!1,right:d,bottom:!1,left:g},onResizeStart:function(){Vt(!1)},onResizeStop:(e,a,i,l)=>{Vt(!0),o({imgMaxWidth:parseInt(t+l.width,10)})},style:{margin:"center"===H?"0 auto":void 0}},Ra)}else Ra=(0,r.createElement)("div",{className:"kb-image-wrap",style:{maxWidth:Tt||q,width:Tt?"100%":void 0}},Ra);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("style",null,void 0!==Ke&&""!==Ke?`.kadence-image${ee} .kb-image-has-overlay:after { opacity: ${Ke} }`:"",qe?`.kadence-image${ee} .kb-image-has-overlay:after { mix-blend-mode: ${qe}; }`:"",_a?`.kadence-image${ee} .kb-image-has-overlay:after { background:${_a}; }`:"",_a&&wt?`.kadence-image${ee} .kb-image-has-overlay:after { border-top-left-radius:${wt}${me}; }`:"",_a&&Et?`.kadence-image${ee} .kb-image-has-overlay:after { border-top-right-radius:${Et}${me}; }`:"",_a&&Ct?`.kadence-image${ee} .kb-image-has-overlay:after { border-bottom-right-radius:${Ct}${me}; }`:"",_a&&xt?`.kadence-image${ee} .kb-image-has-overlay:after { border-bottom-left-radius:${xt}${me}; }`:"",Tt?`.kadence-inner-column-inner:where(.section-is-flex) > .kadence-image${ee} { max-width: ${Tt}px; }`:""),!e&&Sa,Ra,(!m.RichText.isEmpty(F)||s)&&Nt&&!1!==Se&&(0,r.createElement)(m.RichText,{ref:ua,tagName:"figcaption","aria-label":(0,i.__)("Image caption text","kadence-blocks"),placeholder:(0,i.__)("Add caption","kadence-blocks"),value:F,onChange:e=>o({caption:e}),style:{color:we&&void 0!==we[0]&&void 0!==we[0].color?(0,y.KadenceColorOutput)(we[0].color):void 0,fontFamily:we&&void 0!==we[0]&&void 0!==we[0].family?we[0].family:void 0,fontStyle:we&&void 0!==we[0]&&void 0!==we[0].style?we[0].style:void 0,fontWeight:we&&void 0!==we[0]&&void 0!==we[0].weight?we[0].weight:void 0,textTransform:we&&void 0!==we[0]&&void 0!==we[0].textTransform?we[0].textTransform:void 0,letterSpacing:zt,lineHeight:Rt,fontSize:(0,y.getFontSizeOptionOutput)(Bt,Ot)},inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c((0,n.createBlock)("core/paragraph"))}),we[0].google&&we[0].family&&(0,r.createElement)(h.KadenceWebfontLoader,{typography:[{family:we[0].family,variant:we[0].variant?we[0].variant:""}],clientId:I,id:"advancedImage"}))}const $=(e,t)=>t&&!e&&!(0,d.isBlobURL)(t),H=(0,g.compose)([p.withNotices])((function(e){const{attributes:t,setAttributes:a,isSelected:n,className:s,noticeUI:g,insertBlocksAfter:p,noticeOperations:k,onReplace:f,context:_,clientId:S}=e,{url:w="",alt:E,caption:C,align:x,id:T,width:O,height:B,uniqueID:z,sizeSlug:I,imageFilter:R,useRatio:M,imgMaxWidth:N,zIndex:W,kadenceAnimation:H,kadenceAOSOptions:V,border:K,borderColor:q,borderStyle:G,borderWidthDesktop:j,mobileBorderStyle:J,borderWidthMobile:Z,tabletBorderStyle:Q,borderWidthTablet:X,marginDesktop:Y,marginTablet:ee,marginMobile:te,marginUnit:ae,paddingDesktop:ie,paddingTablet:oe,paddingMobile:le,paddingUnit:ne,inQueryBlock:re,urlTransparent:se}=t,ce=(0,l.debounce)(y.setDynamicState,200),{addUniqueID:de}=(0,u.useDispatch)("kadenceblocks/data"),{isUniqueID:ge,isUniqueBlock:ue,previewDevice:me,parentData:pe}=(0,u.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(S)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(S,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[S]);(0,b.useEffect)((()=>{(0,y.setBlockDefaults)("kadence/image",t);const i=(0,y.getPostOrFseId)(e,pe),o=(0,y.getUniqueId)(z,S,ge,ue,i);o!==z?(t.uniqueID=o,a({uniqueID:o}),de(o,S)):de(z,S),a({inQueryBlock:(0,y.getInQueryBlock)(_,re)});const l=JSON.parse(JSON.stringify(t.borderStyle?t.borderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let n=!1;void 0!==q&&""!==q&&(l[0].top[0]=q,l[0].right[0]=q,l[0].bottom[0]=q,l[0].left[0]=q,n=!0,a({borderColor:""})),""===j?.[0]&&""===j?.[1]&&""===j?.[2]&&""===j?.[3]||(l[0].top[2]=j?.[0]||"",l[0].right[2]=j?.[1]||"",l[0].bottom[2]=j?.[2]||"",l[0].left[2]=j?.[3]||"",n=!0,a({borderWidthDesktop:["","","",""]})),n&&a({borderStyle:l});const r=JSON.parse(JSON.stringify(t.tabletBorderStyle?t.tabletBorderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));if(""!==X?.[0]||""!==X?.[1]||""!==X?.[2]||""!==X?.[3]){r[0].top[2]=X?.[0]||"",r[0].right[2]=X?.[1]||"",r[0].bottom[2]=X?.[2]||"",r[0].left[2]=X?.[3]||"";const e=JSON.parse(JSON.stringify(r));a({tabletBorderStyle:e,borderWidthTablet:["","","",""]})}const s=JSON.parse(JSON.stringify(t.mobileBorderStyle?t.mobileBorderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));""===Z?.[0]&&""===Z?.[1]&&""===Z?.[2]&&""===Z?.[3]||(s[0].top[2]=Z?.[0]||"",s[0].right[2]=Z?.[1]||"",s[0].bottom[2]=Z?.[2]||"",s[0].left[2]=Z?.[3]||"",a({mobileBorderStyle:s,borderWidthMobile:["","","",""]}))}),[]),(0,b.useEffect)((()=>{ce("kadence.dynamicImage","",t,"url",a,_,fe,!w)}),[w,_]);const be=(0,y.mouseOverVisualizer)(),ke=(0,y.mouseOverVisualizer)(),[ve,he]=(0,b.useState)(),[ye,fe]=(0,b.useState)(),_e=(0,b.useRef)();(0,b.useEffect)((()=>{_e.current=E}),[E]);const Se=(0,b.useRef)();(0,b.useEffect)((()=>{Se.current=C}),[C]);const we=(0,b.useRef)(),{imageDefaultSize:Ee,mediaUpload:Ce}=(0,u.useSelect)((e=>{const{getSettings:t}=e(m.store);return(0,l.pick)(t(),["imageDefaultSize","mediaUpload"])}),[]);function xe(e){k.removeAllNotices(),k.createErrorNotice(e)}function Te(e){if(!e||!e.url)return void a({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,d.isBlobURL)(e.url))return void he(e.url);he();let i,o=((e,t)=>{const a=(0,l.pick)(e,["alt","id","link","caption"]);return a.url=(0,l.get)(e,["sizes",t,"url"])||(0,l.get)(e,["media_details","sizes",t,"source_url"])||e.url,a})(e,Ee);var n,r;Se.current&&!(0,l.get)(o,["caption"])&&(o=(0,l.omit)(o,["caption"])),i=e.id&&e.id===T?{url:w}:{width:void 0,height:void 0,sizeSlug:(n=e,r=Ee,(0,l.has)(n,["sizes",r,"url"])||(0,l.has)(n,["media_details","sizes",r,"source_url"])?Ee:"full")};let s,c=t.linkDestination;if(!c)switch(wp?.media?.view?.settings?.defaultProps?.link||D){case"file":case P:c=P;break;case"post":case L:c=L;break;case A:c=A;break;case D:c=D}switch(c){case P:s=e.url;break;case L:s=e.link}o.link=s,a({...o,...i,linkDestination:c})}function Oe(e){e!==w&&a({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:Ee})}let Be=((e,t)=>!e&&(0,d.isBlobURL)(t))(T,w);(0,b.useEffect)((()=>{if(!Be)return;const e=(0,d.getBlobByURL)(w);e&&Ce({filesList:[e],onFileChange:([e])=>{Te(e)},allowedTypes:U,onError:e=>{Be=!1,k.createErrorNotice(e),a({src:void 0,id:void 0,url:void 0})}})}),[]),(0,b.useEffect)((()=>{Be?he(w):(0,d.revokeBlobURL)(ve)}),[Be,w]),$(T,w);const ze=!!w&&(0,r.createElement)("img",{alt:(0,i.__)("Edit image","kadence-blocks"),title:(0,i.__)("Edit image","kadence-blocks"),className:"edit-image-preview",src:w}),Ie=(0,y.getPreviewSize)(me,void 0!==Y?Y[0]:"",void 0!==ee?ee[0]:"",void 0!==te?te[0]:""),Re=(0,y.getPreviewSize)(me,void 0!==Y?Y[1]:"",void 0!==ee?ee[1]:"",void 0!==te?te[1]:""),Me=(0,y.getPreviewSize)(me,void 0!==Y?Y[2]:"",void 0!==ee?ee[2]:"",void 0!==te?te[2]:""),Ne=(0,y.getPreviewSize)(me,void 0!==Y?Y[3]:"",void 0!==ee?ee[3]:"",void 0!==te?te[3]:""),De=(0,y.getPreviewSize)(me,void 0!==ie?ie[0]:"",void 0!==oe?oe[0]:"",void 0!==le?le[0]:""),Pe=(0,y.getPreviewSize)(me,void 0!==ie?ie[1]:"",void 0!==oe?oe[1]:"",void 0!==le?le[1]:""),Le=(0,y.getPreviewSize)(me,void 0!==ie?ie[2]:"",void 0!==oe?oe[2]:"",void 0!==le?le[2]:""),Ae=(0,y.getPreviewSize)(me,void 0!==ie?ie[3]:"",void 0!==oe?oe[3]:"",void 0!==le?le[3]:""),Ue=c()(s,{"is-transient":ve,"is-resized":!!O||!!B,"aos-animate":"aos-animate",[`size-${I}`]:I,[`filter-${R}`]:R&&"none"!==R,"kb-image-is-ratio-size":M,"image-is-svg":w&&w.endsWith(".svg"),[`kadence-image${z}`]:z,"kb-image-max-width-set":N,"has-transparent-img":se}),We=(0,m.useBlockProps)({ref:we,className:Ue,"data-align":"center"===x?x:void 0});return(0,r.createElement)("figure",{"data-aos":H||void 0,"data-aos-duration":V&&V[0]&&V[0].duration?V[0].duration:void 0,"data-aos-easing":V&&V[0]&&V[0].easing?V[0].easing:void 0,...We,style:{maxWidth:!N||"left"!==x&&"right"!==x?void 0:N+"px",zIndex:W||void 0,marginTop:""!==Ie?(0,y.getSpacingOptionOutput)(Ie,ae):void 0,marginRight:""!==Re?(0,y.getSpacingOptionOutput)(Re,ae):void 0,marginBottom:""!==Me?(0,y.getSpacingOptionOutput)(Me,ae):void 0,marginLeft:""!==Ne?(0,y.getSpacingOptionOutput)(Ne,ae):void 0,paddingTop:M&&""!==De?(0,y.getSpacingOptionOutput)(De,ne):void 0,paddingRight:M&&""!==Pe?(0,y.getSpacingOptionOutput)(Pe,ne):void 0,paddingBottom:M&&""!==Le?(0,y.getSpacingOptionOutput)(Le,ne):void 0,paddingLeft:M&&""!==Ae?(0,y.getSpacingOptionOutput)(Ae,ne):void 0}},(ve||w)&&(0,r.createElement)(F,{temporaryURL:ve,dynamicURL:ye,previewDevice:me,attributes:t,setAttributes:a,isSelected:n,insertBlocksAfter:p,onReplace:f,onSelectImage:Te,onSelectURL:Oe,onUploadError:xe,containerRef:we,context:_,clientId:S,marginMouseOver:be,paddingMouseOver:ke}),!w&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.BlockControls,{group:"block"},(0,r.createElement)(m.BlockAlignmentControl,{value:x,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};a({...t,align:e})}})),(0,r.createElement)(m.InspectorControls,null,(0,r.createElement)(h.KadencePanelBody,{title:(0,i.__)("Image settings","kadence-blocks"),initialOpen:!0,panelName:"kb-image-settings-edit"},(0,r.createElement)(h.KadenceImageControl,{label:(0,i.__)("Image","kadence-blocks"),hasImage:!!w,imageURL:w||"",imageID:T||"",onRemoveImage:()=>{a({url:void 0,width:void 0,height:void 0,sizeSlug:void 0})},onSaveImage:Te,disableMediaButtons:!!w,dynamicAttribute:"url",isSelected:n,attributes:t,setAttributes:a,name:"kadence/image",clientId:S,context:_})))),(0,r.createElement)(h.KadenceMediaPlaceholder,{labels:{title:(0,i.__)("Advanced Image","kadence-blocks")},icon:o.imageIcon,selectIcon:v,selectLabel:(0,i.__)("Select Image","kadence-blocks"),onSelect:Te,onSelectURL:Oe,accept:"image/*",notices:g,onError:xe,className:"kadence-image-upload",allowedTypes:U,mediaPreview:ze,disableMediaButtons:ve||w}),(0,r.createElement)(h.SpacingVisualizer,{type:"outside",forceShow:be.isMouseOver,spacing:[(0,y.getSpacingOptionOutput)(Ie,ae),(0,y.getSpacingOptionOutput)(Re,ae),(0,y.getSpacingOptionOutput)(Me,ae),(0,y.getSpacingOptionOutput)(Ne,ae)]}),M&&(0,r.createElement)(h.SpacingVisualizer,{type:"inside",forceShow:ke.isMouseOver,spacing:[(0,y.getSpacingOptionOutput)(De,ne),(0,y.getSpacingOptionOutput)(Pe,ne),(0,y.getSpacingOptionOutput)(Le,ne),(0,y.getSpacingOptionOutput)(Ae,ne)]}))})),V={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>(e=e[0],(0,n.createBlock)("kadence/image",{id:e.id,url:e.url,alt:e.alt,caption:e.caption,align:e.align,sizeSlug:e.sizeSlug,width:e.width,height:e.height}))}],to:[{type:"block",blocks:["core/image"],transform:e=>(0,n.createBlock)("core/image",{id:e.id,url:e.url,alt:e.alt,caption:e.caption,align:e.align,sizeSlug:e.sizeSlug,width:e.width,height:e.height})}]},K=V,{attributes:q}=B,G=[{attributes:q,save:({attributes:e})=>{const{url:t,alt:a,caption:i,align:o,link:l,width:s,height:d,id:g,linkTarget:u,linkNoFollow:p,linkSponsored:b,showCaption:k,sizeSlug:v,title:h,uniqueID:y,imageFilter:f,useRatio:_,ratio:S}=e,w=c()({[`align${o}`]:o,[`size-${v}`]:v,"is-resized":s||d,[`kb-filter-${f}`]:f&&"none"!==f,"kb-image-is-ratio-size":_}),E=c()({[`kb-image${y}`]:y,[(0,n.getBlockDefaultClassName)("kadence/image")]:(0,n.getBlockDefaultClassName)("kadence/image"),[`align${o}`]:o,[`size-${v}`]:v,"is-resized":s||d,[`kb-filter-${f}`]:f&&"none"!==f,"kb-image-is-ratio-size":_}),C=c()({[`kb-image${y}`]:y,[(0,n.getBlockDefaultClassName)("kadence/image")]:(0,n.getBlockDefaultClassName)("kadence/image")});let x;u&&(x="noopener noreferrer"),void 0!==p&&!0===p&&(x=x?x.concat(" nofollow"):"nofollow"),void 0!==b&&!0===b&&(x=x?x.concat(" sponsored"):"sponsored");let T=(0,r.createElement)("img",{src:t,alt:a,className:g?`kb-img wp-image-${g}`:"kb-img",width:s,height:d,title:h});_&&(T=(0,r.createElement)("div",{className:`kb-is-ratio-image kb-image-ratio-${S||"land43"}`},T));const O=(0,r.createElement)(r.Fragment,null,l?(0,r.createElement)("a",{href:l,className:"kb-advanced-image-link",target:u?"_blank":void 0,rel:x||void 0},T):T,!m.RichText.isEmpty(i)&&!1!==k&&(0,r.createElement)(m.RichText.Content,{tagName:"figcaption",value:i}));return"left"===o||"right"===o||"center"===o?(0,r.createElement)("div",{...m.useBlockProps.save({className:C})},(0,r.createElement)("figure",{className:w},O)):(0,r.createElement)("figure",{...m.useBlockProps.save({className:E})},O)}},{attributes:q,save:({attributes:e})=>{const{url:t,alt:a,caption:i,align:o,link:l,width:s,height:d,id:g,linkTarget:u,linkNoFollow:p,linkSponsored:b,showCaption:k,sizeSlug:v,title:h,uniqueID:y,imageFilter:f,useRatio:_,ratio:S}=e,w=c()({[`align${o}`]:o,[`size-${v}`]:v,"is-resized":s||d,[`kb-filter-${f}`]:f&&"none"!==f,"kb-image-is-ratio-size":_}),E=c()({[`kb-image${y}`]:y,[(0,n.getBlockDefaultClassName)("kadence/image")]:(0,n.getBlockDefaultClassName)("kadence/image"),[`align${o}`]:o,[`size-${v}`]:v,"is-resized":s||d,[`kb-filter-${f}`]:f&&"none"!==f,"kb-image-is-ratio-size":_}),C=c()({[`kb-image${y}`]:y,[(0,n.getBlockDefaultClassName)("kadence/image")]:(0,n.getBlockDefaultClassName)("kadence/image")});let x;u&&(x="noopener noreferrer"),void 0!==p&&!0===p&&(x=x?x.concat(" nofollow"):"nofollow"),void 0!==b&&!0===b&&(x=x?x.concat(" sponsored"):"sponsored");let T=(0,r.createElement)("img",{src:t,alt:a,className:g?`kb-img kadence-image-${g}`:"kb-img",width:s,height:d,title:h});_&&(T=(0,r.createElement)("div",{className:`kb-is-ratio-image kb-image-ratio-${S||"land43"}`},T));const O=(0,r.createElement)(r.Fragment,null,l?(0,r.createElement)("a",{href:l,className:"kb-advanced-image-link",target:u?"_blank":void 0,rel:x||void 0},T):T,!m.RichText.isEmpty(i)&&!1!==k&&(0,r.createElement)(m.RichText.Content,{tagName:"figcaption",value:i}));return"left"===o||"right"===o||"center"===o?(0,r.createElement)("div",{...m.useBlockProps.save({className:C})},(0,r.createElement)("figure",{className:w},O)):(0,r.createElement)("figure",{...m.useBlockProps.save({className:E})},O)}}],{name:j}=B,J={title:(0,i._x)("Image (Adv)","block title","kadence-blocks"),description:(0,i._x)("Image block with greater controls and advanced features","block description","kadence-blocks"),icon:{src:o.imageIcon},example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",
// translators: Caption accompanying an image of the Mont Blanc, which serves as an example for the Image block.
caption:(0,i.__)("Mont Blanc appears—still, snowy, and serene.","kadence-blocks")}},getEditWrapperProps(e){if("wide"===e.align||"full"===e.align||"left"===e.align||"right"===e.align)return{"data-align":e.align}},transforms:K,edit:H,save:function({attributes:e}){const{url:t,alt:a,caption:i,align:o,link:l,width:s,height:d,id:g,linkTarget:u,linkNoFollow:p,linkSponsored:b,linkTitle:k,showCaption:v,sizeSlug:h,title:y,uniqueID:f,imageFilter:_,useRatio:S,ratio:w,preventLazyLoad:E,overlay:C,overlayOpacity:x,overlayGradient:T,overlayType:O,globalAlt:B,urlSticky:z,idSticky:I,altSticky:R,titleSticky:M,widthSticky:N,heightSticky:D,sizeSlugSticky:P,urlTransparent:L,idTransparent:A,altTransparent:U,titleTransparent:W,widthTransparent:F,heightTransparent:$,sizeSlugTransparent:H,tooltip:V,tooltipPlacement:K,tooltipDash:q}=e,G=V&&f?`kb-image-tooltip-${f}`:void 0,j=c()({[`align${o}`]:o,[`size-${h}`]:h,"is-resized":s||d,[`kb-filter-${_}`]:_&&"none"!==_,"kb-image-is-ratio-size":S,"image-is-svg":t&&t.endsWith(".svg")}),J=c()({[`kb-image${f}`]:f,[(0,n.getBlockDefaultClassName)("kadence/image")]:(0,n.getBlockDefaultClassName)("kadence/image"),[`align${o}`]:o,[`size-${h}`]:h,"is-resized":s||d,[`kb-filter-${_}`]:_&&"none"!==_,"kb-image-is-ratio-size":S,"image-is-svg":t&&t.endsWith(".svg"),"has-transparent-img":L}),Z=c()({[`kb-image${f}`]:f,[(0,n.getBlockDefaultClassName)("kadence/image")]:(0,n.getBlockDefaultClassName)("kadence/image")}),Q=c()({"kb-img":!0,[`wp-image-${g}`]:g,"skip-lazy":E,"kb-skip-lazy":E,"kb-image-tooltip-border":!l&&q&&G}),X=c()({"kb-img":!0,"kb-img-sticky":!0,[`wp-image-${I}`]:I,"skip-lazy":E,"kb-skip-lazy":E}),Y=c()({"kb-img":!0,"kb-img-transparent":!0,[`wp-image-${A}`]:A,"skip-lazy":E,"kb-skip-lazy":E});let ee,te=!1;(x&&C&&O&&"gradient"!==O||x&&T&&O&&"gradient"===O)&&(te=!0),u&&(ee="noopener noreferrer"),void 0!==p&&!0===p&&(ee=ee?ee.concat(" nofollow"):"nofollow"),void 0!==b&&!0===b&&(ee=ee?ee.concat(" sponsored"):"sponsored");let ae=(0,r.createElement)("img",{src:t,alt:B?"":a,className:Q,width:s,height:d,title:y,"data-tooltip-id":!l&&G?G:void 0,"data-tooltip-placement":!l&&G&&K?K:void 0});S?ae=(0,r.createElement)("div",{className:`kb-is-ratio-image kb-image-ratio-${w||"land43"}${te?" kb-image-has-overlay":""}`},ae):te&&(ae=(0,r.createElement)("div",{className:"kb-image-has-overlay"},ae));let ie=(0,r.createElement)("img",{src:z,alt:B?"":R,className:X,width:N,height:D,title:M,style:{display:"none"}});S&&(ie=(0,r.createElement)("div",{className:`kb-is-ratio-image kb-image-ratio-${w||"land43"}`},ie));let oe=(0,r.createElement)("img",{src:L,alt:B?"":U,className:Y,width:F,height:$,title:W});S&&(oe=(0,r.createElement)("div",{className:`kb-is-ratio-image kb-image-ratio-${w||"land43"}`},oe));const le=(0,r.createElement)(r.Fragment,null,l?(0,r.createElement)("a",{href:l,className:"kb-advanced-image-link"+(q&&G?" kb-image-tooltip-border":""),"data-tooltip-id":G||void 0,"data-tooltip-placement":G&&K?K:void 0,target:u?"_blank":void 0,"aria-label":k||void 0,rel:ee||void 0},ae,z&&ie,L&&oe):(0,r.createElement)(r.Fragment,null,ae,z&&ie,L&&oe),!m.RichText.isEmpty(i)&&!1!==v&&(0,r.createElement)(m.RichText.Content,{tagName:"figcaption",value:i}));return"left"===o||"right"===o||"center"===o?(0,r.createElement)("div",{...m.useBlockProps.save({className:Z})},(0,r.createElement)("figure",{className:j},le),G&&(0,r.createElement)("span",{className:"kb-tooltip-hidden-content",style:{display:"none"},id:G,dangerouslySetInnerHTML:{__html:V}})):(0,r.createElement)("figure",{...m.useBlockProps.save({className:J})},le,G&&(0,r.createElement)("span",{className:"kb-tooltip-hidden-content",style:{display:"none"},id:G,dangerouslySetInnerHTML:{__html:V}}))},deprecated:G};(0,n.registerBlockType)(B,{...B,...J})},7286:(e,t)=>{var a;!function(){"use strict";var i=function(){function e(){}function t(e,t){for(var a=t.length,i=0;i<a;++i)o(e,t[i])}e.prototype=Object.create(null);var a={}.hasOwnProperty,i=/\s+/;function o(e,o){if(o){var l=typeof o;"string"===l?function(e,t){for(var a=t.split(i),o=a.length,l=0;l<o;++l)e[a[l]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===l?function(e,t){if(t.toString===Object.prototype.toString)for(var i in t)a.call(t,i)&&(e[i]=!!t[i]);else e[t.toString()]=!0}(e,o):"number"===l&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];var l=new e;t(l,i);var n=[];for(var r in l)l[r]&&n.push(r);return n.join(" ")}}();e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},2485:(e,t)=>{var a;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var l=typeof a;if("string"===l||"number"===l)e.push(a);else if(Array.isArray(a)){if(a.length){var n=o.apply(null,a);n&&e.push(n)}}else if("object"===l)if(a.toString===Object.prototype.toString)for(var r in a)i.call(a,r)&&a[r]&&e.push(r);else e.push(a.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(a=function(){return o}.apply(t,[]))||(e.exports=a)}()},8616:e=>{e.exports=function(e,t){var a,i,o=0;function l(){var l,n,r=a,s=arguments.length;e:for(;r;){if(r.args.length===arguments.length){for(n=0;n<s;n++)if(r.args[n]!==arguments[n]){r=r.next;continue e}return r!==a&&(r===i&&(i=r.prev),r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=a,r.prev=null,a.prev=r,a=r),r.val}r=r.next}for(l=new Array(s),n=0;n<s;n++)l[n]=arguments[n];return r={args:l,val:e.apply(null,l)},a?(a.prev=r,r.next=a):i=r,o===t.maxSize?(i=i.prev).next=null:o++,a=r,r.val}return t=t||{},l.clear=function(){a=null,i=null,o=0},l}}},a={};function i(e){var o=a[e];if(void 0!==o)return o.exports;var l=a[e]={exports:{}};return t[e](l,l.exports,i),l.exports}i.m=t,e=[],i.O=(t,a,o,l)=>{if(!a){var n=1/0;for(d=0;d<e.length;d++){a=e[d][0],o=e[d][1],l=e[d][2];for(var r=!0,s=0;s<a.length;s++)(!1&l||n>=l)&&Object.keys(i.O).every((e=>i.O[e](a[s])))?a.splice(s--,1):(r=!1,l<n&&(n=l));if(r){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[a,o,l]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6285:0,596:0};i.O.j=t=>0===e[t];var t=(t,a)=>{var o,l,n=a[0],r=a[1],s=a[2],c=0;if(n.some((t=>0!==e[t]))){for(o in r)i.o(r,o)&&(i.m[o]=r[o]);if(s)var d=s(i)}for(t&&t(a);c<n.length;c++)l=n[c],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.O(d)},a=self.webpackChunkkadence=self.webpackChunkkadence||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var o=i.O(void 0,[596],(()=>i(7224)));o=i.O(o),(this.kadence=this.kadence||{})["blocks-image"]=o})();

Filemanager

Name Type Size Permission Actions
blocks Folder 0755
images Folder 0755
admin-kadence-home.asset.php File 260 B 0644
admin-kadence-home.css File 42.54 KB 0644
admin-kadence-home.js File 331.56 KB 0644
blocks-accordion.asset.php File 275 B 0644
blocks-accordion.css File 12.26 KB 0644
blocks-accordion.js File 65.94 KB 0644
blocks-advanced-form.asset.php File 404 B 0644
blocks-advanced-form.css File 30.99 KB 0644
blocks-advanced-form.js File 420.08 KB 0644
blocks-advancedbtn.asset.php File 288 B 0644
blocks-advancedbtn.css File 8.82 KB 0644
blocks-advancedbtn.js File 124.14 KB 0644
blocks-advancedgallery.asset.php File 315 B 0644
blocks-advancedgallery.css File 29.13 KB 0644
blocks-advancedgallery.js File 153.72 KB 0644
blocks-advancedheading.asset.php File 330 B 0644
blocks-advancedheading.css File 18.39 KB 0644
blocks-advancedheading.js File 126.14 KB 0644
blocks-column.asset.php File 256 B 0644
blocks-column.css File 9.03 KB 0644
blocks-column.js File 95.59 KB 0644
blocks-countdown.asset.php File 281 B 0644
blocks-countdown.css File 4.39 KB 0644
blocks-countdown.js File 65.05 KB 0644
blocks-countup.asset.php File 234 B 0644
blocks-countup.css File 91 B 0644
blocks-countup.js File 39.05 KB 0644
blocks-form.asset.php File 324 B 0644
blocks-form.css File 8.01 KB 0644
blocks-form.js File 295.96 KB 0644
blocks-googlemaps.asset.php File 287 B 0644
blocks-googlemaps.css File 515 B 0644
blocks-googlemaps.js File 152.02 KB 0644
blocks-header.asset.php File 328 B 0644
blocks-header.css File 17.33 KB 0644
blocks-header.js File 295.24 KB 0644
blocks-icon.asset.php File 261 B 0644
blocks-icon.css File 1.2 KB 0644
blocks-icon.js File 42.66 KB 0644
blocks-iconlist.asset.php File 289 B 0644
blocks-iconlist.css File 2.65 KB 0644
blocks-iconlist.js File 55.04 KB 0644
blocks-identity.asset.php File 250 B 0644
blocks-identity.css File 2.88 KB 0644
blocks-identity.js File 78.88 KB 0644
blocks-image.asset.php File 328 B 0644
blocks-image.css File 6.39 KB 0644
blocks-image.js File 64.23 KB 0644
blocks-infobox.asset.php File 303 B 0644
blocks-infobox.css File 8.58 KB 0644
blocks-infobox.js File 208.7 KB 0644
blocks-lottie.asset.php File 244 B 0644
blocks-lottie.css File 276 B 0644
blocks-lottie.js File 399.32 KB 0644
blocks-navigation-link.asset.php File 392 B 0644
blocks-navigation-link.css File 1 B 0644
blocks-navigation-link.js File 111.29 KB 0644
blocks-navigation.asset.php File 316 B 0644
blocks-navigation.css File 154.75 KB 0644
blocks-navigation.js File 185.56 KB 0644
blocks-posts.asset.php File 301 B 0644
blocks-posts.css File 5.83 KB 0644
blocks-posts.js File 27.17 KB 0644
blocks-progress-bar.asset.php File 244 B 0644
blocks-progress-bar.css File 888 B 0644
blocks-progress-bar.js File 68.32 KB 0644
blocks-rowlayout.asset.php File 361 B 0644
blocks-rowlayout.css File 114.04 KB 0644
blocks-rowlayout.js File 819.02 KB 0644
blocks-search.asset.php File 234 B 0644
blocks-search.css File 1.28 KB 0644
blocks-search.js File 28.92 KB 0644
blocks-show-more.asset.php File 244 B 0644
blocks-show-more.css File 189 B 0644
blocks-show-more.js File 11.87 KB 0644
blocks-single-icon.asset.php File 234 B 0644
blocks-single-icon.js File 16.82 KB 0644
blocks-singlebtn.asset.php File 288 B 0644
blocks-singlebtn.js File 67.43 KB 0644
blocks-spacer.asset.php File 234 B 0644
blocks-spacer.css File 1.88 KB 0644
blocks-spacer.js File 22.91 KB 0644
blocks-table.asset.php File 298 B 0644
blocks-table.css File 269 B 0644
blocks-table.js File 43.46 KB 0644
blocks-tableofcontents.asset.php File 285 B 0644
blocks-tableofcontents.css File 7.64 KB 0644
blocks-tableofcontents.js File 40.17 KB 0644
blocks-tabs.asset.php File 300 B 0644
blocks-tabs.css File 14.48 KB 0644
blocks-tabs.js File 180.84 KB 0644
blocks-testimonial.asset.php File 261 B 0644
blocks-testimonial.js File 45.21 KB 0644
blocks-testimonials.asset.php File 261 B 0644
blocks-testimonials.css File 19.51 KB 0644
blocks-testimonials.js File 246.17 KB 0644
blocks-videopopup.asset.php File 273 B 0644
blocks-videopopup.css File 1.72 KB 0644
blocks-videopopup.js File 51.68 KB 0644
components.asset.php File 363 B 0644
components.css File 93.12 KB 0644
components.js File 647.82 KB 0644
early-filters.asset.php File 212 B 0644
early-filters.js File 3.32 KB 0644
extension-block-css.asset.php File 231 B 0644
extension-block-css.js File 503.13 KB 0644
extension-image-picker.asset.php File 219 B 0644
extension-image-picker.css File 6.1 KB 0644
extension-image-picker.js File 88.64 KB 0644
extension-kadence-base.asset.php File 99 B 0644
extension-kadence-base.js File 198 B 0644
extension-stores.asset.php File 103 B 0644
extension-stores.js File 5.86 KB 0644
header-visual-builder.asset.php File 239 B 0644
header-visual-builder.css File 8.93 KB 0644
header-visual-builder.js File 63.86 KB 0644
helpers.asset.php File 187 B 0644
helpers.js File 27.17 KB 0644
icons.asset.php File 91 B 0644
icons.js File 457.37 KB 0644
plugin-kadence-control.asset.php File 374 B 0644
plugin-kadence-control.css File 4.18 KB 0644
plugin-kadence-control.js File 155.14 KB 0644
style-blocks-accordion.css File 10.96 KB 0644
style-blocks-advanced-form.css File 16.23 KB 0644
style-blocks-advancedbtn.css File 2.62 KB 0644
style-blocks-advancedgallery.css File 29.79 KB 0644
style-blocks-advancedheading.css File 196 B 0644
style-blocks-column.css File 1.44 KB 0644
style-blocks-countdown.css File 3.7 KB 0644
style-blocks-form.css File 9.49 KB 0644
style-blocks-header.css File 10.18 KB 0644
style-blocks-icon.css File 1.02 KB 0644
style-blocks-iconlist.css File 3.51 KB 0644
style-blocks-identity.css File 2.41 KB 0644
style-blocks-image.css File 4.5 KB 0644
style-blocks-infobox.css File 7.54 KB 0644
style-blocks-lottie.css File 239 B 0644
style-blocks-navigation.css File 96.07 KB 0644
style-blocks-posts.css File 8.37 KB 0644
style-blocks-progress-bar.css File 813 B 0644
style-blocks-rowlayout.css File 7.83 KB 0644
style-blocks-search.css File 1.28 KB 0644
style-blocks-spacer.css File 2.25 KB 0644
style-blocks-table.css File 112 B 0644
style-blocks-tableofcontents.css File 8.29 KB 0644
style-blocks-tabs.css File 10.23 KB 0644
style-blocks-testimonials.css File 10.54 KB 0644
style-blocks-videopopup.css File 4.59 KB 0644