uawdijnntqw1x1x1
IP : 18.216.130.198
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
public_html
/
wp-content
/
plugins
/
.
/
.
/
stackable-ultimate-gutenberg-blocks
/
dist
/
stk.js
/
/
/*! For license information please see stk.js.LICENSE.txt */ (()=>{var e,t,n,o,a={7385:()=>{Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){let t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},6900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{blockComponents:()=>c,components:()=>l,designLibrary:()=>o,higherOrder:()=>i,hooks:()=>r,icons:()=>a,util:()=>s});var o={};n.r(o),n.d(o,{fetchDesign:()=>gl,fetchDesignLibrary:()=>hl,getBlockName:()=>pl,getDesign:()=>bl,getDesigns:()=>vl,setDevModeDesignLibrary:()=>ml});var a={};n.r(a),n.d(a,{AccordionIcon:()=>Fi,BlockquoteIcon:()=>Ui,BlogPostsIcon:()=>Wi,ButtonGroupIcon:()=>Gi,ButtonIcon:()=>Vi,CTAIcon:()=>Zi,CardIcon:()=>qi,CarouselIcon:()=>ji,ColumnIcon:()=>Ji,ColumnsIcon:()=>Ki,ContainerIcon:()=>Yi,CountUpIcon:()=>Qi,CountdownIcon:()=>Xi,DividerIcon:()=>es,ExpandIcon:()=>ts,FeatureGridIcon:()=>ns,FeatureIcon:()=>os,GhostButtonIcon:()=>Ls,GroupContainerIcon:()=>is,HeadingIcon:()=>ls,HeroIcon:()=>as,HorizontalScrollerIcon:()=>rs,IconBoxIcon:()=>us,IconButtonIcon:()=>cs,IconButtonsIcon:()=>ds,IconIcon:()=>ss,IconLabelIcon:()=>gs,IconListIcon:()=>ps,IconListItemIcon:()=>hs,ImageBoxIcon:()=>vs,ImageIcon:()=>ms,LoadMoreIcon:()=>bs,MapIcon:()=>fs,NotificationIcon:()=>ks,NumberBoxIcon:()=>ys,PaginationIcon:()=>ws,PricingBoxIcon:()=>Cs,ProgressBarIcon:()=>Es,ProgressCircleIcon:()=>_s,SVGStackableCategoryIcon:()=>Li,SVGStackableIcon:()=>$i,SeparatorIcon:()=>Ss,SocialButtonsIcon:()=>xs,SpacerIcon:()=>Ts,StackableIcon:()=>Di,TableOfContentsIcon:()=>Bs,TabsContentIcon:()=>Is,TabsIcon:()=>Ms,TabsLabelIcon:()=>Ns,TeamMemberIcon:()=>Rs,TestimonialIcon:()=>As,TextIcon:()=>Hs,TimelineIcon:()=>Ps,UngroupContainerIcon:()=>zs,VideoPopupIcon:()=>Os,colorizeIcon:()=>zi});var l={};n.r(l),n.d(l,{AdminBaseSetting:()=>tc,AdminSelectSetting:()=>ic,AdminTextSetting:()=>oc,AdminToggleSetting:()=>lc,AdvancedAutosuggestControl:()=>yo,AdvancedControl:()=>gn,AdvancedFocalPointControl:()=>Dc,AdvancedRadioControl:()=>zc,AdvancedRangeControl:()=>ro,AdvancedSelectControl:()=>so,AdvancedTextControl:()=>Dn,AdvancedToggleControl:()=>Pc,AdvancedTokenField:()=>Uc,AdvancedToolbarControl:()=>Ao,AlignButtonsControl:()=>Hr,BaseControl:()=>Ic,BaseControl2:()=>gn,BaseControlMultiLabel:()=>rr,BlendModeControl:()=>jn,BlockContainer:()=>mc,BlockCss:()=>Hu,BlockCssCompiler:()=>Tu,BlockStyleGenerator:()=>Mu,BlockStyles:()=>hc,BlockWrapper:()=>fu,BorderControls:()=>Ql,BorderControlsHelper:()=>er,Button:()=>yt,ButtonIconPopoverControl:()=>Kl,CodeTextarea:()=>zr,CodeTextareaControl:()=>$r,ColorPaletteControl:()=>Cn,ColorSchemePresetPicker:()=>yh,ColorSchemePreview:()=>wh,ColumnInnerBlocks:()=>Bd,ColumnInserter:()=>Jc,ColumnsWidthControl:()=>Qp,ColumnsWidthMultiControl:()=>eh,ControlIconToggle:()=>Bt,ControlSeparator:()=>wc,ConvertToContainerButton:()=>Us,CustomAttributesControl:()=>Wn,DEFAULT_COLOR_SCHEME_COLORS:()=>bh,DesignControl:()=>Ml,DesignLibraryList:()=>wl,DesignPanelBody:()=>xl,DesignPanelItem:()=>Tl,DesignSeparatorControl:()=>Rl,Div:()=>cu,DynamicContentControl:()=>Ln,FontAwesomeIcon:()=>Sc,FontFamilyControl:()=>zo,FontPairPicker:()=>mh,FontSizeControl:()=>Po,FourNumberControl:()=>sr,FourRangeControl:()=>_r,GetBlockAttributesButton:()=>Ws,GroupPlaceholder:()=>Yc,HeadingButtonsControl:()=>Ir,HelpTooltip:()=>nn,IconControl:()=>Ol,IconSearchPopover:()=>jl,ImageAltControl:()=>Xn,ImageControl:()=>Jn,ImageControl2:()=>Ac,ImageFilterControl:()=>Gc,ImageShapeControl:()=>Zn,ImageSizeControl:()=>to,ImageUploadPlaceholder:()=>bt,InspectorAdvancedControls:()=>ou,InspectorBlockControls:()=>tu,InspectorBottomTip:()=>vu,InspectorLayoutControls:()=>eu,InspectorPanelControls:()=>sl,InspectorStyleControls:()=>nu,InspectorSubHeader:()=>hh,InspectorTabs:()=>lu,Link:()=>kd,LinkControl:()=>od,ModalDesignLibrary:()=>Qs,PanelAdvancedSettings:()=>ll,PanelDesignLibrary:()=>rl,PanelTabs:()=>Sl,Popover:()=>Zt,ProControl:()=>In,ProControlButton:()=>ar,ResizableBottomMargin:()=>Xd,ResizableColumn:()=>Od,ResizerTooltip:()=>Fd,ResponsiveControl2:()=>Wd,ResponsiveToggle:()=>At,RichText:()=>nh,SectionSettings:()=>vh,Separator:()=>yc,Separator2:()=>hu,ShadowControl:()=>td,SmallNumberControl:()=>Er,SortControl:()=>qa,SortablePicker:()=>ih,SpacingControl:()=>nr,Style:()=>vd,StyleControl:()=>id,SvgIcon:()=>Bc,TaxonomyControl:()=>dc,Tooltip:()=>pc,TypographyControl:()=>Yl,URLInputControl:()=>kt,UrlInputPopover:()=>xt,VariationPicker:()=>mu,WhenResponsiveScreen:()=>xr,advancedToolbarControlControls:()=>Io,extractControlProps:()=>mn,getDynamicContent:()=>Rn,getShadows:()=>Xc,useBlockCssGenerator:()=>Iu,useControlHandlers:()=>cn,useDynamicContent:()=>An});var r={};n.r(r),n.d(r,{BlockAttributesProvider:()=>Oe,DEFAULT_BLOCK_ATTRIBUTES_CONTEXT:()=>Se,DEFAULT_BLOCK_CONTEXT_CONTEXT:()=>Te,DEFAULT_SET_ATTRIBUTES_CONTEXT:()=>xe,createContext:()=>Ce,getBlockStyle:()=>Ue,getDefinedBlockStyles:()=>We,isBlockLinked:()=>ot,useAttributeEditHandlers:()=>qe,useAttributeName:()=>Qe,useBlockAttributes:()=>be,useBlockAttributesContext:()=>Ae,useBlockColorSchemes:()=>Ih,useBlockContextContext:()=>Pe,useBlockHoverClass:()=>Xe,useBlockHoverState:()=>Ye,useBlockLayoutDefaults:()=>Bh,useBlockSetAttributesContext:()=>He,useBlockStyle:()=>Fe,useContextSelector:()=>Ee,useDeviceType:()=>ve,useDidAttributesChange:()=>me,useFontLoader:()=>je,useInternalValue:()=>Ze,useIsLinked:()=>nt,useLinking:()=>tt,useOnScreen:()=>at,useOnScreenOnce:()=>lt,usePostsQuery:()=>ct,useRafEffect:()=>xh,useRafMemo:()=>Sh,useRafState:()=>Eh,useSavedDefaultBlockStyle:()=>Ge,useVariationPicker:()=>Ch,useWithShift:()=>pe});var i={};n.r(i),n.d(i,{QueryLoopContext:()=>Sn,withBlockAttributeContext:()=>zh,withBlockWrapper:()=>$h,withBlockWrapperIsHovered:()=>jh,withIsHovered:()=>Ph,withQueryLoopContext:()=>xn,withVersion:()=>Oh,withVisualGuideContext:()=>Kt});var s={};n.r(s),n.d(s,{AttributeObject:()=>R,BLOCK_STATE:()=>tm,CONTENT_ATTRIBUTES:()=>q,MODERN_FONT_STACKS:()=>k,SOCIAL_SITES:()=>em,SYSTEM_FONT_STACKS:()=>f,StyleObject:()=>Kh,__getValue:()=>dg,addStackableBlockCategory:()=>pm,appendImportant:()=>cg,appendImportantAll:()=>sg,applyBlockDesign:()=>rm,cacheImageData:()=>zg,clampInheritedStyle:()=>ug,colorOpacityToHexAplha:()=>se,compileCSS:()=>Lm,createAllCombinationAttributes:()=>O,createBlockCompleter:()=>sm,createBorderAttributeNames:()=>Cg,createBorderAttributes:()=>wg,createBorderStyleSet:()=>_g,createButtonAttributeNames:()=>Kg,createButtonAttributes:()=>qg,createButtonStyleSet:()=>Jg,createElementFromHTMLString:()=>wm,createIconAttributeNames:()=>fm,createIconAttributes:()=>bm,createIconStyleSet:()=>km,createImageAttributeNames:()=>xg,createImageAttributes:()=>Sg,createImageBackgroundAttributeNames:()=>Ug,createImageBackgroundAttributes:()=>Fg,createImageBackgroundStyleSet:()=>Gg,createImageBackgroundStyles:()=>Vg,createImageMask:()=>Rg,createImageStyleSet:()=>Hg,createImageStyles:()=>Ag,createLinkTagWithGoogleFont:()=>_,createResponsiveAttributeNames:()=>D,createResponsiveAttributes:()=>z,createResponsiveEditorStyles:()=>gg,createResponsiveMarginAlign:()=>hg,createResponsiveStyles:()=>pg,createRoot:()=>Tm,createSocialButtonAttributeNames:()=>Qg,createSocialButtonAttributes:()=>Xg,createSocialButtonStyleSet:()=>Zg,createTypographyAttributeNames:()=>Y,createTypographyAttributes:()=>J,createTypographyStyles:()=>mg,createUniqueClass:()=>Gm,currentUserHasCapability:()=>xm,descriptionPlaceholder:()=>Hm,expandAttributes:()=>U,extractBlockStyleStructure:()=>cm,extractColor:()=>ie,extractRgba:()=>ce,faFetchIcon:()=>Sm,faGetIcon:()=>Em,fetchSettings:()=>g,getAttrName:()=>H,getAttrNameFunction:()=>P,getAttributeName:()=>W,getAttributeNameFunc:()=>V,getBlockName:()=>nm,getBlocksToStyle:()=>dm,getDefaultFontSize:()=>kg,getFontFamily:()=>x,getFontFamilyLabel:()=>S,getGoogleFontURL:()=>y,getImageDataFromCache:()=>$g,getImageSize:()=>Og,getImageUrlFromCache:()=>Lg,getShapeSVG:()=>Mg,getStyles:()=>tg,getUniqueBlockClass:()=>Im,getVideoProviderFromURL:()=>Am,hexToRgba:()=>re,importBlocks:()=>p,isDarkColor:()=>ng,isEditor:()=>Pm,isElementDescendant:()=>Wm,isEmptyAttribute:()=>G,isEmptyAttributes:()=>j,isGoogleFontEnqueued:()=>E,isUnmodifiedBlock:()=>lm,isWebFont:()=>w,leftRightToFlex:()=>lg,loadGoogleFont:()=>C,loadGoogleFontInAttributes:()=>T,marginLeftAlign:()=>og,marginRightAlign:()=>ag,minifyCSS:()=>Om,moveArrayIndex:()=>Fm,moveInnerBlock:()=>im,numShapesInSvg:()=>ym,omitAttributes:()=>L,pickAttributes:()=>$,prependCSSClass:()=>Dm,range:()=>Nm,recursivelyAddUniqueIdToInnerBlocks:()=>Um,registerBlockType:()=>hm,rgbaToHexAlpha:()=>de,sanitizeIdAttr:()=>Vm,semverCompare:()=>jm,substituteCoreIfDisabled:()=>gm,svgRenderToString:()=>Tg,urlIsVideo:()=>Rm,useLocalStorage:()=>mm,useQueryLoopInstanceId:()=>Yh,useStyles:()=>eg,whiteIfDark:()=>rg,whiteIfDarkBlackIfLight:()=>ig});var c={};n.r(c),n.d(c,{Advanced:()=>Km,Alignment:()=>Ob,BORDER_CONTROLS:()=>cv,BackgroundControls:()=>ov,BlockDiv:()=>Av,BlockLink:()=>Lv,BlockStyle:()=>Dv,BorderControls:()=>uv,Button:()=>sb,CloneButton:()=>bb,Column:()=>mb,Columns:()=>yb,ColumnsControl:()=>vb,ConditionalDisplay:()=>db,ContainerDiv:()=>hb,ContentAlign:()=>Eb,CustomAttributes:()=>Rv,CustomCSS:()=>xb,EffectsAnimations:()=>Bb,FlexGapControls:()=>gv,IMAGE_SHADOWS:()=>Vb,INVALID_HTML_ATTRIBUTES:()=>Iv,Icon:()=>Kv,Image:()=>lf,Link:()=>Yv,Linking:()=>sf,MarginBottom:()=>_f,ProgressBar:()=>Ff,Responsive:()=>Sf,Row:()=>Lb,Separator:()=>Cf,SizeControls:()=>wv,Style:()=>hd,Transform:()=>Tf,Typography:()=>Lf,_Linking:()=>cf,addBackgroundAttributes:()=>Qm,addBackgroundStyles:()=>Zm,addBlockClassNames:()=>sd,addBorderAttributes:()=>iv,addBorderStyles:()=>sv,addFlexGapAttributes:()=>hv,addFlexGapStyles:()=>mv,addSeparatorStyles:()=>uf,addSizeAttributes:()=>bv,addSizeStyles:()=>fv,backgroundAttributes:()=>Xm,borderAttributes:()=>rv,combineStyleRules:()=>cd,createSeparatorAttributes:()=>yf,createSeparatorLayerAttributes:()=>kf,deprecateBlockBackgroundColorOpacity:()=>Cv,deprecateBlockShadowColor:()=>_v,deprecateButtonGradientColor:()=>Uv,deprecateContainerBackgroundColorOpacity:()=>ub,deprecateContainerShadowColor:()=>pb,deprecateShadowColor:()=>lv,deprecateTypographyGradientColor:()=>Hf,deprecateTypographyShadowColor:()=>Pf,deprecatedAddAttributes:()=>av,deprecationBackgrounColorOpacity:()=>Ym,deprecationImageOverlayOpacity:()=>Db,flexGapAttributes:()=>pv,formMediaQuery:()=>dd,generateStyles:()=>ud,getAlignmentClasses:()=>Pb,getBlockOrientation:()=>Hb,getButtonClasses:()=>ib,getColumnClasses:()=>gb,getContentAlignmentClasses:()=>_b,getEditorStylesOnly:()=>pd,getResponsiveClasses:()=>Ef,getRowClasses:()=>zb,getSeparatorClasses:()=>df,getTypographyClasses:()=>zf,mergeStyles:()=>gd,sizeAttributes:()=>vv,useUniqueId:()=>Sv});const d=lodash,u=wp.api,p=e=>{const t={};return e.keys().forEach((n=>{const o=e(n),a=o["stk-type"];a&&(t[a]||(t[a]=[]),t[a].push(o)),(o["stk-variants"]||[]).forEach((e=>{const n=e["stk-type"];n&&(t[n]||(t[n]=[]),t[n].push({...e,name:`${o.name}|${e.name}`}))}))})),Object.keys(t).forEach((e=>{t[e]=(0,d.sortBy)(t[e],"name")})),t};let h=null;const g=()=>(h||(h=u.loadPromise.then((()=>(new u.models.Settings).fetch().then((e=>(h=null,e)))))),h),m=stackable,v=wp.i18n,b={ru_RU:"cyrillic",bg_BG:"cyrillic",he_IL:"hebrew",el:"greek",vi:"vietnamese",uk:"cyrillic",cs_CZ:"latin-ext",ro_RO:"latin-ext",pl_PL:"latin-ext"},f={"Sans-Serif":{value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',label:(0,v.__)("Sans-Serif",m.i18n)},Serif:{value:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',label:(0,v.__)("Serif",m.i18n)},"Serif-Alt":{value:'Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',label:(0,v.__)("Serif Alternative",m.i18n)},Monospace:{value:'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',label:(0,v.__)("Monospace",m.i18n)}},k={"modern-stack-system-ui":{value:"system-ui, sans-serif",label:(0,v.__)("System UI",m.i18n)},"modern-stack-transitional":{value:"Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif",label:(0,v.__)("Transitional",m.i18n)},"modern-stack-old-style":{value:"'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif",label:(0,v.__)("Old Style",m.i18n)},"modern-stack-humanist":{value:"Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif",label:(0,v.__)("Humanist",m.i18n)},"modern-stack-geometric-humanist":{value:"Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif",label:(0,v.__)("Geometric Humanist",m.i18n)},"modern-stack-classical-humanist":{value:"Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif",label:(0,v.__)("Classical Humanist",m.i18n)},"modern-stack-neo-grotesque":{value:"Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif",label:(0,v.__)("Neo Grotesque",m.i18n)},"modern-stack-monospace-slab-serif":{value:"'Nimbus Mono PS', 'Courier New', monospace",label:(0,v.__)("Monospace Slab Serif",m.i18n)},"modern-stack-monospace-code":{value:"ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace",label:(0,v.__)("Monospace Code",m.i18n)},"modern-stack-industrial":{value:"Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif",label:(0,v.__)("Industrial",m.i18n)},"modern-stack-rounded-sans":{value:"ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif",label:(0,v.__)("Rounded Sans",m.i18n)},"modern-stack-slab-serif":{value:"Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif",label:(0,v.__)("Slab Serif",m.i18n)},"modern-stack-antique":{value:"Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif",label:(0,v.__)("Antique",m.i18n)},"modern-stack-didone":{value:"Didot, 'Bodoni MT', 'Noto Serif Display', 'URW Palladio L', P052, Sylfaen, serif",label:(0,v.__)("Didone",m.i18n)},"modern-stack-handwritten":{value:"'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive",label:(0,v.__)("Handwritten",m.i18n)}},y=e=>`https://fonts.googleapis.com/css?family=${e.replace(/ /g,"+")}:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic${b[m.locale]?`&subset=${b}`:""}`,w=e=>!!e&&!Object.keys(f).includes(e)&&!Object.keys(k).includes(e),C=e=>{const t=t=>{if(t&&w(e)){if(E(e,t))return;const n=_(e);t.appendChild(n)}};let n=0;const o=setInterval((()=>{n++,8===n&&clearInterval(o);const e=document.querySelector('iframe[name="editor-canvas"]')?document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.querySelector("head"):document.querySelector("head");t(e),e!==document.querySelector("head")&&t(document.querySelector("head"))}),250)},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=document.createElement("link");return t.classList.add("ugb-google-fonts"),t.setAttribute("data-font-name",e),t.setAttribute("href",y(e)),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.querySelector("head");return t.querySelector(`[data-font-name="${e}"]`)},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return k[e]?k[e].label:f[e]?f[e].label:e||t||(0,v.__)("Default",m.i18n)},x=e=>{const t='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return e?e.match(/^\s*var\(--/)?e:k[e]?k[e].value:w(e)?`"${e}", Sans-serif`:f[e]?f[e].value:t:t},T=e=>{Object.keys(e).filter((e=>e.match(/fontfamily/i))).forEach((t=>{const n=e[t];n&&C(n)}))};var B=n(4247),M=n.n(B),I=n(4863),N=n.n(I);class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.attributes=e,this.defaultValues=[]}add(e){let{attributes:t,versionAdded:n,versionDeprecated:o,attrNameTemplate:a="%s"}=e;this.attributes.push({attributeObject:this.applyAttrNameTemplate(t,a),versionAdded:n||"",versionDeprecated:o||!1})}addDefaultValues(e){let{attributes:t,versionAdded:n,versionDeprecated:o,attrNameTemplate:a="%s"}=e;this.defaultValues.push({defaultValuesObject:this.applyAttrNameTemplate(t,a),versionAdded:n||"",versionDeprecated:o||!1})}applyAttrNameTemplate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";return"%s"!==t&&t?Object.keys(e).reduce(((n,o)=>(n[H(t,(0,d.upperFirst)(o))]={...e[o]},n)),{}):e}getDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.defaultValues.filter((t=>{let{versionAdded:n,versionDeprecated:o}=t;return e?M()(e,n)>=0&&(!o||-1===M()(e,o)):!!o})).map((e=>{let{defaultValuesObject:t}=e;return t}))}getAttributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.attributes.filter((t=>{let{versionAdded:n,versionDeprecated:o}=t;return e?M()(e,n)>=0&&(!o||-1===M()(e,o)):!!o})).map((e=>{let{attributeObject:t}=e;return t}))}getMerged(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=U(N().all(this.getAttributes(e)));if(this.defaultValues.length){const n=N().all(this.getDefaultValues(e));Object.keys(n).forEach((e=>{const o=n[e];void 0!==t[e]&&(t[e].default=o)}))}return t}}const A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.length?e[0].reduce(((n,o)=>n.concat(A(e.slice(1),t+o))),[]):t},H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,d.camelCase)((0,v.sprintf)(e,(0,d.upperFirst)(t),(0,d.upperFirst)(n)))},P=e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return H(e,t,n)},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return o.length?n.reduce(((n,a)=>({...n,...o.reduce(((n,o,l)=>{const r={...t};return void 0!==r.selector&&(r.selector=(0,v.sprintf)(r.selector,l+1)),n[(0,d.camelCase)((0,v.sprintf)(e,a,o))]=r,n}),{})})),{}):n.reduce(((n,o,a)=>{const l={...t};return void 0!==l.selector&&(l.selector=(0,v.sprintf)(l.selector,a+1)),n[(0,d.camelCase)((0,v.sprintf)(e,o))]=l,n}),{})},z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return O(e,t,["","Tablet","Mobile"])},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,d.omit)(e,t.map((e=>(0,d.camelCase)((0,v.sprintf)(n,e)))))},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.length?(0,d.pick)(e,t.map((e=>(0,d.camelCase)((0,v.sprintf)(n,e))))):e},D=e=>Object.keys(z(e)),F=["stkResponsive","stkHover","stkUnits"],U=e=>Object.keys(e).reduce(((t,n)=>{const o=[[n]];let a="px";return t[n].stkUnits&&(o.push(["","Unit"]),a=t[n].stkUnits),t[n].stkResponsive&&o.push(["","Tablet","Mobile"]),t[n].stkHover&&o.push(["","Hover","ParentHover","Collapsed"]),A(o).forEach((o=>{const l=(0,d.omit)({...e[n]},F);o!==n&&(l.default=""),o.startsWith(`${n}Unit`)&&(l.type="string",l.default=a),t[o]=l})),t}),e),W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";const o="desktop"===t.toLowerCase()?"":(0,d.upperFirst)(t),a="normal"===n?"":"hover"===n?"Hover":"collapsed"===n?"Collapsed":"ParentHover";return null!=e&&e.includes("%s")?(0,v.sprintf)(e,`${o}${a}`):`${e}${o}${a}`},V=e=>function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";return W(P(e)(t),n,o)},G=e=>"object"==typeof e?Object.values(e).every((e=>G(e))):void 0===e||!e&&""===e,j=e=>e.every((e=>G(e))),q=["imageUrl","imageId","imageAlt","text","linkHasLink","linkUrl","linkNewTab","linkRel","linkHasTitle","linkTitle","blockLinkHasLink","blockLinkUrl","blockLinkNewTab","blockLinkRel","blockLinkHasTitle","blockLinkTitle"],K=e=>({...O(e,{type:"string",default:""},["FontFamily","FontWeight","TextTransform"]),...O(e,{type:"number",default:""},["LetterSpacing","TabletLetterSpacing","MobileLetterSpacing","FontSize","TabletFontSize","MobileFontSize","LineHeight","TabletLineHeight","MobileLineHeight"]),...O(e,{type:"string",default:"px"},["FontSizeUnit","TabletFontSizeUnit","MobileFontSizeUnit"]),...O(e,{type:"string",default:"em"},["LineHeightUnit","TabletLineHeightUnit","MobileLineHeightUnit"])}),J=K,Y=e=>Object.keys(K(e));var X=n(6537),Q=n.n(X),Z=n(8874);const ee=function(e){var t,n,o=[],a=1;if("string"==typeof e)if(Z[e])o=Z[e].slice(),n="rgb";else if("transparent"===e)a=0,n="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var l=(s=e.slice(1)).length;a=1,l<=4?(o=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===l&&(a=parseInt(s[3]+s[3],16)/255)):(o=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===l&&(a=parseInt(s[6]+s[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var r=t[1],i="rgb"===r,s=r.replace(/a$/,"");n=s,l="cmyk"===s?4:"gray"===s?1:3,o=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===l?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==te[e])return te[e]}return parseFloat(e)})),r===s&&o.push(1),a=i||void 0===o[l]?1:o[l],o=o.slice(0,l)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(o=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),n=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(o=[e[0],e[1],e[2]],n="rgb",a=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(n="rgb",o=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",o=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(a/=100)):(n="rgb",o=[e>>>16,(65280&e)>>>8,255&e]);return{space:n,values:o,alpha:a}};var te={red:0,orange:60,yellow:120,green:180,blue:240,purple:300},ne=n(2409),oe=n(5985);function ae(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var n=ee(e);if(!n.space)return[];const o="h"===n.space[0]?oe.min:ne.min,a="h"===n.space[0]?oe.max:ne.max;return(t=Array(3))[0]=Math.min(Math.max(n.values[0],o[0]),a[0]),t[1]=Math.min(Math.max(n.values[1],o[1]),a[1]),t[2]=Math.min(Math.max(n.values[2],o[2]),a[2]),"h"===n.space[0]&&(t=oe.rgb(t)),t.push(Math.min(Math.max(n.alpha,0),1)),t}const le=wp.hooks,re=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";const n=(0,le.applyFilters)("stackable.util.hex-to-rgba",null,e,t);if(n)return n;let o=(0,le.applyFilters)("stackable.util.hex-to-rgba.hex",e,t);if(o.indexOf("var(")>-1){const e=o.match(/--(.*?(?=,))/g);o=e?window.getComputedStyle(document.documentElement).getPropertyValue(e[0])||"#fff":window.getComputedStyle(document.documentElement).getPropertyValue(o.replace("var(","").replace(")",""))||"#fff"}if(o=o.replace(/#/,""),o.match(/rgb(a?)\(/g))return o;o.length<=4&&(o=o.replace(/#?(.)(.)(.)/,"$1$1$2$2$3$3"));const a=ae(`#${o}ff`);return a[3]=null!==t?t:1,`rgba(${a.join(", ")})`},ie=e=>null!=e&&e.startsWith("var(--")&&e.match(/(#[^\)]*)/g)?e.match(/(#[^\)]*)/g)[0]:e,se=(e,t)=>e?e.startsWith("#")?e.slice(0,7)+Math.ceil(255*t).toString(16).padStart(2,"0"):e.includes("var(")?`color-mix(in srgb, ${e} ${100*t}%, transparent)`:e:"",ce=e=>{let t=e,n="";return t=t.replace(/rgba\(.*\)$/g,(e=>(n=e,""))).trim(),{options:t,color:n}},de=e=>{const t=e.substring(5,e.length-1).split(",").map(((e,t)=>{if(3===t){const t=parseFloat(e);return Math.ceil(255*t).toString(16).padStart(2,"0")}const n=parseInt(e).toString(16);return 1===n.length?"0"+n:n}));return"#"+t.join("")},ue=wp.element,pe=()=>{const[e,t]=(0,ue.useState)(!1);return(0,ue.useEffect)((()=>{var e;const n=e=>{t(!!e.shiftKey)};window.addEventListener("keydown",n),window.addEventListener("keyup",n);const o=null===(e=document)||void 0===e?void 0:e.querySelector('iframe[name="editor-canvas"]');return o&&(o.contentDocument||o.contentWindow.document).addEventListener("keyup",n),()=>{var e;window.removeEventListener("keydown",n),window.removeEventListener("keyup",n);const t=null===(e=document)||void 0===e?void 0:e.querySelector('iframe[name="editor-canvas"]');t&&(t.contentDocument||t.contentWindow.document).removeEventListener("keyup",n)}}),[]),e},he=wp.data,ge={},me=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const[a,l]=(0,ue.useState)(n);if(t&&!ge[t]){const e=(0,he.select)("core/blocks").getBlockType(t).attributes;ge[t]=Object.keys(e).reduce(((t,n)=>(t[n]=e[n].default||"",t)),{})}(0,ue.useEffect)((()=>{if(!t)return;const r=Object.keys(n).filter((e=>n[e]!==a[e])),i=[];o?r.forEach((e=>{const o=ge[t][e];n[e]!==o&&i.push(e)})):i.push(...r),i.length&&e((0,d.pick)(n,i),(0,d.pick)(a,i)),l(n)}),[JSON.stringify(n||{})])},ve=()=>{const{deviceType:e}=(0,he.useSelect)((e=>{var t,n,o,a,l,r;let i="Desktop";return i=(null===(t=e("core/editor"))||void 0===t||null===(n=t.getDeviceType)||void 0===n?void 0:n.call(t))||(null===(o=e("core/edit-site"))||void 0===o||null===(a=o.__experimentalGetPreviewDeviceType)||void 0===a?void 0:a.call(o))||(null===(l=e("core/edit-post"))||void 0===l||null===(r=l.__experimentalGetPreviewDeviceType)||void 0===r?void 0:r.call(l))||e("stackable/device-type").getDeviceType(),{deviceType:i}}),[]);return e||""};(0,he.register)((0,he.createReduxStore)("stackable/device-type",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;return"UPDATE_DEVICE_TYPE"===t.type?t.deviceType:e},actions:{setDeviceType:e=>({type:"UPDATE_DEVICE_TYPE",deviceType:e})},selectors:{getDeviceType:e=>e}}));const be=e=>(0,he.useSelect)((t=>t("core/block-editor").getBlockAttributes(e)||{}),[e]);var fe=n(4063),ke=n.n(fe);const ye=Symbol(),we=Symbol();function Ce(e){const t=(0,ue.createContext)({[ye]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});var n;return t[we]=t.Provider,t.Provider=(n=t.Provider,e=>{let{value:t,children:o}=e;const a=(0,ue.useRef)(t),l=(0,ue.useRef)(0),[r,i]=(0,ue.useState)(null);r&&(r(t),i(null));const s=(0,ue.useRef)();if(!s.current){const e=new Set,t=(t,n)=>{l.current+=1;const o={n:l.current};null!=n&&n.suspense&&(o.n*=-1,o.p=new Promise((e=>{i((()=>t=>{o.v=t,delete o.p,e(t)}))}))),e.forEach((e=>e(o))),t()};s.current={[ye]:{v:a,n:l,l:e,u:t}}}return(0,ue.useLayoutEffect)((()=>{a.current=t,l.current+=1,s.current[ye].l.forEach((e=>{e({n:l.current,v:t})}))}),[t]),(0,ue.createElement)(n,{value:s.current},o)}),delete t.Consumer,t}const _e=(e,t)=>(e=>!Array.isArray(e)&&"object"==typeof e)(e)?ke()(e,t):Object.is(e,t);function Ee(e,t){const n=(0,ue.useContext)(e)[ye],{v:{current:o},n:{current:a},l}=n,r=t(o),[i,s]=(0,ue.useReducer)(((e,n)=>{if(!n)return[o,r];if("p"in n)throw n.p;if(n.n===a)return _e(e[1],r)?e:[o,r];try{if("v"in n){if(_e(e[0],n.v))return e;const o=t(n.v);return _e(e[1],o)?e:[n.v,o]}}catch(e){}return[...e]}),[o,r]);return _e(i[1],r)||s(),(0,ue.useLayoutEffect)((()=>(l.add(s),()=>{l.delete(s)})),[l]),i[1]}const Se={},xe=()=>{},Te={},Be=Ce(Se),Me=(0,ue.createContext)(xe),Ie=Ce(Te),Ne=e=>e,Re={},Ae=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ne;return Ee(Be,(t=>e(t)))},He=()=>(0,ue.useContext)(Me),Pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ne;return Ee(Ie,(t=>e(t)))},Oe=e=>(0,ue.createElement)(Be.Provider,{value:e.attributes},(0,ue.createElement)(Me.Provider,{value:e.setAttributes},(0,ue.createElement)(Ie.Provider,{value:e.context||Re},e.children))),ze=wp.tokenList;var Le=n.n(ze);const $e=wp.blockEditor,De={},Fe=e=>{const{name:t}=(0,$e.useBlockEditContext)(),n=Ae((e=>e.className));if(De[t]=e,!n)return"default";for(const t of new(Le())(n).values()){if(-1===t.indexOf("is-style-"))continue;const n=t.substring(9),o=(0,d.find)(e,{name:n});if(o)return o.name}const o=(0,d.find)(e,"isDefault");return(null==o?void 0:o.name)||"default"},Ue=(e,t)=>{if(t)for(const n of new(Le())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=(0,d.find)(e,{name:t});if(o)return o}return(0,d.find)(e,"isDefault")},We=e=>De[e]||[],Ve=wp.blocks,Ge=e=>{const{clientId:t,name:n,attributes:o}=e,[a,l]=(0,ue.useState)(!1),[r,i]=(0,ue.useState)(null);if((0,ue.useEffect)((()=>{t&&r&&((0,he.dispatch)("core/block-editor").replaceInnerBlocks(t,r,!1),i(null))}),[t,r]),n.startsWith("stackable/")&&!o.uniqueId&&!a&&!((0,Ve.getBlockVariations)(n).length>0)){var s,c;const a=(0,he.select)("core/block-editor").getBlockParents(t).map((e=>{var t;return null===(t=(0,he.select)("core/block-editor").getBlock(e))||void 0===t?void 0:t.name}));if(!(0,le.applyFilters)("stackable.block-default-styles.use-saved-style",!0,e,a))return;const r=(0,he.select)("stackable/block-styles").getDefaultBlockStyle(n);if(!r)return;const u=JSON.parse(r.data);let p=(0,d.omit)(u.attributes,q,"uniqueId");if(null!==(s=o.className)&&void 0!==s&&s.includes("is-style-")){let e=o.className.match(/is-style-([^\s]+)/);e=e?e[1]:"";const t=We(n),a=(0,d.find)(t,{name:e});a&&(p={...p,...a.onSelect(p)})}if(Object.keys(p).forEach((e=>{o[e]=p[e]})),null!==(c=u.innerBlocks)&&void 0!==c&&c.length&&"stackable/icon-list"!==n){const e=(0,Ve.createBlocksFromInnerBlocksTemplate)(u.innerBlocks);Um(e),i(e)}l(!0)}},je=e=>{const{loadingThemeFont:t,themeFonts:n}=(0,he.select)("stackable/theme-fonts").getThemeFonts();(0,ue.useEffect)((()=>{n.includes(e)||(C(e),(0,le.doAction)("stackable.font-loader.load",e))}),[t,e])},qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s";const t=He(),n=Ae(),o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";return W(P(e)(t),n,o)},a=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";const l=P(e);return n[W(l(t),o,a)]},l=()=>n,r=function(n,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"normal";const r=P(e);return t({[W(r(n),a,l)]:o})},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";return o=>r(e,o,t,n)},s=e=>{const n=Object.keys(e).reduce(((t,n)=>(t[o(n)]=e[n],t)),{});t(n)};return{getAttrName:o,getAttribute:a,getAttributes:l,updateAttributeHandler:i,updateAttributes:s,updateAttribute:r}},Ke={selectedBlock:null,hoverState:"normal",hasParentHoverState:!1,selectedParentHoverBlock:null,selectedParentHoverChildren:[],selectedHoverChildren:[],hasCollapsedState:!1,selectedCollapsedBlock:null,selectedCollapsedChildren:[]},Je={updateSelectedBlock:(e,t)=>{var n,o;const a=null==t?void 0:t.querySelector(`[data-block="${e}"]`),l=null==a||null===(n=a.closest(".stk-hover-parent"))||void 0===n?void 0:n.closest("[data-block]"),r=(null==l?void 0:l.getAttribute("data-block"))||null,i=Array.from((null==l?void 0:l.querySelectorAll("[data-block]"))||[]).map((e=>e.getAttribute("data-block")))||[],s=Array.from((null==a?void 0:a.querySelectorAll("[data-block]"))||[]).map((e=>e.getAttribute("data-block")))||[],c=(null==a||null===(o=a.closest(".stk-block-accordion"))||void 0===o?void 0:o.closest("[data-block]"))||("stackable/accordion"===(null==a?void 0:a.getAttribute("data-type"))?a:null),d=(null==c?void 0:c.getAttribute("data-block"))||null;return{type:"UPDATE_SELECTED_BLOCK",clientId:e,parentHoverClientId:r,hasParentHoverState:!!r,parentHoverChildrenClientIds:i,hoverChildrenClientIds:s,collapsedClientId:d,collapsedChildrenClientIds:Array.from((null==c?void 0:c.querySelectorAll("[data-block]"))||[]).map((e=>e.getAttribute("data-block")))||[],hasCollapsedState:!!d}},clearSelectedBlock:()=>({type:"CLEAR_SELECTED_BLOCK"}),updateHoverState:e=>({type:"UPDATE_HOVER_STATE",value:e})};(0,he.register)((0,he.createReduxStore)("stackable/hover-state",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SELECTED_BLOCK":return{...e,selectedBlock:t.clientId,selectedParentHoverBlock:t.parentHoverClientId,hasParentHoverState:t.hasParentHoverState,selectedParentHoverChildren:t.parentHoverChildrenClientIds,selectedHoverChildren:t.hoverChildrenClientIds,hasCollapsedState:t.hasCollapsedState,selectedCollapsedBlock:t.collapsedClientId,selectedCollapsedChildren:t.collapsedChildrenClientIds};case"CLEAR_SELECTED_BLOCK":return{...Ke};case"UPDATE_HOVER_STATE":return{...e,hoverState:t.value}}return e},actions:Je,selectors:{getSelectedBlock:e=>e.selectedBlock,getHoverState:e=>e.hoverState,getHasParentHoverState:e=>e.hasParentHoverState,getSelectedParentHoverBlock:e=>e.selectedParentHoverBlock,getSelectedParentHoverBlockChildren:e=>e.selectedParentHoverChildren,getSelectedHoverChildren:e=>e.selectedHoverChildren,getHasCollapsedState:e=>e.hasCollapsedState,getSelectedCollapsedBlock:e=>e.selectedCollapsedBlock,getSelectedCollapsedBlockChildren:e=>e.selectedCollapsedChildren}}));const Ye=function(){let{forceUpdateHoverState:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:t}=(0,$e.useBlockEditContext)(),n=(0,he.useSelect)((e=>e("core/block-editor").getMultiSelectedBlockClientIds())),{currentHoverState:o,blockHoverClass:a,hasParentHoverState:l,hasCollapsedState:r,isCollapsedBlock:i}=(0,he.useSelect)((o=>{const a=o("stackable/hover-state").getHoverState(),l=o("stackable/hover-state").getSelectedBlock(),{getSelectedParentHoverBlock:r,getSelectedParentHoverBlockChildren:i,getSelectedHoverChildren:s,getHasParentHoverState:c,getHasCollapsedState:d,getSelectedCollapsedBlock:u,getSelectedCollapsedBlockChildren:p}=o("stackable/hover-state"),h=c(),g=r(),m=d(),v=u(),b=t===l||n.includes(t),f=t===v;let k="",y="normal";if(b)"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered"),y=a,h||"parent-hover"!==a||(y="hover");else if(t===g)"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered",y="hover");else{const e=i(),n=s(),o=p(),l=e.includes(t),r=n.includes(t),c=o.includes(t);l||r?"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered",y="parent-hover"):(c||f)&&(y="collapsed")}return e&&(y=a),{currentHoverState:y,blockHoverClass:k,hasParentHoverState:h,hasCollapsedState:m,isCollapsedBlock:f}}),[t,n]);return[o,a,l,r,i]},Xe=()=>{const{clientId:e}=(0,$e.useBlockEditContext)(),t=(0,he.useSelect)((e=>e("core/block-editor").getMultiSelectedBlockClientIds())),{hoverState:n,parentHoverChildrenClientIds:o}=(0,he.useSelect)((e=>({hoverState:e("stackable/hover-state").getHoverState(),parentHoverChildrenClientIds:e("stackable/hover-state").getSelectedParentHoverBlockChildren()})),[]),{getSelectedBlock:a,getSelectedParentHoverBlock:l,getSelectedParentHoverBlockChildren:r,getSelectedHoverChildren:i}=(0,he.useSelect)("stackable/hover-state"),s=a(),c=l();let d="";if(e===s||t.includes(e))"hover"!==n&&"parent-hover"!==n||(d="stk--is-hovered");else if(e===c)"hover"!==n&&"parent-hover"!==n||(d="stk--is-hovered");else{const t=i(),a=o.includes(e),l=t.includes(e);(a||l)&&("hover"!==n&&"parent-hover"!==n||(d="stk--is-hovered"))}return d},Qe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const o=ve(),[a]=Ye();let l="desktop";("all"===t||Array.isArray(t)&&t.includes(o))&&(l=o);let r="normal";return("all"===n||Array.isArray(n)&&n.includes(a))&&(r=a),W(e,l,r)},Ze=e=>{const[t,n]=(0,ue.useState)(e),[o,a]=(0,ue.useState)(e);return ke()(e,o)||(a(e),n(e)),[t,n]},et=()=>JSON.parse(window.localStorage.getItem("stackable-linking"))||[],tt=()=>{const e=Ae((e=>e.uniqueId)),[t,n]=(0,ue.useState)(et());return(0,ue.useEffect)((()=>{const e=()=>{n(et())};return window.addEventListener("stackable-linked-storage",e),()=>window.removeEventListener("stackable-linked-storage",e)}),[]),[(0,ue.useMemo)((()=>t.includes(e)),[t,e]),t=>{const n=et(),o=t?[...n,e]:n.filter((t=>t!==e));window.localStorage.setItem("stackable-linking",JSON.stringify(o.slice(0,50))),window.dispatchEvent(new window.CustomEvent("stackable-linked-storage"))}]},nt=e=>{const t=be(e);return null!=t&&t.uniqueId?et().includes(t.uniqueId):null},ot=e=>{if(!e)return null;const t=(0,he.select)("core/block-editor").getBlockAttributes(e);return null!=t&&t.uniqueId?et().includes(t.uniqueId):null},at=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";const[n,o]=(0,ue.useState)(!1);return(0,ue.useEffect)((()=>{const n=new IntersectionObserver((e=>{let[t]=e;o(t.isIntersecting)}),{rootMargin:t});return e.current&&n.observe(e.current),()=>{e.current&&n.unobserve(e.current)}})),n},lt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";const[n,o]=(0,ue.useState)(!1);return(0,ue.useEffect)((()=>{const n=new IntersectionObserver((t=>{let[a]=t;a.isIntersecting&&(o(a.isIntersecting),n.unobserve(e.current))}),{rootMargin:t});return e.current&&n.observe(e.current),()=>{e.current&&n.unobserve(e.current)}})),n},rt=wp.url,it=wp.apiFetch;var st=n.n(it);const ct=e=>{const{type:t,orderBy:n,order:o,taxonomyType:a,taxonomy:l,taxonomyFilterType:r,postOffset:i,postExclude:s,postInclude:c,numberOfItems:u=6,excludeCurrentPost:p,excerptLength:h}=e,[g,m]=(0,ue.useState)(!0),[v,b]=(0,ue.useState)(null),f=(0,ue.useMemo)((()=>{m(!0);const t=(0,d.pickBy)({...(0,le.applyFilters)("stackable.posts.postQuery",{order:o,orderby:[n,"ID"].join(" "),posts_per_page:u,max_excerpt:h},e)},(e=>Array.isArray(e)?!(0,d.isEmpty)(e):!(0,d.isUndefined)(e)&&""!==e));if(l&&a){const e=l.split(",").map((e=>parseInt(e,10))).filter((e=>!isNaN(e)));"category"===a?t["__in"===r?"category__in":"category__not_in"]=e:"post_tag"===a?t["__in"===r?"tag__in":"tag__not_in"]=e:t.tax_query=[{taxonomy:a,terms:e,operator:"__in"===r?"IN":"NOT IN"}]}return t}),[t,n,o,a,l,r,i,s,c,u,p]);return(0,ue.useEffect)((()=>{st()({path:(0,rt.addQueryArgs)("/stackable/v3/get_posts",{post_type:t,...f}),method:"GET"}).then((e=>{b(e),m(!1)}))}),[f]),{posts:v,hasPosts:Array.isArray(v)&&!!v.length,isRequesting:g}};function dt(){return dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dt.apply(this,arguments)}var ut=n(7294);const pt=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),(0,ue.createElement)("circle",{cx:409.1,cy:102.9,r:40.9}),(0,ue.createElement)("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}))};var ht=n(4184),gt=n.n(ht);const mt=wp.components,vt=e=>{const{imageID:t,imageURL:n,onRemove:o,className:a,allowedTypes:l,render:r,hasRemove:i,style:s}=e,c=gt()([a,"ugb-image-upload-placeholder"],{"ugb-image-upload-has-image":n,"ugb-image-upload-has-placeholder":!n}),d={...s,backgroundImage:n&&!r?`url(${n})`:void 0};return(0,ue.createElement)($e.MediaUpload,{onSelect:t=>{let{url:n,width:o,height:a}=t;const l=e.imageSize||"full";t.sizes&&t.sizes[l]&&(n=t.sizes[l].url,o=t.sizes[l].width,a=t.sizes[l].height),e.onChange({...t,url:n,width:o,height:a})},allowedTypes:l,value:t,render:e=>n&&r?(0,ue.createElement)("div",{className:c,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()},style:d,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&o&&i&&(0,ue.createElement)("button",{className:"ugb-image-upload-remove",onClick:e=>{o(),e.stopPropagation()}},(0,ue.createElement)(mt.Dashicon,{icon:"no"})),r):(0,ue.createElement)("div",{className:c,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()},style:d,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&o&&i&&(0,ue.createElement)("button",{className:"ugb-image-upload-remove",onClick:e=>{o(),e.stopPropagation()}},(0,ue.createElement)(mt.Dashicon,{icon:"no"})),!n&&(0,ue.createElement)(pt,null))})};vt.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:e=>{let{url:t,id:n}=e},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};const bt=vt,ft=e=>(0,ue.createElement)(Ic,{label:e.label,id:"url-input-control",help:e.help,allowReset:e.allowReset,value:e.value,onChange:e.onChange},(0,ue.createElement)($e.URLInput,dt({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},(0,d.omit)(e,["label","help"]))));ft.defaultProps={label:(0,v.__)("URL",m.i18n),help:null,value:"",onChange:()=>{},allowReset:!0};const kt=ft,yt=(0,ue.forwardRef)(((e,t)=>{const n=gt()([e.className,"ugb-button-component"]);return(0,ue.createElement)(mt.Button,dt({},e,{className:n,ref:t}))})),wt=e=>(0,ue.createElement)("path",e),Ct=e=>{let{className:t,isPressed:n,...o}=e;const a={...o,className:gt()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1};return(0,ue.createElement)("svg",a)},_t=(0,ue.createElement)(Ct,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,ue.createElement)(wt,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),Et=[{id:"opensInNewTab",title:(0,v.__)("Opens in new tab",m.i18n)},{id:"noFollowLink",title:(0,v.__)("Nofollow link",m.i18n)},{id:"sponsored",title:(0,v.__)("Sponsored",m.i18n)},{id:"ugc",title:(0,v.__)("UGC",m.i18n)}],St=e=>{const{value:t,newTab:n,noFollow:o,sponsored:a,ugc:l}=e,r={url:t,opensInNewTab:n,noFollowLink:o,sponsored:a,ugc:l};if(!(e.onChange||e.onChangeNewTab||e.onChangeNoFollow||e.onChangeSponsored||e.onChangeUgc))return null;const i=gt()(["ugb-url-input-popover"]),s=Et.filter((t=>{let{id:n}=t;switch(n){case"opensInNewTab":return e.onChangeNewTab;case"noFollowLink":return e.onChangeNoFollow;case"sponsored":return e.onChangeSponsored;case"ugc":return e.onChangeUgc;default:return!0}}));return(0,ue.createElement)(mt.Popover,{className:i,focusOnMount:!1,position:e.position},(0,ue.createElement)($e.__experimentalLinkControl,{value:r,settings:s,showSuggestions:!e.disableSuggestions,onChange:t=>{const n={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow,sponsored:e.onChangeSponsored,ugc:e.onChangeUgc},o=(0,d.omitBy)((0,d.omit)(t,"id","title","type"),((e,t)=>r[t]===e));(0,d.keys)(o).forEach((e=>{var t;null===(t=n[e])||void 0===t||t.call(n,o[e])}))}},(0,ue.createElement)("form",null,(0,ue.createElement)("input",{placeholder:(0,v.__)("Search or type url",m.i18n),value:t}),(0,ue.createElement)(yt,{icon:_t,type:"submit"}))))};St.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,sponsored:!1,ugc:!1,onChangeNewTab:null,onChangeNoFollow:null,onChangeSponsored:null,onChangeUgc:null};const xt=St,Tt=e=>{const{value:t,options:n}=e,[o,a]=(0,ue.useState)(!1),l=(0,ue.useRef)(null),r=(0,ue.useMemo)((()=>e.options.findIndex((e=>e.value===t))/n.length*100),[n,t]);if((0,ue.useEffect)((()=>{const e=e=>{var t;o&&((null===(t=e.target)||void 0===t?void 0:t.closest(".stk-label-unit-toggle"))!==l.current&&a(!1))};return document.body.addEventListener("click",e),()=>document.body.removeEventListener("click",e)}),[o,l.current]),n.length<=1)return null;const i=gt()([e.className,"stk-label-unit-toggle"],{"stk-label-unit-toggle__colored":e.hasColors,"is-open":o});return(0,ue.createElement)("div",{className:i,"aria-expanded":o,ref:l},(0,ue.createElement)("div",{className:gt()("stk-label-unit-toggle__wrapper",{"is-open":o}),style:{transform:`translateY(-${r}%)`}},n.length>1&&n.map(((n,l)=>{const r=n.label||n.value,i=t===n.value,s=gt()({"is-active":i,"has-value":n.hasValue});return(0,ue.createElement)(yt,{key:l,className:s,"data-index":l,"data-value":n.value,disabled:n.disabled,tabIndex:i?"0":"-1",onClick:()=>{o?(e.onChange(n.value),a(!1)):a(!0)},icon:n.icon,label:e.hasLabels?r:"","aria-haspopup":"true",tooltipPosition:"middle right",onKeyDown:e=>{const t=e.target;if(t&&o){if("ArrowUp"===e.key||"ArrowRight"===e.key||"ArrowDown"===e.key||"ArrowLeft"===e.key)if(e.preventDefault(),"ArrowUp"===e.key||"ArrowLeft"===e.key){const e=t.previousElementSibling||t.parentElement.lastElementChild;e&&e.focus()}else{const e=t.nextElementSibling||t.parentElement.firstElementChild;e&&e.focus()}"Tab"===e.key&&a(!1),"Escape"===e.key&&(e.preventDefault(),a(!1))}}},n.icon?void 0:r)}))))};Tt.defaultProps={className:"",value:"",options:[],onChange:null,labelPosition:"right",buttonLabel:"",hasLabels:!0,hasColors:!0};const Bt=(0,ue.memo)(Tt),Mt={desktop:"Desktop",tablet:"Tablet",mobile:"Mobile"},It=[{label:(0,v.__)("Desktop",m.i18n),value:"desktop",icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M14.5 2.4h-13c-.4 0-.8.3-.8.8v7c0 .4.3.8.8.8h5.8v1.3H5.6c-.4 0-.8.3-.8.8s.3.8.8.8h4.8c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H8.8V11h5.8c.4 0 .8-.3.8-.8v-7c-.2-.5-.5-.8-.9-.8zm-.7 7H2.2V3.9h11.5v5.5z"}))}),null)},{label:(0,v.__)("Tablet",m.i18n),value:"tablet",icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M13 14.8H3c-.4 0-.8-.3-.8-.8V2c0-.4.3-.8.8-.8h10c.4 0 .8.3.8.8v12c0 .4-.4.8-.8.8zm-9.2-2.6h8.5V2.8H3.8v9.4z"}))}),null)},{label:(0,v.__)("Mobile",m.i18n),value:"mobile",icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M11 14.2H5c-.4 0-.8-.3-.8-.8v-11c0-.4.3-.8.8-.8h6c.4 0 .8.3.8.8v11c0 .5-.4.8-.8.8zm-5.2-2h4.5v-9H5.8v9z"}))}),null)}],Nt=["normal","hover","parent-hover","collapsed"].filter((e=>"normal"!==e)).map((e=>(0,d.upperFirst)((0,d.camelCase)(e)))),Rt=e=>{const t=ve(),n=It.filter((t=>{var n;let{value:o}=t;return null===(n=e.screens)||void 0===n?void 0:n.includes(o)})),o=Ae((t=>{const n=e.valueCheckAttribute||e.attribute;if(!n)return{};const o=[t[`${n}Tablet`]];Nt.forEach((e=>{o.push(t[`${n}Tablet${e}`])}));const a=[t[`${n}Mobile`]];return Nt.forEach((e=>{a.push(t[`${n}Mobile${e}`])})),{tablet:o,mobile:a}})),a=n.map((t=>{if("desktop"===t.value)return t;let n=!1;e.attribute&&(n=!j(o[t.value]));const a="desktop"!==t.value&&("tablet"===t.value?e.hasTabletValue:e.hasMobileValue);return{...t,hasValue:a||n}}));return a<=1?null:t?(0,ue.createElement)(Bt,{className:"stk-control-responsive-toggle",value:t.toLowerCase(),options:a,onChange:e=>{(0,he.dispatch)("core/edit-site")&&(0,he.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType?(0,he.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType(Mt[e]):(0,he.dispatch)("core/edit-post")&&(0,he.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType?(0,he.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(Mt[e]):(0,he.dispatch)("stackable/device-type").setDeviceType(Mt[e])}}):null};Rt.defaultProps={screens:["desktop"],attribute:"",suffix:"",hasTabletValue:void 0,hasMobileValue:void 0};const At=(0,ue.memo)(Rt),Ht=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{className:"state-parent-hover_svg__st0",d:"M9.8 15.8c-.3 0-.6-.2-.7-.5l-3.8-9c-.1-.3 0-.6.2-.8.2-.2.5-.3.8-.2l9 3.8c.3.1.5.4.5.7 0 .3-.2.6-.5.7l-3.6 1.2-1.2 3.6c-.1.2-.4.4-.7.5zM7.4 7.4l2.3 5.5.7-2c.1-.2.2-.4.5-.5l2-.7-5.5-2.3z"}),(0,ue.createElement)("path",{className:"state-parent-hover_svg__st0",d:"M6.4 12.8H2.2V2.2h11.5v4.5l1.5.6V1.5c0-.4-.3-.8-.8-.8h-13c-.4 0-.8.3-.8.8v12c0 .4.3.8.8.8H7l-.6-1.5z"}))},Pt=[{label:(0,v.__)("Normal State",m.i18n),value:"normal",icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{className:"state-normal_svg__st0",d:"M7 14.8c-.3 0-.6-.2-.7-.5l-5-12c-.1-.3 0-.6.2-.8.2-.2.5-.3.8-.2l12 5c.3.1.5.4.5.7 0 .3-.2.6-.5.7L9.4 9.4l-1.7 4.9c-.1.2-.4.4-.7.5zM3.4 3.4l3.5 8.5L8 8.6c.1-.2.2-.4.5-.5L11.8 7 3.4 3.4z"}))}),null)},{label:(0,v.__)("Hovered State",m.i18n),value:"hover",icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{className:"state-hover_svg__st0",d:"M9.2 15.8c-.3 0-.6-.2-.7-.5l-4.2-10c-.1-.3 0-.6.2-.8.2-.2.5-.3.8-.2l10 4.2c.3.1.5.4.5.7 0 .3-.2.6-.5.7l-4 1.4-1.4 4c-.1.2-.4.4-.7.5zM6.4 6.4l2.7 6.5.8-2.5c.1-.2.2-.4.5-.5l2.5-.8-6.5-2.7z"}),(0,ue.createElement)("path",{className:"state-hover_svg__st0",d:"M3.7 7.6C2.7 7.2 2 6.2 2 5c0-1.6 1.3-3 3-3 1.2 0 2.2.7 2.7 1.7l1.7.7C9.1 2.2 7.3.5 5 .5 2.5.5.5 2.5.5 5c0 2.3 1.7 4.1 3.9 4.4l-.7-1.8z"}))}),null)},{label:(0,v.__)("Parent Container Hovered State",m.i18n),value:"parent-hover",icon:(0,ue.createElement)(Ht,null)},{label:(0,v.__)("Collapsed",m.i18n),value:"collapsed",icon:(0,ue.createElement)(Ht,null)}],Ot=["normal","hover","parent-hover","collapsed"],zt=Ot.map((e=>(0,d.upperFirst)((0,d.camelCase)(e)))),Lt=e=>{const[t,n,o,a,l]=Ye({forceUpdateHoverState:e.forceUpdateHoverState}),r=ve(),i=Ae((t=>e.attribute?Ot.reduce(((n,o,a)=>({...n,[o]:t[`${e.attribute}${e.hasResponsive&&"Desktop"!==r?r:""}${zt[a]}`]})),{}):{})),s="all"===e.hover?Ot:e.hover,c=Pt.filter((e=>{let{value:t}=e;return!(!a&&"collapsed"===t&&!l)&&s.includes(t)})),d=!e.forceUpdateHoverState&&!o,u=c.map((t=>"parent-hover"===t.value?{disabled:!e.forceUpdateHoverState&&!o,tooltip:d?(0,ue.createElement)("span",{className:"stk-tooltip__text"},(0,v.sprintf)("%s - %s",(0,v.__)("Parent Hovered",m.i18n),(0,v.__)("Add a Container Background to a parent block to enable this state.",m.i18n)),(0,ue.createElement)("br",null),(0,ue.createElement)("a",{href:"https://docs.wpstackable.com/article/465-how-to-style-the-different-block-hover-states?utm_source=wp-settings-global-settings&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,v.__)("Learn more",m.i18n))):void 0,...t}:t)).map((t=>{var n,o;return e.forceUpdateHoverState?{...t,hasValue:null!==(n=null===(o=e.hasHoverStateValue)||void 0===o?void 0:o[t.value])&&void 0!==n&&n}:"normal"!==t.value&&e.attribute?{...t,hasValue:!G(i[t.value])}:t}));return(0,ue.createElement)(Bt,{value:t,options:u,onChange:e=>(0,he.dispatch)("stackable/hover-state").updateHoverState(e)})};Lt.defaultProps={hover:!1,attribute:"",hasResponsive:!1,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const $t=(0,ue.memo)(Lt),Dt=e=>{const{uniqueId:t,selector:n="",highlight:o="",value:a="",defaultValue:l="",responsive:r="all"}=e||{},i=`.editor-styles-wrapper.editor-styles-wrapper .stk-${t} ${n.replace(/%s/g,t)}`.trim(),{getEditorDom:s}=(0,he.useSelect)("stackable/editor-dom"),c=ve(),[d,u]=(0,ue.useState)(0),p=(0,ue.useMemo)((()=>{var e;const t=i.split(",")[0],n=null===(e=s())||void 0===e?void 0:e.querySelector(t);return n||setTimeout((()=>{u&&u(d+1)}),50),n?window.getComputedStyle(n):{}}),[i,d])||{};if("all"!==r&&!r.includes(c.toLowerCase()))return null;const h=Gt(o,i,a,l,p);return(0,ue.createElement)("style",null,h)};Dt.defaultProps={uniqueId:"",highlightStyles:{}};const Ft=Dt,Ut="var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba))",Wt="rgba(220, 158, 93, 0.5)",Vt="rgba(220, 158, 93, 0.25)",Gt=(e,t,n,o,a)=>{switch(e){case"row-gap":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t} > [data-type]:not(:nth-last-child(2))::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tz-index: 2;\n\t\t\t\ttop: 100%;\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: max(${parseInt(a.rowGap,10)||0}px, 1px);\n\t\t\t\tbackground: ${Wt};\n\t\t\t\tpointer-events: none;\n\t\t\t}`;case"column-gap":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t} > [data-type]:not(:nth-last-child(2))::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tz-index: 2;\n\t\t\t\tleft: 100%;\n\t\t\t\ttop: 0;\n\t\t\t\twidth: max(${parseInt(a.columnGap,10)||0}px, 1px);\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: ${Wt};\n\t\t\t\tpointer-events: none;\n\t\t\t}`;case"columns:column-gap":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t} > [data-type="stackable/column"]:not(:last-child)::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tz-index: 2;\n\t\t\t\tleft: 100%;\n\t\t\t\ttop: 0;\n\t\t\t\twidth: max(${parseInt(a.columnGap,10)||0}px, 1px);\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: ${Wt};\n\t\t\t\tpointer-events: none;\n\t\t\t}`;case"padding":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t}::after {\n\t\t\t\tall: unset;\n\t\t\t\tcontent: '' !important;\n\t\t\t\tz-index: 2;\n\t\t\t\tposition: absolute;\n\t\t\t\tinset: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: rgba(162, 201, 68, 0.5);\n\t\t\t\tborder-top-width: max(${a.paddingTop}, 1px);\n\t\t\t\tborder-right-width: max(${a.paddingRight}, 1px);\n\t\t\t\tborder-bottom-width: max(${a.paddingBottom}, 1px);\n\t\t\t\tborder-left-width: max(${a.paddingLeft}, 1px);\n\t\t\t\tbackground-color: transparent !important;\n\t\t\t}`;case"margin":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t\toverflow: visible !important;\n\t\t\t}\n\t\t\t${t}::after {\n\t\t\t\tall: unset;\n\t\t\t\tcontent: '' !important;\n\t\t\t\tz-index: 2;\n\t\t\t\tposition: absolute;\n\t\t\t\tinset: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-top-color: ${parseInt(a.marginTop,10)<0?Vt:Wt};\n\t\t\t\tborder-right-color: ${parseInt(a.marginRight,10)<0?Vt:Wt};\n\t\t\t\tborder-bottom-color: ${parseInt(a.marginBottom,10)<0?Vt:Wt};\n\t\t\t\tborder-left-color: ${parseInt(a.marginLeft,10)<0?Vt:Wt};\n\t\t\t\tborder-top-width: max(${a.marginTop}, calc(${a.marginTop} * -1), 1px);\n\t\t\t\tborder-right-width: max(${a.marginRight}, calc(${a.marginRight} * -1), 1px);\n\t\t\t\tborder-bottom-width: max(${a.marginBottom}, calc(${a.marginBottom} * -1), 1px);\n\t\t\t\tborder-left-width: max(${a.marginLeft}, calc(${a.marginLeft} * -1), 1px);\n\t\t\t\ttop: calc(max(${a.marginTop}, 1px) * -1);\n\t\t\t\tright: calc(max(${a.marginRight}, 1px) * -1);\n\t\t\t\tbottom: calc(max(${a.marginBottom}, 1px) * -1);\n\t\t\t\tleft: calc(max(${a.marginLeft}, 1px) * -1);\n\t\t\t\tbackground-color: transparent !important;\n\t\t\t}`;case"column-spacing":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t}::after {\n\t\t\t\tall: unset;\n\t\t\t\tcontent: '';\n\t\t\t\tz-index: 2;\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: ${Wt};\n\t\t\t\ttop: calc(max(var(--column-spacing-top, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-top-width: max(var(--column-spacing-top, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tright: calc(max(var(--column-spacing-right, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-right-width: max(var(--column-spacing-right, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tbottom: calc(max(var(--column-spacing-bottom, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-bottom-width: max(var(--column-spacing-bottom, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tleft: calc(max(var(--column-spacing-left, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-left-width: max(var(--column-spacing-left, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tbackground-color: transparent !important;\n\t\t\t}`;case"outline-first-offset":return`${t} {\n\t\t\t\toutline: 1px dashed ${Ut};\n\t\t\t}\n\t\t\t${(0,d.first)(t.split(","))} {\n\t\t\t\toutline-offset: 8px;\n\t\t\t}`;case"outline-second-offset":return`${t} {\n\t\t\t\toutline: 1px dashed ${Ut};\n\t\t\t}\n\t\t\t${(0,d.last)(t.split(","))} {\n\t\t\t\toutline-offset: 8px;\n\t\t\t}`;default:return`${t} {\n\t\t\t\toutline: 1px dashed ${Ut};\n\t\t\t}`}},jt=wp.compose,qt=(0,ue.createContext)(null),Kt=(0,jt.createHigherOrderComponent)((e=>t=>{const n=t.attributes.uniqueId,[o,a]=Eh(null);return(0,ue.useEffect)((()=>{t.isSelected||a(null)}),[t.isSelected]),(0,ue.createElement)(qt.Provider,{value:a},o&&(0,ue.createElement)(Ft,dt({uniqueId:n},o||{})),(0,ue.createElement)(e,dt({className:gt()(t.className,{"stk-has-visual-guide":!!o})},t)))}),"withVisualGuideContext"),Jt=e=>{const[t,n]=(0,ue.useState)(!1),o=(0,ue.useRef)(!1),a=(0,ue.useContext)(qt);return(0,ue.useEffect)((()=>{!t&&a&&a(null)}),[t]),a?(t&&a(e),(0,ue.createElement)("div",{className:"stk-visual-guideer-trigger",onMouseEnter:()=>{var e,t,a,l;o.current=!1,setTimeout((()=>{!o.current&&n&&n(!0)}),10),null!==(e=document)&&void 0!==e&&null!==(t=e.activeElement)&&void 0!==t&&null!==(a=t.getAttribute("data-type"))&&void 0!==a&&a.startsWith("stackable/")&&(null===(l=document.activeElement)||void 0===l||l.blur())},onMouseLeave:()=>{o.current=!0,n(!1)}},e.children)):e.children},Yt={"inner-block-padding":"dist/videos/help/advanced-column-paddings.mp4","column-gap":"dist/videos/help/advanced-column-gap.mp4","advanced-block-paddings":"dist/videos/help/advanced-block-paddings.mp4","image-shape":"dist/videos/help/image-shape.mp4","image-size":"dist/videos/help/image-size-no-crop.mp4","image-border-radius":"dist/videos/help/image-border-radius.mp4","advanced-opacity":"dist/videos/help/advanced-opacity.mp4","advanced-zindex":"dist/videos/help/advanced-zindex.mp4","content-horizontal-align":"dist/videos/help/advanced-block-horizontal-align.mp4","block-height":"dist/videos/help/advanced-block-height.mp4","advanced-block-margin":"dist/videos/help/advanced-block-margins.mp4","content-vertical-align":"dist/videos/help/advanced-column-content-vertical-align.mp4","column-vertical-align":"dist/videos/help/advanced-block-vertical-align.mp4","max-content-width":"dist/videos/help/advanced-block-content-width.mp4","gradient-location":"dist/videos/help/gradient-location.mp4","background-color-opacity":"dist/videos/help/background-color-opacity.mp4","background-blend-mode":"dist/videos/help/background-blend-mode.mp4","background-tint":"dist/videos/help/background-tint.mp4","background-fixed":"dist/videos/help/background-fixed.mp4","background-image-position":"dist/videos/help/background-image-position.mp4","background-image-repeat":"dist/videos/help/background-image-repeat.mp4","background-image-size":"dist/videos/help/background-image-size.mp4","general-border-radius":"dist/videos/help/general-border-radius.mp4","general-shadow":"dist/videos/help/general-shadow.mp4","typography-family":"dist/videos/help/typography-family.mp4","typography-weight":"dist/videos/help/typography-weight.mp4","typography-transform":"dist/videos/help/typography-transform.mp4","typography-line-height":"dist/videos/help/typography-line-height.mp4","typography-letter-spacing":"dist/videos/help/typography-letter-spacing.mp4","button-hover-effect":"dist/videos/help/button-hover-effect.mp4","image-shadow":"dist/videos/help/image-shadow.mp4","separator-height":"dist/videos/help/separator-height.mp4","separator-width":"dist/videos/help/separator-width.mp4","separator-shadow":"dist/videos/help/separator-shadow.mp4","separator-bring-to-front":"dist/videos/help/separator-bring-to-front.mp4","separator-layer-blend-mode":"dist/videos/help/separator-layer-blend-mode.mp4","accordion-adjacent-open":"dist/videos/help/accordion-adjacent-open.mp4","alignment-all":"dist/videos/help/alignment-all.mp4","posts-content-order":"dist/videos/help/posts-content-order.mp4","posts-meta-separator":"dist/videos/help/posts-meta-separator.mp4"},Xt=e=>{const t=Yt[e]||"";return`${m.cdnUrl}/${t}`},Qt=e=>(0,ue.createElement)(mt.Popover,dt({},e,{className:gt()("stk-popover",e.className),onKeyDown:t=>{if(27===t.keyCode)return t.preventDefault(),t.stopPropagation(),void e.onEscape();e.onKeyDown&&e.onKeyDown(t)}}));Qt.defaultProps={className:"",onEscape:()=>{}};const Zt=Qt,en=()=>{},tn=e=>(0,ue.createElement)(Zt,{className:"stk-control-help-tooltip",title:e.title,placement:"left",offset:28,noArrow:!1,onFocusOutside:e.closeOnEscape?e.onClose:en,onEscape:e.closeOnEscape?e.onClose:en},(0,ue.createElement)(mt.PanelBody,null,(0,ue.createElement)("button",{className:"stk-control-help-tooltip__remove",onClick:e.onClose},(0,ue.createElement)(mt.Dashicon,{icon:"no-alt"})),e.video&&(0,ue.createElement)("video",{width:"600",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,src:Xt(e.video)}),(0,ue.createElement)("h4",null,e.title),(0,ue.createElement)("p",null,e.description),e.showTooltipCheckbox&&(0,ue.createElement)(mt.CheckboxControl,{label:(0,v.__)("Stop showing tooltips",m.i18n),className:"ugb-help-tooltip__checkbox",checked:!e.tooltipsEnabled,onChange:t=>e.onTooltipsEnabledChange(!t)})));tn.defaultProps={title:"",video:"",description:"",closeOnEscape:!0,onClose:en,showTooltipCheckbox:!0,tooltipsEnabled:!0,onTooltipsEnabledChange:en};const nn=tn;function on(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}const an=e=>{const{title:t,label:n,video:o,description:a}=e,[l,r]=(0,ue.useState)(!1),[i,s]=function(){const[e,t]=(0,ue.useState)(rn);return(0,ue.useEffect)((()=>{var e;const n=e=>t(e.detail);return null===(e=window)||void 0===e||e.addEventListener("_stkHelpTooltipEnabledChanged",n),()=>{window.removeEventListener("_stkHelpTooltipEnabledChanged",n)}}),[]),[e,e=>{rn=e,new u.models.Settings({stackable_help_tooltip_disabled:e?"":"1"}).save(),window.dispatchEvent(new CustomEvent("_stkHelpTooltipEnabledChanged",{detail:e}))}]}(),c=sn(r),d=(0,ue.useRef)(),p=(0,ue.useRef)();return a&&(i||l)?(0,ue.createElement)("div",{className:"components-base-control__label"},(0,ue.createElement)("span",{className:"stk-control__label--has-tooltip",onMouseEnter:()=>{clearTimeout(d.current),d.current=setTimeout((()=>{c(!0),setTimeout((()=>{document.querySelector(".stk-control-help-tooltip").focus()}),100)}),800)},onMouseLeave:()=>{clearTimeout(d.current)},onMouseDown:()=>{p.current=l},onClick:()=>{p.current||(clearTimeout(d.current),c((e=>!e)),l||setTimeout((()=>{document.querySelector(".stk-control-help-tooltip").focus()}),100))},onKeyDown:e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),c((e=>!e)))},role:"button",tabIndex:"0"},n),l&&(0,ue.createElement)(nn,{title:t||n,description:a,video:o,onClose:()=>c(!1),tooltipsEnabled:i,onTooltipsEnabledChange:s})):(0,ue.createElement)("div",{className:"components-base-control__label"},n)};an.defaultProps={label:"",description:"",video:""};const ln=an;let rn=!0;on((()=>{g().then((e=>{rn="1"!==e.stackable_help_tooltip_disabled})).catch((()=>{}))}));const sn=e=>((0,ue.useEffect)((()=>{var t;const n=()=>e(!1);return null===(t=window)||void 0===t||t.addEventListener("_stkHelpTooltipOpened",n),()=>{window.removeEventListener("_stkHelpTooltipOpened",n)}}),[]),t=>{t&&window.dispatchEvent(new CustomEvent("_stkHelpTooltipOpened")),e(t)}),cn=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const l=He(),r=Qe(e,t,n),i=Ae((e=>e[r])),s=void 0!==i?i:"";let c=void 0!==i?i:"";o&&(c=o(c));const d=e=>{const t=a?a(e,s):e;l({[r]:t})};return[c,d]},dn=["desktop","tablet","mobile"],un={},pn=e=>{var t,n,o,a;const l=ve(),r=gt()(["stk-control",e.className],{"stk-control--disabled":e.disableTablet&&"Tablet"===l||e.disableMobile&&"Mobile"===l}),i=!(null===(t=e.responsive)||void 0===t||!t.length),s=!(null===(n=e.hover)||void 0===n||!n.length),c=!(null===(o=e.units)||void 0===o||!o.length),d="all"===e.responsive?dn:e.responsive,u=e.units&&(null===(a=e.units)||void 0===a?void 0:a.map((e=>({value:e}))))||[],p=gt()(["stk-control-label"],{"stk-control-label--bold":e.boldLabel}),h=e.boldLabel?(0,ue.createElement)("h3",null,e.label):e.label,g=e.visualGuide!==un?Jt:ue.Fragment;return(0,ue.createElement)(mt.BaseControl,{help:e.help,className:r},(0,ue.createElement)(g,e.visualGuide,(0,ue.createElement)("div",{className:p},(0,ue.createElement)(ln,dt({label:h},e.helpTooltip)),(0,ue.createElement)("div",{className:"stk-control-label__toggles"},i&&(0,ue.createElement)(At,{screens:d,attribute:e.attribute,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue,valueCheckAttribute:e.valueCheckAttribute}),s&&(0,ue.createElement)($t,{hover:e.hover,attribute:e.attribute,hasResponsive:i,forceUpdateHoverState:e.forceUpdateHoverState,hasHoverStateValue:e.hasHoverStateValue})),(0,ue.createElement)("div",{className:"stk-control-label__after"},c&&(0,ue.createElement)(Bt,{className:"stk-control-label__units",value:e.unit,options:u,onChange:t=>e.onChangeUnit(t),buttonLabel:(0,v.__)("Unit",m.i18n),hasLabels:!1,hasColors:!1,labelPosition:"left"}),e.after)),(0,ue.createElement)("div",{className:"stk-control-content"},e.children)))};pn.defaultProps={className:"",label:"",help:"",boldLabel:!1,attribute:"",responsive:!1,hover:!1,units:!1,unit:"",onChangeUnit:null,after:null,disableTablet:!1,disableMobile:!1,hasTabletValue:void 0,hasMobileValue:void 0,visualGuide:un,helpTooltip:un,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const hn=e=>{const t=Qe(`${e.attribute}Unit`,e.responsive,e.hover),n=Ae((e=>e[t]))||"",o=e.unit?e.unit:n,a=He();return(0,ue.createElement)(pn,dt({},e,{unit:o,onChangeUnit:o=>{if(e.onChangeUnit)return e.onChangeUnit(o,t,n);a({[t]:o})}}))};hn.defaultProps={className:"",label:"",help:"",attribute:"",responsive:!1,hover:!1,units:!1,onChangeUnit:null,unit:null,after:null,valueCheckAttribute:"",disableTablet:!1,disableMobile:!1,hasTabletValue:void 0,hasMobileValue:void 0,visualGuide:un,helpTooltip:un,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const gn=hn,mn=e=>{const t=[...Object.keys(hn.defaultProps),"allowReset","screens"],n=(0,d.pick)(e,t);return e.screens&&(n.responsive=e.screens),[(0,d.omit)(e,t),n]},vn=(0,ue.createElement)(mt.Dashicon,{icon:"image-rotate"}),bn=(0,ue.memo)((e=>{const t=null!==e.showReset?e.showReset:void 0!==e.value&&e.value!==e.default&&e.value!==e.placeholder,n=gt()(["stk-control__reset-button",{"stk-control__reset-button--no-modified":!e.hasPanelModifiedIndicator}]);return e.allowReset&&t&&(0,ue.createElement)(yt,{className:n,isSmall:!0,isTertiary:!0,label:(0,v.__)("Reset",m.i18n),onClick:()=>{e.onChange(void 0===e.default?"":e.default)},icon:vn})}));bn.defaultProps={allowReset:!0,showReset:null,value:"",default:"",onChange:null,hasPanelModifiedIndicator:!0};const fn=[{value:"",title:(0,v.__)("Single",m.i18n)},{value:"gradient",title:(0,v.__)("Gradient",m.i18n)}],kn=(0,ue.memo)((e=>{const{onChange:t,preOnChange:n,value:o,colors:a,gradients:l,isGradient:r}=e,[i,s]=(0,ue.useState)(o.startsWith("linear-")||o.startsWith("radial-")?"gradient":""),c=a.reduce(((e,t)=>[...e,...t.colors||t.gradients]),[]);let d,u=o;return c.some((e=>(e.color===o||e.gradient===o)&&(u=e.name,d=e.name,!0))),d=u||("transparent"===o?"Transparent":o),(0,ue.createElement)(ue.Fragment,null,e.hasGradientPicker&&(0,ue.createElement)(Ao,{className:"stk-color-palette-popup-control__tabs",controls:fn,fullwidth:!1,allowReset:!1,value:i,onChange:e=>s(e),disabled:e.enableGradient?[]:["gradient"]}),(e.hasGradientPicker?i:r)&&(0,ue.createElement)(mt.GradientPicker,{onChange:e=>{t(n(e,o))},value:o.startsWith("linear-")||o.startsWith("radial-")?o:null,gradients:e.hasGradientPicker?l:a,clearable:!1,__experimentalHasMultipleOrigins:!0}),(e.hasGradientPicker?!i:!r)&&(0,ue.createElement)(mt.ColorPicker,{onChange:e=>{t(n(e,o))},color:o,enableAlpha:!0}),(e.hasGradientPicker?!i:!r)&&(0,ue.createElement)(mt.ColorPalette,{value:o,onChange:e=>{const a=(0,$e.getColorObjectByColorValue)(c,e);t(n((0,le.applyFilters)("stackable.color-palette-control.change",e,a),o))},disableCustomColors:!0,label:d,clearable:!1,colors:a,__experimentalHasMultipleOrigins:!0}))}));kn.defaultProps={value:"",onChange:()=>{},preOnChange:e=>e,colors:[],gradients:[],isGradient:!1,hasGradientPicker:!1,enableGradient:!1};const yn={placement:"left-start",offset:36,shift:!0};(0,le.addFilter)("stackable.color-palette-control.colors","stackable/global-color-schemes-color-palette-control",(e=>{let{colors:t,gradients:n}=e;const{getColorGroups:o}=Ih(),{colorSchemeColors:a,colorSchemeGradients:l}=o();let r=(0,d.cloneDeep)(t),i=(0,d.cloneDeep)(n);return i=[...l,...i],r=[...a,...t],{colors:r,gradients:i}})),(0,le.addFilter)("stackable.color-palette-control.colors","stackable/color-palette-control",(e=>{let{colors:t,gradients:n}=e;const{stackableColors:o,stackableGradients:a}=(0,he.select)("stackable/global-colors").getSettings();let l=(0,d.cloneDeep)(t),r=(0,d.cloneDeep)(n);return a&&a.length&&(r=[{name:(0,v.__)("Global Gradients",m.i18n),gradients:(0,d.cloneDeep)(a),id:"stk-global-gradients"},...r]),o&&o.length&&(l=[{name:(0,v.__)("Global Colors",m.i18n),colors:(0,d.cloneDeep)(o),id:"stk-global-colors"},...l]),{colors:l,gradients:r}})),(0,le.addFilter)("stackable.color-palette-control.color-value","stackable/color-palette-control",(e=>"string"==typeof e&&e.includes("--stk-global-color")&&e.match(/#[\d\w]{6,}/)?e.match(/#[\d\w]{6,}/)[0]:e));const wn=(0,ue.memo)((e=>{const{label:t,className:n=""}=e,[o,a]=cn(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=mn(e),{hideThemeColors:i,hideDefaultColors:s,hideSiteEditorColors:c}=(0,he.useSelect)("stackable/global-colors").getSettings();let{colors:d,gradients:u}=(0,le.applyFilters)("stackable.color-palette-control.colors",(0,$e.__experimentalUseMultipleOriginColorsAndGradients)());d=d.filter((e=>!(i&&e.name===(0,v._x)("Theme","Indicates this palette comes from the theme.")||s&&e.name===(0,v._x)("Default","Indicates this palette comes from WordPress.")||c&&e.name===(0,v._x)("Custom","Indicates this palette comes from the theme.")))),u=u.filter((e=>!(i&&e.name===(0,v._x)("Theme","Indicates this palette comes from the theme.")||s&&e.name===(0,v._x)("Default","Indicates this palette comes from WordPress.")||c&&e.name===(0,v._x)("Custom","Indicates this palette comes from the theme."))));const p=[...d,...u].reduce(((e,t)=>[...e,...t.colors||t.gradients]),[]);let h=void 0===e.value?o:e.value;const g=void 0===e.onChange?a:e.onChange;h=(0,le.applyFilters)("stackable.color-palette-control.color-value",h);let m,b=h,f=h;p.some((e=>e.color===h||e.gradient===h?(b=e.name,m=e.name,!0):!(!e.slug||`var(--${e.slug})`!==h||(b=e.name,m=e.name,f=e.color,0)))),m=b||("transparent"===h?"Transparent":h);const k={colorValue:h,label:e.colorLabel||m,additionalToggleProps:e.additionalToggleProps},y=(0,ue.createElement)(kn,{value:f,onChange:g,preOnChange:e.preOnChange,colors:e.isGradient?u:d,isGradient:e.isGradient,hasGradientPicker:e.hasGradientPicker,enableGradient:e.hasGradientPicker&&e.enableGradient,gradients:u});return(0,ue.createElement)(gn,dt({},r,{className:gt()([n,"editor-color-palette-control","stk-color-palette-control"]),label:t}),e.isExpanded&&y,!e.isExpanded&&(0,ue.createElement)(mt.Dropdown,{popoverProps:yn,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:_n(k),renderContent:()=>(0,ue.createElement)("div",{className:"stk-color-palette-control__popover-content"},y)}),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:h,default:e.default,onChange:g}))}));wn.defaultProps={allowReset:!0,default:"",attribute:"",value:void 0,colorLabel:void 0,onChange:void 0,preOnChange:e=>e,isExpanded:!1,isGradient:!1,hasGradientPicker:!1,enableGradient:!1,additionalToggleProps:{}};const Cn=wn,_n=e=>t=>{let{onToggle:n,isOpen:o}=t;const{colorValue:a,label:l,additionalToggleProps:r}=e,i={onClick:n,className:gt()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":o}),"aria-expanded":o,...r};return(0,ue.createElement)(mt.Button,i,(0,ue.createElement)(En,{colorValue:a,label:l}))},En=e=>{let{colorValue:t,label:n}=e;return(0,ue.createElement)(mt.__experimentalHStack,{justify:"flex-start"},(0,ue.createElement)(mt.ColorIndicator,{className:"stk-color-indicator block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),(0,ue.createElement)(mt.FlexItem,{className:"stk-color-name block-editor-panel-color-gradient-settings__color-name",title:n},n))},Sn=(0,ue.createContext)(null),xn=(0,jt.createHigherOrderComponent)((e=>t=>(0,ue.createElement)(Sn.Provider,{value:t.context},(0,ue.createElement)(e,t))),"withQueryLoopContext"),Tn=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),(0,ue.createElement)("path",{d:"M289 445l-33 35-33-35L0 208 112 32h288l112 176-223 237zm142-221H81l175 186 175-186zm3.7-48L385 97.9 311.5 176h123.2zM336 80H176l80 85 80-85zM127 97.9L77.3 176h123.2L127 97.9z"}))},Bn={image:{title:(0,v.__)("Get More Image Shapes",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Mask images with a variety of blob-like shapes",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Choose from over 50 different shapes",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Enhances the overall aesthetic of images",m.i18n)))},"dynamic-attributes":{title:(0,v.__)("Use Dynamic Content",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Add dynamic content from posts or post meta",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Use third-party plugins as dynamic sources such as ACF, Meta Box, Toolset, and more",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Build custom loop design with the Native Query Loop",m.i18n)))},separator:{title:(0,v.__)("Separator Layers",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Add a second and third layer to separators",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Change layer color, size and opacity",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Greater creativity in designing separators",m.i18n)))},"icon-colors":{title:(0,v.__)("Elevate Your Icons",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Liven up icons with gradient fills, multiple colors and background shapes",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("More design options and customization for icons",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Choose from over 50 background shapes",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Greater visual interest and variety for your icons",m.i18n)))},"icon-background-shape":{description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Liven up icons with background shapes",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Choose from over 50 background shapes",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Greater visual interest and variety for your icons",m.i18n)))},transforms:{description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Adjust timing of CSS transitions",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Change X and Y position of blocks",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Scale or rotate blocks",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Perfect for hover animations",m.i18n)))},"motion-effects":{description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Entrance fade-ins and animations when scrolling to blocks",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Smooth scroll animations based on scrolling position",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Create a more visually engaging and interactive experience",m.i18n)))},"conditional-display":{description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Show or hide blocks based on conditions",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Display blocks based on time, role, meta, custom PHP, option, taxonomy and more",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Use multiple conditions",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Show targeted content and personalization",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Greater control over the visibility of content",m.i18n)))},"custom-css":{description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Add custom CSS rules specific for each block",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Support for media queries",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Fine-tune styling on a per block basis",m.i18n)))},"column-arrangement":{title:(0,v.__)("Adjust Column Arrangement",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Adjust the arrangement of columns when collapsed on tablet and mobile",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Ensure that content remains organized and easily readable on mobile",m.i18n)))},"design-library":{title:(0,v.__)("This is a Premium Design",m.i18n),description:(0,v.__)("Unlock access to the entire design library and set your website apart from the rest.",m.i18n)},posts:{title:(0,v.__)("Get More Post Options",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("New Custom Post Type option",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Offset, exclude, include specific posts",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Hide the current post - great for synced patterns",m.i18n)))},"icon-library":{title:(0,v.__)("Unlock Your Icon Library",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Add your custom SVG icons",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Easily access your custom icons in the icon picker",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Organize your custom icons in your library",m.i18n)))},"font-pairs":{title:(0,v.__)("Premium Typography",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Access to 90+ curated font pairs",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Create your own custom font pairs",m.i18n)))},"color-schemes":{title:(0,v.__)("Premium Color Schemes",m.i18n),description:(0,ue.createElement)("ul",null,(0,ue.createElement)("li",null,(0,v.__)("Access to 50+ curated color scheme presets",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Create your own color schemes",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Set default color schemes for blocks and sections",m.i18n)),(0,ue.createElement)("li",null,(0,v.__)("Streamline your design workflow",m.i18n)))}},Mn=e=>{var t,n,o;const a=gt()(["ugb-design-control-pro-note",e.className]),l=e.description||(null===(t=Bn[e.type])||void 0===t?void 0:t.description);return(0,ue.createElement)("div",{className:a},e.isDismissible&&(0,ue.createElement)(yt,{className:"ugb-design-control-pro-note__close",icon:"no-alt",isTertiary:!0,onClick:e.onClose}),e.showImage&&(0,ue.createElement)("img",{src:("dist/images/components-pro-control-pro-icon.05ae547.png",`${m.srcUrl}/dist/images/components-pro-control-pro-icon.05ae547.png`),className:"ugb-design-control-pro-note__logo",alt:""}),(0,ue.createElement)("h4",null,e.title||(null===(n=Bn[e.type])||void 0===n?void 0:n.title)||(0,v.__)("This Is a Premium Feature",m.i18n)),l&&(0,ue.createElement)("div",{className:"ugb-design-control-pro-note__description"},l),e.showButton&&(0,ue.createElement)("div",null,(0,ue.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=editor-learn-more&utm_campaign=learnmore&utm_medium=gutenberg",target:"_premium",className:"button button-secondary"},(0,ue.createElement)(Tn,null),e.button||(null===(o=Bn[e.type])||void 0===o?void 0:o.button)||(0,v.__)("Learn More",m.i18n))),e.demoUrl&&(0,ue.createElement)("p",{className:"ugb-design-control-pro-note__demo-link"},(0,ue.createElement)("a",{href:e.demoUrl,target:"_premium",className:"button button-secondary"},(0,v.__)("View Demo",m.i18n))),e.showHideNote&&(0,ue.createElement)("p",{className:"ugb-design-control-pro-note__notice"},(0,v.__)("You can hide premium hints in the settings",m.i18n)))};Mn.defaultProps={className:"",type:"",title:"",description:"",button:"",showImage:!0,showButton:!0,showHideNote:!0,demoUrl:"",buttonUtmSource:void 0,isDismissible:!1,onClose:()=>{}};const In=Mn,Nn=e=>{var t,n;const[o,a]=(0,ue.useState)(!1),[l,r]=(0,ue.useState)(e.value);(0,ue.useEffect)((()=>{const e=e=>{o&&(e.target.closest(".stackable-dynamic-content__popover")||e.target.closest(".stk-dynamic-content-control__button")||e.target.closest(".components-color-picker")||e.target.closest(".react-autosuggest__suggestions-container")||e.target.closest(".components-dropdown__content")||a(!1))};return document.body.addEventListener("mousedown",e),()=>document.body.removeEventListener("mousedown",e)}),[o]),(0,ue.useEffect)((()=>{const t=setTimeout((()=>{r(e.value)}),300);return()=>clearTimeout(t)}),[e.value]);const i=[];var s,c;null!=l&&null!==(t=l.includes)&&void 0!==t&&t.call(l,"!#stk_dynamic")&&(null===(s=l.match(/\!#stk_dynamic\/(.*)\!#/g))||void 0===s||s.forEach((e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/","");i.push(t)}))),null!=l&&null!==(n=l.includes)&&void 0!==n&&n.call(l,'data-stk-dynamic="')&&(null===(c=l.match(/data-stk-dynamic="[^"]*"/g))||void 0===c||c.forEach((e=>{var t,n,o;const a=null===(t=e.match(/data-stk-dynamic="(.*?(?="))"/g))||void 0===t||null===(n=t[0])||void 0===n||null===(o=n.replace(/"/g,""))||void 0===o?void 0:o.replace("data-stk-dynamic=","");a&&i.push(a)})));const u=An(l),p=Hn(l),h=o||i.length,g=(0,d.first)(i)||"";return{onClick:()=>{a(!o)},isPressed:h,isPopoverOpen:o,value:u,placeholder:p,onClose:()=>{a(!1)},onReset:()=>{e.onChange("")},onChange:(t,n,o)=>{const l=e.isFormatType?`<span data-stk-dynamic="${o}" contenteditable="false" class="stk-dynamic-content">${t}</span>`:`!#stk_dynamic/${o}!#`;e.onChange(l),r(l),a(!1)},activeAttribute:g}},Rn=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,he.select)("stackable/dynamic-content"))return t;const o=(null===(e=(0,he.select)("core/editor"))||void 0===e?void 0:e.getCurrentPostId())||-1;let a=t;var l,r;return-1!==o&&null!=n&&n.postId&&n.postId!==o&&(a=null===(l=a)||void 0===l?void 0:l.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],o=t.split("/");return t.startsWith("current-page")?(o.length>2&&o[2].startsWith("?")?o.splice(2,0,n.postId.toString()):2===o.length&&o.push(n.postId.toString()),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+o.join("/")+'"')):e})),a=null===(r=a)||void 0===r?void 0:r.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),o=t.split("/");return t.startsWith("current-page")?(o.length>2?o.splice(2,0,n.postId.toString()):2===o.length&&o.push(n.postId.toString()),"!#stk_dynamic/"+o.join("/")+"!#"):e}))),(0,he.select)("stackable/dynamic-content").parseDynamicContents(a)},An=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{clientId:t}=(0,$e.useBlockEditContext)(),n=(0,he.select)("core/block-editor").getBlock(t),o=(0,ue.useContext)(Sn);return(0,he.useSelect)((t=>{var a;if(!e||!(0,d.isString)(e))return e;if(!e.includes("!#stk_dynamic")&&!e.includes("data-stk-dynamic"))return e;if(!t("stackable/dynamic-content"))return e;let l=(null===(a=t("core/editor"))||void 0===a?void 0:a.getCurrentPostId())||-1;var r,i;l&&(null==o?void 0:o.postId)!==l&&(l=(null===(r=o.postId)||void 0===r?void 0:r.toString())||-1),-1===l&&t("core/edit-site")&&(l=(null===(i=t("core/edit-site").getEditedPostContext())||void 0===i?void 0:i.postId)||-1);let s=e;var c,u;-1!==l&&(s=null===(c=s)||void 0===c?void 0:c.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")?(n.length>2&&n[2].startsWith("?")?n.splice(2,0,l):2===n.length&&n.push(l),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),s=null===(u=s)||void 0===u?void 0:u.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")?(n.length>2?n.splice(2,0,l):2===n.length&&n.push(l),"!#stk_dynamic/"+n.join("/")+"!#"):e})));let p=t("stackable/dynamic-content").parseDynamicContents(s,n);var h,g;return-1!==l&&(p=null===(h=p)||void 0===h?void 0:h.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")&&(0,d.last)(n).match(/^\d+$/)?(n.pop(),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),p=null===(g=p)||void 0===g?void 0:g.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")&&(0,d.last)(n).match(/^\d+$/)?"!#stk_dynamic/"+n.join("/")+"!#":e}))),p}),[e,null==o?void 0:o.postId])},Hn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,he.useSelect)((t=>{var n,o;if(!t("stackable/dynamic-content"))return e;let a=e;return null!=e&&null!==(n=e.includes)&&void 0!==n&&n.call(e,"!#stk_dynamic")&&(a=a.replace(/\!#stk_dynamic\/(.*)\!#/g,(e=>{const n=e.replace(/\!#/g,"").replace("stk_dynamic/","");let o=(0,d.first)(t("stackable/dynamic-content").getFieldTitle(n));var a;o||(o=null===(a=new URL(`stk:${n}`).pathname.split("/"))||void 0===a?void 0:a[1]);return o?`[${o}]`:""}))),null!=e&&null!==(o=e.includes)&&void 0!==o&&o.call(e,'data-stk-dynamic="')&&(a=a.replace(/<span[^\>]+data-stk-dynamic="[^>"]*"[^\>]*>(.*?)<\/span>/g,(n=>{var o,a,l;const r=null===(o=n.match(/data-stk-dynamic="(.*?(?="))"/g))||void 0===o||null===(a=o[0])||void 0===a||null===(l=a.replace(/"/g,""))||void 0===l?void 0:l.replace("data-stk-dynamic=","");if(e){let e=(0,d.first)(t("stackable/dynamic-content").getFieldTitle(r));var i;if(!e)e=null===(i=new URL(`stk:${r}`).pathname.split("/"))||void 0===i?void 0:i[1];return e?`[${e}]`:""}return n}))),a}))},Pn=(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({"aria-hidden":"true","data-prefix":"fal","data-icon":"database",className:"database-light_svg__svg-inline--fa database-light_svg__fa-database database-light_svg__fa-w-14",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),(0,ue.createElement)("path",{fill:"currentColor",d:"M224 32c106 0 192 28.75 192 64v32c0 35.25-86 64-192 64S32 163.25 32 128V96c0-35.25 86-64 192-64m192 149.5V224c0 35.25-86 64-192 64S32 259.25 32 224v-42.5c41.25 29 116.75 42.5 192 42.5s150.749-13.5 192-42.5m0 96V320c0 35.25-86 64-192 64S32 355.25 32 320v-42.5c41.25 29 116.75 42.5 192 42.5s150.749-13.5 192-42.5m0 96V416c0 35.25-86 64-192 64S32 451.25 32 416v-42.5c41.25 29 116.75 42.5 192 42.5s150.749-13.5 192-42.5M224 0C145.858 0 0 18.801 0 96v320c0 77.338 146.096 96 224 96 78.142 0 224-18.801 224-96V96c0-77.338-146.096-96-224-96z"}))}),null),On=(0,ue.memo)((e=>{if((0,he.select)("core/customize-widgets"))return null;if(!m.isPro&&!m.showProNotice)return null;const t=(0,le.applyFilters)("stackable.dynamic-content.component")||ue.Fragment;return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(mt.Button,{className:"stk-dynamic-content-control__button",icon:Pn,"aria-haspopup":"true",label:(0,v.__)("Dynamic Fields",m.i18n),variant:"secondary",onClick:e.onClick,isPressed:!!e.isPressed}),e.isPopoverOpen&&(0,ue.createElement)(Zt,{position:"top right",className:gt()("stackable-dynamic-content__popover",{"stk-dynamic-content__popover--is-premium":!m.isPro}),onEscape:e.onClick},!m.isPro&&(0,ue.createElement)(In,{type:"dynamic-attributes"}),m.isPro&&(0,ue.createElement)(t,{onClose:e.onClose,onChange:e.onChange,activeAttribute:e.activeAttribute,type:e.type})))})),zn=e=>{let{children:t,enable:n,...o}=e;if(!n)return t;const a=""!==o.activeAttribute,l=gt()(["stk-dynamic-content-control"],{"stk--has-dynamic-content":a,"stk--has-control-tooltip":o.controlHasTooltip});return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)("div",{className:l},a?(0,ue.createElement)(mt.TextControl,{value:o.placeholder,disabled:!0}):t,(0,ue.createElement)(On,o)),(0,ue.createElement)(bn,{allowReset:!0,value:o.activeAttribute,default:"",hasPanelModifiedIndicator:o.hasPanelModifiedIndicator,onChange:o.onReset}))};zn.defaultProps={enable:!1,controlHasTooltip:!1,children:null,activeAttribute:"",onReset:()=>{}};const Ln=zn,$n=(0,ue.memo)((e=>{const[t,n]=cn(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[o,a]=mn(e),{isDynamic:l,isMultiline:r,changeDynamicContent:i,isFormatType:s,...c}=o,d=void 0!==i?i:void 0===e.onChange?n:e.onChange,u=Nn({value:void 0===e.value?t:e.value,onChange:d,isFormatType:s}),[p,h]=Ze(void 0===e.value?t:e.value),g=void 0===e.onChange?n:e.onChange,m=e=>{h(e),g(e)},v=r?mt.TextareaControl:mt.TextControl;return(0,ue.createElement)(gn,dt({className:e.className},a),(0,ue.createElement)(Ln,dt({enable:l,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator},u),(0,ue.createElement)(v,dt({},c,{value:p,onChange:m,className:gt()(o.className,"ugb-advanced-text-control")}))),(0,ue.createElement)(bn,{allowReset:a.allowReset&&!e.isDynamic,value:p,default:e.default,onChange:m,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}))}),d.isEqual);$n.defaultProps={className:"",isMultiline:!1,allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,isDynamic:!1,isFormatType:!0,value:void 0,onChange:void 0,changeDynamicContent:void 0,hasPanelModifiedIndicator:!0};const Dn=$n,Fn=e=>Array.isArray(e)?e.map((e=>{const[t,n]=e;var o;return[t,`"${o=n,(0,d.escape)(unescape(o))}"`].join("=")})).join(" "):"",Un=e=>{const t=(0,ue.useRef)(),[n,o]=(0,ue.useState)(!1),[a,l]=(0,ue.useState)(Fn(e.value));return(0,ue.createElement)(Dn,{ref:t,"data-testid":"custom-attributes",className:"ugb-custom-attributes-control",label:(0,v.__)("Custom Attributes",m.i18n),value:a,onBlur:()=>{Array.isArray(e.value)&&e.value.length>0&&l(Fn(e.value))},onChange:t=>{var n;l(t);const a=document.createElement("div");a.innerHTML=`<div ${t} />`;const r=(null===(n=a.children[0])||void 0===n?void 0:n.attributes)||[],i=[];let s=!1;""===a.innerHTML&&""!==t.trim()&&(s=!0);for(let t=0;t<r.length;t++)if(!e.invalidHtmlAttributes.includes(r[t].name))try{const e=document.createElement("div");Tm(e).render((0,ue.createElement)("div",{[r[t].name]:r[t].value})),(0,ue.unmountComponentAtNode)(e),document.createElement("div").setAttribute(r[t].name,r[t].value),i.push([r[t].name,escape(r[t].value)])}catch{s=!0}o(s),e.onChange(i)},help:(0,ue.createElement)(ue.Fragment,null,(0,v.__)("You can type in custom HTML attributes for this block in the field above.",m.i18n)," ",(0,v.__)("Example:",m.i18n),(0,ue.createElement)("br",null),(0,ue.createElement)("code",null,'data-id="my-title"'),(0,ue.createElement)("br",null),(0,ue.createElement)(mt.ExternalLink,{href:"https://docs.wpstackable.com/article/461-how-to-use-custom-attributes?utm_source=inspector&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,v.__)("Learn more about Custom Attributes",m.i18n)),n&&(0,ue.createElement)("span",{className:"ugb-custom-attributes-control__error"},(0,v.__)("There is an error in your custom attribute",m.i18n)))})};Un.defaultProps={label:"",value:[],invalidHtmlAttributes:[],onChange:()=>{}};const Wn=Un,Vn=[{value:"",label:(0,v.__)("None",m.i18n)},{value:"normal",label:(0,v.__)("Normal",m.i18n)},{value:"multiply",label:(0,v.__)("Multiply",m.i18n)},{value:"screen",label:(0,v.__)("Screen",m.i18n)},{value:"overlay",label:(0,v.__)("Overlay",m.i18n)},{value:"darken",label:(0,v.__)("Darken",m.i18n)},{value:"lighten",label:(0,v.__)("Lighten",m.i18n)},{value:"color-dodge",label:(0,v.__)("Color Dodge",m.i18n)},{value:"color-burn",label:(0,v.__)("Color Burn",m.i18n)},{value:"hard-light",label:(0,v.__)("Hard Light",m.i18n)},{value:"soft-light",label:(0,v.__)("Soft Light",m.i18n)},{value:"difference",label:(0,v.__)("Difference",m.i18n)},{value:"exclusion",label:(0,v.__)("Exclusion",m.i18n)},{value:"hue",label:(0,v.__)("Hue",m.i18n)},{value:"saturation",label:(0,v.__)("Saturation",m.i18n)},{value:"color",label:(0,v.__)("Color",m.i18n)},{value:"luminosity",label:(0,v.__)("Luminosity",m.i18n)},{value:"initial",label:(0,v.__)("Initial",m.i18n)},{value:"inherit",label:(0,v.__)("Inherit",m.i18n)},{value:"unset",label:(0,v.__)("Unset",m.i18n)}],Gn=e=>(0,ue.createElement)(so,dt({},e,{className:e.className,options:Vn}));Gn.defaultProps={className:"",label:(0,v.__)("Mix Blend Mode",m.i18n),help:""};const jn=Gn,qn=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),(0,ue.createElement)("circle",{cx:409.1,cy:102.9,r:40.9}),(0,ue.createElement)("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}))},Kn=e=>{const t=e.imageURL&&e.imageURL.match(/(mp4|webm|ogg)$/i)?"video":"image",n=()=>{e.onRemove?e.onRemove():e.onChange({url:"",id:"",width:"",height:""})};return(0,ue.createElement)("div",{className:"ugb-image-control"},(0,ue.createElement)(mt.BaseControl,{help:e.help},(0,ue.createElement)(rr,{label:e.label,screens:e.screens}),(0,ue.createElement)($e.MediaUpload,{onSelect:e.onChange,allowedTypes:e.allowedTypes,value:e.imageID,render:o=>(0,ue.createElement)(ue.Fragment,null,e.imageURL&&(0,ue.createElement)("div",{className:"ugb-image-preview-wrapper"},(0,ue.createElement)("button",{className:"ugb-image-preview-remove",onClick:n},(0,ue.createElement)(mt.Dashicon,{icon:"no"})),"video"===t&&(0,ue.createElement)("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:e.imageURL,onClick:o.open,onKeyDown:e=>{13===e.keyCode&&o.open()}}),"image"===t&&(0,ue.createElement)("img",{className:"ugb-image-preview",draggable:"false",src:e.imageURL,onClick:o.open,onKeyDown:e=>{13===e.keyCode&&o.open()},alt:(0,v.__)("preview",m.i18n)})),!e.imageURL&&(0,ue.createElement)("div",{className:"ugb-placeholder",onClick:o.open,onKeyDown:e=>{13===e.keyCode&&o.open()},role:"button",tabIndex:0},(0,ue.createElement)(qn,null)))})))};Kn.defaultProps={label:"",imageID:"",imageURL:"",onChange:e=>{let{url:t,id:n,width:o,height:a}=e},onRemove:()=>{},allowedTypes:["image"],help:"",screens:["desktop"]};const Jn=Kn,Yn=e=>{const[t,n]=Ze(e.value);return(0,ue.createElement)(mt.TextareaControl,dt({},e,{value:t,onChange:t=>{n(t),e.onChange(t)},help:(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(mt.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,v.__)("Describe the purpose of the image",m.i18n)),(0,v.__)("Leave empty if the image is purely decorative.",m.i18n))}))};Yn.defaultProps={label:(0,v.__)("Alt Text (Alternative Text)",m.i18n)};const Xn=Yn,Qn=e=>{const{className:t,hasDefault:n,...o}=e;return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Ml,dt({},o,{className:gt()(t,["ugb-image-shape-control"]),options:[...n?[{label:(0,v.__)("Default",m.i18n),value:"",image:"dist/images/components-image-shape-control-default.5e465f6.png"}]:[],{label:(0,v.__)("Square",m.i18n),value:"square",image:"dist/images/components-image-shape-control-square.d8d54ee.png"},{label:(0,v.__)("Circle",m.i18n),value:"circle",image:"dist/images/components-image-shape-control-circle.ddaef4e.png"},{label:(0,v.sprintf)((0,v.__)("Blob %s",m.i18n),1),value:"blob1",image:"dist/images/components-image-shape-control-blob1.3c54e8e.png"},...(0,le.applyFilters)("stackable.image.control.shapes",[])]})),m.showProNotice&&(0,ue.createElement)(ar,{type:"image"}))};Qn.defaultProps={className:"",label:(0,v.__)("Shape",m.i18n),selected:"",hasDefault:!0};const Zn=Qn,eo=e=>{let{imageSizes:t,value:n,className:o,defaultValue:a,...l}=e;const r=(e=>(0,d.map)(e,(e=>{let{name:t,slug:n}=e;return{value:n,label:t}})))(t);return(0,d.isEmpty)(r)?null:(0,ue.createElement)(so,dt({},l,{value:n||"large",options:r,className:o,defaultValue:a||"large",default:a||"large"}))};eo.defaultProps={className:"",label:(0,v.__)("Image Size",m.i18n),value:"large",defaultValue:"",imageSizes:[],onChange:()=>{}};const to=(0,jt.compose)([(0,he.withSelect)((e=>({imageSizes:e("core/block-editor").getSettings().imageSizes})))])(eo),no=!!mt.__experimentalNumberControl,oo=(0,ue.memo)((e=>{const{allowReset:t,withInputField:n,isShiftStepEnabled:o,placeholderRender:a,defaultValue:l,...r}=e,i=()=>""===e.value||isNaN(e.value)&&"auto"!==e.value?"":e.value,[s,c]=(0,ue.useState)(""===e.value||isNaN(e.value)&&"auto"!==e.value?"":e.value),[u,p]=(0,ue.useState)(i());i()!==u&&(p(i()),""===e.value||isNaN(e.value)&&"auto"!==e.value?c(""):c(e.value));const h=t=>{if(c(t),"string"!=typeof t||"auto"!==t.toLowerCase()){if(!isNaN(t)){const n=parseFloat(t);if(!isNaN(n)){const t=(0,d.clamp)(n,e.min,e.max);return c(t),void e.onChange(t)}}e.onChange(e.resetFallbackValue)}else e.onChange(t)},g=gt()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===s}),b=""===s,f=null!==e.placeholder?e.placeholder:e.sliderMin||e.min,k=null!==e.initialPosition?e.initialPosition:f,y=((e,t,n)=>{const o=(e-t)/(n-t)*100;return`${(0,d.clamp)(o,0,100)}%`})(b?k:s,null!==e.sliderMin?e.sliderMin:e.min||0,null!==e.sliderMax?e.sliderMax:e.max||100);let w=e.placeholder;return"function"!=typeof a||s?null===e.placeholder&&(w=k):w=a(s),(0,ue.createElement)("div",{className:g,style:{"--ugb-advanced-range-control--width":y}},(0,ue.createElement)(mt.RangeControl,dt({},r,{value:s,initialPosition:"",onChange:h,withInputField:!1,allowReset:!1,min:null!==e.sliderMin?e.sliderMin:e.min===-1/0?0:e.min,max:null!==e.sliderMax?e.sliderMax:e.max===1/0?100:e.max})),n&&no&&(0,ue.createElement)(mt.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:o,max:e.max,min:e.min,onChange:h,onBlur:()=>{if("string"!=typeof s||"auto"!==s.toLowerCase()){if(!isNaN(s)){const t=parseFloat(s);if(!isNaN(t))return void c((0,d.clamp)(t,e.min,e.max))}c(e.resetFallbackValue)}else c(s)},shiftStep:e.shiftStep,step:e.step,value:s,placeholder:w,type:"text"}),t&&(0,ue.createElement)(yt,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:()=>{c(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},(0,v.__)("Reset",m.i18n)))}));oo.defaultProps={className:"",allowReset:!1,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,sliderMax:null,sliderMin:null,shiftStep:10,step:1,resetFallbackValue:"",placeholder:null,placeholderRender:null,initialPosition:null,onChange:()=>{}};const ao=oo,lo=e=>{var t,n;const[o,a]=cn(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=mn(e),i=ve(),[s]=Ye(),c=!(null===(t=e.units)||void 0===t||!t.length),d=Qe(`${e.attribute}Unit`,e.responsive,e.hover),{unitAttribute:u,_valueDesktop:p,_valueTablet:h,_unitDesktop:g,_unitTablet:m}=Ae((t=>({unitAttribute:t[d],_valueDesktop:t[`${e.attribute}`],_valueTablet:t[`${e.attribute}Tablet`],_unitDesktop:t[`${e.attribute}Unit`],_unitTablet:t[`${e.attribute}UnitTablet`]}))),v="string"==typeof e.unit?e.unit||(null===(n=e.units)||void 0===n?void 0:n[0])||"px":u||"";if(c){const t=e.units.indexOf(v)<0?0:e.units.indexOf(v);Array.isArray(e.min)&&(l.min=e.min[t]),Array.isArray(e.max)&&(l.max=e.max[t]),Array.isArray(e.sliderMin)&&(l.sliderMin=e.sliderMin[t]),Array.isArray(e.sliderMax)&&(l.sliderMax=e.sliderMax[t]),Array.isArray(e.step)&&(l.step=e.step[t]),l.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,0!==t&&(l.initialPosition="",l.placeholder="")}"Mobile"===i&&h&&""!==h?(l.initialPosition=u===m?h:"",l.placeholder=u===m?h:""):"Mobile"!==i&&"Tablet"!==i||!p||""===p||(l.initialPosition=u===g?p:"",l.placeholder=u===g?p:""),e.forcePlaceholder||"normal"===s||(l.initialPosition="",l.placeholder="");let b=e.placeholderRender;("normal"!==s||c&&v!==e.units[0])&&(b=null);const f=t=>{const n=void 0===e.onChange?a:e.onChange;let o=e.isDynamic?t.toString():t;if(""===o){var l;const t=null===(l=e.onOverrideReset)||void 0===l?void 0:l.call(e);void 0!==t&&(o=t)}n(o)},k=void 0===e.value?o:e.value,y=Nn({value:k,onChange:f});return(0,ue.createElement)(gn,r,(0,ue.createElement)(Ln,dt({enable:l.isDynamic,controlHasTooltip:!0},y),(0,ue.createElement)(ao,dt({},l,{value:l.isDynamic?parseFloat(k):k,onChange:f,allowReset:!1,placeholderRender:b}))),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:k,default:e.default,onChange:f}))};lo.defaultProps={allowReset:!0,isDynamic:!1,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0,onOverrideReset:void 0,forcePlaceholder:!1};const ro=(0,ue.memo)(lo,d.isEqual),io=(0,ue.memo)((e=>{const[t,n]=cn(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[o,a]=mn(e),{defaultValue:l,...r}=o;return(0,ue.createElement)(gn,dt({},a,{className:gt()("ugb-advanced-select-control",e.className)}),(0,ue.createElement)(mt.SelectControl,dt({},r,{role:"listbox",value:void 0===e.value?t:e.value,onChange:void 0===e.onChange?n:e.onChange})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:void 0===e.value?t:e.value,default:e.default,onChange:void 0===e.onChange?n:e.onChange}))}),d.isEqual);io.defaultProps={className:"",url:"",allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const so=io;var co=n(8808),uo=n.n(co);const po=(e,t)=>{const n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;const o=new RegExp(n,"i");return ho(t)?t.map((e=>{let{title:t,options:n}=e;return{title:t,options:n.filter((e=>o.test(e.label)||o.test(e.value)))}})).filter((e=>e.options.length>0)):t.filter((e=>"string"==typeof e?o.test(e):o.test(e.label)||o.test(e.value)))},ho=e=>!(!e.length||"object"!=typeof e[0].options),go=(e,t)=>{if(!t.length)return e;if(!ho(t)){const n=t.filter((t=>("string"==typeof t?t:t.value)===e));return n.length?n[0].label:e}const n=t.map((t=>{let{title:n,options:o}=t;return{title:n,options:o.filter((t=>t.value===e))}})).filter((e=>e.options.length>0));return n.length?n[0].options[0].label:e},mo=e=>e.value,vo=e=>(0,ue.createElement)("div",{className:"ugb--autosuggest-group"},e.title),bo=e=>e.options,fo=()=>!0;class ko extends ue.Component{constructor(){super(...arguments),this.state={value:"",label:"",suggestions:[],isEmpty:!1,isShowingSuggestions:!1,containerRect:null},this.onSuggestionsFetchRequested=this.onSuggestionsFetchRequested.bind(this),this.onSuggestionsClearRequested=this.onSuggestionsClearRequested.bind(this),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.autosuggestDiv=(0,ue.createRef)(),this.suggestionContainerLocationUpdater=this.suggestionContainerLocationUpdater.bind(this)}onChange(e,t){let{newValue:n}=t;this.props.onChange(n),this.setState({value:n,label:go(n,this.props.options)})}onFocus(){this.props.highlightValueOnFocus&&setTimeout((()=>{const e=this.autosuggestDiv.current.querySelector(`[data-value="${this.state.value}"]`);e&&e.scrollIntoView()}),0)}onSuggestionsFetchRequested(e){let{value:t,reason:n}=e;if(this.props.disableAutoIndex)return void this.setState({suggestions:po("",this.props.options)});if("input-focused"===n||"suggestion-selected"===n)return void this.setState({suggestions:this.props.options,isEmpty:!1});const o=po(t,this.props.options);this.setState({suggestions:o,isEmpty:""!==t.trim()&&0===o.length})}suggestionContainerLocationUpdater(){var e;null!==(e=this.autosuggestDiv)&&void 0!==e&&e.current&&this.state.isShowingSuggestions&&(this.setState({containerRect:this.autosuggestDiv.current.getBoundingClientRect()}),requestAnimationFrame(this.suggestionContainerLocationUpdater))}componentDidMount(){this.props.options.length&&this.props.value&&this.setState({value:this.props.value,label:this.props.value?go(this.props.value,this.props.options):this.props.value,suggestions:po(this.props.disableAutoIndex?"":this.props.value,this.props.options)})}componentWillReceiveProps(e){this.setState({value:e.value,label:e.value?go(e.value,e.options):e.value,suggestions:po(this.props.disableAutoIndex?"":e.value,e.options)})}onSuggestionsClearRequested(){this.setState({suggestions:[]})}render(){var e,t,n,o;const{label:a,suggestions:l}=this.state,r={placeholder:this.props.placeholder,value:a,onChange:this.onChange,onFocus:this.onFocus,type:"search",...this.props.inputProps};return(0,ue.createElement)(Ic,{help:this.props.help,className:gt()("ugb-advanced-autosuggest-control",this.props.className),label:this.props.label,screens:this.props.screens,value:this.props.value,defaultValue:null!==(e=null===(t=this.props)||void 0===t?void 0:t.defaultValue)&&void 0!==e?e:"",onChange:e=>{var t;(""===e||null!==(t=this.props)&&void 0!==t&&t.defaultValue)&&this.onChange(null,{newValue:e})},allowReset:this.props.allowReset,helpTooltip:this.props.helpTooltip},(0,ue.createElement)("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},this.state.isShowingSuggestions&&(0,ue.createElement)("style",null,`:root {\n\t\t\t\t\t\t\t\t--container-left: ${null===(n=this.state.containerRect)||void 0===n?void 0:n.left}px;\n\t\t\t\t\t\t\t\t--container-bottom: ${null===(o=this.state.containerRect)||void 0===o?void 0:o.bottom}px;\n\t\t\t\t\t\t\t}`),(0,ue.createElement)(uo(),{multiSection:ho(this.props.options),suggestions:l,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.props.onSuggestionSelected,getSuggestionValue:this.props.getSuggestionValue||mo,renderSuggestion:e=>(0,ue.createElement)("div",{className:"ugb-autosuggest-option","data-value":e.value,id:`ugb-autosuggest-option--${e.id||(0,d.kebabCase)(e.value)}`},this.props.renderOption?this.props.renderOption(e):e.label),renderSectionTitle:vo,getSectionSuggestions:bo,shouldRenderSuggestions:fo,inputProps:r,renderInputComponent:this.props.renderInputComponent?this.props.renderInputComponent:e=>(0,ue.createElement)("input",e),renderSuggestionsContainer:e=>{let{containerProps:t,children:n}=e;const o=t.className.indexOf("react-autosuggest__suggestions-container--open")>=0;if(o&&!this.state.isShowingSuggestions?(this.setState({isShowingSuggestions:!0}),requestAnimationFrame(this.suggestionContainerLocationUpdater)):!o&&this.state.isShowingSuggestions&&this.setState({isShowingSuggestions:!1}),o){const e=this.autosuggestDiv.current.getBoundingClientRect(),o={left:`calc(var(--container-left, 0px) + ${window.scrollX}px)`,top:`calc(var(--container-bottom, 0px) + ${window.scrollY}px)`,width:e.width},a=(0,ue.createElement)("div",dt({},t,{style:o,className:gt()(t.className,"ugb-advanced-autosuggest__suggestions-container")}),n);return(0,ue.createPortal)(a,document.body)}return null}}),this.state.isEmpty&&(0,ue.createElement)("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}ko.defaultProps={onChange:()=>{},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:(0,v.__)("No matches found",m.i18n),renderOption:null,highlightValueOnFocus:!1,allowReset:!0,placeholder:"",getSuggestionValue:null,disableAutoIndex:!1,onSuggestionSelected:()=>{},renderInputComponent:null,inputProps:{},helpTooltip:{}};const yo=ko,wo=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19 18H1v1h18v-1zM14 11h-3v6h3v-6zM9 9H6v8h3V9z"}))},Co=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M10.5 1h-1v18h1V1zM8 5H5v10h3V5zM15 5h-3v10h3V5z"}))},_o=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M2 1H1v18h1V1zM6 5H3v10h3V5zM10 5H7v10h3V5z"}))},Eo=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19 1h-1v18h1V1zM13 5h-3v10h3V5zM17 5h-3v10h3V5z"}))},So=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M20 1h-1v18h1V1zM1 1H0v18h1V1zM5 5H2v10h3V5zM18 5h-3v10h3V5z"}))},xo=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M20 1h-1v18h1V1zM1 1H0v18h1V1zM7 5H4v10h3V5zM16 5h-3v10h3V5z"}))},To=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M20 1h-1v18h1V1zM1 1H0v18h1V1zM8 5H5v10h3V5zM15 5h-3v10h3V5z"}))},Bo=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19 1H1v1h18V1zM14 3h-3v6h3V3zM9 3H6v8h3V3z"}))},Mo=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19 9.5H1v1h18v-1z"}),(0,ue.createElement)("path",{d:"M14 7h-3v6h3V7zM9 6H6v8h3V6z"}))},Io={"flex-horizontal":[{value:"flex-start",title:(0,v.__)("Start",m.i18n),icon:(0,ue.createElement)(_o,null)},{value:"center",title:(0,v.__)("Center",m.i18n),icon:(0,ue.createElement)(Co,null)},{value:"flex-end",title:(0,v.__)("End",m.i18n),icon:(0,ue.createElement)(Eo,null)},{value:"space-between",title:(0,v.__)("Space Between",m.i18n),icon:(0,ue.createElement)(So,null)},{value:"space-around",title:(0,v.__)("Space Around",m.i18n),icon:(0,ue.createElement)(xo,null)},{value:"space-evenly",title:(0,v.__)("Space Evenly",m.i18n),icon:(0,ue.createElement)(To,null)}],"flex-horizontal-alt":[{value:"flex-start",title:(0,v.__)("Start",m.i18n),icon:(0,ue.createElement)(_o,null)},{value:"center",title:(0,v.__)("Center",m.i18n),icon:(0,ue.createElement)(Co,null)},{value:"flex-end",title:(0,v.__)("End",m.i18n),icon:(0,ue.createElement)(Eo,null)},{value:"space-between",title:(0,v.__)("Space Between",m.i18n),icon:(0,ue.createElement)(So,null)}],"flex-vertical":[{value:"flex-start",title:(0,v.__)("Start",m.i18n),icon:(0,ue.createElement)(Bo,null)},{value:"center",title:(0,v.__)("Center",m.i18n),icon:(0,ue.createElement)(Mo,null)},{value:"flex-end",title:(0,v.__)("End",m.i18n),icon:(0,ue.createElement)(wo,null)},{value:"stretch",title:(0,v.__)("Stretch",m.i18n),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19 18H1v1h18v-1zM19 1H1v1h18V1zM14 3h-3v14h3V3zM9 3H6v14h3V3z"}))}),null)},{value:"baseline",title:(0,v.__)("Baseline",m.i18n),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M1 14.1h18v1H1zM11.4 11.1h-3l-.6 2H6.5l2.6-8.3h1.7l2.6 8.3H12l-.6-2zm-2.6-1h2.4L10 5.9l-1.2 4.2z"}))}),null)}],"flex-justify-vertical":[{value:"flex-start",title:(0,v.__)("Start",m.i18n),icon:(0,ue.createElement)(Bo,null)},{value:"center",title:(0,v.__)("Center",m.i18n),icon:(0,ue.createElement)(Mo,null)},{value:"flex-end",title:(0,v.__)("End",m.i18n),icon:(0,ue.createElement)(wo,null)},{value:"space-between",title:(0,v.__)("Space Between",m.i18n),icon:(0,ue.createElement)(So,{style:{transform:"rotate(90deg)"}})},{value:"space-around",title:(0,v.__)("Space Around",m.i18n),icon:(0,ue.createElement)(xo,{style:{transform:"rotate(90deg)"}})},{value:"space-evenly",title:(0,v.__)("Space Evenly",m.i18n),icon:(0,ue.createElement)(To,{style:{transform:"rotate(90deg)"}})}],horizontal:[{value:"flex-start",title:(0,v.__)("Left",m.i18n),icon:(0,ue.createElement)(_o,null)},{value:"center",title:(0,v.__)("Center",m.i18n),icon:(0,ue.createElement)(Co,null)},{value:"flex-end",title:(0,v.__)("Right",m.i18n),icon:(0,ue.createElement)(Eo,null)}],vertical:[{value:"flex-start",title:(0,v.__)("Top",m.i18n),icon:(0,ue.createElement)(Bo,null)},{value:"center",title:(0,v.__)("Center",m.i18n),icon:(0,ue.createElement)(Mo,null)},{value:"flex-end",title:(0,v.__)("Bottom",m.i18n),icon:(0,ue.createElement)(wo,null)}]},No=e=>{const[t,n]=cn(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[o,a]=mn(e),{className:l="",controls:r,fullwidth:i,multiline:s,isToggleOnly:c,omit:u}=o,p=(0,le.applyFilters)("stackable.toolbar-control.controls",Io),h="string"==typeof r?p[r]:r,g=gt()({"ugb-toolbar--full-width":i,"ugb-toolbar--multiline":s,"ugb-toolbar--small":e.isSmall}),m=void 0===e.value?t:e.value,v=void 0===e.onChange?n:e.onChange,b=h.every((t=>!(m?m===t.value:e.placeholder===t.value)));return(0,ue.createElement)(gn,dt({},a,{className:gt()("ugb-advanced-toolbar-control",l,a.className)}),(0,ue.createElement)(mt.ButtonGroup,{children:h.map(((t,n)=>{if(u.includes(t.value))return null;const o=e.default||"",a=m?m===t.value:e.placeholder===t.value,l=a?"0":"-1",r={...(0,d.omit)(t,"controls","show"),onClick:()=>{c&&t.value===m||v(t.value!==m?t.value:o)},children:t.icon?null:t.custom||(0,ue.createElement)("span",{className:"ugb-advanced-toolbar-control__text-button"},t.title)};return(0,ue.createElement)(yt,dt({key:t.value},r,{label:t.title||e.label,tabIndex:b&&0===n?"0":l,disabled:"all"===e.disabled||e.disabled.includes(t.value),isPrimary:a,isSmall:e.isSmall,onKeyDown:e=>{const t=e.target;if(t)if(39===e.keyCode){const e=t.nextElementSibling||t.parentElement.firstElementChild;e.focus(),e.click()}else if(37===e.keyCode){const e=t.previousElementSibling||t.parentElement.lastElementChild;e.focus(),e.click()}}}))})),className:g}),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:m,default:e.default,onChange:v}))},Ro=[];No.defaultProps={controls:Ro,multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1,allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0,placeholder:"",disabled:Ro,omit:Ro};const Ao=(0,ue.memo)(No,d.isEqual),Ho=e=>{let t=e.placeholder;const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?1:Math.round(parseFloat(e)/parseFloat(t)*10)/10};return"string"==typeof t&&(t=[t,n(t)]),(0,ue.createElement)(ro,dt({},e,{placeholder:t,onChangeUnit:t=>{""!==e.value&&("em"===t||"rem"===t?e.onChange(n(e.value)):"px"===t&&e.onChange(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?21:Math.round(parseFloat(e)*t)}(e.value))),e.onChangeUnit(t)}}))};Ho.defaultProps={label:(0,v.__)("Font Size",m.i18n),value:"",onChange:()=>{},unit:"px",onChangeUnit:()=>{},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};const Po=Ho,Oo=e=>{const{loadingThemeFont:t,themeFonts:o,themeFontOptions:a}=(0,he.select)("stackable/theme-fonts").getThemeFonts(),[l,r]=(0,ue.useState)([]);(0,ue.useEffect)((()=>{(async()=>{const{default:e}=await n.e(755).then(n.t.bind(n,1513,19));return e.map((e=>({label:e.family,value:e.family})))})().then((e=>{r(e)}))}),[]);const i=(0,ue.useMemo)((()=>{const e=[{id:"system-fonts",title:(0,v.__)("System Fonts",m.i18n),options:Object.keys(f).map((e=>({label:f[e].label,value:e})))},{id:"modern-font-stacks",title:(0,v.__)("Modern Font Stacks",m.i18n),options:Object.keys(k).map((e=>({label:k[e].label,value:e})))},{id:"google-fonts",title:(0,v.__)("Google Fonts",m.i18n),options:l}];return o.length&&e.unshift({id:"theme-fonts",title:(0,v.__)("Theme Fonts",m.i18n),options:a}),(0,le.applyFilters)("stackable.font-family-control.options",e)}),[t,l]);return(0,ue.createElement)(yo,dt({options:i,highlightValueOnFocus:!0},e,{onChange:t=>{o.includes(t)||l.some((e=>e.value===t&&(C(t),!0))),e.onChange(t)}}))};Oo.defaultProps={onChange:()=>{},label:(0,v.__)("Font Family",m.i18n),value:""};const zo=Oo;function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function $o(e,t){if(e){if("string"==typeof e)return Lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lo(e,t):void 0}}function Do(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,l=[],r=!0,i=!1;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==n.return||n.return()}finally{if(i)throw a}}return l}}(e,t)||$o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach((function(t){Fo(e,t,n[t])}))}return e}function Wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Go(e,t,n){return t&&Vo(e.prototype,t),n&&Vo(e,n),e}function jo(e){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jo(e)}function qo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ko(e,t){if(t&&("object"===jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qo(e)}function Jo(e){return Jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jo(e)}function Yo(e,t){return Yo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yo(e,t)}function Xo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yo(e,t)}var Qo=n(1143),Zo=n.n(Qo);var ea=n(5697),ta=n.n(ea),na=function(){function e(){Wo(this,e),Fo(this,"refs",{})}return Go(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(oa)}}]),e}();function oa(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function aa(e,t){return Object.keys(e).reduce((function(n,o){return-1===t.indexOf(o)&&(n[o]=e[o]),n}),{})}var la={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},ra=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function ia(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function sa(e,t){e.style["".concat(ra,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function ca(e,t){e.style["".concat(ra,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function da(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function ua(e,t,n){return Math.max(e,Math.min(n,t))}function pa(e){return"px"===e.substr(-2)?parseFloat(e):0}function ha(e){var t=window.getComputedStyle(e);return{bottom:pa(t.marginBottom),left:pa(t.marginLeft),right:pa(t.marginRight),top:pa(t.marginTop)}}function ga(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function ma(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function va(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function ba(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function fa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var o={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?o:fa(e.parentNode,t,o)}}function ka(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function ya(e){var t=e.lockOffset,n=e.width,o=e.height,a=t,l=t,r="px";if("string"==typeof t){var i=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Zo()(null!==i,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=parseFloat(t),l=parseFloat(t),r=i[1]}return Zo()(isFinite(a)&&isFinite(l),"lockOffset value should be a finite. Given %s",t),"%"===r&&(a=a*n/100,l=l*o/100),{x:a,y:l}}function wa(e){var t=e.height,n=e.width,o=e.lockOffset,a=Array.isArray(o)?o:[o,o];Zo()(2===a.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",o);var l=Do(a,2),r=l[0],i=l[1];return[ya({height:t,lockOffset:r,width:n}),ya({height:t,lockOffset:i,width:n})]}function Ca(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:Ca(e.parentNode):null}function _a(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:pa(t.gridColumnGap),y:pa(t.gridRowGap)}:{x:0,y:0}}var Ea="BUTTON",Sa="INPUT",xa="OPTION",Ta="TEXTAREA",Ba="SELECT";function Ma(e){var t,n="input, textarea, select, canvas, [contenteditable]",o=e.querySelectorAll(n),a=e.cloneNode(!0);return(t=a.querySelectorAll(n),function(e){if(Array.isArray(e))return Lo(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||$o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(e,t){"file"!==e.type&&(e.value=o[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),"CANVAS"===e.tagName&&o[t].width>0&&o[t].height>0&&e.getContext("2d").drawImage(o[t],0,0)})),a}function Ia(e){return null!=e.sortableHandle}var Na=function(){function e(t,n){Wo(this,e),this.container=t,this.onScrollCallback=n}return Go(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,o=e.minTranslate,a=e.maxTranslate,l=e.width,r=e.height,i={x:0,y:0},s={x:1,y:1},c=this.container,d=c.scrollTop,u=c.scrollLeft,p=c.scrollHeight,h=c.scrollWidth,g=0===d,m=p-d-c.clientHeight==0,v=0===u,b=h-u-c.clientWidth==0;n.y>=a.y-r/2&&!m?(i.y=1,s.y=10*Math.abs((a.y-r/2-n.y)/r)):n.x>=a.x-l/2&&!b?(i.x=1,s.x=10*Math.abs((a.x-l/2-n.x)/l)):n.y<=o.y+r/2&&!g?(i.y=-1,s.y=10*Math.abs((n.y-r/2-o.y)/r)):n.x<=o.x+l/2&&!v&&(i.x=-1,s.x=10*Math.abs((n.x-l/2-o.x)/l)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===i.x&&0===i.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:s.x*i.x,top:s.y*i.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}(),Ra={axis:ta().oneOf(["x","y","xy"]),contentWindow:ta().any,disableAutoscroll:ta().bool,distance:ta().number,getContainer:ta().func,getHelperDimensions:ta().func,helperClass:ta().string,helperContainer:ta().oneOfType([ta().func,"undefined"==typeof HTMLElement?ta().any:ta().instanceOf(HTMLElement)]),hideSortableGhost:ta().bool,keyboardSortingTransitionDuration:ta().number,lockAxis:ta().string,lockOffset:ta().oneOfType([ta().number,ta().string,ta().arrayOf(ta().oneOfType([ta().number,ta().string]))]),lockToContainerEdges:ta().bool,onSortEnd:ta().func,onSortMove:ta().func,onSortOver:ta().func,onSortStart:ta().func,pressDelay:ta().number,pressThreshold:ta().number,keyCodes:ta().shape({lift:ta().arrayOf(ta().number),drop:ta().arrayOf(ta().number),cancel:ta().arrayOf(ta().number),up:ta().arrayOf(ta().number),down:ta().arrayOf(ta().number)}),shouldCancelStart:ta().func,transitionDuration:ta().number,updateBeforeSortStart:ta().func,useDragHandle:ta().bool,useWindowAsScrollContainer:ta().bool},Aa={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},Ha={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Aa,shouldCancelStart:function(e){return-1!==[Sa,Ta,Ba,xa,Ea].indexOf(e.target.tagName)||!!da(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Pa=Object.keys(Ra);function Oa(e){Zo()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function za(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var La=(0,ut.createContext)({manager:{}});function $a(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;Wo(this,n),Fo(qo(qo(t=Ko(this,Jo(n).call(this,e)))),"state",{}),Fo(qo(qo(t)),"handleStart",(function(e){var n=t.props,o=n.distance,a=n.shouldCancelStart;if(2!==e.button&&!a(e)){t.touched=!0,t.position=va(e);var l=da(e.target,(function(e){return null!=e.sortableInfo}));if(l&&l.sortableInfo&&t.nodeIsChild(l)&&!t.state.sorting){var r=t.props.useDragHandle,i=l.sortableInfo,s=i.index,c=i.collection;if(i.disabled)return;if(r&&!da(e.target,Ia))return;t.manager.active={collection:c,index:s},ba(e)||"A"!==e.target.tagName||e.preventDefault(),o||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Fo(qo(qo(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Fo(qo(qo(t)),"handleMove",(function(e){var n=t.props,o=n.distance,a=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var l=va(e),r={x:t.position.x-l.x,y:t.position.y-l.y},i=Math.abs(r.x)+Math.abs(r.y);t.delta=r,o||a&&!(i>=a)?o&&i>=o&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Fo(qo(qo(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Fo(qo(qo(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Fo(qo(qo(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),o=function(){if(n){var o=function(){var n=p.sortableInfo.index,o=ha(p),a=_a(t.container),c=t.scrollContainer.getBoundingClientRect(),m=r({index:n,node:p,collection:h});if(t.node=p,t.margin=o,t.gridGap=a,t.width=m.width,t.height=m.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:l.indexOf("x")>=0,y:l.indexOf("y")>=0},t.offsetEdge=fa(p,t.container),t.initialOffset=va(g?Uo({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(Ma(p)),ia(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-o.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-o.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),s&&(t.sortableGhost=p,ia(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var v=u?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,b=v.top,f=v.left,k=v.width,y=b+v.height,w=f+k;t.axis.x&&(t.minTranslate.x=f-t.boundingClientRect.left,t.maxTranslate.x=w-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=b-t.boundingClientRect.top,t.maxTranslate.y=y-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(u?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(u?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(u?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(u?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);i&&i.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(la.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),la.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),d&&d({node:p,index:n,collection:h,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},a=t.props,l=a.axis,r=a.getHelperDimensions,i=a.helperClass,s=a.hideSortableGhost,c=a.updateBeforeSortStart,d=a.onSortStart,u=a.useWindowAsScrollContainer,p=n.node,h=n.collection,g=t.manager.isKeySorting,m=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=za((function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:h,index:t,node:p,isKeySorting:g},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return m&&m.then?m.then(o):o()}}();return Promise.resolve(o&&o.then?o.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),Fo(qo(qo(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Fo(qo(qo(t)),"handleSortEnd",(function(e){var n=t.props,o=n.hideSortableGhost,a=n.onSortEnd,l=t.manager,r=l.active.collection,i=l.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(i?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(la.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),la.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),o&&t.sortableGhost&&ia(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,d=s.length;c<d;c++){var u=s[c],p=u.node;u.edgeOffset=null,u.boundingClientRect=null,sa(p,null),ca(p,null),u.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof a&&a({collection:r,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:i,nodes:s},e),t.touched=!1})),Fo(qo(qo(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var o=Uo({},t.translate),a=0,l=0;return t.axis.x&&(o.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),a=t.translate.x-o.x),t.axis.y&&(o.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),l=t.translate.y-o.y),t.translate=o,sa(t.helper,t.translate),t.scrollContainer.scrollLeft+=a,void(t.scrollContainer.scrollTop+=l)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),Fo(qo(qo(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),Fo(qo(qo(t)),"handleKeyDown",(function(e){var n=e.keyCode,o=t.props,a=o.shouldCancelStart,l=o.keyCodes,r=Uo({},Aa,void 0===l?{}:l);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||r.lift.includes(n)&&!a(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),r.lift.includes(n)&&!t.manager.active?t.keyLift(e):r.drop.includes(n)&&t.manager.active?t.keyDrop(e):r.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):r.up.includes(n)?t.keyMove(-1):r.down.includes(n)&&t.keyMove(1))})),Fo(qo(qo(t)),"keyLift",(function(e){var n=e.target,o=da(n,(function(e){return null!=e.sortableInfo})).sortableInfo,a=o.index,l=o.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:a,collection:l},t.handlePress(e)})),Fo(qo(qo(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),o=n[n.length-1].node.sortableInfo.index,a=t.newIndex+e,l=t.newIndex;if(!(a<0||a>o)){t.prevIndex=l,t.newIndex=a;var r=ka(t.newIndex,t.prevIndex,t.index),i=n.find((function(e){return e.node.sortableInfo.index===r})),s=i.node,c=t.containerScrollDelta,d=i.boundingClientRect||ma(s,c),u=i.translate||{x:0,y:0},p=d.top+u.y-c.top,h=d.left+u.x-c.left,g=l<a,m=g&&t.axis.x?s.offsetWidth-t.width:0,v=g&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:h+m,pageY:p+v,ignoreTransition:0===e})}})),Fo(qo(qo(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),Fo(qo(qo(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),Fo(qo(qo(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,o=e.target,a=da(o,(function(e){return null!=e.sortableInfo}));return a&&a.sortableInfo&&!a.sortableInfo.disabled&&(n?Ia(o):o.sortableInfo)}));var o=new na;return Oa(e),t.manager=o,t.wrappedInstance=(0,ut.createRef)(),t.sortableContextValue={manager:o},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return Xo(n,t),Go(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var o=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof o?o():o,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Ca(e.container)||e.container,e.autoScroller=new Na(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return la[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return la[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,o=t.lockOffset,a=t.lockToContainerEdges,l=t.transitionDuration,r=t.keyboardSortingTransitionDuration,i=void 0===r?l:r,s=this.manager.isKeySorting,c=e.ignoreTransition,d=va(e),u={x:d.x-this.initialOffset.x,y:d.y-this.initialOffset.y};if(u.y-=window.pageYOffset-this.initialWindowScroll.top,u.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=u,a){var p=Do(wa({height:this.height,lockOffset:o,width:this.width}),2),h=p[0],g=p[1],m={x:this.width/2-h.x,y:this.height/2-h.y},v={x:this.width/2-g.x,y:this.height/2-g.y};u.x=ua(this.minTranslate.x+m.x,this.maxTranslate.x-v.x,u.x),u.y=ua(this.minTranslate.y+m.y,this.maxTranslate.y-v.y,u.y)}"x"===n?u.y=0:"y"===n&&(u.x=0),s&&i&&!c&&ca(this.helper,i),sa(this.helper,u)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,o=e.onSortOver,a=this.containerScrollDelta,l=this.windowScrollDelta,r=this.manager.getOrderedRefs(),i=this.offsetEdge.left+this.translate.x+a.left,s=this.offsetEdge.top+this.translate.y+a.top,c=this.manager.isKeySorting,d=this.newIndex;this.newIndex=null;for(var u=0,p=r.length;u<p;u++){var h=r[u].node,g=h.sortableInfo.index,m=h.offsetWidth,v=h.offsetHeight,b={height:this.height>v?v/2:this.height/2,width:this.width>m?m/2:this.width/2},f=c&&g>this.index&&g<=d,k=c&&g<this.index&&g>=d,y={x:0,y:0},w=r[u].edgeOffset;w||(w=fa(h,this.container),r[u].edgeOffset=w,c&&(r[u].boundingClientRect=ma(h,a)));var C=u<r.length-1&&r[u+1],_=u>0&&r[u-1];C&&!C.edgeOffset&&(C.edgeOffset=fa(C.node,this.container),c&&(C.boundingClientRect=ma(C.node,a))),g!==this.index?(t&&ca(h,t),this.axis.x?this.axis.y?k||g<this.index&&(i+l.left-b.width<=w.left&&s+l.top<=w.top+b.height||s+l.top+b.height<=w.top)?(y.x=this.width+this.marginOffset.x,w.left+y.x>this.containerBoundingRect.width-b.width&&C&&(y.x=C.edgeOffset.left-w.left,y.y=C.edgeOffset.top-w.top),null===this.newIndex&&(this.newIndex=g)):(f||g>this.index&&(i+l.left+b.width>=w.left&&s+l.top+b.height>=w.top||s+l.top+b.height>=w.top+v))&&(y.x=-(this.width+this.marginOffset.x),w.left+y.x<this.containerBoundingRect.left+b.width&&_&&(y.x=_.edgeOffset.left-w.left,y.y=_.edgeOffset.top-w.top),this.newIndex=g):f||g>this.index&&i+l.left+b.width>=w.left?(y.x=-(this.width+this.marginOffset.x),this.newIndex=g):(k||g<this.index&&i+l.left<=w.left+b.width)&&(y.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=g)):this.axis.y&&(f||g>this.index&&s+l.top+b.height>=w.top?(y.y=-(this.height+this.marginOffset.y),this.newIndex=g):(k||g<this.index&&s+l.top<=w.top+b.height)&&(y.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),sa(h,y),r[u].translate=y):n&&(this.sortableGhost=h,ia(h,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=d);var E=c?this.prevIndex:d;o&&this.newIndex!==E&&o({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:E,isKeySorting:c,nodes:r,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Zo()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,ue.findDOMNode)(this):e(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=o.withRef?this.wrappedInstance:null;return(0,ut.createElement)(La.Provider,{value:this.sortableContextValue},(0,ut.createElement)(e,dt({ref:t},aa(this.props,Pa))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(ut.Component),Fo(t,"displayName",ga("sortableList",e)),Fo(t,"defaultProps",Ha),Fo(t,"propTypes",Ra),n}var Da={index:ta().number.isRequired,collection:ta().oneOfType([ta().number,ta().string]),disabled:ta().bool},Fa=Object.keys(Da);function Ua(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Wo(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return Fo(qo(qo(t=Ko(this,(e=Jo(n)).call.apply(e,[this].concat(a))))),"wrappedInstance",(0,ut.createRef)()),t}return Xo(n,t),Go(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,o=e.index,a=(0,ue.findDOMNode)(this);a.sortableInfo={collection:t,disabled:n,index:o,manager:this.context.manager},this.node=a,this.ref={node:a},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Zo()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=o.withRef?this.wrappedInstance:null;return(0,ut.createElement)(e,dt({ref:t},aa(this.props,Fa)))}}]),n}(ut.Component),Fo(t,"displayName",ga("sortableElement",e)),Fo(t,"contextType",La),Fo(t,"propTypes",Da),Fo(t,"defaultProps",{collection:0}),n}const Wa=$a((e=>{let{children:t}=e;return(0,ue.createElement)("div",{className:"ugb-sort-control__container"},t)})),Va=Ua((e=>{let{value:t,key:n,index:o,...a}=e;return(0,ue.createElement)("div",dt({className:"ugb-sort-control__item"},a),t)}));let Ga=!1;const ja=(0,ue.memo)((e=>{const[t,n]=cn(e.attribute,e.responsive,e.hover),[o,a]=mn(e);let l=void 0===e.values?t:Array.isArray(e.values)?[...e.values]:"string"==typeof e.values?e.values.split(","):t;for(l=l?l.splice(0,e.num):(0,d.range)(e.num).map((e=>e+1));l.length<e.num;)l.push(l.length+1);const r=void 0===e.onChange?n:e.onChange,i=(0,d.range)(e.num).map((e=>(e+1).toString())),s=l.map((e=>e.toString()));return(0,ue.createElement)(pn,dt({},a,{className:gt()(["ugb-sort-control",e.className,`ugb-sort-control--axis-${e.axis}`])}),(0,ue.createElement)(Wa,dt({},o,{onSortStart:()=>Ga=!0,onSortOver:t=>{let{newIndex:n}=t;e.onHover(n)},onSortEnd:e=>{let{oldIndex:t,newIndex:n}=e;Ga=!1;const o=((e,t,n)=>(e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e))(l,t,n);(0,d.isEqual)(o.map((e=>e.toString())),i)?r("",{oldIndex:0,newIndex:0}):r([...o],{oldIndex:t,newIndex:n})},axis:e.axis}),l.map(((t,n)=>(0,ue.createElement)(Va,{key:n,index:n,value:t,onMouseEnter:()=>{Ga||e.onHover(n)},onMouseLeave:()=>{Ga||e.onHover(null)}})))),(0,ue.createElement)(bn,{allowReset:e.allowReset,showReset:!(0,d.isEqual)(s,i),value:l,default:e.default,onChange:()=>r("",{oldIndex:0,newIndex:0})}))}));ja.defaultProps={className:"",help:"",label:(0,v.__)("Column Arrangement",m.i18n),num:2,axis:"x",values:null,onChange:()=>{},onHover:()=>{},hasReset:!1};const qa=ja;function Ka(e){this.value=e,this.subscribers=[],this.getValue=function(){return this.value},this.setValue=function(e){if(this.getValue()===e)return;this.value=e;const t=this;this.subscribers.forEach((function(e){e(t.value)}))},this.subscribe=function(e){this.subscribers.indexOf(e)>-1||this.subscribers.push(e)},this.unsubscribe=function(e){this.subscribers=this.subscribers.filter((function(t){return t!==e}))}}function Ja(e,t){void 0===t&&(t=null);const[,n]=(0,ue.useState)(),o=Ya.getState(e,t),a=o.getValue();function l(){n({})}return(0,ue.useEffect)((function(){return o.subscribe(l),function(){o.unsubscribe(l)}})),[a,function(e){o.setValue(e)}]}const Ya=new function(){this.value={},this.init=function(e){for(const t in e)this.setState(t,e[t])},this.getState=function(e,t){return void 0===this.value[e]&&this.setState(e,t),this.value[e]},this.setState=function(e,t){this.value[e]=new Ka(t)}},Xa=(0,ue.createElement)(Ct,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ue.createElement)(wt,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Qa=(0,ue.createElement)(Ct,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ue.createElement)(wt,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Za=()=>{},el=(0,d.debounce)((e=>{e&&e.getBoundingClientRect().top<200&&e.scrollIntoView({inline:"start",block:"start",behavior:"instant"})}),0,{leading:!1,trailing:!0}),tl=(0,ue.forwardRef)(((e,t)=>{let{isOpened:n,icon:o,title:a,isPremiumPanel:l,showModifiedIndicator:r,checked:i,hasToggle:s,onChange:c,setIsOpened:d,...u}=e;return a?(0,ue.createElement)("h2",{className:"components-panel__body-title"},(0,ue.createElement)(mt.Button,dt({className:"components-panel__body-toggle stk-panel","aria-expanded":n,ref:t},u),(0,ue.createElement)("span",{"aria-hidden":"true"},(0,ue.createElement)(mt.Icon,{className:"components-panel__arrow",icon:n?Xa:Qa})),s&&(0,ue.createElement)(mt.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:i,onClick:e=>{e.stopPropagation(),e.preventDefault(),i&&n||i||n||d((e=>!e)),c&&c(!i)},"aria-describedby":a}),a,(0,ue.createElement)("span",{className:gt()(["stk-panel-modified-indicator",{"stk--visible":r}])}),l&&(0,ue.createElement)("div",{className:"stk-pulsating-circle"}),o&&(0,ue.createElement)(mt.Icon,{icon:o,className:"components-panel__icon",size:20}))):null})),nl=(0,ue.forwardRef)(((e,t)=>{let{buttonProps:n={},children:o,className:a,icon:l,initialOpen:r,onToggle:i=Za,isOpen:s=null,title:c,id:d="",checked:u,hasToggle:p,onChange:h=Za,isPremiumPanel:g=!1,showModifiedIndicator:m=!1}=e;const{name:v}=(0,$e.useBlockEditContext)(),[b,f]=Ja(`panelCache-${v}-${d}-${c}`,void 0!==r&&r),k=null===s?b:s,y=(0,ue.useRef)(),w=gt()("components-panel__body","ugb-toggle-panel-body",a,{"is-opened":k,[`ugb-panel--${d}`]:d,"stk--premium-panel":g});return(0,ue.createElement)("div",{className:w,ref:(0,jt.useMergeRefs)([y,t])},(0,ue.createElement)(tl,dt({icon:l,isOpened:k,onClick:e=>{e.preventDefault();const t=!k;f(t),i(t),t?setTimeout((()=>{el(y.current)}),0):el(y.current)},title:c,checked:u,hasToggle:void 0===p?!!h:p,onChange:h,setIsOpened:f,isPremiumPanel:g,showModifiedIndicator:m},n)),"function"==typeof o?o({opened:!0}):o)}));nl.displayName="PanelBody";const ol=nl,al=(0,ue.memo)((e=>(0,ue.createElement)(ol,e)));al.defaultProps={id:"",className:"",title:(0,v.__)("Settings",m.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!1,onToggle:()=>{},isOpen:null};const ll=al,rl=function(e){const{block:t="all",options:n=(0,le.applyFilters)(`stackable.${t}.edit.templates`,e.options||[]),className:o="",title:a=(0,v.__)("Designs",m.i18n),help:l=(0,v.__)("Pick a design to start from, this will override your block settings",m.i18n)}=e,r=gt()(["ugb-panel-design-settings",o]);if(!n.length)return null;const i=n.map(((e,t)=>({...e,value:t})));return(0,ue.createElement)(xl,dt({},(0,d.omit)(e,["options"]),{selectedOptionInTitle:!1,title:a,className:r,help:l}),n&&(0,ue.createElement)(Ml,dt({},(0,d.omit)(e,["help","title"]),{options:i,onChange:e=>{const t=n[e].value,o=(0,he.select)("core/block-editor").getBlockSelectionStart();(0,he.dispatch)("core/block-editor").updateBlockAttributes(o,t)}})),e.children)},il=e=>{const t=gt()(["ugb-inspector-panel-controls",`ugb-panel-${e.tab}`]);return(0,ue.createElement)("div",{className:t},e.children)};il.defaultProps={tab:"layout"};const sl=il,cl="v3";let dl=null,ul=[];const pl=e=>e.replace(/^[\w-]+\//,""),hl=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!dl||e){const t=await st()({path:"/stackable/v2/design_library"+(e?"/reset":""),method:"GET"});dl=await t,e&&((0,le.doAction)("stackable.design-library.reset-cache"),ul=[])}return dl[t||cl]},gl=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!ul[e]){const n=await st()({path:`/stackable/v2/design/${t||cl}/${e}`,method:"GET"});ul[e]=await n}return ul[e]},ml=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=await st()({path:"/stackable/v2/design_library_dev_mode/",method:"POST",data:{devmode:e}});return await t},vl=async e=>{let{type:t="",block:n="",mood:o="",plan:a="",colors:l=[],categories:r=[],uikit:i="",search:s="",reset:c=!1,apiVersion:d=""}=e,u=Object.values(await hl(c,d));if(t&&(u=u.filter((e=>{let{type:n}=e;return n===t}))),n){const e=n.replace(/^\w+\//,"");u=u.filter((t=>{let{block:n}=t;return n.endsWith(`/${e}`)}))}return o&&(u=u.filter((e=>{let{mood:t}=e;return t===o}))),a&&(u=u.filter((e=>{let{plan:t}=e;return t===a}))),l&&l.length&&(u=u.filter((e=>{let{colors:t}=e;return t.some((e=>l.includes(e)))}))),r&&r.length&&(u=u.filter((e=>{let{categories:t}=e;return t.some((e=>r.includes(e)))}))),i&&(u=u.filter((e=>{let{uikit:t}=e;return t===i}))),s&&s.toLowerCase().replace(/\s+/," ").trim().split(" ").forEach((e=>{u=u.filter((t=>(0,le.applyFilters)("stackable.design-library.search-properties",["label","plan","tags","categories","colors"],d).some((n=>-1!==t[n].toString().toLowerCase().indexOf(e)))))})),u},bl=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=await hl(!1,t),o=n[e];let a=await(0,le.applyFilters)("stackable.design-library.get-design",null,e,o,t);return!a&&o.template&&(a=await gl(e,t)),a},fl=e=>{const{designId:t,image:n,label:o,onClick:a,plan:l,isPro:r,apiVersion:i,isMultiSelectMode:s=!1,selectedNum:c=!1}=e,[d,u]=(0,ue.useState)(!1),p=gt()(["ugb-design-library-item"],{"ugb--is-busy":d,[`ugb--is-${l}`]:!r&&"free"!==l,"ugb-design-library-item--toggle":s,"ugb--is-toggled":s&&c});return(0,ue.createElement)("div",{className:p,"data-selected-num":s?c:void 0},d&&(0,ue.createElement)("span",{className:"ugb-design-library-item__spinner","data-testid":"spinner"},(0,ue.createElement)(mt.Spinner,null)),!r&&"free"!==l&&(0,ue.createElement)("span",{className:"stk-pulsating-circle",role:"presentation"}),(0,ue.createElement)("button",{className:"ugb-design-library-item__image",onClick:()=>{(r||"free"===l)&&(s?a(t):(u(!0),bl(t,i).then((e=>{const t=u(!1);a(e,t)}))))}},!r&&"free"!==l&&(0,ue.createElement)(In,{type:"design-library",showImage:!1,showHideNote:!1}),(0,ue.createElement)("img",{src:n,alt:o,loading:"lazy"})),(0,ue.createElement)("footer",null,(0,ue.createElement)("span",null,o)))};fl.defaultProps={designId:"",image:"",label:"",onClick:()=>{},plan:"free",isPro:m.isPro,premiumLabel:(0,v.__)("Go Premium",m.i18n),apiVersion:""};const kl=fl,yl=e=>{const{className:t="",designs:n,isBusy:o,onSelect:a,onSelectMulti:l,apiVersion:r,isMultiSelectMode:i=!1,selectedDesigns:s=[]}=e,c=gt()(["ugb-design-library-items",t],{[`ugb-design-library-items--columns-${e.columns}`]:!o&&e.columns});return(0,ue.createElement)("div",{className:c},(n||[]).map(((e,t)=>{const n=!!i&&s.indexOf(e.id)+1;return(0,ue.createElement)(kl,{key:t,type:e.type,block:e.block,template:e.template,plan:e.plan,designId:e.id,image:e.image,label:e.label,apiVersion:r,isMultiSelectMode:i,selectedNum:n,onClick:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;i?l&&l(t,n):a(t,e,n)}})})),o&&(0,ue.createElement)("div",{className:"ugb-design-library-search__spinner","data-testid":"spinner"},(0,ue.createElement)(mt.Spinner,null)),!o&&!(n||[]).length&&(0,ue.createElement)("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},(0,v.__)("No designs found",m.i18n)))};yl.defaultProps={designs:[],columns:1,onSelect:()=>{},isBusy:!1,apiVersion:""};const wl=yl;n(7385);const Cl=[{value:"layout",title:(0,v.__)("Layout",m.i18n),label:(0,v.__)("Layout Tab",m.i18n),icon:"align-left"},{value:"style",title:(0,v.__)("Style",m.i18n),label:(0,v.__)("Style Tab",m.i18n),icon:"admin-appearance"},{value:"advanced",title:(0,v.__)("Advanced",m.i18n),label:(0,v.__)("Advanced Tab",m.i18n),icon:"admin-generic"}],_l=["layout","style","advanced"];class El extends ue.Component{constructor(){super(...arguments),this.tabsToUse=this.props.tabs||_l,this.state={activeTab:this.props.initialTab?this.props.initialTab:this.tabsToUse[0]},this.onButtonPanelClick=this.onButtonPanelClick.bind(this),this.updateSidebarPanelTab=this.updateSidebarPanelTab.bind(this),this.select=this.select.bind(this),this.containerDiv=(0,ue.createRef)(),this.suspendClickListener=!1,this.props.onTabFirstOpen(this.state.activeTab)}updateSidebarPanelTab(e){const t=this.containerDiv.current.closest(".components-panel");t&&setTimeout((()=>{var n;t&&(t.setAttribute("data-ugb-tab",e),null===(n=t.closest(".edit-post-sidebar, .edit-widgets-sidebar, .interface-complementary-area"))||void 0===n||n.classList.add("ugb--has-panel-tabs"))}),1)}componentDidMount(){this.updateSidebarPanelTab(this.state.activeTab),this.props.closeOtherPanels&&m.settings.stackable_auto_collapse_panels&&document.body.addEventListener("click",this.onButtonPanelClick)}componentWillUnmount(){const e=document.querySelector("[data-ugb-tab]");e&&(e.removeAttribute("data-ugb-tab"),e.closest(".edit-post-sidebar, .edit-widgets-sidebar, .interface-complementary-area").classList.remove("ugb--has-panel-tabs")),this.props.closeOtherPanels&&m.settings.stackable_auto_collapse_panels&&document.body.removeEventListener("click",this.onButtonPanelClick)}onButtonPanelClick(e){const t=e.target.closest(".components-panel__body-toggle.stk-panel");var n,o;t&&(0,le.applyFilters)("stackable.panel.tabs.panel-auto-close",!0,t)&&(this.suspendClickListener||(this.suspendClickListener=!0,n=t,[].forEach.call((null===(o=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar, .block-editor-block-inspector"))||void 0===o?void 0:o.querySelectorAll(".components-panel__body .components-panel__body-toggle.stk-panel"))||[],(e=>{0!==e.offsetHeight&&e.parentElement.parentElement.classList.contains("is-opened")&&n!==e&&(0,le.applyFilters)("stackable.panel.tabs.panel-auto-close",!0,e)&&e.click()})),this.suspendClickListener=!1))}select(e){this.setState({activeTab:e}),this.updateSidebarPanelTab(e),this.props.onClick(e)}render(){const e=gt()([this.props.className,"components-panel__body","ugb-panel-tabs"]);return(0,ue.createElement)("div",{className:e,style:this.props.style,ref:this.containerDiv},(0,ue.createElement)("div",{className:"ugb-panel-tabs__wrapper"},(0,le.applyFilters)("stackable.inspector.tabs",Cl).map(((e,t)=>{let{value:n,title:o,label:a,icon:l}=e;return this.tabsToUse.includes(n)?(0,ue.createElement)("button",{key:t,onClick:()=>this.select(n),className:gt()(["edit-post-sidebar__panel-tab",`ugb-tab--${n}`],{"is-active":this.state.activeTab===n}),"aria-label":a,"data-label":a},(0,ue.createElement)(mt.Icon,{icon:l}),o):null}))))}}El.defaultProps={className:"",style:{},closeOtherPanels:!0,initialTab:"",onClickPanel:()=>{},onClick:()=>{},tabs:null,onTabFirstOpen:()=>{}};const Sl=El,xl=function(e){const{options:t,selected:n,title:o=(0,v.__)("Layout",m.i18n),selectedOptionInTitle:a=!0,help:l="",className:r="",initialOpen:i=!0}=e,s=t?t.find((e=>e.value===n)):null,c=s?`${o} – ${s.label}`:o,u=gt()(["ugb-design-panel-body",r]);return(0,ue.createElement)(ll,dt({title:a?(0,ue.createElement)("span",null,c):o,className:u,initialOpen:i},(0,d.omit)(e,["help","onChange"])),l&&(0,ue.createElement)("p",{className:"components-base-control__help"},l),t&&(0,ue.createElement)(Ml,(0,d.omit)(e,["help","title","children"])),e.children)},Tl=function(e){let{imageFile:t,imageHoverFile:n,imageWidth:o="",imageHeight:a="",label:l,isActive:r=!1}=e;const i=t?t.match(/https?:/i)?t:m.srcUrl?`${m.srcUrl}/${t}`:t:"",s=n?n.match(/https?:/i)?n:m.srcUrl?`${m.srcUrl}/${n}`:n:null;return(0,ue.createElement)("span",{className:gt()("ugb-design-panel-item",{"is-active":r})},s&&(0,ue.createElement)("img",{className:"ugb-design-panel-item__hover-image",src:s,alt:l,width:o,height:a}),i&&(0,ue.createElement)("img",{className:"ugb-design-panel-item__image",src:i,alt:l,width:o,height:a}),(0,ue.createElement)("span",{className:"design-label"},l))},Bl=e=>{const t=e.options.filter((e=>!e.premium||m.isPro)).map((t=>({...t,label:(0,ue.createElement)(Tl,{imageFile:t.image,imageHoverFile:t.hoverImage,imageWidth:t.imageWidth,imageHeight:t.imageHeight,isPro:t.isPro,label:t.label,isActive:t.value===e.selected}),title:t.label,value:t.value}))),n=gt()([e.className,"ugb-design-control-wrapper","components-base-control",`ugb-design-control--columns-${e.columns}`]);return(0,ue.createElement)("div",{className:n},e.label&&(0,ue.createElement)(ln,dt({label:e.label},e.helpTooltip)),(0,ue.createElement)(mt.RadioControl,dt({},(0,d.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Bl.defaultProps={className:"",columns:2,selected:"",options:[],onChange:()=>{}};const Ml=Bl,Il=[{image:"dist/images/components-design-separator-control-wave-1.fe7d2e5.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),1),value:"wave-1"},{image:"dist/images/components-design-separator-control-straight-1.fba0f99.png",label:(0,v.__)("Straight",m.i18n),value:"straight-1"},{image:"dist/images/components-design-separator-control-wave-2.bc3ff78.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),2),value:"wave-2"},{image:"dist/images/components-design-separator-control-wave-3.9e204d5.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),3),value:"wave-3"},{image:"dist/images/components-design-separator-control-wave-4.b82e3aa.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),4),value:"wave-4"},{image:"dist/images/components-design-separator-control-slant-1.645f0b9.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Slant",m.i18n),1),value:"slant-1"},{image:"dist/images/components-design-separator-control-slant-2.50e3178.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Slant",m.i18n),2),value:"slant-2"},{image:"dist/images/components-design-separator-control-curve-1.277a020.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Curve",m.i18n),1),value:"curve-1"},{image:"dist/images/components-design-separator-control-curve-2.4b8c7da.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Curve",m.i18n),2),value:"curve-2"},{image:"dist/images/components-design-separator-control-curve-3.da5eb6d.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Curve",m.i18n),3),value:"curve-3"},{image:"dist/images/components-design-separator-control-rounded-1.85d0e25.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Rounded",m.i18n),1),value:"rounded-1"},{image:"dist/images/components-design-separator-control-rounded-2.6e57ec5.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Rounded",m.i18n),2),value:"rounded-2"},{image:"dist/images/components-design-separator-control-rounded-3.78cb6da.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Rounded",m.i18n),3),value:"rounded-3"}];(0,le.addFilter)("stackable.separator.edit.layouts","default",(e=>(0,d.uniqBy)([...e,...Il],"value")));const Nl=e=>{const{label:t,help:n,excludeDesigns:o,...a}=e,l=((0,le.applyFilters)("stackable.separator.edit.layouts",[])||[]).filter((e=>-1===(0,d.findIndex)(o,(t=>t===e.value))));return(0,ue.createElement)(mt.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:t,help:n},(0,ue.createElement)(Ml,dt({options:l},a)))};Nl.defaultProps={label:"",help:"",excludeDesigns:[]};const Rl=Nl,Al=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 496 512"},e),(0,ue.createElement)("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"}))},Hl={placement:"left-start",offset:36,shift:!0},Pl=e=>(0,ue.createElement)(Ic,dt({className:"ugb-icon-control stk-control"},(0,d.omit)(e,["onChange","value"]),{allowReset:!0,value:e.value,defaultValue:e.defaultValue,onChange:e.onChange,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}),(0,ue.createElement)("div",{className:"ugb-icon-control__wrapper"},(0,ue.createElement)("div",{className:"ugb-icon-control__button-wrapper"},(0,ue.createElement)(mt.Dropdown,{popoverProps:Hl,renderToggle:t=>{let{onToggle:n,isOpen:o}=t;return(0,ue.createElement)(yt,{isSecondary:!0,onClick:n,className:"ugb-icon-control__icon-button","aria-expanded":o},e.value&&(0,ue.createElement)(Bc,{value:e.value}),!e.value&&(0,ue.createElement)(Al,{style:{opacity:.3}}))},renderContent:t=>{let{onClose:n}=t;return(0,ue.createElement)(jl,{onClose:n,returnSVGValue:e.returnSVGValue,onChange:e.onChange,defaultValue:e.defaultValue})}}))));Pl.defaultProps={label:(0,v.__)("Icon",m.i18n),value:"",returnSVGValue:!0,onChange:()=>{},defaultValue:"",hasPanelModifiedIndicator:!0};const Ol=Pl,zl=function(e){return(0,ue.createElement)("svg",dt({"aria-hidden":"true","data-prefix":"fas","data-icon":"arrow-alt-to-bottom",className:"drop_svg__svg-inline--fa drop_svg__fa-arrow-alt-to-bottom drop_svg__fa-w-12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},e),(0,ue.createElement)("path",{fill:"currentColor",d:"M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM128 56v136H40.3c-17.8 0-26.7 21.5-14.1 34.1l152.2 152.2c7.5 7.5 19.8 7.5 27.3 0l152.2-152.2c12.6-12.6 3.7-34.1-14.1-34.1H256V56c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24z"}))},Ll=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[...e.FamilyStylesByLicense.free,...t?e.FamilyStylesByLicense.pro.filter((t=>!e.FamilyStylesByLicense.free.includes(t))):[]];return n.map((t=>{let n="";return"duotone"===t.family?n="d":"classic"===t.family?n=t.style[0]:"sharp"===t.family&&(n="s"+t.style[0]),{className:`fa${n} fa-${e.id}`,prefix:`fa${n}`,iconName:e.id}}))};var $l=n(5112);let Dl=null,Fl=null;const Ul=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ugb-custom-icon";return e.match(/(<svg[^>]*class=["'])/)?e.replace(/(<svg[^>]*class=["'])/,`$1${t} `):e.match(/(<svg)/)?e.replace(/(<svg)/,`$1 class="${t}"`):e},Wl=e=>{let t=e.replace(/(^[\s\S]*?)(<svg)/gm,"$2").replace(/(<\/svg>)([\s\S]*)/g,"$1");const n=Math.floor(Math.random()*(new Date).getTime())%1e5;t=t.replace(/id="([^"]*)"/g,`id="$1-${n}"`),t=t.replace(/url\(#([^)]*)\)/g,`url(#$1-${n})`),t=t.replace(/href="#([^"]*)"/g,`href="#$1-${n}"`),-1!==t.indexOf("\x3c!--")&&(t=t.replace(/<!--[\s\S]*?-->/gm,""));for(let e=0;e<2;e++)t=t.replace(/\s*<g\s*>([\s\S]*?)<\/g>\s*/gm,"$1");return t=t.replace(/<svg([^>]*)width=(["'])[^"']*["']([^>]*)/g,"<svg$1$3").replace(/<svg([^>]*)height=(["'])[^"']*["']([^>]*)/g,"<svg$1$3"),t},Vl=e=>{const[t,n]=(0,ue.useState)(""),[o,a]=(0,ue.useState)({faIcons:[],iconLibrary:[]}),[l,r]=(0,ue.useState)(!1),[i,s]=(0,ue.useState)(!1),c=e.returnSVGValue;(0,ue.useEffect)((()=>{let e=!0;return clearTimeout(Dl),Dl=setTimeout((()=>{e&&(r(!0),async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"icon",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.fontAwesomeSearchProIcons;const n=`{ search(version: "${(m.iconsFaKit?m.iconsFaProKitVersion:m.iconsFaFreeKitVersion||"6.5.1")||"6.5.1"}", first: 50, query: "${(e||"info").replace(/["'\\]/g,"")}") {\n\t\t\tid,\n\t\t\tFamilyStylesByLicense {\n\t\t\t\tfree { style, family },\n\t\t\t\t${t?"pro { style, family }":""}\n\t\t\t}\n\t\t} }`,o=(await fetch("https://api.fontawesome.com",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:n})}).then((e=>e.json()))).data.search.reduce(((e,n)=>(Ll(n,t).forEach((t=>{e.push(t)})),e)),[]),a=(0,le.applyFilters)("stackable.global-settings.inspector.icon-library.search-icons",null,e);return{faIcons:o,iconLibrary:a}}(t).then((t=>{e&&a(t)})).finally((()=>{e&&r(!1)})))}),500),()=>{e=!1,clearTimeout(Dl)}}),[t]),(0,ue.useEffect)((()=>{Fl||(Fl=wp.data.select("core/block-editor").getSettings().mediaUpload),i?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==Fl&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:Fl})}),[i]);const d=gt()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":m.isPro,"ugb-icon--has-upload":c,"ugb-icon--has-reset":e.allowReset}),u=(0,le.applyFilters)("stackable.global-settings.inspector.icon-library.icons",ue.Fragment),p=(0,ue.createElement)("div",{className:"stk-icon-search-popover-container"},(0,ue.createElement)($l.FileDrop,{onFrameDragEnter:()=>s(!0),onFrameDragLeave:()=>s(!1),onFrameDrop:()=>s(!1),onDrop:t=>{if(!c||!t.length)return void s(!1);if("image/svg+xml"!==t[0].type)return void s(!1);const n=new FileReader;n.onload=function(t){s(!1);const n=Wl(Ul(t.target.result));(0,le.doAction)("stackable.icon-search-popover.svg-upload",n),e.onChange(n),e.onClose()},n.readAsText(t[0])}},(0,ue.createElement)("div",{className:d},(0,ue.createElement)(mt.TextControl,{className:"ugb-icon-popover__input",value:t,onChange:n,placeholder:(0,v.__)("Type to search icon",m.i18n)}),m.isPro&&(0,ue.createElement)(yt,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:m.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:(0,v.__)("Icon Settings",m.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),c&&(0,ue.createElement)(yt,{onClick:t=>{t.preventDefault();const n=document.createElement("input");n.accept="image/svg+xml",n.type="file",n.onchange=t=>{const n=t.target.files;if(!n.length)return void s(!1);const o=new FileReader;o.onload=function(t){s(!1);const n=Wl(Ul(t.target.result));(0,le.doAction)("stackable.icon-search-popover.svg-upload",n),e.onChange(n),e.onClose()},o.readAsText(n[0])},n.click()},isSmall:!0,isPrimary:!0,className:"components-range-control__upload"},(0,v.__)("Upload SVG",m.i18n)),e.allowReset&&(0,ue.createElement)(yt,{onClick:()=>{e.onChange(e.defaultValue||""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},(0,v.__)("Clear icon",m.i18n))),(0,ue.createElement)("div",{className:"ugb-icon-popover__iconlist"},l&&(0,ue.createElement)(mt.Spinner,null),!l&&(0,ue.createElement)(u,{icons:o.iconLibrary,onChange:e.onChange,onClose:e.onClose}),!l&&o.faIcons.map(((t,n)=>{let{prefix:o,iconName:a}=t;const l=`${o}-${a}`;return(0,ue.createElement)("button",{key:n,className:`components-button ugb-prefix--${o} ugb-icon--${a}`,onClick:async()=>{if(e.returnSVGValue&&e.returnIconName){let t=Em(o,a);t||(await Sm(o,a),t=Em(o,a)),e.onChange(Wl(t),o,a)}else if(e.returnSVGValue){let t=Em(o,a);t||(await Sm(o,a),t=Em(o,a)),e.onChange(Wl(t))}else e.onChange(l,o,a);e.onClose()}},(0,ue.createElement)(Sc,{prefix:o,iconName:a}))})),!l&&!o.faIcons.length&&!o.iconLibrary.length&&(0,ue.createElement)("p",{className:"components-base-control__help"},(0,v.__)("No matches found",m.i18n))),c&&i&&(0,ue.createElement)("div",{className:"ugb-icon-popover__drop-indicator"},(0,ue.createElement)(zl,{height:"40",width:"40"}),(0,v.__)("Drop your SVG here",m.i18n))));return e.__hasPopover?(0,ue.createElement)(Zt,{className:"ugb-icon-popover",onClose:e.onClose,onEscape:e.onClose,onClickOutside:e.__deprecatedOnClickOutside,position:e.__deprecatedPosition,anchorRef:e.__deprecatedAnchorRef,ref:e.__deprecateUseRef},(0,ue.createElement)(mt.PanelBody,null,p)):p},Gl=()=>{};Vl.defaultProps={onChange:Gl,onClose:Gl,returnSVGValue:!0,allowReset:!0,__deprecatedAnchorRef:void 0,__deprecatedPosition:"center",__deprecatedOnClickOutside:Gl,__hasPopover:!1};const jl=Vl,ql=(0,ue.memo)((e=>{const[t,n]=(0,ue.useState)(!1),o=(0,ue.useRef)(null);return(0,ue.useEffect)((()=>{if(t){const e=e=>{var t,a,l,r;null!==(t=window.wp)&&void 0!==t&&null!==(a=t.media)&&void 0!==a&&null!==(l=a.frame)&&void 0!==l&&null!==(r=l.el)&&void 0!==r&&r.clientHeight||e.target.closest(".ugb-button-icon-control__popover")||(null==o?void 0:o.current)===e.target.closest(".ugb-button-icon-control__edit")||e.target.closest(".components-color-picker")||e.target.closest(".react-autosuggest__suggestions-container")||e.target.closest(".components-dropdown__content")||n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}}),[t]),(0,ue.createElement)(Ic,{help:e.help,label:e.label,id:"ugb-button-icon-control",className:gt()("ugb-button-icon-control",e.className),allowReset:!0,showReset:e.allowReset||!!e.onToggle&&e.checked,onReset:()=>{e.onReset(),e.onToggle&&e.onToggle(!1)},hasLabel:!e.onToggle},e.onToggle&&(0,ue.createElement)(mt.ToggleControl,{label:e.label,checked:e.checked,onChange:e.onToggle}),(0,ue.createElement)("div",{className:"ugb-button-icon-control__wrapper"},(0,ue.createElement)(yt,{onClick:()=>n((e=>!e)),className:"ugb-button-icon-control__edit",label:(0,v.__)("Edit",m.i18n),isSecondary:!0,icon:"edit",ref:o}),t&&(0,ue.createElement)(Zt,{className:"ugb-button-icon-control__popover",focusOnMount:"container",onEscape:()=>n(!1)},(0,ue.createElement)(mt.PanelBody,null,(void 0!==e.popoverLabel?e.popoverLabel:e.label)&&(0,ue.createElement)("h2",{className:"components-panel__body-title"},e.popoverLabel||e.label),e.children))))}));ql.defaultProps={help:"",label:"",popoverLabel:void 0,className:"",allowReset:!1,onReset:()=>{},checked:!1,onToggle:void 0};const Kl=ql,Jl=e=>{const{isAllowReset:t}=e,n=(0,ue.useMemo)((()=>"function"==typeof e.placeholder?e.fontSize||Math.round(e.placeholder(kg(e.htmlTag,!0))):e.fontSize||e.placeholder||kg(e.htmlTag,!0)),[e.htmlTag,e.fontSize]),o=void 0!==typeof t?t:e.fontFamily||e.fontSize||e.tabletFontSize||e.mobileFontSize||e.fontWeight||e.textTransform||e.lineHeight||e.tabletLineHeight||e.mobileLineHeight||e.letterSpacing||e.tabletLetterSpacing||e.mobileLetterSpacing;return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Kl,{label:e.label,popoverLabel:e.popoverLabel,onReset:e.onReset,allowReset:o,resetPopoverTitle:e.resetPopoverTitle,resetPopoverDescription:e.resetPopoverDescription,className:e.className,help:e.help},e.onChangeFontFamily&&(0,ue.createElement)(zo,{label:(0,v.__)("Font Family",m.i18n),onChange:e.onChangeFontFamily,value:e.fontFamily,defaultValue:null==e?void 0:e.defaultFontFamily,placeholder:(0,v.__)("Default",m.i18n),helpTooltip:{video:"typography-family",description:(0,v.__)("Sets the font set to be used for the element",m.i18n)}}),e.onChangeFontSize&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(xr,null,(0,ue.createElement)(Po,dt({label:(0,v.__)("Size",m.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:n,helpTooltip:{title:(0,v.__)("Font size",m.i18n),description:(0,v.__)("Sets the size of text characters",m.i18n)}}))),(0,ue.createElement)(xr,{screen:"tablet"},(0,ue.createElement)(Po,dt({label:(0,v.__)("Size",m.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,v.__)("Font size",m.i18n),description:(0,v.__)("Sets the size of text characters",m.i18n)}}))),(0,ue.createElement)(xr,{screen:"mobile"},(0,ue.createElement)(Po,dt({label:(0,v.__)("Size",m.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,v.__)("Font size",m.i18n),description:(0,v.__)("Sets the size of text characters",m.i18n)}})))),e.onChangeFontWeight&&(0,ue.createElement)(so,{label:(0,v.__)("Weight",m.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Normal",m.i18n),value:"normal"},{label:(0,v.__)("Bold",m.i18n),value:"bold"}],onChange:e.onChangeFontWeight,value:e.fontWeight,helpTooltip:{video:"typography-weight",title:(0,v.__)("Font weight",m.i18n),description:(0,v.__)("Sets the thinness or thickness of text characters",m.i18n)}}),e.onChangeTextTransform&&(0,ue.createElement)(so,{label:(0,v.__)("Transform",m.i18n),options:[{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Uppercase",m.i18n),value:"uppercase"},{label:(0,v.__)("Lowercase",m.i18n),value:"lowercase"},{label:(0,v.__)("Capitalize",m.i18n),value:"capitalize"},{label:(0,v.__)("None",m.i18n),value:"none"}],onChange:e.onChangeTextTransform,value:e.textTransform,helpTooltip:{video:"typography-transform",title:(0,v.__)("Transform",m.i18n),description:(0,v.__)("Sets the usage of upper or lower case",m.i18n)}}),e.onChangeLineHeight&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(xr,null,(0,ue.createElement)(ro,{label:(0,v.__)("Line-Height",m.i18n),units:e.lineHeightUnits,min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.lineHeight,onChange:e.onChangeLineHeight,unit:e.lineHeightUnit,onChangeUnit:e.onChangeLineHeightUnit,initialPosition:[37,1.8],helpTooltip:{video:"typography-line-height",title:(0,v.__)("Line height",m.i18n),description:(0,v.__)("Sets the vertical distance between lines of text",m.i18n)}})),(0,ue.createElement)(xr,{screen:"tablet"},(0,ue.createElement)(ro,{label:(0,v.__)("Line-Height",m.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.tabletLineHeight,onChange:e.onChangeTabletLineHeight,unit:e.tabletLineHeightUnit,onChangeUnit:e.onChangeTabletLineHeightUnit,initialPosition:[37,1.8],helpTooltip:{video:"typography-line-height",title:(0,v.__)("Line height",m.i18n),description:(0,v.__)("Sets the vertical distance between lines of text",m.i18n)}})),(0,ue.createElement)(xr,{screen:"mobile"},(0,ue.createElement)(ro,{label:(0,v.__)("Line-Height",m.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.mobileLineHeight,onChange:e.onChangeMobileLineHeight,unit:e.mobileLineHeightUnit,onChangeUnit:e.onChangeMobileLineHeightUnit,initialPosition:[37,1.8],helpTooltip:{video:"typography-line-height",title:(0,v.__)("Line height",m.i18n),description:(0,v.__)("Sets the vertical distance between lines of text",m.i18n)}}))),e.onChangeLetterSpacing&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(xr,null,(0,ue.createElement)(ro,{label:(0,v.__)("Letter Spacing",m.i18n),min:-5,max:10,step:.1,allowReset:!0,onChange:e.onChangeLetterSpacing,value:e.letterSpacing,placeholder:"0",helpTooltip:{video:"typography-letter-spacing",title:(0,v.__)("Letter spacing",m.i18n),description:(0,v.__)("Sets the distance or space between letters",m.i18n)}})),(0,ue.createElement)(xr,{screen:"tablet"},(0,ue.createElement)(ro,{label:(0,v.__)("Letter Spacing",m.i18n),min:-5,max:10,step:.1,allowReset:!0,value:e.tabletLetterSpacing,onChange:e.onChangeTabletLetterSpacing,placeholder:"0",helpTooltip:{video:"typography-letter-spacing",title:(0,v.__)("Letter spacing",m.i18n),description:(0,v.__)("Sets the distance or space between letters",m.i18n)}})),(0,ue.createElement)(xr,{screen:"mobile"},(0,ue.createElement)(ro,{label:(0,v.__)("Letter Spacing",m.i18n),min:-5,max:10,step:.1,allowReset:!0,value:e.mobileLetterSpacing,onChange:e.onChangeMobileLetterSpacing,placeholder:"0",helpTooltip:{video:"typography-letter-spacing",title:(0,v.__)("Letter spacing",m.i18n),description:(0,v.__)("Sets the distance or space between letters",m.i18n)}})))),e.showSecondFontSize&&e.onChangeFontSize&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(xr,null,(0,ue.createElement)(Po,dt({label:(0,v.__)("Size",m.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:n,helpTooltip:{title:(0,v.__)("Font size",m.i18n),description:(0,v.__)("Sets the size of text characters",m.i18n)}}))),(0,ue.createElement)(xr,{screen:"tablet"},(0,ue.createElement)(Po,dt({label:(0,v.__)("Size",m.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,v.__)("Font size",m.i18n),description:(0,v.__)("Sets the size of text characters",m.i18n)}}))),(0,ue.createElement)(xr,{screen:"mobile"},(0,ue.createElement)(Po,dt({label:(0,v.__)("Size",m.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,v.__)("Font size",m.i18n),description:(0,v.__)("Sets the size of text characters",m.i18n)}})))))};Jl.defaultProps={label:(0,v.__)("Typography",m.i18n),popoverLabel:void 0,showSecondFontSize:!0,fontFamily:"",fontSize:"",tabletFontSize:"",mobileFontSize:"",fontSizeUnit:"px",tabletFontSizeUnit:"px",mobileFontSizeUnit:"px",fontWeight:"",textTransform:"",lineHeight:"",tabletLineHeight:"",mobileLineHeight:"",lineHeightUnit:"em",lineHeightUnits:["px","em"],tabletLineHeightUnit:"em",mobileLineHeightUnit:"em",letterSpacing:"",tabletLetterSpacing:"",mobileLetterSpacing:"",fontSizeProps:{},resetPopoverTitle:"",resetPopoverDescription:"",placeholder:"",htmlTag:"p",onReset:()=>{},onChangeFontFamily:()=>{},onChangeFontSize:()=>{},onChangeTabletFontSize:()=>{},onChangeMobileFontSize:()=>{},onChangeFontSizeUnit:()=>{},onChangeTabletFontSizeUnit:()=>{},onChangeMobileFontSizeUnit:()=>{},onChangeFontWeight:()=>{},onChangeTextTransform:()=>{},onChangeLineHeight:()=>{},onChangeTabletLineHeight:()=>{},onChangeMobileLineHeight:()=>{},onChangeLineHeightUnit:()=>{},onChangeTabletLineHeightUnit:()=>{},onChangeMobileLineHeightUnit:()=>{},onChangeLetterSpacing:()=>{},onChangeTabletLetterSpacing:()=>{},onChangeMobileLetterSpacing:()=>{}};const Yl=Jl,Xl=e=>(0,ue.createElement)(ue.Fragment,null,e.onChangeBorderType&&(0,ue.createElement)(Ao,{label:(0,v.__)("Borders",m.i18n),controls:[{value:"",title:(0,v.__)("None",m.i18n)},{value:"solid",title:(0,v.__)("Solid",m.i18n)},{value:"dashed",title:(0,v.__)("Dashed",m.i18n)},{value:"dotted",title:(0,v.__)("Dotted",m.i18n)}],className:"ugb-border-controls__border-type-toolbar",value:e.borderType,onChange:e.onChangeBorderType,fullwidth:!0,isSmall:!0}),e.onChangeBorderWidth&&e.borderType&&(0,ue.createElement)(nr,{label:(0,v.__)("Border Width",m.i18n),units:["px"],min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,valueDesktop:{top:e.borderWidthTop,right:e.borderWidthRight,bottom:e.borderWidthBottom,left:e.borderWidthLeft},onChangeDesktop:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeBorderWidth({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):"",borderType:e.borderType?void 0:"solid"})},valueTablet:{top:e.tabletBorderWidthTop,right:e.tabletBorderWidthRight,bottom:e.tabletBorderWidthBottom,left:e.tabletBorderWidthLeft},onChangeTablet:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeTabletBorderWidth({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},valueMobile:{top:e.mobileBorderWidthTop,right:e.mobileBorderWidthRight,bottom:e.mobileBorderWidthBottom,left:e.mobileBorderWidthLeft},onChangeMobile:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeMobileBorderWidth({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},placeholder:"1",placeholderTop:"1",placeholderLeft:"1",placeholderBottom:"1",placeholderRight:"1"}),e.onChangeBorderColor&&e.borderType&&(0,ue.createElement)(Cn,{value:e.borderColor,onChange:t=>{e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:(0,v.__)("Border Color",m.i18n)}));Xl.defaultProps={onResetBorder:()=>{},borderType:"",onChangeBorderType:()=>{},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:()=>{},onChangeTabletBorderWidth:()=>{},onChangeMobileBorderWidth:()=>{},borderColor:"",onChangeBorderColor:()=>{}};const Ql=Xl,Zl=e=>{const{setAttributes:t}=e,n=t=>(0,d.camelCase)((0,v.sprintf)(e.attrNameTemplate,t)),o=dg(e.blockAttributes,n,"");return(0,ue.createElement)(Ql,dt({borderType:o("BorderType"),onChangeBorderType:e=>t({[n("BorderType")]:e}),onResetBorder:()=>{t({[n("BorderType")]:""})},borderWidthTop:o("BorderWidthTop"),borderWidthRight:o("BorderWidthRight"),borderWidthBottom:o("BorderWidthBottom"),borderWidthLeft:o("BorderWidthLeft"),tabletBorderWidthTop:o("TabletBorderWidthTop"),tabletBorderWidthRight:o("TabletBorderWidthRight"),tabletBorderWidthBottom:o("TabletBorderWidthBottom"),tabletBorderWidthLeft:o("TabletBorderWidthLeft"),mobileBorderWidthTop:o("MobileBorderWidthTop"),mobileBorderWidthRight:o("MobileBorderWidthRight"),mobileBorderWidthBottom:o("MobileBorderWidthBottom"),mobileBorderWidthLeft:o("MobileBorderWidthLeft"),onChangeBorderWidth:e=>{let{top:o,right:a,bottom:l,left:r,borderType:i}=e;const s={[n("BorderWidthTop")]:o,[n("BorderWidthRight")]:a,[n("BorderWidthBottom")]:l,[n("BorderWidthLeft")]:r};i&&(s[n("BorderType")]=i),t(s)},onChangeTabletBorderWidth:e=>{let{top:o,right:a,bottom:l,left:r}=e;t({[n("TabletBorderWidthTop")]:o,[n("TabletBorderWidthRight")]:a,[n("TabletBorderWidthBottom")]:l,[n("TabletBorderWidthLeft")]:r})},onChangeMobileBorderWidth:e=>{let{top:o,right:a,bottom:l,left:r}=e;t({[n("MobileBorderWidthTop")]:o,[n("MobileBorderWidthRight")]:a,[n("MobileBorderWidthBottom")]:l,[n("MobileBorderWidthLeft")]:r})},borderColor:o("BorderColor"),onChangeBorderColor:e=>{let{color:o,borderType:a}=e;const l={[n("BorderColor")]:o};a&&(l[n("BorderType")]=a),t(l)}},e))};Zl.defaultProps={attrNameTemplate:"%s",setAttributes:()=>{},blockAttributes:{}};const er=Zl,tr=e=>{const t=(0,d.pick)(e,["label","units","screens","defaultLocked","enableTop","enableRight","enableBottom","enableLeft","className","sliderMax","sliderMin"]),n=Array.isArray(e.min)?e.min:[e.min,e.min,e.min],o=Array.isArray(e.max)?e.max:[e.max,e.max,e.max],a=Array.isArray(e.sliderMin)?e.sliderMin:[e.sliderMin,e.sliderMin,e.sliderMin],l=Array.isArray(e.sliderMax)?e.sliderMax:[e.sliderMax,e.sliderMax,e.sliderMax],r=Array.isArray(e.step)?e.step:[e.step,e.step,e.step];return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(xr,{screen:"desktop"},(0,ue.createElement)(_r,dt({},t,{min:n[0],max:o[0],sliderMin:a[0],sliderMax:l[0],step:r[0],top:e.valueDesktop.top,right:e.valueDesktop.right,bottom:e.valueDesktop.bottom,left:e.valueDesktop.left,unit:e.valueDesktopUnit||e.units[0],onChange:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeDesktop({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},onChangeUnit:t=>e.onChangeDesktopUnit(t),placeholder:e.placeholder,placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),(0,ue.createElement)(xr,{screen:"tablet"},(0,ue.createElement)(_r,dt({},t,{min:n[1],max:o[1],sliderMin:a[1],sliderMax:l[1],step:r[1],top:e.valueTablet.top,right:e.valueTablet.right,bottom:e.valueTablet.bottom,left:e.valueTablet.left,unit:e.valueTabletUnit||e.units[0],onChange:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeTablet({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},onChangeUnit:t=>e.onChangeTabletUnit(t)}))),(0,ue.createElement)(xr,{screen:"mobile"},(0,ue.createElement)(_r,dt({},t,{min:n[2],max:o[2],sliderMin:a[2],sliderMax:l[2],step:r[2],top:e.valueMobile.top,right:e.valueMobile.right,bottom:e.valueMobile.bottom,left:e.valueMobile.left,unit:e.valueMobileUnit||e.units[0],onChange:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeMobile({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},onChangeUnit:t=>e.onChangeMobileUnit(t)}))))};tr.defaultProps={label:(0,v.__)("Spacing",m.i18n),defaultLocked:!0,units:["px","em","%","vw"],screens:["desktop","tablet","mobile"],min:0,max:1/0,sliderMax:null,sliderMin:null,step:1,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,valueDesktop:{},valueTablet:{},valueMobile:{},valueDesktopUnit:"",valueTabletUnit:"",valueMobileUnit:"",onChangeDesktop:()=>{},onChangeTablet:()=>{},onChangeMobile:()=>{},onChangeDesktopUnit:()=>{},onChangeTabletUnit:()=>{},onChangeMobileUnit:()=>{},placeholderTop:"60",placeholderLeft:"35",placeholderBottom:"60",placeholderRight:"35",placeholder:""};const nr=tr,or=e=>{const{initialOpen:t,...n}=e,[o,a]=(0,ue.useState)(t),l=gt()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!o});return(0,ue.createElement)("div",{className:"components-base-control"},(0,ue.createElement)("button",{className:"ugb-pro-control-more-dots",onClick:()=>a((e=>!e))},(0,ue.createElement)("div",{className:"ugb-pro-control-more-dots__dot stk-pulsating-circle"}),(0,ue.createElement)("div",{className:"ugb-pro-control-more-dots__dot stk-pulsating-circle"}),(0,ue.createElement)("div",{className:"ugb-pro-control-more-dots__dot stk-pulsating-circle"})),(0,ue.createElement)("div",{className:l},(0,ue.createElement)(In,n)))};or.defaultProps={initialOpen:!1};const ar=or,lr=e=>{var t;const n="all"===e.screens?["desktop","tablet","mobile"]:e.screens,o=(null===(t=e.units)||void 0===t?void 0:t.map((e=>({value:e}))))||[];return(0,ue.createElement)("div",{className:"ugb-base-control-multi-label"},(0,ue.createElement)(ln,dt({label:e.label},e.helpTooltip)),(0,ue.createElement)(At,{screens:n}),(0,ue.createElement)("div",{className:"ugb-base-control-multi-label__units"},(0,ue.createElement)(Bt,{className:"stk-control-unit-toggle",value:e.unit,options:o,onChange:t=>e.onChangeUnit(t),labelPosition:"left",buttonLabel:(0,v.__)("Unit",m.i18n),hasLabels:!1,hasColors:!1}),e.afterButton))};lr.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:()=>{},screens:["desktop"],afterButton:null};const rr=lr;class ir extends ue.Component{constructor(){super(...arguments);const e=this.getEnabledValues(),t=!e.length||e.every((t=>t===e[0])),n=e.every((e=>""===e));this.state={locked:n?this.props.defaultLocked:t},this.onToggleLock=this.onToggleLock.bind(this),this.onChangeTop=this.onChangeTop.bind(this),this.onChangeRight=this.onChangeRight.bind(this),this.onChangeBottom=this.onChangeBottom.bind(this),this.onChangeLeft=this.onChangeLeft.bind(this)}getEnabledValues(){return[...this.props.enableTop?[this.props.top]:[],...this.props.enableRight?[this.props.right]:[],...this.props.enableBottom?[this.props.bottom]:[],...this.props.enableLeft?[this.props.left]:[]]}getEnabledLocations(){return[...this.props.enableTop?["top"]:[],...this.props.enableRight?["right"]:[],...this.props.enableBottom?["bottom"]:[],...this.props.enableLeft?["left"]:[]]}filterOnlyEnabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.pick)(e,this.getEnabledLocations())}onToggleLock(){this.setState({locked:!this.state.locked})}onChangeTop(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),top:n})}onChangeRight(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),right:n})}onChangeBottom(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),bottom:n})}onChangeLeft(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),left:n})}render(){const{instanceId:e}=this.props,t=`ugb-four-number-control-${e}__item-`;return(0,ue.createElement)(mt.BaseControl,{help:this.props.help,className:gt()("ugb-four-number-control",this.props.className)},(0,ue.createElement)(rr,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens}),(0,ue.createElement)("div",{className:"ugb-four-number-control__wrapper"},(0,ue.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-top`},(0,ue.createElement)("input",{id:`${t}-top`,type:"number",onChange:this.onChangeTop,"aria-label":(0,v.__)("Top",m.i18n),value:this.props.top,placeholder:this.props.enableTop?"":(0,v.__)("auto",m.i18n),disabled:!this.props.enableTop}),(0,ue.createElement)("span",null,(0,v.__)("Top",m.i18n))),(0,ue.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-right`},(0,ue.createElement)("input",{id:`${t}-right`,type:"number",onChange:this.onChangeRight,"aria-label":this.props.label,value:this.props.right,placeholder:this.props.enableRight?"":(0,v.__)("auto",m.i18n),disabled:!this.props.enableRight}),(0,ue.createElement)("span",null,(0,v.__)("Right",m.i18n))),(0,ue.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-bottom`},(0,ue.createElement)("input",{id:`${t}-bottom`,type:"number",onChange:this.onChangeBottom,"aria-label":this.props.label,value:this.props.bottom,placeholder:this.props.enableBottom?"":(0,v.__)("auto",m.i18n),disabled:!this.props.enableBottom}),(0,ue.createElement)("span",null,(0,v.__)("Bottom",m.i18n))),(0,ue.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-left`},(0,ue.createElement)("input",{id:`${t}-left`,type:"number",onChange:this.onChangeLeft,"aria-label":this.props.label,value:this.props.left,placeholder:this.props.enableLeft?"":(0,v.__)("auto",m.i18n),disabled:!this.props.enableLeft}),(0,ue.createElement)("span",null,(0,v.__)("Left",m.i18n))),(0,ue.createElement)(yt,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:(0,ue.createElement)(mt.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}ir.defaultProps={onChange:()=>{},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:()=>{},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0};const sr=(0,jt.withInstanceId)(ir),cr=function(e){return(0,ue.createElement)("svg",dt({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,ue.createElement)("path",{d:"M0 6V0h6v2L5 3H3v2L2 6H0zM16 10v6h-6v-2l1-1h2v-2l1-1h2zM10 0h6v6h-2l-1-1V3h-2l-1-1V0zM6 16H0v-6h2l1 1v2h2l1 1v2z",fill:"#555D63"}))},dr=function(e){return(0,ue.createElement)("svg",dt({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,ue.createElement)("path",{d:"M16 10v6h-6v-2l1-1h2v-2l1-1h2z",fill:"#555D63"}))},ur=function(e){return(0,ue.createElement)("svg",dt({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,ue.createElement)("path",{d:"M6 16H0v-6h2l1 1v2h2l1 1v2z",fill:"#555D63"}))},pr=function(e){return(0,ue.createElement)("svg",dt({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,ue.createElement)("path",{d:"M10 0h6v6h-2l-1-1V3h-2l-1-1V0z",fill:"#555D63"}))},hr=function(e){return(0,ue.createElement)("svg",dt({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,ue.createElement)("path",{d:"M0 6V0h6v2L5 3H3v2L2 6H0z",fill:"#555D63"}))},gr=function(e){return(0,ue.createElement)("svg",dt({id:"all_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",xmlSpace:"preserve"},e),(0,ue.createElement)("style",null,".all_svg__st0{fill:#555d63}"),(0,ue.createElement)("path",{className:"all_svg__st0",d:"M13 11.5v-7l2.3-1.9c.3-.2.7-.1.7.1v10.5c0 .2-.3.3-.7.2L13 11.5zM3 4.5v7L.7 13.4c-.3.2-.7.1-.7-.1V2.7c0-.2.3-.3.7-.2l2.3 2zM11.5 3h-7L2.6.7c-.2-.3-.1-.7.1-.7h10.5c.2 0 .3.3.2.7L11.5 3zM4.5 13h7l1.9 2.3c.2.2.1.7-.2.7H2.7c-.2 0-.3-.3-.2-.7l2-2.3z"}))},mr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,ue.createElement)("path",{d:"M3.8 13h8.4l2.2 2.3c.2.2.1.7-.2.7H1.8c-.3 0-.4-.3-.2-.7L3.8 13z",fill:"#555d63"}))},vr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,ue.createElement)("path",{d:"M3 3.8v8.4L.7 14.3c-.3.3-.7.2-.7-.1V1.9c0-.4.4-.5.7-.3L3 3.8z",fill:"#555d63"}))},br=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,ue.createElement)("path",{d:"M13 12.2V3.8l2.3-2.2c.3-.2.7-.1.7.2v12.4c0 .3-.3.4-.7.2L13 12.2z",fill:"#555d63"}))},fr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,ue.createElement)("path",{d:"M1.6.7c-.2-.3-.1-.7.2-.7h12.4c.3 0 .4.3.2.7L12.2 3H3.8L1.6.7z",fill:"#555d63"}))},kr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555d63"}))},yr=function(e){return(0,ue.createElement)("svg",dt({id:"vertical_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",xmlSpace:"preserve"},e),(0,ue.createElement)("style",null,".vertical_svg__st1{fill:#555d63}"),(0,ue.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,ue.createElement)("path",{className:"vertical_svg__st1",d:"M3.8 13h8.4l2.2 2.3c.2.2.1.7-.2.7H1.8c-.3 0-.4-.3-.2-.7L3.8 13zM1.6.7c-.2-.3-.1-.7.2-.7h12.4c.3 0 .4.3.2.7L12.2 3H3.8L1.6.7z"}))},wr=function(e){return(0,ue.createElement)("svg",dt({id:"horizontal_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",xmlSpace:"preserve"},e),(0,ue.createElement)("style",null,".horizontal_svg__st1{fill:#555d63}"),(0,ue.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,ue.createElement)("path",{className:"horizontal_svg__st1",d:"M3 3.8v8.4L.7 14.3c-.3.3-.7.2-.7-.1V1.9c0-.4.4-.5.7-.3L3 3.8zM13 12.2V3.8l2.3-2.2c.3-.2.7-.1.7.2v12.4c0 .3-.3.4-.7.2L13 12.2z"}))},Cr=(0,ue.memo)((e=>{var t;const[n,o]=cn(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[a,l]=mn(e),[r]=Ye();let i=n||{top:e.defaultTop,right:e.defaultRight,bottom:e.defaultBottom,left:e.defaultLeft};(void 0!==e.top||void 0!==e.right||void 0!==e.bottom||void 0!==e.left)&&(i={top:void 0!==e.top?e.top:e.enableTop?e.defaultTop:void 0,right:void 0!==e.right?e.right:e.enableRight?e.defaultRight:void 0,bottom:void 0!==e.bottom?e.bottom:e.enableBottom?e.defaultBottom:void 0,left:void 0!==e.left?e.left:e.enableLeft?e.defaultLeft:void 0});const s=void 0===e.onChange?o:e.onChange,c=e.enableTop&&""===i.top&&e.enableRight&&""===i.right&&e.enableBottom&&""===i.bottom&&e.enableLeft&&""===i.left,d=e.enableTop?i.top:e.enableRight?i.right:e.enableBottom?i.bottom:i.left,[u,p]=(0,ue.useState)(c?e.defaultLocked:((e,t,n)=>{let o=!0;return o=(!e.enableTop||t.top===n)&&o,o=(!e.enableRight||t.right===n)&&o,o=(!e.enableBottom||t.bottom===n)&&o,o=(!e.enableLeft||t.left===n)&&o,o})(e,i,d)),h=gt()(["ugb-four-range-control__lock"],{"ugb--is-locked":e.hasLock&&u});l.after=e.hasLock&&(0,ue.createElement)(yt,{className:h,onClick:()=>p(!u),variation:"tertiary",icon:u?e.isCorner?(0,ue.createElement)(cr,null):(0,ue.createElement)(gr,null):(0,ue.createElement)(kr,null),label:u?(0,v.__)("Individual sides",m.i18n):(0,v.__)("All sides",m.i18n)});const g=!(null===(t=e.units)||void 0===t||!t.length),b=Qe(`${e.attribute}Unit`,e.responsive,e.hover),{unit:f,_valueDesktop:k,_valueTablet:y,_unitDesktop:w,_unitTablet:C}=Ae((t=>({unit:t[b],_valueDesktop:t[`${e.attribute}`],_valueTablet:t[`${e.attribute}Tablet`],_unitDesktop:t[`${e.attribute}Unit`],_unitTablet:t[`${e.attribute}UnitTablet`]})));if(g){const t=e.units.indexOf(f)<0?0:e.units.indexOf(f);Array.isArray(e.min)&&(a.min=e.min[t]),Array.isArray(e.max)&&(a.max=e.max[t]),Array.isArray(e.sliderMin)&&(a.sliderMin=e.sliderMin[t]),Array.isArray(e.sliderMax)&&(a.sliderMax=e.sliderMax[t]),Array.isArray(e.step)&&(a.step=e.step[t]),Array.isArray(e.placeholder)&&(a.placeholder=e.placeholder[t]),a.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,0!==t&&(a.initialPosition="",a.placeholder=e.placeholder)}else a.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder;const _=ve(),E=y&&""!==y&&y.top&&""!==y.top,S=y&&""!==y&&y.right&&""!==y.right,x=y&&""!==y&&y.bottom&&""!==y.bottom,T=y&&""!==y&&y.left&&""!==y.left,B=e.enableTop?y&&""!==y&&y.top&&""!==y.top:e.enableRight?y&&""!==y&&y.right&&""!==y.right:e.enableBottom?y&&""!==y&&y.bottom&&""!==y.bottom:y&&""!==y&&y.left&&""!==y.left,M=k&&""!==k&&k.top&&""!==k.top,I=k&&""!==k&&k.right&&""!==k.right,N=k&&""!==k&&k.bottom&&""!==k.bottom,R=k&&""!==k&&k.left&&""!==k.left,A=e.enableTop?k&&""!==k&&k.top&&""!==k.top:e.enableRight?k&&""!==k&&k.right&&""!==k.right:e.enableBottom?k&&""!==k&&k.bottom&&""!==k.bottom:k&&""!==k&&k.left&&""!==k.left,{desktop:H,tablet:P}=e.enableTop?{desktop:null==k?void 0:k.top,tablet:null==y?void 0:y.top}:e.enableRight?{desktop:null==k?void 0:k.right,tablet:null==y?void 0:y.right}:e.enableBottom?{desktop:null==k?void 0:k.bottom,tablet:null==y?void 0:y.bottom}:{desktop:null==k?void 0:k.left,tablet:null==y?void 0:y.left},O=t=>{s({top:e.enableTop?t:i.top,right:e.enableRight?t:i.right,bottom:e.enableBottom?t:i.bottom,left:e.enableLeft?t:i.left})},z=e=>{s({top:e,right:i.right,bottom:i.bottom,left:i.left})},L=e=>{s({top:i.top,right:e,bottom:i.bottom,left:i.left})},$=e=>{s({top:i.top,right:i.right,bottom:e,left:i.left})},D=e=>{s({top:i.top,right:i.right,bottom:i.bottom,left:e})},F=e=>{s({top:e,right:i.right,bottom:e,left:i.left})},U=e=>{s({top:i.top,right:e,bottom:i.bottom,left:e})};return(0,ue.createElement)(gn,l,u&&!e.vhMode&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ao,dt({},a,{value:d,onChange:O,allowReset:!1,initialPosition:"normal"!==r?"":"Mobile"===_&&B?f===C?P:"":"Mobile"!==_&&"Tablet"!==_||!A?a.initialPosition:f===w?H:"",placeholder:"normal"!==r?"":"Mobile"===_&&B?f===C?P:"":"Mobile"!==_&&"Tablet"!==_||!A?a.placeholder:f===w?H:""})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:d,default:e.defaultTop,onChange:O})),u&&e.vhMode&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)("div",{className:"ugb-four-range-control__range"},(0,ue.createElement)(mt.Tooltip,{text:(0,v.__)("Top and Bottom",m.i18n)},(0,ue.createElement)("span",{className:"ugb-four-range-control__icon"},(0,ue.createElement)(yr,null))),(0,ue.createElement)(ao,dt({},a,{value:i.top,onChange:F,allowReset:!1,initialPosition:"normal"!==r?"":"Mobile"===_&&E?f===C?y.top:"":"Mobile"!==_&&"Tablet"!==_||!M?a.initialPosition:f===w?k.top:"",placeholder:"normal"!==r?"":"Mobile"===_&&E?f===C?y.top:"":"Mobile"!==_&&"Tablet"!==_||!M?void 0===e.placeholderTop?a.placeholder:e.placeholderTop:f===w?k.top:""})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:i.top,default:e.defaultTop,onChange:F})),(0,ue.createElement)("div",{className:"ugb-four-range-control__range"},(0,ue.createElement)(mt.Tooltip,{text:(0,v.__)("Left and Right",m.i18n)},(0,ue.createElement)("span",{className:"ugb-four-range-control__icon"},(0,ue.createElement)(wr,null))),(0,ue.createElement)(ao,dt({},a,{value:i.left,onChange:U,allowReset:!1,initialPosition:"normal"!==r?"":"Mobile"===_&&T?f===C?y.left:"":"Mobile"!==_&&"Tablet"!==_||!R?a.initialPosition:f===w?k.left:"",placeholder:"normal"!==r?"":"Mobile"===_&&T?f===C?y.left:"":"Mobile"!==_&&"Tablet"!==_||!R?void 0===e.placeholderLeft?a.placeholder:e.placeholderLeft:f===w?k.left:""})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:i.left,default:e.defaultLeft,onChange:U}))),!u&&(0,ue.createElement)(ue.Fragment,null,e.enableTop&&(0,ue.createElement)("div",{className:"ugb-four-range-control__range"},(0,ue.createElement)(mt.Tooltip,{text:e.isCorner?(0,v.__)("Top Left",m.i18n):(0,v.__)("Top",m.i18n)},(0,ue.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,ue.createElement)(hr,null):(0,ue.createElement)(fr,null))),(0,ue.createElement)(ao,dt({},a,{value:i.top,onChange:z,allowReset:!1,initialPosition:"normal"!==r?"":"Mobile"===_&&E?f===C?y.top:"":"Mobile"!==_&&"Tablet"!==_||!M?a.initialPosition:f===w?k.top:"",placeholder:"normal"!==r?"":"Mobile"===_&&E?f===C?y.top:"":"Mobile"!==_&&"Tablet"!==_||!M?void 0===e.placeholderTop?a.placeholder:e.placeholderTop:f===w?k.top:""})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:i.top,default:e.defaultTop,onChange:z})),e.enableRight&&(0,ue.createElement)("div",{className:"ugb-four-range-control__range"},(0,ue.createElement)(mt.Tooltip,{text:e.isCorner?(0,v.__)("Top Right",m.i18n):(0,v.__)("Right",m.i18n)},(0,ue.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,ue.createElement)(pr,null):(0,ue.createElement)(br,null))),(0,ue.createElement)(ao,dt({},a,{value:i.right,onChange:L,allowReset:!1,initialPosition:"normal"!==r?"":"Mobile"===_&&S?f===C?y.right:"":"Mobile"!==_&&"Tablet"!==_||!I?a.initialPosition:f===w?k.right:"",placeholder:"normal"!==r?"":"Mobile"===_&&S?f===C?y.right:"":"Mobile"!==_&&"Tablet"!==_||!I?void 0===e.placeholderRight?a.placeholder:e.placeholderRight:f===w?k.right:""})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:i.right,default:e.defaultRight,onChange:L})),e.enableBottom&&(0,ue.createElement)("div",{className:"ugb-four-range-control__range"},(0,ue.createElement)(mt.Tooltip,{text:e.isCorner?(0,v.__)("Bottom Left",m.i18n):(0,v.__)("Bottom",m.i18n)},(0,ue.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,ue.createElement)(ur,null):(0,ue.createElement)(mr,null))),(0,ue.createElement)(ao,dt({},a,{value:i.bottom,onChange:$,allowReset:!1,initialPosition:"normal"!==r?"":"Mobile"===_&&x?f===C?y.bottom:"":"Mobile"!==_&&"Tablet"!==_||!N?a.initialPosition:f===w?k.bottom:"",placeholder:"normal"!==r?"":"Mobile"===_&&x?f===C?y.bottom:"":"Mobile"!==_&&"Tablet"!==_||!N?void 0===e.placeholderBottom?a.placeholder:e.placeholderBottom:f===w?k.bottom:""})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:i.bottom,default:e.defaultBottom,onChange:$})),e.enableLeft&&(0,ue.createElement)("div",{className:"ugb-four-range-control__range"},(0,ue.createElement)(mt.Tooltip,{text:e.isCorner?(0,v.__)("Bottom Right",m.i18n):(0,v.__)("Left",m.i18n)},(0,ue.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,ue.createElement)(dr,null):(0,ue.createElement)(vr,null))),(0,ue.createElement)(ao,dt({},a,{value:i.left,onChange:D,allowReset:!1,initialPosition:"normal"!==r?"":"Mobile"===_&&T?f===C?y.left:"":"Mobile"!==_&&"Tablet"!==_||!R?a.initialPosition:f===w?k.left:"",placeholder:"normal"!==r?"":"Mobile"===_&&T?f===C?y.left:"":"Mobile"!==_&&"Tablet"!==_||!R?void 0===e.placeholderLeft?a.placeholder:e.placeholderLeft:f===w?k.left:""})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:i.left,default:e.defaultLeft,onChange:D}))))}),d.isEqual);Cr.defaultProps={defaultLocked:!0,hasLock:!0,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,defaultTop:"",defaultRight:"",defaultBottom:"",defaultLeft:"",placeholder:"",placeholderTop:"",placeholderRight:"",placeholderBottom:"",placeholderLeft:"",initialPosition:"",vhMode:!1,allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,top:void 0,right:void 0,bottom:void 0,left:void 0,onChange:void 0,isCorner:!1};const _r=(0,ue.memo)(Cr),Er=e=>(0,ue.createElement)(mt.TextControl,dt({type:"number",className:"ugb-small-number-control"},e)),Sr=e=>{const t=ve(),n=ue.Children.toArray(e.children).map((n=>(0,ue.cloneElement)(n,{screens:e.screens,screen:t.toLowerCase()}))),o=t?(null==t?void 0:t.toLowerCase())===e.screen:"desktop"===e.screen.toLowerCase(),a=!e.screens.includes(t.toLowerCase())&&!o&&"Desktop"===t;return(0,ue.createElement)(ue.Fragment,null,(o||a)&&n)};Sr.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};const xr=Sr,Tr=[{value:"h1",title:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Heading",m.i18n),1),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M8.5 13H5.8V8.9H2.7V13H0V3h2.7v3.7h3.1V3h2.7v10zM16 13h-2.7V7.7 5.9c-.2.2-.4.4-.6.7l-1.1.9-1.4-1.7L13.6 3H16v10z"}))}),null)},{value:"h2",title:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Heading",m.i18n),2),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M7.7 12.7h-2v-4H2v4H0V3.4h2v3.7h3.7V3.4h2v9.3zM16 12.7H9.4v-1.4L11.8 9c.7-.7 1.1-1.2 1.4-1.5.2-.3.4-.5.5-.8.1-.2.1-.5.1-.7 0-.4-.1-.7-.3-.8-.2-.2-.5-.3-.8-.3-.4 0-.7.1-1 .3-.3.2-.7.4-1.1.7L9.4 4.6c.5-.4.8-.7 1.1-.8.3-.2.6-.3 1-.4.4-.1.8-.1 1.2-.1.6 0 1.1.1 1.6.3.5.2.8.5 1 .9s.4.8.4 1.3c0 .4-.1.8-.2 1.2-.2.4-.4.8-.7 1.2s-.9 1-1.7 1.7L11.9 11v.1H16v1.6z"}))}),null)},{value:"h3",title:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Heading",m.i18n),3),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M7.7 12.6H6.2V8.4H2v4.2H.5V3.3H2v3.8h4.2V3.3h1.5v9.3zM15.2 5.5c0 .6-.2 1.1-.5 1.5-.3.4-.8.7-1.4.8v.1c.7.1 1.3.3 1.6.7.4.4.6.9.6 1.5 0 .9-.3 1.6-.9 2.1-.6.5-1.5.7-2.6.7-1 0-1.9-.2-2.5-.5v-1.3c.4.2.8.3 1.2.5.4.1.8.2 1.2.2.7 0 1.2-.1 1.6-.4.4-.3.5-.7.5-1.2s-.2-.9-.6-1.1-1-.3-1.8-.3h-.8V7.3h.8c1.4 0 2.2-.5 2.2-1.5 0-.4-.1-.7-.4-.9-.3-.2-.6-.3-1.1-.3-.4 0-.7 0-1 .1-.3.1-.7.3-1.1.6l-.7-1c.8-.6 1.8-.9 2.9-.9.9 0 1.6.2 2.1.6.4.2.7.8.7 1.5z"}))}),null)},{value:"h4",title:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Heading",m.i18n),4),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M7.5 12.5H6v-4H1.9v4H.5v-9h1.4v3.7H6V3.5h1.4l.1 9zM15.5 10.5h-1.2v2h-1.4v-2h-4V9.4l4-5.9h1.4v5.8h1.2v1.2zm-2.6-1.2V7.1c0-.8 0-1.5.1-2-.1.3-.3.6-.5 1l-2.2 3.2h2.6z"}))}),null)},{value:"h5",title:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Heading",m.i18n),5),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M7.7 12.1H6.3V8.4H2.4v3.8H1V3.8h1.4v3.4h3.9V3.8h1.4v8.3zM12.2 6.9c.9 0 1.5.2 2 .7.5.4.8 1 .8 1.8 0 .9-.3 1.6-.9 2.1-.6.5-1.4.7-2.4.7-.9 0-1.7-.1-2.2-.4v-1.2c.3.2.7.3 1.1.4.4.1.8.1 1.1.1.6 0 1.1-.1 1.4-.4.3-.3.5-.7.5-1.2 0-1-.6-1.5-1.9-1.5H11c-.3 0-.5.1-.7.1l-.7-.3.4-4h4.4V5h-3.2L11 7.1c.1 0 .3 0 .5-.1.2 0 .4-.1.7-.1z"}))}),null)},{value:"h6",title:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Heading",m.i18n),6),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M7.6 12.1H6.3V8.4H2.6v3.7H1.2V3.8h1.3v3.4h3.8V3.8h1.3v8.3zM9.2 8.6c0-3.2 1.3-4.8 3.9-4.8.4 0 .8 0 1 .1V5c-.3-.1-.6-.1-1-.1-.9 0-1.5.2-2 .7-.4.5-.7 1.2-.7 2.3h.1c.2-.3.4-.5.7-.7.3-.2.7-.2 1.1-.2.7 0 1.3.2 1.7.7s.6 1.1.6 1.9c0 .9-.2 1.5-.7 2.1-.5.5-1.1.8-2 .8-.6 0-1.1-.1-1.5-.4-.4-.3-.8-.7-1-1.3 0-.8-.2-1.5-.2-2.2zm2.9 2.5c.4 0 .8-.2 1-.4.2-.3.4-.7.4-1.3 0-.5-.1-.9-.4-1.1-.2-.3-.6-.4-1-.4-.3 0-.6.1-.8.2-.2.1-.4.3-.6.5-.1.2-.2.4-.2.6 0 .5.2 1 .4 1.3.4.4.7.6 1.2.6z"}))}),null)},{value:"p",title:(0,v.__)("Paragraph",m.i18n),icon:(0,ue.createElement)((function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M4.5 3h3.1c2.2 0 3.9.8 3.9 3.1 0 2.2-1.6 3.2-3.8 3.2H6.3V13H4.5V3zm3.1 4.9c1.5 0 2.2-.6 2.2-1.8 0-1.3-.8-1.7-2.3-1.7H6.3v3.5h1.3z"}))}),null)}],Br=Tr.filter((e=>{let{value:t}=e;return"p"!==t})),Mr=(0,ue.memo)((e=>(0,ue.createElement)(Ao,dt({},e,{className:"ugb-heading-buttons-control",controls:e.hasP?Tr:Br,placeholder:Tr[1].value,default:Tr[1].value}))));Mr.defaultProps={label:(0,v.sprintf)((0,v._x)("%s HTML Tag","component",m.i18n),(0,v.__)("Title",m.i18n)),value:void 0,hasP:!0};const Ir=Mr,Nr=[{value:"left",title:(0,v.__)("Align Left",m.i18n),icon:"editor-alignleft"},{value:"center",title:(0,v.__)("Align Center",m.i18n),icon:"editor-aligncenter"},{value:"right",title:(0,v.__)("Align Right",m.i18n),icon:"editor-alignright"},{value:"justify",title:(0,v.__)("Justified",m.i18n),icon:"editor-justify"}],Rr=Nr.filter((e=>"justify"!==e.value)),Ar=e=>{const{justified:t,className:n,controls:o,...a}=e;let l=o;return l||(l=t?Nr:Rr),(0,ue.createElement)(Ao,dt({},a,{controls:l,className:gt()([n,"ugb-align-buttons-control"])}))};Ar.defaultProps={className:"",label:(0,v.__)("Align",m.i18n),justified:!1,controls:null};const Hr=Ar,Pr=wp.codeEditor,Or=e=>{const[t,n]=(0,ue.useState)(e.value),[o,a]=(0,ue.useState)(null),l=(0,ue.useRef)(),r=lt(l),i=(0,ue.useMemo)((()=>(0,d.uniqueId)("ugb-code-textarea-")),[]),s=(0,ue.useRef)((0,d.debounce)((t=>{e.onChange(t)}),500,{leading:!0})),c=(0,ue.useCallback)((e=>{const t=e.getValue?e.getValue():e;n(t),s.current(t)}),[]);return(0,ue.useEffect)((()=>{if(Pr.initialize&&r){const t=(0,Pr.initialize)(i,N()(Pr.defaultSettings,e.editorSettings));a(t),t.codemirror.on("change",c)}return()=>{var e;null==s||null===(e=s.current)||void 0===e||e.cancel(),null==o||o.codemirror.off("change",c)}}),[r]),(0,ue.createElement)("textarea",{ref:l,className:"ugb-code-textarea",id:i,value:t,onChange:c})};Or.defaultProps={value:"",onChange:()=>{},editorSettings:{}};const zr=Or,Lr=e=>(0,ue.createElement)(mt.BaseControl,{help:e.help,className:gt()("stk-code-textarea-control",e.className)},(0,ue.createElement)(rr,{label:e.label,screens:e.screens}),(0,ue.createElement)(zr,{value:e.value,onChange:e.onChange}));Lr.defaultProps={help:"",className:"",value:"",label:"",screens:[],onChange:()=>{}};const $r=Lr,Dr=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M177.8 21.9c-.5-1.8-2.3-3.1-4.2-2.9H70.5L30.1 61.4c-2.8 2.8-.9 6.6 3 6.6H120l56.3-41.9c1.3-1 1.9-2.7 1.5-4.2zM168.5 116.2l-39.6-39.1.1-.1H32.2c-1.9 0-3.4 1.5-3.4 3.4 0 .9.4 1.8 1 2.4l39.5 39.1-.1.1h97.1c1.9-.1 3.3-1.6 3.3-3.5-.1-.9-.4-1.7-1.1-2.3zM168.5 132c-.7-.7-1.6-1-2.6-1H78.4l-56.3 42c-1.8 1.3-2.2 3.8-.9 5.5.8 1.1 2.1 1.7 3.5 1.6h103.1l40.7-42.8c1.5-1.5 1.4-3.8 0-5.3z"}))},Fr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M17 9.4H3c-.4 0-.8-.3-.8-.8s.4-.7.8-.7h14c.4 0 .8.3.8.8s-.4.7-.8.7zm.8 1.9c0-.4-.3-.8-.8-.8H3c-.4 0-.8.3-.8.8s.3.8.8.8h14c.4 0 .8-.4.8-.8zm.4-9.8H1.8c-.2 0-.3.1-.3.3v2.3c0 .2.1.3.3.3h16.3c.2 0 .3-.1.3-.3V1.8c.1-.2 0-.3-.2-.3m0-1.5c1 0 1.8.8 1.8 1.8v2.3c0 1-.8 1.8-1.8 1.8H1.8C.8 6 0 5.2 0 4.2V1.8C0 .8.8 0 1.8 0h16.4zm-5 3c0-.3-.3-.6-.6-.6H3c-.3 0-.6.3-.6.6s.3.6.6.6h9.6c.3 0 .6-.3.6-.6zm4.4 0c0-.3-.3-.6-.6-.6h-1c-.3 0-.6.3-.6.6s.3.6.6.6h1c.4 0 .6-.3.6-.6zm.6 12.5H1.8c-.2 0-.3.1-.3.3v2.3c0 .2.1.3.3.3h16.3c.2 0 .3-.1.3-.3v-2.3c.1-.2 0-.3-.2-.3m0-1.5c1 0 1.8.8 1.8 1.8v2.3c0 1-.8 1.8-1.8 1.8H1.8c-1 0-1.8-.8-1.8-1.8v-2.3c0-1 .8-1.8 1.8-1.8h16.4zm-5 3c0-.3-.3-.6-.6-.6H3c-.3 0-.6.3-.6.6s.3.6.6.6h9.6c.3 0 .6-.3.6-.6zm4.4 0c0-.3-.3-.6-.6-.6h-1c-.3 0-.6.3-.6.6s.3.6.6.6h1c.4 0 .6-.3.6-.6z"}))},Ur=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M0 2.7C0 1.6.3 0 2.4 0c.3 0 .6.3.6.6s-.3.6-.6.6c-.6-.1-1.1.3-1.1.8H2c.6 0 1 .5 1 1v.9c0 .6-.5 1-1 1H1c-.6 0-1-.4-1-1V2.7zm4.4 0c0-1.1.3-2.7 2.4-2.7.3 0 .6.3.6.6s-.3.6-.6.6c-.7-.1-1.2.3-1.2.8h.7c.6 0 1 .5 1 1v.9c0 .6-.5 1-1 1h-1c-.6 0-1-.4-1-1V2.7zm11.2 14.6c0 1.1-.3 2.7-2.4 2.7-.3 0-.6-.3-.6-.6s.3-.6.6-.6c.6 0 1.1-.4 1.1-.9h-.7c-.6 0-1-.5-1-1v-1c0-.6.5-1 1-1h1c.6 0 1 .4 1 1v1.4zm4.4 0c0 1.1-.3 2.7-2.4 2.7-.3 0-.6-.3-.6-.6s.3-.6.6-.6c.6 0 1.1-.4 1.1-.9H18c-.6 0-1-.5-1-1v-1c0-.6.5-1 1-1h1c.6 0 1 .4 1 1v1.4zm0-10c0-.4-.3-.8-.8-.8H.8c-.4.1-.8.4-.8.8s.3.8.8.8h18.5c.4 0 .7-.3.7-.8zm0 2.7c0-.4-.3-.8-.8-.8H.8c-.4 0-.8.4-.8.8s.3.8.8.8h18.5c.4-.1.7-.4.7-.8zm0 2.6c0-.4-.3-.8-.8-.8H.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h18.5c.4 0 .7-.4.7-.8z"}))},Wr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M4.4 1.5v2.9H1.5V1.5h2.9M5 0H.9C.4 0 0 .4 0 .9V5c0 .5.4.9.9.9H5c.5 0 .9-.4.9-.9V.9C5.9.4 5.5 0 5 0zm3.3 4.8h11c.4 0 .7-.4.7-.8s-.3-.8-.8-.8h-11c-.3.1-.7.4-.7.8s.4.8.8.8m0-2.2h7.5c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8H8.3c-.4 0-.8.3-.8.8 0 .4.4.8.8.8m-3.9 6v2.9H1.5V8.6h2.9M5 7.1H.9c-.5 0-.9.4-.9.9v4c0 .5.4.9.9.9H5c.5 0 .9-.4.9-.9V8c0-.5-.4-.9-.9-.9zm3.3 4.8h11c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8h-11c-.4 0-.8.3-.8.8 0 .4.4.8.8.8m0-2.3h7.5c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8H8.3c-.4 0-.8.3-.8.8s.4.8.8.8m-3.9 6v2.9H1.5v-2.9h2.9m.6-1.5H.9c-.5 0-.9.4-.9.9v4.1c0 .5.4.9.9.9H5c.5 0 .9-.4.9-.9V15c0-.5-.4-.9-.9-.9zm3.3 4.8h11c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8h-11c-.4 0-.8.3-.8.8s.4.8.8.8m0-2.2h7.5c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H8.3c-.4 0-.8.3-.8.8s.4.8.8.8"}))},Vr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M13.5 0h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1h11c.6 0 1-.5 1-1V1c0-.5-.5-1-1-1zm0 5.5c0 .3-.2.5-.5.5H3c-.3 0-.5-.2-.5-.5v-4c0-.2.2-.5.5-.5h10c.3 0 .5.2.5.5v4zM13.5 9h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1h11c.6 0 1-.5 1-1v-5c0-.5-.5-1-1-1zm0 5.5c0 .3-.2.5-.5.5H3c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4z"}),(0,ue.createElement)("path",{d:"M5.5 3h5v1h-5zM5.5 12h5v1h-5z"}))},Gr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M13.5 0h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1H6v3c-.1-.2-.2-.3-.3-.4-.2-.4-.5-.7-1-.8-.3-.2-.7-.1-1.1.1-.8.4-1.1 1.4-.7 2.1l1 1.8c.1.1.1.2.1.2.7 1.2 1.7 3 4.8 3 3 0 4.4-2.7 4.4-5.2V8.6c0-.3-.1-.5-.1-.7l-.6-.5s-.7-.1-.7-.2l-.6.2-.3-.4h2.6c.6 0 1-.5 1-1V1c0-.5-.5-1-1-1zm-2.1 9.7V8.5c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v2.1c0 1.5-1 4.1-3.5 4.1-2.4 0-3.2-1.3-3.8-2.4-.1-.1-.1-.1-.1-.2l-1-1.8c-.1-.1-.1-.2 0-.4s.1-.3.2-.3c.1-.1.2-.1.4 0 .1.1.2.1.3.2.1.1.2.5.4.7.3.4.7.6 1.2.4.4-.1.7-.6.7-1.1v-5c0-.3.2-.5.5-.5s.5.2.5.5v4.2c0 .3.2.6.6.6s.6-.2.6-.6V7.7c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v1.7c0 .3.2.6.6.6s.6-.2.6-.6zm2.1-4.2c0 .3-.2.5-.5.5H9.2v-.8c0-.5-.2-.9-.4-1.2h1.7V3h-5v1h.9c-.3.3-.4.7-.4 1.1V6H3c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4z"}))},jr=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M8.5 9.8c-.3 0-.6.3-.6.6s.3.6.6.6.6-.3.6-.6-.2-.6-.6-.6zM10.5 9.8c-.3 0-.6.3-.6.6s.3.6.6.6.6-.3.6-.6-.3-.6-.6-.6zM1.8 9.7c-.1 0-.2 0-.3-.1L.2 8.3c-.1-.1-.1-.4 0-.5l1.3-1.3c.1-.1.4-.1.5 0s.1.4 0 .5L1 8l1.1 1.1c.1.1.1.4 0 .5s-.2.1-.3.1z"}),(0,ue.createElement)("path",{d:"M11.9 3.4v9.2H4.1V3.4zm.6-1.2h-9c-.3 0-.5.2-.5.5v10.5c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V2.7c.1-.3-.2-.5-.5-.5z"}),(0,ue.createElement)("path",{d:"M10.5 6.2h-5c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h4.9c.3 0 .6.3.6.6s-.2.6-.5.6zM10.5 8.2h-5c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h4.9c.3 0 .6.3.6.6s-.2.6-.5.6zM6.6 9.8H5.5c-.3 0-.6.3-.6.6s.3.6.6.6h1.1c.3 0 .6-.3.6-.6s-.3-.6-.6-.6zM13.9 10.1c-.1 0-.3 0-.4-.1-.2-.2-.2-.5 0-.7L14.8 8l-1.2-1.2c-.2-.2-.2-.5 0-.7s.5-.2.7 0l1.6 1.6c.2.2.2.5 0 .7L14.2 10c-.1.1-.2.1-.3.1zM2.2 10.1c-.1 0-.3 0-.4-.1L.2 8.4c-.2-.2-.2-.6 0-.8L1.8 6c.2-.2.5-.2.7 0s.2.5 0 .7L1.3 8l1.3 1.3c.2.2.2.5 0 .7-.2.1-.3.1-.4.1z"}))},qr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zm.3 18.2c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v16.4zm-1.6-5c0 .4-.3.8-.8.8H3.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h12.3c.3 0 .7.4.7.8zm0 2.6c0 .4-.3.8-.8.8H3.9c-.4 0-.8-.3-.8-.8s.4-.8.8-.8h12.3c.3 0 .7.4.7.8zM5 10h10c.2 0 .4-.1.5-.2s.2-.3.2-.5v-5c0-.2-.1-.4-.2-.5s-.3-.3-.5-.3H5c-.2 0-.4.1-.5.2s-.2.3-.2.5v5c0 .2.1.4.2.5s.3.3.5.3zm.8-5h8.5v3.5H5.8V5z"}))},Kr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M18.3 0H1.8C.8 0 0 .8 0 1.8v16.4c0 1 .8 1.8 1.8 1.8h16.4c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM6.1 18.6H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h4.3v17.1zm6.1 0H7.7V1.5h4.5v17.1zm6.1 0h-4.5V1.5h4.4c.2 0 .3.1.3.3l.1 16.5c0 .2-.1.3-.3.3z"}))},Jr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M18.3 0H1.8C.8 0 0 .8 0 1.8v16.4c0 1 .8 1.8 1.8 1.8h16.4c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM6.1 18.6H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h4.3v17.1zm12.2 0h-4.5V1.5h4.4c.2 0 .3.1.3.3l.1 16.5c0 .2-.1.3-.3.3z"}))},Yr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.5c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.5 10.6h1.8l-1.8 1.8v-1.8zm3.1-1.2H4.5V7.7h4.8L7.6 9.4zm2.9-2.9h-6V5H12l-1.5 1.5zM3.3 15H1.5V5h1.7v10zm1.2-.8L13.7 5h1.8v.8L6.3 15H4.5v-.8zm11-4.8h-1.8l1.8-1.8v1.8zm-3.1 1.2h3.1v1.7h-4.8l1.7-1.7zm-2.9 2.9h6V15H8l1.5-1.5zM16.8 5h1.7v10h-1.7V5zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8zm17 16.4c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3v-1.3c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3zm-14.9-.7c0 .3-.2.5-.5.5s-.5-.2-.5-.5.3-.5.5-.5.5.2.5.5zm13.8 0c0 .3-.2.5-.5.5s-.5-.2-.5-.5.2-.5.5-.5.5.2.5.5zM2.6 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm13.8 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}))},Xr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M10.5 0c-.3 0-.5.2-.5.5v1.3c0 .2.2.4.4.5 4.3.2 7.6 3.9 7.3 8.4-.3 3.8-3.4 6.9-7.1 7.1-4.4.3-8.1-3-8.4-7.3 0-.3-.2-.5-.4-.5H.5c-.3 0-.5.2-.5.5.3 5.4 4.9 9.8 10.5 9.5 5.1-.2 9.3-4.4 9.5-9.5C20.2 4.9 15.9.3 10.5 0zM3.7 4.7c.2.2.5.2.7 0l.4-.4c.2-.2.2-.5 0-.7l-1-.8c-.2-.2-.5-.2-.7 0l-.3.3c-.2.2-.2.5 0 .7l.9.9z"}),(0,ue.createElement)("path",{d:"M6.2 2.6c.1.3.4.4.7.3l.5-.2c.3-.1.4-.4.3-.6L7.1.9C7 .7 6.7.5 6.5.6L6 .8c-.2.1-.3.4-.2.7l.4 1.1zM.9 7l1.2.5c.2.1.5 0 .6-.3l.2-.5c.1-.2 0-.5-.3-.6l-1.1-.4c-.2-.1-.5 0-.6.2l-.2.5c-.1.2 0 .5.2.6zM4.8 9.3c-.3 0-.5.2-.5.5v.4c0 .3.2.5.5.5H8c.3.8 1.1 1.4 2 1.4 1.1 0 2.1-.9 2.1-2.1 0-1.1-.9-2.1-2.1-2.1-.9 0-1.7.6-2 1.4H4.8zm5.2-.1c.4 0 .7.3.7.7 0 .4-.3.7-.7.7s-.8-.2-.8-.6c0-.4.4-.8.8-.8z"}))},Qr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.5 2.9h-17C.7 2.9 0 3.6 0 4.4v11.1c0 .9.7 1.5 1.5 1.5h16.9c.9 0 1.5-.7 1.5-1.5V4.4c.1-.8-.6-1.5-1.4-1.5zm0 12.7h-7.1c.2-.3.3-.7.4-1.2 0-.3-.1-.6-.2-.9-.3-.5-.8-.9-1.4-1.1.3-.3.7-.8 1-1.2.2-.2.3-.4.4-.6.2-.5.1-.8-.3-1.1-.1-.1-.2-.1-.4-.1h-3c-.1 0-.3.1-.4.1-.2.3-.3.5-.3.7 0 .3.3.6.6.6h2c-.5.6-1.2 1.3-1.4 1.5-.3.3-.4.7-.1 1l.2.2c.1.1.3.1.4.1 1 .1 1.4.3 1.5 1-.1.8-.7.9-1.2 1-.8 0-1-.5-1.1-.8-.1-.3-.4-.5-.7-.5-.3.1-.5.4-.5.7 0 .1.1.4.3.7H1.5V4.4h8.6c-.3.4-.7.8-1 1.1H9c-.6.6-1.2 1.2-1.7 1.6-.2.1-.3.3-.4.4V8c.1.2.2.4.4.5.2.1.4.2.6.2h3.2c.3 0 .6-.3.6-.6s-.3-.6-.6-.6H8.9c.4-.3.7-.7 1.1-1 .5-.5 1.1-1.1 1.4-1.6.1-.1.1-.3.2-.4H16c.1.1.1.3.2.5-.1.8-.7.9-1.2 1-.8 0-1-.5-1.1-.8-.1-.3-.4-.5-.7-.5-.3.1-.5.4-.5.7.1.2.5 1.7 2.3 1.7 1.5 0 2.4-.9 2.5-2.2v-.5h1.1v11.2zM5.9 13c0 .3-.3.6-.6.6H3.6c-.4 0-.6-.3-.6-.6s.3-.6.6-.6h.2V8.2l-.3.1c-.1.1-.3.1-.5.1s-.3-.1-.4-.3v-.5c0-.2.1-.3.3-.4l1.2-.7c.3-.1.7 0 .9.3v5.6h.2c.4-.1.7.2.7.6zm11.2-1h-.3V8.4c0-.3-.3-.6-.6-.6-.2 0-.4.1-.5.3l-3.3 4.2c-.1.1-.2.3-.1.5 0 .2.1.3.2.4.1.1.2.1.4.1h2.7v1.1c0 .3.3.6.6.6s.6-.3.6-.6v-1.1h.3c.3 0 .6-.3.6-.6.1-.4-.2-.7-.6-.7zm-1.5 0h-1.4l1.4-1.8V12z"}))},Zr=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M16.1 8.5c0-1.4-1-2.5-2.2-2.9V1.5c0-.3-.1-.5-.3-.6-.2-.1-.5-.2-.7-.1L4.5 4.6H.8c-.5 0-.8.3-.8.8v6.3c0 .4.3.8.8.8h1.1v5.7c0 .4.3.8.8.8h2.1c.4 0 .8-.3.8-.8V13l7.4 3.4c.1 0 .2.1.3.1.1 0 .3 0 .4-.1.2-.1.3-.4.3-.6v-4.2c1.2-.5 2.1-1.7 2.1-3.1zM1.5 6.1h2.4v4.8H1.5V6.1zm1.8 11.3v-4.9h.6v4.9h-.6zm9.1-3l-6.9-3.2V5.8l6.9-3.2v11.8zm1.5-4.3V7c.6.3 1 .9 1 1.5 0 .7-.4 1.3-1 1.6zM20 8.5c0 .3-.3.6-.6.6h-1.5c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h1.5c.3 0 .6.3.6.6zm-2.2 4.4c.2.2.2.6 0 .9-.1.1-.3.2-.4.2-.2 0-.3-.1-.4-.2l-1.1-1.1c-.2-.2-.2-.6 0-.9.2-.2.6-.2.9 0l1 1.1zm-2-7.7c-.2-.2-.2-.6 0-.9l1.1-1.1c.2-.2.6-.2.9 0 .2.2.2.6 0 .9l-1.1 1.1c-.1.1-.3.2-.4.2-.2 0-.4 0-.5-.2z"}))},ei=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M.8 10.8c-.5 0-.8-.4-.8-.8s.3-.8.8-.8h18.5c.4 0 .8.3.8.8s-.3.8-.8.8H.8"}))},ti=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M2.5 9c.6 0 1 .5 1 1 0 .6-.5 1-1 1s-1-.5-1-1c0-.6.5-1 1-1m0-1.5C1.1 7.5 0 8.6 0 10s1.1 2.5 2.5 2.5S5 11.4 5 10c.1-1.4-1.1-2.5-2.5-2.5zM10 9c.6 0 1 .5 1 1 0 .6-.5 1-1 1-.6 0-1-.5-1-1 0-.6.4-1 1-1m0-1.5c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zM17.5 9c.6 0 1 .5 1 1 0 .6-.5 1-1 1-.6 0-1-.5-1-1-.1-.6.4-1 1-1m0-1.5C16.1 7.5 15 8.6 15 10s1.1 2.5 2.5 2.5S20 11.4 20 10s-1.1-2.5-2.5-2.5z"}))},ni=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.6 0H12c-.8 0-1.4.6-1.4 1.4v8.3c0 .8.6 1.4 1.4 1.4h6.6c.8 0 1.4-.6 1.4-1.4V1.4c0-.8-.6-1.4-1.4-1.4zm-.1 1.5V7c-.9-.7-2-1-3.2-1-1.2 0-2.4.4-3.2 1V1.5h6.4zm0 8.2h-6.4c0-.2.1-.5.2-.7.5-.9 1.7-1.5 3-1.5s2.4.6 2.9 1.4c.2.2.3.5.3.8zm-5.3-6.1c0-.5.4-1 1-1 .5 0 1 .4 1 1 0 .5-.4 1-1 1-.6-.1-1-.5-1-1zm5.8 13c0 .4-.3.8-.8.8h-6c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h6c.5.1.8.4.8.8zm0 2.6c0 .4-.3.8-.8.8h-6c-.4 0-.8-.3-.8-.8 0-.4.3-.8.8-.8h6c.5.1.8.4.8.8zm0-5.2c0 .4-.3.8-.8.8h-6c-.4 0-.8-.3-.8-.8 0-.4.3-.8.8-.8h6c.5.1.8.4.8.8zM8 0H1.4C.6 0 0 .6 0 1.4v8.3c0 .8.6 1.4 1.4 1.4H8c.8 0 1.4-.6 1.4-1.4V1.4C9.4.6 8.8 0 8 0zm-.1 1.5V7c-.9-.7-2-1-3.2-1-1.2 0-2.4.4-3.2 1V1.5h6.4zm0 8.2H1.5c0-.2.1-.5.2-.7.5-.9 1.7-1.5 3-1.5 1.3-.1 2.5.5 3 1.4.1.2.2.5.2.8zM2.6 3.6c0-.5.4-1 1-1 .5 0 1 .4 1 1 0 .5-.4 1-1 1-.6-.1-1-.5-1-1zm5.8 13c0 .4-.3.8-.8.8h-6c-.3 0-.6-.4-.6-.8s.3-.8.8-.8h6c.3.1.6.4.6.8zm0 2.6c0 .4-.3.8-.8.8h-6c-.3 0-.6-.3-.6-.8 0-.4.3-.8.8-.8h6c.3.1.6.4.6.8zm0-5.2c0 .4-.3.8-.8.8h-6c-.3 0-.6-.4-.6-.8s.3-.8.8-.8h6c.3.1.6.4.6.8z"}))},oi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h6.1v9.6c-.8-.8-2-1.3-3.2-1.3-1.2 0-2.4.5-3.2 1.3V1.8c0-.2.1-.3.3-.3zm-.3 16.7v-3.6c0-.9.4-1.7.9-2.3.6-.6 1.4-.9 2.3-.9.9 0 1.7.4 2.3.9.6.6.9 1.4.9 2.3v4H1.8c-.2-.1-.3-.2-.3-.4zm17 0c0 .2-.1.3-.3.3H9.4v-17h8.7c.2 0 .3.1.3.3v16.4zM2.6 6.8c0-.6.5-1 1-1s1 .5 1 1-.5 1-1 1-1-.5-1-1zM17 8.7c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5 0 .8.4.8.8zm0 2.6c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5 0 .8.4.8.8zm0-5.2c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5 0 .8.4.8.8zm0 7.7c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5.1.8.4.8.8z"}))},ai=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h16.3c.1 0 .2.1.2.1s.1.1.1.2v1.7h-17V1.8c.1-.2.2-.3.4-.3zm16.4 17H1.8c-.2 0-.3-.1-.3-.3V4.5h17v13.6c0 .3-.1.4-.3.4zM16.3 5.8H3.7c-.2 0-.4 0-.5.2-.1.1-.2.3-.2.5v5c0 .2.1.4.2.5.1.1.3.2.5.2h12.5c.2 0 .4-.1.5-.2.1-.1.2-.3.2-.5v-5c0-.2-.1-.4-.2-.5 0-.2-.2-.2-.4-.2zM4.5 10.7V7.3h11v3.5h-11zM14 9c0 .4-.3.7-.7.7H6.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h6.5c.5-.1.8.3.8.7zM2.7 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm1.7 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm1.7 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}))},li=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M15.3 1.1c-.7 0-1.4.5-1.4 1.4v6.3H6.1V2.5c0-.7-.5-1.4-1.4-1.4-.7 0-1.4.5-1.4 1.4v14.9c0 .9.7 1.4 1.4 1.4s1.4-.5 1.4-1.4v-6.3h7.7v6.3c0 .9.7 1.4 1.4 1.4s1.4-.5 1.4-1.4V2.5c.1-.7-.4-1.4-1.3-1.4z"}))},ri=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M17.1 5.7l-2-1.2c-.1-.1-.3 0-.3.2v2.4c0 .2.2.3.3.2l2-1.2c.1-.1.1-.3 0-.4zM4.9 4.5l-2 1.2c-.2.1-.2.3-.1.4l2 1.2c.1.1.3 0 .3-.2V4.7c.1-.2-.1-.3-.2-.2z"}),(0,ue.createElement)("path",{d:"M18.1 0H1.9C1.1 0 .6.6.6 1.3v9.3c0 .8.6 1.4 1.3 1.4h6.4v2c-.1-.1-.1-.3-.2-.4-.2-.4-.5-.7-1-.8-.4-.1-.8-.1-1.2.1-.8.4-1.1 1.4-.7 2.1l1 1.8c.1.1.1.1.1.2.7 1.2 1.7 3 4.8 3 3 0 4.4-2.6 4.4-5.1v-2.2c0-.3-.1-.5-.1-.7h2.8c.7 0 1.3-.6 1.3-1.3V1.3C19.4.6 18.9 0 18.1 0zm-3.5 14.9c0 1.5-1 4-3.5 4-2.4 0-3.1-1.2-3.8-2.4-.1-.1-.1-.1-.1-.2l-1-1.8c-.1-.1-.1-.2 0-.4.1-.1.1-.2.2-.3.1-.1.2-.1.4 0 .1.2.2.3.3.3.1.1.2.5.4.7.3.4.7.6 1.2.4.4-.1.7-.6.7-1.1v-5c0-.3.2-.5.5-.5s.5.2.5.5v4.2c0 .3.2.6.6.6.4 0 .6-.2.6-.6v-1.5c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v1.7c0 .3.2.6.6.6.4 0 .6-.2.6-.6v-1.2c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v2zm3.7-4.2c0 .1-.1.2-.2.2h-5c-.3-.3-.7-.4-1.1-.4-.1 0-.3 0-.4.1V9.2c0-.9-.7-1.6-1.6-1.6-1-.1-1.7.7-1.7 1.6V11H1.9c-.1 0-.2-.1-.2-.2V1.3c0-.1.1-.2.2-.2H18c.1 0 .2.1.2.2v9.4z"}))},ii=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19.6 8.9c.7-.7.4-1.9-.6-2.1l-4.9-.7c-.3-.1-.6-.3-.8-.6l-2.2-4.4C10.7.2 9.4.2 9 1.1L6.7 5.5c-.1.4-.4.6-.8.6L1 6.8C0 7-.3 8.2.4 8.9l3.5 3.5c.3.2.4.6.3.9l-.8 4.9c-.2 1 .9 1.7 1.7 1.3l4.4-2.3c.3-.2.7-.2 1 0l4.4 2.3c.9.5 1.9-.3 1.7-1.3l-.8-4.9c-.1-.3.1-.7.3-.9zm-5.4 3.8l.8 4.7c0 .2-.2.4-.4.3l-4.2-2.2c-.3-.1-.6-.1-.9 0l-4.2 2.2c-.1.1-.3-.1-.3-.3l.8-4.6c.1-.3 0-.6-.3-.8L2.1 8.7c-.1-.2 0-.5.2-.5L7 7.5c.3 0 .6-.2.7-.5l2.1-4.2c.1-.2.4-.2.5 0l2 4.2c.1.3.4.5.7.5l4.6.7c.2 0 .3.3.2.5L14.4 12c-.2.2-.2.4-.2.7z"}))},si=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M13.1 7.9l-.6-.5s-.7-.1-.7-.2l-.6.2-.4-.6c-.3-.3-.7-.4-1.1-.4h-.3c1-.6 1.7-1.7 1.7-3C11.1 1.5 9.5 0 7.6 0S4.1 1.5 4.1 3.5c0 1.3.7 2.5 1.9 3V10c-.1-.2-.2-.3-.3-.4-.2-.4-.5-.7-1-.8-.3-.2-.7-.1-1.1.1-.8.4-1.1 1.4-.7 2.1l1 1.8c.1.1.1.2.1.2.7 1.2 1.7 3 4.8 3 3 0 4.4-2.7 4.4-5.2V8.6c.1-.3 0-.5-.1-.7zm-8-4.4C5.1 2.1 6.2 1 7.6 1s2.5 1.1 2.5 2.5c0 .7-.3 1.4-.9 1.9v-.2c0-.7-.5-1.4-1.2-1.6-1-.4-2 .4-2 1.5v.3c-.6-.5-.9-1.2-.9-1.9zm7.3 7.4c0 1.5-1 4.1-3.5 4.1-2.4 0-3.2-1.3-3.8-2.4-.1-.1-.1-.1-.1-.2l-1-1.8c-.1-.1-.1-.2 0-.4 0-.2 0-.3.1-.3.1-.1.2-.1.4 0 .1.1.2.1.3.2.1.1.2.5.4.7.3.4.7.6 1.2.4.4-.1.7-.6.7-1.1v-5c0-.3.2-.5.5-.5s.5.2.5.5v4.2c0 .3.2.6.6.6s.6-.2.6-.6V7.7c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v1.7c0 .3.2.6.6.6s.6-.2.6-.6V8.5c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v2.1z"}))},ci=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M8 1.1C4.2 1.1 1.1 4.2 1.1 8s3.1 6.9 6.9 6.9 6.9-3.1 6.9-6.9S11.8 1.1 8 1.1zm0 12.8c-3.3 0-5.9-2.5-5.9-5.9S4.7 2.1 8 2.1s5.9 2.5 5.9 5.9-2.6 5.9-5.9 5.9z"}),(0,ue.createElement)("path",{d:"M11 7.5c.2-.2.1-.6-.2-.7l-1.5-.2c-.1 0-.2-.1-.3-.1l-.7-1.4c-.1-.3-.5-.3-.7 0L7 6.5c0 .1-.1.2-.2.2l-1.6.2c-.3 0-.4.4-.2.6l1.1 1.1c.1.1.1.2.1.3L6 10.4c-.1.3.3.5.5.4l1.4-.7c.1-.1.2-.1.3 0l1.4.7c.3.2.6-.1.5-.4l-.3-1.5c0-.1 0-.2.1-.3L11 7.5z"}))},di=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M7.1 6.6c.3-.3.1-.7-.2-.8l-1.8-.2c-.1-.1-.2-.1-.3-.2L4 3.8c-.1-.3-.6-.3-.8 0l-.8 1.6c0 .1-.1.2-.3.2l-1.7.2c-.4.1-.5.5-.3.8l1.3 1.3c.1.1.1.2.1.3L1.2 10c-.1.4.3.6.6.5l1.6-.8c.1-.1.3-.1.4 0l1.6.8c.3.1.6-.2.6-.6l-.3-1.7c0-.1 0-.3.1-.3l1.3-1.3zM4.6 7.7l.2 1.2c0 .1-.1.1-.1.1l-1-.6h-.2l-1.1.5s-.1 0-.1-.1l.2-1.2c0-.1 0-.2-.1-.2l-.8-.7c0-.1 0-.1.1-.1l1.2-.2.1-.1.5-1.1c0-.1.1-.1.1 0l.5 1.1c0 .1.1.1.2.1l1.2.2c.1 0 .1.1.1.1l-.9.8c-.1.1-.1.1-.1.2zM15.4 6.9H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6zM15.4 9.6H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6zM15.4 12.4H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6z"}))},ui=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19.3 4.3H8.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h10.4c.4 0 .8.3.8.8s-.3.8-.7.8zM2.9 5.7l3.2-3.2c.3-.3.3-.8 0-1.1s-.8-.3-1.1 0L2.4 4.1 1.3 3C1 2.7.5 2.7.2 3c-.3.3-.3.8 0 1.1l1.6 1.6c.2.1.4.2.6.2.2 0 .4-.1.5-.2zM20 9.9c0-.4-.3-.8-.8-.8H8.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h10.4c.5 0 .8-.4.8-.8zM2.9 12l3.2-3.2c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.7 2.7-1-1C1 9.1.5 9.1.2 9.4c-.3.3-.3.8 0 1.1L1.8 12c.1.1.3.2.5.2.3.1.5 0 .6-.2zM20 16.3c0-.4-.3-.8-.8-.8H8.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h10.4c.5-.1.8-.4.8-.8zM2.9 18.4l3.2-3.2c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.7 2.7-1.1-1.1c-.3-.3-.8-.3-1.1 0-.3.3-.3.8 0 1.1l1.6 1.6c.1.1.3.2.5.2.4 0 .6 0 .7-.2z"}))},pi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M20 9.9c0-.4-.3-.8-.8-.8H8.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h10.4c.5 0 .8-.4.8-.8zM2.9 12l3.2-3.2c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.7 2.7-1-1C1 9.1.5 9.1.2 9.4c-.3.3-.3.8 0 1.1L1.8 12c.1.1.3.2.5.2.3.1.5 0 .6-.2z"}))},hi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M7.1 7.6c.3-.3.1-.7-.2-.8l-1.8-.2c-.1-.1-.2-.1-.3-.2L4 4.8c-.1-.3-.6-.3-.8 0l-.8 1.6c0 .1-.1.2-.3.2l-1.7.2c-.4.1-.5.5-.3.8l1.3 1.3c.1.1.1.2.1.3L1.2 11c-.1.4.3.6.6.5l1.6-.8c.1-.1.3-.1.4 0l1.6.8c.3.1.6-.2.6-.6l-.3-1.7c0-.1 0-.3.1-.3l1.3-1.3zM4.6 8.7l.2 1.2c0 .1-.1.1-.1.1l-1-.6h-.2l-1.1.5s-.1 0-.1-.1l.2-1.2c0-.1 0-.2-.1-.2l-.8-.7c0-.1 0-.1.1-.1l1.2-.2.1-.1.5-1.1c0-.1.1-.1.1 0l.5 1.1c0 .1.1.1.2.1l1.2.2c.1 0 .1.1.1.1l-.9.8c-.1.1-.1.1-.1.2zM15.4 8.6H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6z"}))},gi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h16.3c.2 0 .3.1.3.3V11l-3.3-4.4c-.2-.3-.6-.5-.9-.5-.4 0-.7.2-.9.5l-4.7 6.1-1.9-2.6c-.3-.3-.6-.4-1-.4s-.7.2-.9.5l-3.3 4.3V1.8c0-.2.1-.3.3-.3zm16.4 17H1.8c-.2 0-.3-.1-.3-.3v-1.3c.1 0 .1-.1.2-.2l4.1-5.4 2.1 2.8c.2.2.5.4.7.4.3 0 .6-.1.7-.4l4.9-6.4 4.1 5.4c0 .1.1.1.2.2v4.8c0 .3-.2.4-.3.4zM7.2 7.8c1.3 0 2.3-1 2.3-2.3s-1-2.3-2.3-2.3-2.3 1-2.3 2.3 1 2.3 2.3 2.3zm0-3.2c.4 0 .8.4.8.8 0 .5-.4.8-.8.8-.5 0-.8-.4-.8-.8-.1-.4.3-.8.8-.8z"}))},mi=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M12.7 12.3c0 .4-.3.8-.8.8H4.1c-.4 0-.8-.3-.8-.8s.3-.8.8-.8H12c.3 0 .7.4.7.8zM9.9 15.7c0 .4-.3.8-.8.8h-5c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h5.1c.3 0 .7.4.7.8z"}),(0,ue.createElement)("path",{d:"M18.3 0H1.8C.8 0 0 .8 0 1.8v16.4c0 1 .8 1.8 1.8 1.8h16.4c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zm.3 18.2c0 .3-.2.4-.3.4H1.8c-.2 0-.3-.1-.3-.3V17c.1 0 .1-.1.2-.2l.7-1v-2.5l-.9 1.2V1.8c0-.2.1-.3.3-.3h16.4c.2 0 .3.1.3.3V11l-3.3-4.4c-.2-.3-.6-.5-.9-.5-.4 0-.7.2-.9.5l-2.2 2.9H13l1.3-1.8 4.1 5.4c0 .1.1.1.2.2z"}),(0,ue.createElement)("path",{d:"M7.2 7.8c1.3 0 2.3-1 2.3-2.3s-1-2.3-2.3-2.3-2.3 1-2.3 2.3 1 2.3 2.3 2.3zm0-3.2c.4 0 .8.4.8.8 0 .5-.4.8-.8.8-.5 0-.8-.4-.8-.8-.1-.4.3-.8.8-.8z"}))},vi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M13.5 4.5h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1h11c.6 0 1-.5 1-1v-5c0-.5-.5-1-1-1zm0 5.5c0 .3-.2.5-.5.5H3c-.3 0-.5-.2-.5-.5V6c0-.2.2-.5.5-.5h10c.3 0 .5.2.5.5v4z"}),(0,ue.createElement)("path",{d:"M4.2 7.5h3.5v1H4.2zM10.8 7.5h1v1h-1zM8.8 7.5h1v1h-1z"}))},bi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M10 3.9c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 4.7c-1 0-1.8-.8-1.8-1.8S9 5 10 5s1.8.8 1.8 1.8S11 8.6 10 8.6z"}),(0,ue.createElement)("path",{d:"M10 0C6.1 0 3 3.1 3 7c0 6.8 7 13 7 13s7-6.2 7-13c0-3.9-3.1-7-7-7zm0 18.1S4.7 13.2 4.3 7.5v-.7-.6c.3-2.9 2.8-5.1 5.7-5.1 3.1 0 5.6 2.5 5.7 5.6V7.5c-.4 5.7-5.7 10.6-5.7 10.6z"}))},fi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M10 2.2l8.3 15.7H1.7L10 2.2m0-1.8c-.4 0-.8.2-1.1.6L.1 17.7c-.4.8.2 1.7 1.1 1.7h17.6c.9 0 1.5-.9 1.1-1.7L11.1 1c-.2-.4-.7-.6-1.1-.6zm-.7 7.2v4.6c0 .4.3.7.7.7s.7-.3.7-.7V7.6c0-.4-.3-.7-.7-.7s-.7.3-.7.7m.7 6.8c-.5 0-.9.4-.9.9s.4.9.9.9.9-.4.9-.9-.4-.9-.9-.9z"}))},ki=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.2 1.5c.2 0 .3.1.3.3v16.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h16.4m0-1.5H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.4 6.7l1-.6v8.3h-.7c-.4 0-.7.3-.7.8s.3.7.7.7h2.9c.4 0 .8-.3.8-.7s-.4-.8-.8-.8h-.7V4.8c0-.1 0-.3-.1-.4-.2-.3-.7-.4-1-.2L3.6 5.4c-.4.2-.5.7-.3 1 .3.4.7.5 1.1.3zm5.6.1h5.7c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8H10c-.4.1-.7.4-.7.8s.3.8.7.8m0 2.6h5.7c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H10c-.4 0-.8.3-.8.8s.4.8.8.8m0 2.7h5.7c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H10c-.4 0-.8.3-.8.8s.4.8.8.8m0 2.6h5.7c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H10c-.4 0-.8.3-.8.8s.4.8.8.8"}))},yi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M1.5 7h5v2h-5zM8.5 7h2v2h-2zM12.5 7h2v2h-2z"}))},wi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M19.8.2c-.3-.3-.7-.3-1 0l-1.1 1.1c-.2-.1-.4-.1-.6-.1l-5-.1H12c-.7 0-1.4.3-1.9.8L.7 11.3c-.9.9-.9 2.4 0 3.3l4.8 4.8c.5.4 1.1.6 1.7.6.6 0 1.2-.2 1.7-.7l9.4-9.4c.5-.5.8-1.3.8-2l-.1-5c0-.2 0-.4-.1-.6L20 1.2c.1-.2.1-.7-.2-1zm-4.6 5.9c0 .3-.1.6-.4.9-.2.2-.6.4-.9.4-.3 0-.6-.1-.9-.4-.2-.2-.4-.6-.4-.9 0-.3.1-.6.4-.9.2-.2.6-.4.9-.4h.2l-.5.5c-.3.3-.3.7 0 1 .3.3.7.3 1 0l.5-.5c.1.1.1.2.1.3zM17.6 8c0 .3-.1.7-.4.9l-9.4 9.4c-.2.2-.4.3-.6.3-.2 0-.5-.1-.6-.3l-4.8-4.8c-.2-.2-.3-.4-.3-.6 0-.2.1-.5.3-.6l9.4-9.4c.2-.2.6-.4.9-.4l4.4.1-1.1 1.1c-.4-.2-.9-.3-1.3-.3a2.732 2.732 0 00-2.7 2.7 2.732 2.732 0 002.7 2.7 2.732 2.732 0 002.7-2.7c0-.5-.1-.9-.3-1.3l1.1-1.1V8zm-6.1 1.4l-.5.5c.5.7.6 1.5.6 1.6.1.4-.2.8-.6.8-.4.1-.8-.2-.8-.6 0-.2-.2-.8-.5-1.1-.3-.3-.8-.5-1.1-.2-.2.2 0 .8.2 1.3 0 .1.1.2.1.2.3.6.9 1.8-.3 2.9-.3.3-.7.4-1.2.4-.4 0-.7-.1-1.1-.3-.1-.1-.2-.1-.3-.2l-.5.5c-.1.1-.2.1-.3.1-.1 0-.2 0-.3-.1-.2-.2-.2-.5 0-.7l.5-.5c-.4-.5-.8-1.3-.7-2.2 0-.4.4-.7.8-.7s.7.4.7.8c-.1.9.5 1.5.9 1.7.3.1.5.2.7.1.3-.2.3-.4 0-1.1 0-.1-.1-.2-.1-.3-.3-.6-.9-2 .1-3 .8-.8 1.9-.7 2.7-.1l.5-.5c.2-.2.5-.2.7 0 0 .2 0 .5-.2.7z"}))},Ci=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M8 1.1c-.4 0-.8.3-.8.8s.4.7.8.7c3 0 5.4 2.4 5.4 5.4S11 13.4 8 13.4c-2.2 0-4.1-1.4-5-3.3-.1-.2-.4-.4-.7-.4-.4 0-.8.3-.8.8 0 .1 0 .3.1.4C2.7 13.3 5.1 15 7.9 15c3.8 0 6.9-3.1 6.9-6.9s-3-7-6.8-7z"}))},_i=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M14.3 6.5c.2 0 .3.1.3.3v2.4c0 .2-.1.3-.3.3H5.1c-.2 0-.3-.1-.3-.3V6.8c0-.2.1-.3.3-.3h9.2m0-1.5H1.8C.8 5 0 5.8 0 6.8v2.4c0 1 .8 1.8 1.8 1.8h12.4c1 0 1.8-.8 1.8-1.8V6.8c.1-1-.7-1.8-1.7-1.8z"}))},Ei=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v7.1c-.8.7-2.2 2.1-4.1 2.1-3.1 0-4.8-3.6-8.1-3.6-1.9 0-3.7 1.3-4.6 2.1V1.8zm17 16.3c0 .3-.2.4-.3.4H1.8c-.2 0-.3-.1-.3-.3V12c.9-.9 2.7-2.7 4.5-2.7 2.7 0 4.3 3.4 8.3 3.4 1.9 0 3.4-1 4.1-1.6v7z"}))},Si=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,ue.createElement)("path",{d:"M9.4 8.9c-.4 0-.5.1-.9.3l-1.4-.9v-.5L8.5 7c.2.1.5.3.9.3.7 0 1.4-.5 1.4-1.4 0-.9-.7-1.4-1.4-1.4-.7.1-1.4.6-1.4 1.3v.3L6.6 7c-.1-.2-.5-.4-.8-.4-.7 0-1.2.7-1.2 1.4S5.1 9.4 6 9.4c.3 0 .5-.2.9-.3l1.1.8v.3c0 .7.7 1.2 1.4 1.2s1.4-.5 1.4-1.4c0-.5-.7-1.1-1.4-1.1z"}),(0,ue.createElement)("path",{d:"M8 1.1C4.2 1.1 1.1 4.2 1.1 8s3.1 6.9 6.9 6.9 6.9-3.1 6.9-6.9S11.8 1.1 8 1.1zm0 12.8c-3.3 0-5.9-2.5-5.9-5.9S4.7 2.1 8 2.1s5.9 2.5 5.9 5.9-2.6 5.9-5.9 5.9z"}))},xi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M1.6.8c0-.5.3-.8.7-.8h16c.4 0 .8.3.8.8s-.3.8-.8.8h-16c-.4-.1-.7-.4-.7-.8zm16.7 17.7h-16c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h16c.4 0 .8-.3.8-.8s-.4-.8-.8-.8zM13.2 6.7c.3.3.8.3 1.1 0 .3-.3.3-.8 0-1.1l-3.4-3.4c-.3-.3-.8-.3-1.1 0L6.4 5.6c-.3.3-.3.8 0 1.1.1.1.3.2.5.2s.4-.1.5-.2l2.1-2.1v11l-2.1-2.1c-.3-.3-.8-.3-1.1 0-.3.3-.3.8 0 1.1L9.7 18c.1.1.3.2.5.2s.4-.1.5-.2l3.4-3.4c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.1 2.1v-11l2.3 2.1z"}))},Ti=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M17.6 14.7H6.5c-.5 0-.9.4-.9 1 0 .5.3 1 .9 1h11.1c.6-.1.9-.5.9-1s-.3-1-.9-1zM6.4 5.2h11.4c.4 0 .8-.4.8-1s-.4-1-.9-1H6.4c-.5 0-.9.4-.9 1s.4 1 .9 1zM17.6 10.9H9.4c-.4 0-.9.4-.9 1 0 .5.3 1 .9 1h8.2c.5-.1.9-.5.9-1s-.3-1-.9-1zM17.6 7.1H9.4c-.4 0-.9.4-.9 1 0 .5.3 1 .9 1h8.2c.5 0 .9-.5.9-1s-.3-1-.9-1zM2.5 3.2c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}),(0,ue.createElement)("circle",{cx:5.5,cy:8.1,r:1}),(0,ue.createElement)("circle",{cx:5.5,cy:11.9,r:1}),(0,ue.createElement)("path",{d:"M2.5 14.8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}))},Bi=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M4.3 1.1V5.4H15V15H1.1V1.1zM4.6 0H.7C.3 0 0 .3 0 .7v14.6c0 .4.3.7.7.7h14.6c.4 0 .7-.3.7-.7V5c0-.4-.3-.7-.7-.7h-10V.7C5.3.3 5 0 4.6 0z"}),(0,ue.createElement)("path",{d:"M9.6 1.1v1.1H7.4V1.1zM10 0H7.1c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7H10c.4 0 .7-.3.7-.7V.7c0-.4-.3-.7-.7-.7zM14.9 1.1v1.1h-2.2V1.1zm.4-1.1h-2.9c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7h2.9c.4 0 .7-.3.7-.7V.7c0-.4-.3-.7-.7-.7z"}))},Mi=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M4.3 1.1V5.4H15V15H1.1V1.1zM4.6 0H.7C.3 0 0 .3 0 .7v14.6c0 .4.3.7.7.7h14.6c.4 0 .7-.3.7-.7V5c0-.4-.3-.7-.7-.7h-10V.7C5.3.3 5 0 4.6 0z"}))},Ii=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M4.3 5v4.3H15v2.3c0 .3.2.5.5.5s.5-.2.5-.5V8.9c0-.4-.3-.7-.7-.7h-10V4.6c0-.4-.3-.7-.7-.7H.7c-.4 0-.7.3-.7.7v6.9c0 .3.2.5.5.5s.5-.2.5-.5V5z"}),(0,ue.createElement)("path",{d:"M9.6 5v1.1H7.4V5zm.4-1.1H7.1c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7H10c.4 0 .7-.3.7-.7V4.6c0-.4-.3-.7-.7-.7zM14.9 5v1.1h-2.2V5zm.4-1.1h-2.9c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7h2.9c.4 0 .7-.3.7-.7V4.6c0-.4-.3-.7-.7-.7z"}))},Ni=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M8.6 12.1c.4-.5.6-1.2.6-1.9V8c0-1.9-1.5-3.4-3.4-3.4S2.4 6.1 2.4 8v2.1c0 .7.2 1.4.6 1.9-1.7.3-3 1.9-3 3.7V17c0 1.2.9 2.1 2.1 2.1h7.4c1.2 0 2.1-.9 2.1-2.1v-1.2c.1-1.9-1.3-3.4-3-3.7zm-2.8-6c1 0 1.8.7 1.9 1.7-.8.6-1.3.4-1.8-.1-.2-.2-.5-.5-.9-.5s-.8.3-1 .5c.1-.8.9-1.6 1.8-1.6zM4 8.9c.2-.1.5-.2.8-.5.1-.1.2-.1.2-.1s.1 0 .2.2c.6.5 1.1.7 1.6.7.3 0 .6-.1.9-.2v1.1c0 1-.8 1.9-1.9 1.9-1 0-1.9-.8-1.9-1.9V8.9zm2.8 4.6c-.2.9-.6 1.4-1 1.4-.3 0-.7-.5-1-1.4h2zm3.3 3.5c0 .3-.3.6-.6.6H2.1c-.3 0-.6-.3-.6-.6v-1.2c0-1.2 1-2.2 2.2-2.2h.1c.3 1.4 1.1 2.4 2 2.4s1.7-1 2-2.4h.1c1.2 0 2.2 1 2.2 2.2V17zM17 8.3c.4-.5.6-1.2.6-1.9V4.3c0-1.9-1.5-3.4-3.4-3.4s-3.4 1.5-3.4 3.4v2.1c0 .7.2 1.4.6 1.9-.4.1-.8.2-1.1.4v1.4c0 .3 0 .5-.1.8.4-.7 1.1-1.1 1.9-1.1h.1c.3 1.4 1.1 2.4 2 2.4.9 0 1.7-1 2-2.4h.1c1.2 0 2.2 1 2.2 2.2v1.2c0 .3-.3.6-.6.6h-5.4c.2.5.3 1 .4 1.5h5c1.2 0 2.1-.9 2.1-2.1V12c0-1.8-1.3-3.3-3-3.7zm-2.8-5.9c1 0 1.8.7 1.9 1.7-.8.6-1.3.4-1.8-.1-.7-.7-1.3-.6-1.9 0 0-.9.8-1.6 1.8-1.6zm0 8.8c-.3 0-.7-.5-1-1.4h1.9c-.2.8-.6 1.4-.9 1.4zM16 6.4c0 1-.8 1.9-1.9 1.9-1 0-1.9-.8-1.9-1.9V5.2c.3-.1.6-.2.8-.5.2-.2.3-.2.3-.2s.1 0 .2.2c.6.6 1.1.8 1.6.8.3 0 .6-.1.9-.2v1.1z"}))},Ri=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M4 20c-.1 0-.2 0-.3-.1-.3-.1-.5-.4-.5-.7v-2.9H1.9c-1 0-1.9-.8-1.9-1.9V1.9C0 .8.8 0 1.9 0h16.2c1 0 1.9.8 1.9 1.9v12.6c0 1-.8 1.9-1.9 1.9H7.9l-3.4 3.4c-.1.1-.3.2-.5.2zM1.9 1.5c-.2 0-.4.2-.4.4v12.6c0 .2.2.4.4.4H4c.4 0 .8.3.8.8v1.8l2.3-2.3c.1-.1.3-.2.5-.2h10.5c.2 0 .4-.2.4-.4V1.9c0-.2-.2-.4-.4-.4H1.9zM7.2 13c-.1 0-.3 0-.4-.1-.2-.1-.3-.4-.2-.6L7 9.5l-2-2c-.2-.2-.2-.4-.2-.7.1-.2.3-.4.5-.4L8.1 6l1.3-2.5c.1-.3.3-.4.6-.4.2 0 .5.1.6.3L11.8 6l2.8.4c.2 0 .4.2.5.4.1.2 0 .5-.2.6l-2 2 .5 2.8c0 .2-.1.5-.2.6-.2.1-.4.2-.7 0L10 11.6l-2.5 1.3c-.1.1-.2.1-.3.1zm2.8-2.7c.1 0 .2 0 .3.1l1.7.9-.3-1.9c0-.2 0-.4.2-.6l1.4-1.3-1.9-.3c-.2 0-.4-.2-.5-.3L10 5.1l-.9 1.7c-.1.2-.2.4-.5.4l-1.8.3 1.4 1.3c.1.1.2.4.2.6L8 11.2l1.7-.9h.3z"}))},Ai=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M17.1 1.1H7.4C4.4 1.1 2 3.5 2 6.5c0 3 2.4 5.4 5.4 5.4.4 0 .7 0 .9-.1v6.3c0 .5.5.8.9.8s.9-.3.9-.8V2.7h2.4v15.4c0 .5.5.8.9.8s.9-.3.9-.8V2.7h2.6c.5 0 .8-.4.8-.8.2-.4-.1-.8-.6-.8zM8.4 10c-.2.1-.5.2-.9.2-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8c.4 0 .7.1.9.2V10z"}))},Hi=function(e){return(0,ue.createElement)("svg",dt({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M13.7 5.5c-1.1 0-2 .8-2.3 1.8H8.5V.5C8.5.2 8.3 0 8 0s-.5.2-.5.5v3.4H4.6c-.2-1-1.2-1.8-2.3-1.8C1 2.1 0 3.1 0 4.4s1 2.3 2.3 2.3c1.1 0 2-.8 2.3-1.8h2.9v5.9H4.6C4.4 9.7 3.5 9 2.3 9 1 9 0 10 0 11.3s1 2.3 2.3 2.3c1.1 0 2-.8 2.3-1.8h2.9v3.7c0 .3.2.5.5.5s.5-.2.5-.5V8.4h2.8c.2 1 1.2 1.8 2.3 1.8 1.3 0 2.3-1 2.3-2.3s-.9-2.4-2.2-2.4zm-11.4.2C1.6 5.7 1 5.1 1 4.4s.6-1.3 1.3-1.3 1.3.6 1.3 1.3-.5 1.3-1.3 1.3zm0 6.9c-.7 0-1.3-.6-1.3-1.3S1.6 10 2.3 10s1.3.6 1.3 1.3-.5 1.3-1.3 1.3zm11.4-3.4c-.7 0-1.3-.6-1.3-1.3s.6-1.3 1.3-1.3 1.3.5 1.3 1.3c0 .7-.6 1.3-1.3 1.3z"}))},Pi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h16.3c.2 0 .3.1.3.3V13h-17V1.8c.1-.2.3-.3.4-.3zm16.4 17H1.8c-.2 0-.3-.1-.3-.3v-3.7h17v3.7c0 .2-.1.3-.3.3zm-11-7.2c.2.1.5.1.8 0L13.5 8c.2-.1.4-.4.4-.6 0-.3-.1-.5-.4-.6L7.9 3.4c-.2-.1-.5-.1-.8 0-.2.1-.3.3-.3.6v6.6c0 .3.1.5.4.7zm1.1-6l3.4 2-3.4 2v-4zm9 11.2c0 .4-.3.8-.8.8H3.4c-.4 0-.8-.3-.8-.8 0-.4.3-.8.8-.8h13.2c.4 0 .7.3.7.8z"}))},Oi=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,ue.createElement)("path",{d:"M10.9 20h-9c-1 0-1.8-.8-1.8-1.8v-5.1c0-1 .8-1.8 1.8-1.8h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zm-9.1-7.4c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5v-5.1c0-.3-.2-.5-.5-.5h-9zM18.2 8.7h-9c-1 0-1.8-.8-1.8-1.8V1.8C7.4.8 8.2 0 9.2 0h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zM9.1 1.3c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V1.8c0-.3-.2-.5-.5-.5h-9z"}))};function zi(e){return(0,ue.cloneElement)(e,{fill:"url(#stackable-gradient)",className:`stk-stackable-icon-gradient ${e.props.className||""}`})}function Li(){return zi((0,ue.createElement)(Dr,{width:"20",height:"20",className:"components-panel__icon"}))}function $i(e){let{className:t}=e;return(0,ue.createElement)(Dr,{className:t,width:"20",height:"20"})}function Di(){return zi((0,ue.createElement)(Dr,{width:"20",height:"20"}))}function Fi(){return zi((0,ue.createElement)(Fr,{width:"20",height:"20"}))}function Ui(){return zi((0,ue.createElement)(Ur,{width:"20",height:"20"}))}function Wi(){return zi((0,ue.createElement)(Wr,{width:"20",height:"20"}))}function Vi(){return zi((0,ue.createElement)(Gr,{width:"16",height:"16"}))}function Gi(){return zi((0,ue.createElement)(Vr,{width:"16",height:"16"}))}function ji(){return zi((0,ue.createElement)(jr,{width:"16",height:"16"}))}function qi(){return zi((0,ue.createElement)(qr,{width:"20",height:"20"}))}function Ki(){return zi((0,ue.createElement)(Kr,{width:"20",height:"20"}))}function Ji(){return zi((0,ue.createElement)(Jr,{width:"20",height:"20"}))}function Yi(){return zi((0,ue.createElement)(Yr,{width:"20",height:"20"}))}function Xi(){return zi((0,ue.createElement)(Xr,{width:"20",height:"20"}))}function Qi(){return zi((0,ue.createElement)(Qr,{width:"20",height:"20"}))}function Zi(){return zi((0,ue.createElement)(Zr,{width:"20",height:"20"}))}function es(){return zi((0,ue.createElement)(ei,{width:"20",height:"20"}))}function ts(){return zi((0,ue.createElement)(ti,{width:"20",height:"20"}))}function ns(){return zi((0,ue.createElement)(ni,{width:"20",height:"20"}))}function os(){return zi((0,ue.createElement)(oi,{width:"20",height:"20"}))}function as(){return zi((0,ue.createElement)(ai,{width:"20",height:"20"}))}function ls(){return zi((0,ue.createElement)(li,{width:"20",height:"20"}))}function rs(){return zi((0,ue.createElement)(ri,{width:"20",height:"20"}))}function is(){return zi((0,ue.createElement)(Yr,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}function ss(){return zi((0,ue.createElement)(ii,{width:"20",height:"20"}))}function cs(){return zi((0,ue.createElement)(si,{width:"16",height:"16"}))}function ds(){return zi((0,ue.createElement)(ci,{width:"16",height:"16"}))}function us(){return zi((0,ue.createElement)(di,{width:"16",height:"16"}))}function ps(){return zi((0,ue.createElement)(ui,{width:"20",height:"20"}))}function hs(){return zi((0,ue.createElement)(pi,{width:"20",height:"20"}))}function gs(){return zi((0,ue.createElement)(hi,{width:"16",height:"16"}))}function ms(){return zi((0,ue.createElement)(gi,{width:"20",height:"20"}))}function vs(){return zi((0,ue.createElement)(mi,{width:"20",height:"20"}))}function bs(){return zi((0,ue.createElement)(vi,{width:"16",height:"16"}))}function fs(){return zi((0,ue.createElement)(bi,{width:"20",height:"20"}))}function ks(){return zi((0,ue.createElement)(fi,{width:"20",height:"20"}))}function ys(){return zi((0,ue.createElement)(ki,{width:"20",height:"20"}))}function ws(){return zi((0,ue.createElement)(yi,{width:"16",height:"16"}))}function Cs(){return zi((0,ue.createElement)(wi,{width:"20",height:"20"}))}function _s(){return zi((0,ue.createElement)(Ci,{width:"16",height:"16"}))}function Es(){return zi((0,ue.createElement)(_i,{width:"16",height:"16"}))}function Ss(){return zi((0,ue.createElement)(Ei,{width:"20",height:"20"}))}function xs(){return zi((0,ue.createElement)(Si,{width:"16",height:"16"}))}function Ts(){return zi((0,ue.createElement)(xi,{width:"20",height:"20"}))}function Bs(){return zi((0,ue.createElement)(Ti,{width:"20",height:"20"}))}function Ms(){return zi((0,ue.createElement)(Bi,{width:"16",height:"16"}))}function Is(){return zi((0,ue.createElement)(Mi,{width:"16",height:"16"}))}function Ns(){return zi((0,ue.createElement)(Ii,{width:"16",height:"16"}))}function Rs(){return zi((0,ue.createElement)(Ni,{width:"20",height:"20"}))}function As(){return zi((0,ue.createElement)(Ri,{width:"20",height:"20"}))}function Hs(){return zi((0,ue.createElement)(Ai,{width:"20",height:"20"}))}function Ps(){return zi((0,ue.createElement)(Hi,{width:"16",height:"16"}))}function Os(){return zi((0,ue.createElement)(Pi,{width:"20",height:"20"}))}function zs(){return zi((0,ue.createElement)(Oi,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}function Ls(){return(0,ue.createElement)(Vi,null)}on((()=>{if(document.querySelector("svg.ugb-stackable-gradient"))return;const e=document.createElement("DIV");e.setAttribute("style","height: 0; width: 0; overflow: hidden;"),e.setAttribute("aria-hidden","true"),document.querySelector("body").appendChild(e),Tm(e).render((0,ue.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ugb-stackable-gradient",height:"0",width:"0",style:{opacity:0}},(0,ue.createElement)("defs",null,(0,ue.createElement)("linearGradient",{id:"stackable-gradient"},(0,ue.createElement)("stop",{offset:"0%",stopColor:"#8c33da",stopOpacity:"1"}),(0,ue.createElement)("stop",{offset:"100%",stopColor:"#f34957",stopOpacity:"1"})))))}));const $s=(0,ue.createElement)(mt.Icon,{icon:is}),Ds=(0,ue.createElement)(mt.Icon,{icon:zs}),Fs=(0,jt.compose)([(0,he.withSelect)(((e,t)=>{let{clientIds:n}=t;const{getBlockRootClientId:o,getBlocksByClientId:a,canInsertBlockType:l}=e("core/block-editor"),r="ugb/container",i=l(r,n&&n.length>0?o(n[0]):void 0),s=a(n),c=1===s.length&&s[0]&&s[0].name===r;return{isGroupable:i&&s.length&&!c,isUngroupable:c&&!!s[0].innerBlocks.length,blocksSelection:s,groupingBlockName:r}})),(0,he.withDispatch)(((e,t)=>{let{clientIds:n,onToggle:o=d.noop,blocksSelection:a=[]}=t;const{replaceBlocks:l}=e("core/block-editor");return{onConvertToGroup(){if(!a.length)return;const e=a.map((e=>(0,Ve.cloneBlock)(e))),t=(0,Ve.createBlock)("ugb/container",{},e);l(n,t),o()},onConvertFromGroup(){if(!a.length)return;const e=a[0].innerBlocks;e.length&&(l(n,e),o())}}}))])((function(e){let{onConvertToGroup:t,onConvertFromGroup:n,isGroupable:o=!1,isUngroupable:a=!1}=e;return(0,he.select)("core/block-editor").getSelectedBlockClientIds?(0,ue.createElement)(ue.Fragment,null,o&&(0,ue.createElement)($e.BlockSettingsMenuControls,null,(e=>{let{onClose:n}=e;return(0,ue.createElement)(mt.MenuItem,{icon:$s,onClick:()=>{t(),n()}},(0,v.__)("Group into Container",m.i18n))})),a&&(0,ue.createElement)($e.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,ue.createElement)(mt.MenuItem,{icon:Ds,onClick:()=>{n(),t()}},(0,v.__)("Ungroup from Container",m.i18n))}))):null})),Us=(0,he.withSelect)((e=>{const{getSelectedBlockClientIds:t}=e("core/block-editor");return t?{clientIds:t()}:{}}))(Fs),Ws=(0,he.withSelect)((e=>{const{getSelectedBlockClientId:t}=e("core/block-editor");return t?{clientId:t()}:{}}))((e=>{let{clientId:t}=e;const[n,o]=(0,ue.useState)(!1),[a,l]=(0,ue.useState)(!1),{blockName:r,getJSONBlockAttributes:i}=(0,he.useSelect)((e=>{const{getBlockName:n}=e("core/block-editor");return{blockName:t&&n(t)?n(t).replace(/^\w+\//g,""):"",getJSONBlockAttributes:()=>{const{getBlockName:n}=e("core/block-editor"),{getBlockType:o}=e("core/blocks");if(!t)return{};const a=e("core/block-editor").getBlockAttributes(t),l=n(t).replace(/^\w+\//g,""),r=o(n(t)).attributes,i=Object.keys(a).reduce(((e,t)=>(a[t]!==(r[t]?r[t].default:"")&&(e[t]=a[t]),e)),{});return i.uniqueClass=void 0,JSON.stringify((0,le.applyFilters)(`stackable.${l}.design.filtered-block-attributes`,i),null,4)}}}));return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)($e.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,ue.createElement)(mt.MenuItem,{icon:"editor-code",onClick:()=>{o(!0),l(!1),setTimeout((()=>document.querySelector(".ugb-modal-get-block-attributes-button textarea").select()),100),t()}},"Get / Set Block Attributes")})),n&&(0,ue.createElement)(mt.Modal,{title:`${(0,d.startCase)(r)} Block Attributes`,focusOnMount:!0,className:"ugb-modal-get-block-attributes-button",onRequestClose:()=>{a&&(e=>{if(t)try{const n=JSON.parse(e);rm(n,t)}catch(e){console.error(e)}})(document.querySelector(".ugb-modal-get-block-attributes-button textarea").value),o(!1)}},(0,ue.createElement)("p",null,'Copy or modify the attributes of the block directly. Use only double quotes "'),(0,ue.createElement)("textarea",{onChange:()=>l(!0)},i())))})),Vs=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,ue.createElement)("path",{d:"M38 12H12v26h26V12z"}))},Gs=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,ue.createElement)("path",{d:"M12.5 12.5H0V0h12.5v12.5zM31.2 0H18.8v12.5h12.5V0zM50 0H37.5v12.5H50V0zM12.5 18.8H0v12.5h12.5V18.8zm18.7 0H18.8v12.5h12.5V18.8zm18.8 0H37.5v12.5H50V18.8zM12.5 37.5H0V50h12.5V37.5zm18.7 0H18.8V50h12.5V37.5zm18.8 0H37.5V50H50V37.5z"}))},js=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,ue.createElement)("path",{d:"M21.1 5.3H5.3v15.8h15.8V5.3zm23.6 0H28.9v15.8h15.8V5.3zM21.1 28.9H5.3v15.8h15.8V28.9zm23.6 0H28.9v15.8h15.8V28.9z"}))},qs=e=>"wireframes"===e.uikit.toLowerCase(),Ks=e=>{const[t,n]=(0,ue.useState)([]),[o,a]=(0,ue.useState)([]),[l,r]=(0,ue.useState)([]),[i,s]=mm("stk__design_library__block-list__selected",""),{viewBy:c,apiVersion:u}=e;(0,ue.useEffect)((()=>{hl(u).then((e=>{const t=Object.keys(e).reduce(((t,n)=>{const o=e[n],{categories:a,uikit:l}=o;return void 0!==t.uikits[l]||qs(o)||(t.uikits[l]={id:l,label:o.uikit,plan:o.plan,count:0}),qs(o)?a.forEach((e=>{void 0===t.wireframes[e]&&(t.wireframes[e]={id:e,label:e,count:0})})):a.forEach((e=>{void 0===t.categories[e]&&(t.categories[e]={id:e,label:e,count:0})})),t}),{uikits:{},categories:{},wireframes:{}});let o=["label"];m.isPro||(o=["plan","label"]);const l=(0,d.sortBy)(Object.values(t.uikits),o),i=(0,d.sortBy)(Object.values(t.categories),"label");i.unshift({id:"all",label:(0,v.__)("All",m.i18n),count:0});const s=(0,d.sortBy)(Object.values(t.wireframes),"label");s.unshift({id:"all",label:(0,v.__)("All",m.i18n),count:0}),n(l),a(i),r(s)}))}),[u]),(0,ue.useEffect)((()=>{if(!t.length||!o.length||!l.length)return;const i=t.reduce(((e,t)=>(e[t.id]={...t,count:0},e)),{}),s=o.reduce(((e,t)=>(e[t.id]={...t,count:0},e)),{}),c=l.reduce(((e,t)=>(e[t.id]={...t,count:0},e)),{});e.designs.forEach((e=>{qs(e)?e.categories.forEach((e=>{e&&c[e]&&c[e].count++})):(e.uikit&&i[e.uikit]&&i[e.uikit].count++,e.categories.forEach((e=>{e&&s[e]&&s[e].count++})))}));let u=["label"];m.isPro||(u=["plan","label"]),n((0,d.sortBy)(Object.values(i),u)),s.all&&(s.all.count=e.designs.filter((e=>!qs(e))).length,s.all.label=" ");const p=(0,d.sortBy)(Object.values(s),"label");p[0]&&(p[0].label=(0,v.__)("All",m.i18n)),a(p),c.all&&(c.all.count=e.designs.filter(qs).length,c.all.label=" ");const h=(0,d.sortBy)(Object.values(c),"label");h[0]&&(h[0].label=(0,v.__)("All",m.i18n)),r(h)}),[e.designs.length,JSON.stringify(t),JSON.stringify(o),JSON.stringify(l)]),(0,ue.useEffect)((()=>{t.length&&o.length&&l.length&&s("uikit"===c?t[0].id:"all")}),[c]),(0,ue.useEffect)((()=>{e.onSelect(i)}),[i]);const p="uikit"===c?t:"category"===c?o:l;return(0,ue.createElement)("ul",{className:"ugb-block-list"},p.reduce(((e,t)=>{const{id:n,label:o,count:a,plan:l}=t,r=gt()(["stk-design-library__sidebar-item"],{"is-active":i===n,"is-disabled":!m.isPro&&"premium"===l});return e.push((0,ue.createElement)("li",{key:n},(0,ue.createElement)("div",{className:r,"data-count":a,onClick:()=>s(n),onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":i===n?"true":"false"},o,(0,ue.createElement)("span",{className:"ugb-block-list__count","data-testid":`${n}-count`},a)))),e}),[]))};Ks.defaultProps={select:"",onSelect:()=>{},apiVersion:"",designs:[]};const Js=Ks,Ys=e=>{const[t,n]=(0,ue.useState)(e.search),[o,a]=(0,ue.useState)(3),[l,r]=(0,ue.useState)(!0),[i,s]=(0,ue.useState)(!1),[c,d]=(0,ue.useState)(!1),[u,p]=(0,ue.useState)([]),[h,g]=(0,ue.useState)([]),[b,f]=(0,ue.useState)(!1),[k,y]=(0,ue.useState)(""),[w,C]=mm("stk__design_library__block-list__view_by","uikit"),[_,E]=mm("stk__design_library_dev_mode",!1),[S,x]=(0,ue.useState)([]),[T,B]=(0,ue.useState)([]),[M,I]=(0,ue.useState)(t),[N,R]=(0,ue.useState)(null);return(0,ue.useEffect)((()=>{N&&(clearTimeout(N),R(null)),R(setTimeout((()=>{I(t)}),500))}),[t]),(0,ue.useEffect)((()=>{const e=document.querySelector(".ugb-modal-design-library__search input");e&&e.focus()}),[]),(0,ue.useEffect)((()=>{i&&(x([]),B([])),vl({search:M,reset:i,apiVersion:e.apiVersion}).then((e=>{x(e)})).finally((()=>{s(!1)}))}),[M,i,e.apiVersion]),(0,ue.useEffect)((()=>{r(!0),vl({apiVersion:e.apiVersion,search:M,uikit:"wireframe"===w?"Wireframes":"uikit"===w?k:"",categories:["category","wireframe"].includes(w)&&"all"!==k?[k]:[]}).then((e=>{B(e)})).finally((()=>{r(!1)}))}),[k,w,i,M,e.apiVersion]),(0,ue.createElement)(mt.Modal,{title:(0,ue.createElement)(ue.Fragment,null,(0,v.__)("Stackable Design Library",m.i18n),(0,ue.createElement)(Ao,{className:"stk-design-library-tabs",controls:[{value:"category",title:(0,v.__)("Block Designs",m.i18n)},{value:"uikit",title:(0,v.__)("UI Kits",m.i18n)},{value:"wireframe",title:(0,v.__)("Wireframes",m.i18n)}],value:w,onChange:C,fullwidth:!1,isToggleOnly:!0,allowReset:!1}),e.hasVersionSwitcher&&(0,ue.createElement)(Ao,{controls:[{value:"",title:(0,v.__)("Latest Design Library",m.i18n)},{value:"v2",title:(0,v.__)("V2 Design Library",m.i18n)}],value:e.apiVersion,onChange:e.onChangeApiVersion,isSmall:!0,fullwidth:!1,isToggleOnly:!0,allowReset:!1})),className:gt()("ugb-modal-design-library",{"ugb-modal-design-library--is-multiselect":c}),onRequestClose:e.onClose},(0,ue.createElement)("div",{className:"ugb-modal-design-library__wrapper"},(0,ue.createElement)("aside",{className:"ugb-modal-design-library__sidebar"},(0,ue.createElement)(mt.TextControl,{className:"ugb-modal-design-library__search",placeholder:(0,v.__)("E.g. light, dark, red, minimalist…",m.i18n),value:t,onChange:e=>n(e),"data-testid":"input-search",type:"search"}),(0,ue.createElement)("div",{className:"ugb-modal-design-library__filters"},(0,ue.createElement)(Js,{apiVersion:e.apiVersion,designs:S,viewBy:w,onSelect:e=>y(e)}))),(0,ue.createElement)("aside",{className:"ugb-modal-design-library__topbar"},(0,ue.createElement)(yt,{label:(0,v.__)("Select Multiple",m.i18n),className:gt()("ugb-modal-design-library__select","stk-circular-button",{"stk--is-active":c}),onClick:()=>d(!c)},(0,v.__)("Select",m.i18n)),c&&(0,ue.createElement)(yt,{label:(0,v.__)("Deselect All",m.i18n),className:"ugb-modal-design-library__deselect stk-circular-button",disabled:!u.length,onClick:()=>p([])},(0,v.__)("Deselect All",m.i18n)),m.devMode&&(0,ue.createElement)(mt.ToggleControl,{className:"ugb-modal-design-library__dev-mode",label:"Dev Mode",checked:_,onChange:e=>{ml(e).then((()=>{s(!0)})),E(e)}}),(0,ue.createElement)(yt,{icon:"image-rotate",label:(0,v.__)("Refresh Library",m.i18n),className:"ugb-modal-design-library__refresh",onClick:()=>s(!0)}),(0,ue.createElement)(yt,{icon:(0,ue.createElement)(Vs,{width:"18",height:"18"}),className:2===o?"is-active":"",label:(0,v.__)("Large preview",m.i18n),onClick:()=>a(2)}),(0,ue.createElement)(yt,{icon:(0,ue.createElement)(js,{width:"18",height:"18"}),className:3===o?"is-active":"",label:(0,v.__)("Medium preview",m.i18n),onClick:()=>a(3)}),(0,ue.createElement)(yt,{icon:(0,ue.createElement)(Gs,{width:"18",height:"18"}),className:4===o?"is-active":"",label:(0,v.__)("Small preview",m.i18n),onClick:()=>a(4)})),(0,ue.createElement)("div",{className:"ugb-modal-design-library__designs"},(0,ue.createElement)(wl,{className:`stk-design-library__item-${w}`,columns:o,onSelect:e.onSelect,isBusy:l,designs:T,apiVersion:e.apiVersion,isMultiSelectMode:c,selectedDesigns:u,onSelectMulti:t=>{const n=[...u],o=[...h];if(n.includes(t)){const e=n.indexOf(t);n.splice(e,1),p(n),o.splice(e,1),g(o)}else n.push(t),p(n),o.push(T.find((e=>e.id===t))),g(o),bl(t,e.apiVersion)}})),c&&(0,ue.createElement)("aside",{className:"ugb-modal-design-library__footer"},(0,ue.createElement)("div",null,(0,v.sprintf)((0,v.__)("(%d) Selected",m.i18n),u.length)),(0,ue.createElement)(yt,{label:(0,v.__)("Add Designs",m.i18n),className:"ugb-modal-design-library__add-multi",disabled:!u.length||b,onClick:()=>{f(!0);const t=u.map((t=>bl(t,e.apiVersion)));Promise.all(t).then((t=>{setTimeout((()=>{e.onSelect(t,h,(()=>f(!1)))}))}))}},(0,v.__)("Add Designs",m.i18n),b&&(0,ue.createElement)(mt.Spinner,null)))))};Ys.defaultProps={search:"",onClose:()=>{},onSelect:()=>{},hasVersionSwitcher:!1,apiVersion:"",onChangeApiVersion:()=>{}};const Xs=e=>{const[t,n]=mm("stk__design_library_api_version",""),o=(0,ue.useMemo)((()=>(0,le.applyFilters)("stackable.design-library.versions",[""])),[]),a=o.includes(t)?t:o[0],l=(0,ue.useMemo)((()=>(0,le.applyFilters)("stackable.design-library.modal-component",Ys,a)),[a]);return(0,ue.createElement)(l,dt({hasVersionSwitcher:o.length>1,apiVersion:a,onChangeApiVersion:n},e))};Xs.defaultProps={};const Qs=Xs;let Zs=1;const ec=e=>{const{showLabel:t=!0}=e,[n]=(0,ue.useState)("ugb-admin-setting-"+Zs++),o=!e.searchedSettings||e.searchedSettings.includes(e.label),a=gt()(["ugb-admin-setting",e.className],{[`ugb-admin-setting--${e.size}`]:e.size,"ugb-admin-setting--not-highlight":!o});return(0,ue.createElement)("div",{className:a,id:n},(0,ue.createElement)("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:n,onClick:e.onClick},!!e.label&&t&&(0,ue.createElement)("span",{className:"ugb-admin-setting__label"},e.label),(0,ue.createElement)("div",{className:"ugb-admin-setting__field"},e.children)),e.help&&(0,ue.createElement)("p",{className:"ugb-admin-setting__help"},e.help))};ec.defaultProps={label:"",onClick:()=>{}};const tc=ec,nc=e=>{const t=(0,ue.createRef)();return(0,ue.createElement)(tc,dt({onClick:e=>{e.preventDefault(),t.current.focus()}},e),(0,ue.createElement)("input",{ref:t,className:"ugb-admin-text-setting",type:e.type,value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value),t.preventDefault(),t.stopPropagation()}}),e.children)};nc.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:()=>{}};const oc=nc,ac=e=>{const t=(0,ue.createRef)();return(0,ue.createElement)(tc,dt({onClick:n=>{e.onChange(!e.value),n.preventDefault(),t.current.focus()}},e,{className:gt()(e.className,"ugb-admin-toggle-setting")}),(0,ue.createElement)("button",{ref:t,className:gt()("ugb-admin-toggle-setting__button",{"ugb-admin-toggle-setting__button--enabled":!!e.value}),type:"button",role:"switch","aria-checked":!!e.value,onClick:t=>{e.onChange(!e.value),t.preventDefault(),t.stopPropagation()},style:{minWidth:e.width||void 0},disabled:e.isDisabled?"disabled":""}),(0,ue.createElement)("span",{className:"ugb-admin-toggle-setting__label"},(0,ue.createElement)("span",{style:{visibility:e.value?"visible":"hidden"}},e.enabled),(0,ue.createElement)("span",{style:{visibility:e.value?"hidden":"visible"}},e.disabled)))};ac.defaultProps={label:"",value:!1,placeholder:"",onChange:()=>{},disabled:(0,v.__)("Disabled",m.i18n),enabled:(0,v.__)("Enabled",m.i18n),width:"",isDisabled:!1};const lc=ac,rc=e=>(0,ue.createElement)(tc,e,(0,ue.createElement)("select",{className:"ugb-admin-select-setting",value:e.value,onChange:t=>e.onChange(t.target.value)},e.options.map(((e,t)=>(0,ue.createElement)("option",{key:t,value:e.value},e.name)))),e.children);rc.defaultProps={label:"",value:"",onChange:()=>{},options:[]};const ic=rc;let sc=[];class cc extends ue.Component{constructor(){super(...arguments),this.state={isLoading:0===sc.length,termList:sc}}componentWillMount(){this.state.termList.length||(this.isStillMounted=!0,this.fetchRequest=st()({path:(0,rt.addQueryArgs)(`/stackable/${"v"+(this.props.stkVersion||"2")}/terms`,{per_page:-1})}).then((e=>{this.isStillMounted&&(sc=e,this.setState({termList:e,isLoading:!1}))})).catch((()=>{this.isStillMounted&&this.setState({termList:[],isLoading:!1})})))}componentWillUnmount(){this.isStillMounted=!1}render(){const e=[],t=[],n=[];let o="";const{taxonomy:a,allowReset:l}=this.props;Object.keys(this.state.termList).forEach((o=>{const{label:a,taxonomies:l}=this.state.termList[o];"wp_block"!==o&&(e.push({label:a,value:o}),o===this.props.postType&&Object.keys(l).forEach(((e,o)=>{const{label:a,terms:r}=l[e];t.push({label:a,value:e});const i=!this.props.taxonomyType&&0===o;(e===this.props.taxonomyType||i)&&Object.keys(r).forEach((e=>{n.push({name:r[e].name,value:r[e].term_id})}))})))}));const r=n.map((e=>e.name));let i=""!==a?a.split(",").map((e=>{const{name:t}=(0,d.find)(n,(t=>t.value===parseInt(e)))||{};return t})).filter((e=>e)):void 0;if((0,d.compact)(i).length||(i=void 0),t.length){const e=this.props.taxonomyType||t[0].value,n=t.filter((t=>{let{value:n}=t;return e===n}));o=n.length?n[0].label:t[0].label}return this.state.isLoading?(0,ue.createElement)("div",{className:"stk-taxonomy-control__spinner"},(0,ue.createElement)(mt.Spinner,null)):(0,ue.createElement)("div",{className:"stk-taxonomy-control"},m.isPro&&(0,ue.createElement)(so,{label:(0,v.__)("Post Type",m.i18n),options:e,value:this.props.postType,allowReset:l,onChange:e=>{const t=Object.keys(this.state.termList[e].taxonomies);this.props.onChangePostType(e),this.props.onChangeTaxonomyType(t.length?t[0]:""),this.props.onChangeTaxonomy("")},default:"post"}),t.length>0&&(0,ue.createElement)(so,{label:(0,v.__)("Filter by Taxonomy",m.i18n),options:t,value:this.props.taxonomyType,allowReset:l,onChange:e=>{this.props.onChangeTaxonomyType(e),this.props.onChangeTaxonomy("")},default:"category"}),t.length>0&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(so,{label:(0,v.__)("Taxonomy Filter Type",m.i18n),allowReset:l,options:[{label:(0,v.__)("Included In",m.i18n),value:"__in"},{label:(0,v.__)("Not In",m.i18n),value:"__not_in"}],value:this.props.taxonomyFilterType,onChange:this.props.onChangeTaxonomyFilterType,default:"__in"}),(0,ue.createElement)(Uc,{label:o,suggestions:r,value:i,onChange:e=>{var t;const o=null==e||null===(t=e.map)||void 0===t?void 0:t.call(e,(e=>{const{value:t}=(0,d.find)(n||[],(t=>t.name===e))||{};return t}));this.props.onChangeTaxonomy((0,d.compact)(o||[]).join(","))}})))}}cc.defaultProps={postType:"post",onChangePostType:()=>{},taxonomyType:"category",onChangeTaxonomyType:()=>{},taxonomy:"",onChangeTaxonomy:()=>{},allowReset:!1};const dc=cc,uc=e=>(0,ue.createElement)(mt.Tooltip,dt({},e,{className:gt()([e.className,"stk-tooltip"]),text:(0,ue.createElement)("span",{className:"stk-tooltip__text"},e.text)}));uc.defaultProps={className:""};const pc=uc,hc=e=>{const{styles:t}=e,n=Ae(),o=He(),a=(null==n?void 0:n.className)||"",l=Ue(t,a);return(0,ue.createElement)(id,{options:t,onSelect:t=>{const r=function(e,t,n){const o=new(Le())(e);return t&&o.remove("is-style-"+t.name),"default"!==n.name&&o.add("is-style-"+n.name),o.value}(a,l,t),i=t.onSelect?t.onSelect(n,e):{};o({...i,className:r})},value:l.name,activeProperty:"name"})},gc={Edit:e=>{const{blockProps:t,render:n,mainClass:o,blockTag:a,...l}=e,{blockName:r}=t,{anchor:i="",design:s,blockTag:c="div"}=t.attributes,d=gt()([e.className],(0,le.applyFilters)(`stackable.${r}.main-block.classes`,{"ugb-main-block":o},t)),u=gt()(["ugb-inner-block"],(0,le.applyFilters)(`stackable.${r}.main-block.inner-classes`,{},t)),p=(0,le.applyFilters)(`stackable.${r}.main-block.extraProps`,l,t),h=""!==i?i:void 0,g=c||a||"div";return(0,ue.createElement)(g,dt({},p,{id:h,className:d}),t.styles,(0,le.applyFilters)(`stackable.${r}.edit.output.outer`,null,s,t),n&&(0,ue.createElement)("div",{className:u},(0,le.applyFilters)(`stackable.${r}.edit.output.before`,null,s,t),(0,ue.createElement)("div",{className:"ugb-block-content"},n(t)),(0,le.applyFilters)(`stackable.${r}.edit.output.after`,null,s,t)))}};gc.Edit.defaultProps={styles:null,mainClass:!0},gc.Save=e=>{const{blockProps:t,render:n,mainClass:o,blockTag:a,...l}=e,{blockName:r}=t,{anchor:i="",design:s,blockTag:c="div"}=t.attributes,d=gt()([e.className],(0,le.applyFilters)(`stackable.${r}.main-block.classes`,{"ugb-main-block":o},t)),u=gt()(["ugb-inner-block"],(0,le.applyFilters)(`stackable.${r}.main-block.inner-classes`,{},t)),p=(0,le.applyFilters)(`stackable.${r}.main-block.extraProps`,l,t),h=""!==i?i:void 0,g=c||a||"div";return(0,ue.createElement)(g,dt({},p,{id:h,className:d}),t.styles,(0,le.applyFilters)(`stackable.${r}.save.output.outer`,null,s,t),n&&(0,ue.createElement)("div",{className:u},(0,le.applyFilters)(`stackable.${r}.save.output.before`,null,s,t),(0,ue.createElement)("div",{className:"ugb-block-content"},n(t)),(0,le.applyFilters)(`stackable.${r}.save.output.after`,null,s,t)))},gc.Save.defaultProps={styles:null,mainClass:!0};const mc=gc,vc=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M-10 210h1620V105.2H-10z"}))},bc=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#straight-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"straight-1-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M-10 121.6h1620v-16.4H-10z"}))},fc={"wave-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"wave-1_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7V210h1620V102c-110.6-40.2-181-53.1-268.6-53.1z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-1-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"wave-1-shadow_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7v10s91.9 35.9 203.9 35.9 182.4-38.8 324.6-38.8c183.8 0 275.7 67.5 393.5 67.5 175.2 0 247-80.4 429.4-80.4 87.6 0 158 12.9 268.6 53.1v-10c-110.6-40.2-181-53.1-268.6-53.1z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v75.9h1620V98.3c-110.6 40.2-181 53.1-268.6 53.1z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-1-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v10s91.9-35.9 203.9-35.9 182.4 38.8 324.6 38.8C702.3 148.5 794.2 81 912 81c175.2 0 247 80.4 429.4 80.4 87.6 0 158-12.9 268.6-53.1v-10c-110.6 40.2-181 53.1-268.6 53.1z"}))}}},"wave-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"wave-2_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3V210h1620V91.6c-53 10-86.8-7.1-177.8-24.2z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-2-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"wave-2-shadow_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3v10s77.1 31.5 171.6 3c69.7-21 174.7-62.6 294.4-73 115-10 163.1 3.4 274.1 23.8 111 20.4 199.6 39.5 275 27.9 76-11.7 175.1-60.1 223.1-73.9s115.2-25.2 204-8.5c91 17.1 124.8 34.2 177.8 24.2v-10c-53 10-86.8-7.1-177.8-24.2z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v155.2h1620V132c-53-10-86.8 7.1-177.8 24.2z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-2-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v10s77.1-31.5 171.6-3c69.7 21 174.7 62.6 294.4 73 115 10 163.1-3.4 274.1-23.8 111-20.4 199.6-39.5 275-27.9 76 11.7 175.1 60.1 223.1 73.9s115.2 25.2 204 8.5c91-17.1 124.8-34.2 177.8-24.2v-10c-53-10-86.8 7.1-177.8 24.2z"}))}}},"wave-3":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"wave-3_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.4 102-10 136.2-10 136.2v74.2h1620v-68.5s-68.8 19.5-196.4 19.5z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-3-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"wave-3-shadow_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.5 102-10 136.2-10 136.2v10s69.9-5.7 198.5-34.3 221.7-45.7 311.8-49.1 202.6.3 418.2 41.1c156.9 29.7 337.2 67.4 495.1 67.4 127.6 0 196.4-19.4 196.4-19.4v-10s-68.8 19.5-196.4 19.5z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7-10 64.5-10 64.5v150.2h1620V58.8s-68.8-19.5-196.4-19.5z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-3-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7C59.8 70.1-10 64.5-10 64.5v10s69.8 5.6 198.4 34.2c128.6 28.6 221.8 45.6 311.9 49.1s202.6-.3 418.2-41.1c156.9-29.7 337.2-67.4 495.1-67.4 127.6 0 196.4 19.5 196.4 19.5v-10s-68.8-19.5-196.4-19.5z"}))}}},"wave-4":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 209.7v-51.2s-81.4-33.3-241.4-23.1c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v154h1620z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-4-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-4-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1368.6 135.4c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v10c90 56.1 248.1 20.6 362.8 8 114.4-12.3 171 18.4 209.2 43.1 38.2 24.8 87.3 21.4 106 19.3 18.6-2.1 109.8-2 185.5 25.1 53.2 19 81.1 33.5 174.2 33.6 93 .2 183.5-39.4 340.9-49.4 160-10.2 241.4 23.1 241.4 23.1v-10s-81.4-33.3-241.4-23.1z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 208.9V79.2s-81.4 33.3-241.4 23.1c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v26.9h1620z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-4-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"wave-4-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1368.6 102.3c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v10c90-56.1 248.1-20.6 362.8-8 114.4 12.3 171-18.4 209.2-43.1 38.2-24.8 87.3-21.4 106-19.3 18.6 2.1 109.8 2 185.5-25.1 53.2-19 81.1-33.5 174.2-33.6 93-.2 183.5 39.4 340.9 49.4 160 10.2 241.4-23.1 241.4-23.1v-10s-81.4 33.3-241.4 23.1z"}))}}},"curve-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"curve-1_svg__st2",d:"M1610 177.3C1423 122.9 1133.3 88 808 88c-334.7 0-631.8 37-818 94.1v28h1620v-32.8z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"curve-1-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"curve-1-shadow_svg__st2",d:"M808 87.9c-334.7 0-631.8 37-818 94.1v10c186.2-57.1 483.3-94.1 818-94.1 325.3 0 615 34.9 802 89.3v-10c-187-54.3-476.7-89.3-802-89.3z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 78.3c-187 54.4-476.7 89.3-802 89.3-334.7 0-631.8-37-818-94.1v136.8h1620v-132z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"curve-1-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M808 167.6c-334.7 0-631.8-37-818-94.1v10c186.2 57.1 483.3 94.1 818 94.1 325.3 0 615-34.9 802-89.3v-10c-187 54.4-476.7 89.3-802 89.3z"}))}}},"curve-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"curve-2_svg__st2",d:"M-10 207.6h1620S1430.8 23.8 1138.3 23.8C884 23.8 234.9 140.1-10 197.9v9.7z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"curve-2-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"curve-2-shadow_svg__st2",d:"M1138.3 36.2c246.1 0 412 130.1 458.4 171.4h13.3S1430.8 23.8 1138.3 23.8C884 23.8 172 156.9-10 197.9v9.7H2.2C201.7 163.7 889.3 36.2 1138.3 36.2z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M-10 207.4h1620S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v199.6z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"curve-2-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1604.2 13.7c3.3-3.1 5.2 152.3 5.7 193.7h.1S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v10c244.9 57.8 894 174.1 1148.3 174.1 262 0 433.1-147.5 465.9-178.2z"}))}}},"curve-3":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"curve-3_svg__st1",d:"M-6.7 13.4S456 171.1 876.1 171.1 1606.4 16 1606.4 16v192.6H-6.7V13.4z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"curve-3-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"curve-3-shadow_svg__st1",d:"M876.1 171.1C456 171.1-6.7 13.4-6.7 13.4v13.7S456 184.8 876.1 184.8s730.3-155.1 730.3-155.1V16s-310.3 155.1-730.3 155.1z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M-6.6 177.6S456.1 40.3 876.2 40.3s730.3 135.1 730.3 135.1v33.5H-6.6v-31.3z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"curve-3-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M876.2 40.3C456.1 40.3-6.5 177.6-6.5 177.6v10S456.2 50.3 876.3 50.3s730.3 135.1 730.3 135.1v-10c0-.1-310.3-135.1-730.4-135.1z"}))}}},"slant-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"slant-1-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 210H-10V.5l1620 183.4z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"slant-1-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M-10 .5v10l1620 183.4v-10z"}))}}},"slant-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"slant-2-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"slant-2-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M800 41.1L-10 160v10L800 51.1 1610 170v-10z"}))}}},"straight-1":{default:{shape:vc,shadow:bc},inverted:{shape:vc,shadow:bc}},"rounded-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"rounded-1_svg__st1",d:"M1602.9 209l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2V209h1610.9z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"rounded-1-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"rounded-1-shadow_svg__st1",d:"M1491.2 20.7c48.1-3.8 90.6 32.5 94.4 80.6l8.5 107.7h8.8l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2v9.4L1491.2 20.7z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1604.5-2.7l-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v148.5h1613.9l-1.4-213z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"rounded-1-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1596.6 111.7l8.2-78-.2-36.4-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v10l1507.2 120.5c48.1 3.8 93.6-32.5 97.4-80.6z"}))}}},"rounded-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"rounded-2_svg__st2",d:"M1609.5 133.2h-9.5c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2l-10-.2v77h1619.5v-76.8z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"rounded-2-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{className:"rounded-2-shadow_svg__st2",d:"M1600 133.2c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2V210h9v-66.8c0-10.9 8.9-19.8 19.8-19.8h1542.4c10.9 0 19.8 8.9 19.8 19.8V210h9v-76.8z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1609.5 128.5h-9.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v83.1h1619.5v-83.3z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"rounded-2-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1600 128.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v10l10-.2c0 11 8.9 19.9 19.8 19.8h1560.4c10.9 0 19.8-8.9 19.8-19.8h9.5v-10h-9.5z"}))}}},"rounded-3":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610.5 189.1s-128.2-82.6-138.2-89.2c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v50h1620v-24.1z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"rounded-3-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1472.3 99.9c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v10s449.8-106 489.8-115.5 90.8-9.7 121.1-8.2c30.3 1.6 734.2 39.7 783.9 42.3 49.8 2.6 69.9 6.8 87 18.1 10 6.6 138.2 89.2 138.2 89.2v-10s-128.2-82.6-138.2-89.2z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610.5 24.1s-128.2 82.6-138.2 89.2c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v158.9h1620V24.1z"}))},shadow:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,ue.createElement)("filter",{id:"rounded-3-inverted-shadow_svg__a"},(0,ue.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,ue.createElement)("feComponentTransfer",null,(0,ue.createElement)("feFuncA",{type:"linear",slope:.4})),(0,ue.createElement)("feMerge",null,(0,ue.createElement)("feMergeNode",null),(0,ue.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,ue.createElement)("path",{d:"M1472.3 113.3c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v10s449.8 106 489.8 115.5 90.8 9.7 121.1 8.2c30.3-1.6 734.2-39.7 783.9-42.3 49.8-2.6 69.9-6.8 87-18.1 10-6.6 138.2-89.2 138.2-89.2v-10s-128.2 82.6-138.2 89.2z"}))}}}},kc=e=>{const{shape:t,shadow:n}=fc[e.design||"wave-1"][e.inverted?"inverted":"default"],o=gt()([e.className,"ugb-separator-wrapper"]);return(0,ue.createElement)("div",{className:o},e.shadow&&(0,ue.createElement)(n,{className:"ugb-separator__shadow",preserveAspectRatio:"none","aria-hidden":"true"}),(0,ue.createElement)(t,{className:"ugb-separator__layer-1",preserveAspectRatio:"none","aria-hidden":"true"}),e.children)};kc.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},kc.Save=e=>(0,ue.createElement)(kc,e);const yc=kc,wc=()=>(0,ue.createElement)("hr",{className:"ugb-control-separator"}),Cc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";return n=t?_c(e,{"aria-label":t,role:"img"},["aria-hidden"]):_c(e,{"aria-hidden":"true"},["aria-label","role"]),n},_c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const o=wm(e);return o?(Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),n.forEach((e=>{o.removeAttribute(e)})),o.outerHTML):""},Ec=(0,ue.memo)((e=>{const{svgAttrsToAdd:t={width:"32",height:"32"},svgAttrsToRemove:n=["id","data-name"]}=e,[o,a]=(0,ue.useState)(0),l=()=>{a(o+1)},r=(0,d.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/)){let o=Cc(e.value,e.ariaLabel);return o=_c(o,t,n),(0,ue.createElement)(ue.RawHTML,r,e.prependRenderString+o)}const i=e.value?e.value.replace(/-.*$/,""):e.prefix,s=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(i&&s){const o=Em(i,s);if(!o)return Sm(i,s).then(l),(0,ue.createElement)(mt.Spinner,null);let a=Cc(o,e.ariaLabel);return a=_c(a,t,n),(0,ue.createElement)(ue.RawHTML,r,e.prependRenderString+a)}const c=Em("far","smile");if(!c)return Sm("far","smile").then(l),(0,ue.createElement)(mt.Spinner,null);let u=Cc(c,e.ariaLabel);return u=_c(u,t,n),(0,ue.createElement)(ue.RawHTML,r,e.prependRenderString+u)}));Ec.Content=e=>{const t=(0,d.pick)(e,["className","color","fill","style"]),{prependRenderString:n=""}=e;if("string"==typeof e.value&&e.value.match(/^<svg/)){let o=Cc(e.value,e.ariaLabel);return o=_c(o,{width:"32",height:"32"}),(0,ue.createElement)(ue.RawHTML,t,n+o)}const o=e.value?e.value.replace(/-.*$/,""):e.prefix,a=e.value?e.value.replace(/^.*?-/,""):e.iconName,l=Em(o,a);let r=Cc(l,e.ariaLabel);return r=_c(r,{width:"32",height:"32"}),(0,ue.createElement)(ue.RawHTML,t,n+r)},Ec.defaultProps={ariaLabel:"",prefix:"",iconName:"",value:"",prependRenderString:""};const Sc=Ec,xc=e=>e.match(/^<svg(.*?)<\/svg>$/g)?e:e.match(/<svg/)?(e.match(/<svg.*?<\/svg>/g)||[e])[0]:e,Tc=e=>{const{...t}=e;return t.value=(0,ue.useMemo)((()=>"string"===e.value?xc(e.value):e.value),[e.value]),(0,ue.createElement)(Sc,t)};Tc.Content=e=>{const{...t}=e;return t.value="string"===e.value?xc(e.value):e.value,(0,ue.createElement)(Sc.Content,t)};const Bc=Tc,Mc=e=>{const t=gt()(["stk-inspector-control",e.className],{"stk-inspector-control--allow-reset":e.allowReset,"stk--is-small":e.isSmall}),n=null!==e.showReset?e.showReset:void 0!==e.value&&e.value!==e.defaultValue&&e.value!==e.placeholder;return(0,ue.createElement)(mt.BaseControl,{help:e.help,className:t},e.hasLabel&&(0,ue.createElement)(rr,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens,afterButton:e.afterButton,helpTooltip:e.helpTooltip}),e.children,e.allowReset&&n&&(0,ue.createElement)(yt,{className:gt()("stk-inspector-control__reset-button",{"stk-control__reset-button--no-modified":!e.hasPanelModifiedIndicator}),isSmall:!0,isTertiary:!0,"aria-label":(0,v.__)("Reset",m.i18n),onClick:()=>{e.onReset?e.onReset():e.onChange(e.defaultValue)},icon:(0,ue.createElement)(mt.Dashicon,{icon:"image-rotate"})}))};Mc.defaultProps={className:"",help:"",id:"",screens:["desktop"],units:null,unit:"px",onChangeUnit:()=>{},value:"",onChange:()=>{},allowReset:!1,showReset:null,defaultValue:"",onReset:null,isLinked:!0,onLink:()=>{},afterButton:null,isSmall:!1,hasLabel:!0,hasPanelModifiedIndicator:!0};const Ic=Mc,Nc=function(e){return(0,ue.createElement)("svg",dt({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,ue.createElement)("path",{d:"M16.667 12.222v2.963a1.482 1.482 0 01-1.482 1.482H4.815a1.482 1.482 0 01-1.482-1.482v-2.963M13.704 7.037L10 3.333 6.296 7.037M10 3.333v8.89",stroke:"#293056",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},Rc=(0,ue.memo)((e=>{const t=Qe(`${e.attribute}Id`,e.responsive,e.hover),n=Qe(`${e.attribute}Url`,e.responsive,e.hover),o=Qe(`${e.attribute}HeightAttribute`,e.responsive,e.hover),a=Qe(`${e.attribute}WidthAttribute`,e.responsive,e.hover),l=Qe(`${e.attribute}Alt`,e.responsive,e.hover),r=Ae((e=>({[t]:e[t],[n]:e[n]}))),i=He(),s=void 0!==e.onChange?e.onChange:e=>{i({[t]:e.id,[n]:e.url,[o]:e.width||"",[a]:e.height||"",[l]:e.alt||""})},[c,d]=mn(e),u=Nn({onChange:e=>s({url:e,id:"",width:"",height:"",alt:""}),value:r[n]}),p=void 0!==e.imageId?e.imageId:r[t],h=void 0!==e.imageURL?e.imageURL:u.value||r[n],g=h&&h.match(/(mp4|webm|ogg)$/i)?"video":"image";return(0,ue.createElement)(gn,dt({},d,{valueCheckAttribute:e.attribute+"Url",className:gt()("ugb-image-control",e.className)}),h&&(0,ue.createElement)($e.MediaUpload,{onSelect:s,allowedTypes:e.allowedTypes,value:p,render:e=>(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)("div",{className:"ugb-image-preview-wrapper"},"video"===g&&(0,ue.createElement)("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:h,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()}}),"image"===g&&(0,ue.createElement)("img",{className:"ugb-image-preview",draggable:"false",src:h,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()},alt:(0,v.__)("preview",m.i18n)})))}),(0,ue.createElement)(Ln,dt({enable:e.isDynamic,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator,type:"image-url"},u),(0,ue.createElement)($e.MediaUpload,{onSelect:s,allowedTypes:e.allowedTypes,value:p,render:e=>(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(yt,{className:"ugb-image-upload",onClick:e.open,icon:(0,ue.createElement)(Nc,{viewBox:"0 0 20 20"}),isSecondary:!0,onKeyDown:t=>{13===t.keyCode&&e.open()}},(0,ue.createElement)("span",{className:"ugb-image-upload__label"},h?(0,v.__)("Replace",m.i18n):(0,v.__)("Upload",m.i18n)," ")))})),(0,ue.createElement)(bn,{allowReset:e.allowReset&&!e.dynamic,value:h,default:e.default,onChange:()=>{s({url:"",id:"",height:"",width:"",alt:""})},hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}))}));Rc.defaultProps={label:"",attribute:"",allowedTypes:["image"],responsive:!1,hover:!1,isDynamic:!0,value:void 0,onChange:void 0,allowReset:!0,hasPanelModifiedIndicator:!0};const Ac=Rc,Hc=(0,ue.memo)((e=>{const{help:t}=e,n=`inspector-toggle-control-${(0,jt.useInstanceId)(Hc)}`,[o,a]=cn(e.attribute,e.responsive,e.hover,e.changeCallback),l=void 0===e.checked?o:e.checked,r=void 0===e.onChange?a:e.onChange;let i,s;t&&(i=n+"__help",s=(0,d.isFunction)(t)?t(l):t);const c=gt()(["components-toggle-control","stk-toggle-control","stk-control",e.className]);return(0,ue.createElement)(Ic,{id:n,help:s,className:c,allowReset:!0,value:l,showReset:e.defaultValue?l!==e.defaultValue:l,onChange:r,hasLabel:!1,defaultValue:e.defaultValue},(0,ue.createElement)(mt.FormToggle,{id:n,checked:l,onChange:e=>r(e.target.checked),"aria-describedby":i}),(0,ue.createElement)("label",{htmlFor:n,className:"components-toggle-control__label"},(0,ue.createElement)(ln,dt({label:e.label},e.helpTooltip))))}));Hc.defaultProps={className:"",allowReset:!1,showReset:null,defaultValue:"",attribute:"",responsive:!1,hover:!1,checked:void 0,onChange:void 0};const Pc=Hc,Oc=e=>(0,ue.createElement)(Ic,{help:e.help,className:gt()("ugb-advanced-radio-control",e.className),label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens,allowReset:e.allowReset,value:e.selected,onChange:e.onChange,defaultValue:e.defaultValue},(0,ue.createElement)(mt.RadioControl,(0,d.omit)(e,["className","help","label","units","unit","onChangeUnit","screens","allowReset","defaultValue"])));Oc.defaultProps={onChange:()=>{},onChangeUnit:()=>{},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],allowReset:!0,defaultValue:""};const zc=Oc,Lc={x:.5,y:.5},$c=e=>{var t;const[n,o]=cn(e.attribute,e.responsive,e.hover),[a,l]=mn(e);a.url=An(a.url),null!==(t=a.url)&&void 0!==t&&t.includes("http")||(a.url=void 0);const r=void 0===e.value?n:e.value;return(0,ue.createElement)(gn,dt({},l,{className:gt()("stk-advanced-focal-point-control",e.className)}),(0,ue.createElement)(mt.FocalPointPicker,dt({},a,{value:r||Lc,onChange:void 0===e.onChange?o:e.onChange})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:r,default:e.default,onChange:void 0===e.onChange?o:e.onChange}))};$c.defaultProps={className:"",url:"",allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const Dc=(0,ue.memo)($c),Fc=e=>{const[t,n]=cn(e.attribute,e.responsive,e.hover),[o,a]=mn(e),{...l}=o,r=void 0===e.value?t:e.value,i=void 0===e.onChange?n:e.onChange;return(0,ue.createElement)(gn,dt({},a,{className:gt()("stk-advanced-token-field",e.className)}),(0,ue.createElement)(mt.FormTokenField,dt({},l,{value:r||[],onChange:i})),(0,ue.createElement)(bn,{allowReset:e.allowReset,value:r,default:e.default,onChange:i}))};Fc.defaultProps={className:"",allowReset:!0,default:"",attribute:"",value:void 0,onChange:void 0};const Uc=Fc,Wc={blur:{label:(0,v.__)("Blur",m.i18n),min:0,sliderMax:10,step:.1,placeholder:0,format:"%spx"},brightness:{label:(0,v.__)("Brightness",m.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},contrast:{label:(0,v.__)("Contrast",m.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},grayscale:{label:(0,v.__)("Grayscale",m.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"},"hue-rotate":{label:(0,v.__)("Hue Rotate",m.i18n),min:0,sliderMax:360,step:1,placeholder:0,format:"%sdeg"},invert:{label:(0,v.__)("Invert",m.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"},opacity:{label:(0,v.__)("Opacity",m.i18n),min:0,sliderMax:1,step:.01,placeholder:1,format:"%s"},saturate:{label:(0,v.__)("Saturate",m.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},sepia:{label:(0,v.__)("Sepia",m.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"}},Vc=e=>{const[t,n]=cn(e.attribute,e.responsive,e.hover),[o,a]=mn(e),[l,r]=(0,ue.useState)({}),i=void 0===e.value?t:e.value,s=void 0===e.onChange?n:e.onChange;return(0,ue.useEffect)((()=>{const e=[...i.matchAll(/([\w-]+)\(([^\)]+)\)/g)].reduce(((e,t)=>{const[,n,o]=t;return e[n]=parseFloat(o),e}),{});r(e)}),[i]),(0,ue.createElement)(gn,dt({},a,{boldLabel:!0,className:gt()("stk-image-filter-control","stk--no-padding",e.className)}),Object.keys(Wc).map(((e,t)=>{const n=Wc[e];return(0,ue.createElement)(ro,dt({key:t,allowReset:!0},(0,d.omit)(n,["format"]),{value:l[e],onChange:t=>{l[e]=t,r(l),s((e=>{const t=Object.keys(e).map((t=>{const n=e[t],{format:o,placeholder:a}=Wc[t];return isNaN(n)||""===n?"":`${t}(${(0,v.sprintf)(o,n||a)})`}));return(0,d.compact)(t).join(" ")})(l))}}))})))};Vc.defaultProps={allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const Gc=Vc,jc=(0,ue.createElement)(Ct,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ue.createElement)(wt,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),qc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getBlock:o,__experimentalGetAllowedBlocks:a}=(0,he.select)("core/block-editor");let l;const{innerBlocks:r}=o(e);if(t)l=(0,Ve.getBlockFromExample)(t,n);else{const t=(0,d.last)(r);l=(0,Ve.getBlockFromExample)((null==t?void 0:t.name)||a(e)[0].name,(0,d.pick)(t||{},["attributes","innerBlocks"]))}(0,he.dispatch)("core/block-editor").insertBlock(l,r.length,e)},Kc=e=>{let{label:t}=e;const{clientId:n}=(0,$e.useBlockEditContext)();return(0,ue.createElement)("div",{className:"block-editor-default-block-appender stk-column-appender"},(0,ue.createElement)(mt.Button,{onMouseDown:()=>qc(n),icon:jc,label:t,tooltipPosition:"bottom",className:"block-editor-inserter__toggle"}))};Kc.defaultProps={label:(0,v.__)("Add Column",m.i18n)};const Jc=Kc,Yc=e=>{const{blockName:t="stackable/column",attributes:n}=e,{clientId:o,name:a}=(0,$e.useBlockEditContext)(),{blockTitle:l}=(0,he.useSelect)((e=>{var t;return{blockTitle:null===(t=e("core/blocks").getBlockType(a))||void 0===t?void 0:t.title}}),[a]);return(0,ue.createElement)(mt.Placeholder,{icon:(0,ue.createElement)($i,null),label:l,instructions:(0,v.__)("There are no blocks in this group, please add one.",m.i18n)},(0,ue.createElement)(mt.Button,{isSecondary:!0,className:"ugb-design-library-block__button",onClick:()=>{qc(o,t,n)}},(0,v.__)("Add Block",m.i18n)))},Xc=()=>(0,le.applyFilters)("stackable.shadows",["none","0 0 0 1px rgba(120, 120, 120, 0.1)","0 0 0 2px rgba(120, 120, 120, 0.1)","0 5px 5px 0 rgba(18, 63, 82, 0.035)","0px 2px 20px rgba(153, 153, 153, 0.2)","0 5px 30px -10px rgba(18, 63, 82, 0.3)","0px 10px 30px rgba(0, 0, 0, 0.05)","7px 5px 30px rgba(72, 73, 121, 0.15)","0px 10px 60px rgba(0, 0, 0, 0.1)","0px 70px 90px -20px rgba(72, 73, 121, 0.30)"]),Qc=[{component:Pc,key:"inset",props:{label:(0,v.__)("Inset",m.i18n)},default:!1},{component:ro,key:"horizontalOffset",props:{label:(0,v.__)("Horizontal Offset",m.i18n),placeholder:0,sliderMin:-100,sliderMax:100},format:"%spx",default:"0px"},{component:ro,key:"verticalOffset",props:{label:(0,v.__)("Vertical Offset",m.i18n),placeholder:0,sliderMin:-100,sliderMax:100},format:"%spx",default:"0px"},{component:ro,key:"blur",props:{label:(0,v.__)("Blur",m.i18n),placeholder:0,sliderMin:0,sliderMax:100},format:"%spx",default:"0px"},{component:ro,key:"shadowSpread",props:{label:(0,v.__)("Shadow Spread",m.i18n),placeholder:0,sliderMin:0,sliderMax:100},format:"%spx",default:"0px",show:e=>!e.isFilter},{component:Cn,key:"shadowColor",props:{label:(0,v.__)("Shadow Color",m.i18n)},default:"#000000"}],Zc=e=>{const[t,n]=(0,ue.useState)({}),[o,a]=(0,ue.useState)({}),[l,r]=cn(e.attribute,e.responsive,e.hover),[i,s]=mn(e),c=void 0===e.value?l:e.value,u=void 0===e.onChange?r:e.onChange,p=(e,t,n,o)=>{if(e){let a=e.trim();a.startsWith("inset")?(t.inset=!0,a=a.replace(/^inset\s*/,"")):t.inset=!1;const[l,r,i,s,c]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;const n=e.split(" "),o=[];for(let e=0;e<t-1;e++)n.length?o.push(n.shift()):o.push("");return o.push(n.join(" ")),o}(a,o?4:5);t.horizontalOffset=isNaN(parseInt(l))?0:parseInt(l),t.verticalOffset=isNaN(parseInt(r))?0:parseInt(r),t.blur=isNaN(parseInt(i))?0:parseInt(i),t.shadowSpread=isNaN(parseInt(s))?0:parseInt(s),t.shadowColor=c||"",o&&(t.shadowSpread="",t.shadowColor=s),n({...t})}};return(0,ue.useEffect)((()=>{p(c,t,n,e.isFilter)}),[c,e.isFilter]),(0,ue.useEffect)((()=>{p(e.placeholder,o,a,e.isFilter)}),[e.placeholder,e.isFilter]),(0,ue.createElement)(Zt,{placement:"top-start",className:"shadow-control__popover",anchorRect:e.anchorRect,onEscape:e.onEscape},(0,ue.createElement)("div",{className:"components-panel__body is-opened"},(0,ue.createElement)(gn,dt({},s,{label:(0,v.__)("Advanced Shadow Options",m.i18n),boldLabel:!0}),Qc.map((a=>{if(!e.hasInset&&"inset"===a.key)return null;const l={...a.props},r=a.component;return a.show&&!a.show(e.parentProps)?null:("inset"===a.key&&(l.checked=!!t[a.key]),"shadowColor"===a.key&&(l.default=o[a.key]||"",l.value=t[a.key]||o[a.key]||""),(0,ue.createElement)(r,dt({key:a.key,allowReset:!0,value:t[a.key]||""},l,{placeholder:o[a.key]||"",onChange:o=>{const l=(a.changeCallback||(e=>e))(o);t[a.key]=l,n({...t}),u(((e,t)=>(0,d.compact)(Qc.map((n=>{const{key:o}=n;return"inset"===o?t[o]?"inset":"":!n.show||n.show(e)?n.format&&void 0!==t[o]&&""!==t[o]?(0,v.sprintf)(n.format,t[o]):t[o]||n.default||"":void 0}))).join(" "))(e.parentProps,t))}})))})))))};Zc.defaultProps={hasInset:!0,isFilter:!1};const ed=(0,ue.memo)((e=>{var t;const{options:n,label:o,...a}=e,l=n||Xc(),r=(0,ue.useRef)(null),[i,s]=(0,ue.useState)(!1),c=e=>e?-1===l.indexOf(e)?"custom":l.indexOf(e):"",[d,u]=cn(e.attribute,e.responsive,e.hover,c,(e=>""!==e?l[e]:e)),p=void 0===e.value?d:e.value,[h,g]=mn(a);return(0,ue.useEffect)((()=>{const e=e=>{i&&(e.target.closest(".shadow-control__popover")||e.target.closest(".stk-shadow-control__more-button")||e.target.closest(".components-color-picker")||e.target.closest(".react-autosuggest__suggestions-container")||e.target.closest(".components-dropdown__content")||s(!1))};return document.body.addEventListener("mousedown",e),()=>document.body.removeEventListener("mousedown",e)}),[i]),(0,ue.useEffect)((()=>{}),[p,i]),(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ro,dt({},h,g,{attribute:e.attribute,label:o,value:p,onChange:void 0===e.onChange?u:e.onChange,min:0,max:l.length-1,allowReset:!0,helpTooltip:e.helpTooltip,hover:e.hover,placeholder:"custom"===p?(0,v.__)("Custom",m.i18n):c(e.placeholder),after:(0,ue.createElement)(mt.Button,{className:"stk-shadow-control__more-button",ref:r,isSmall:!0,isTertiary:!0,isPressed:i||"custom"===p,label:(0,v.__)("Shadow Settings",m.i18n),onClick:()=>s(!i),icon:(0,ue.createElement)(mt.Dashicon,{icon:"admin-generic"})})})),i&&(0,ue.createElement)(Zc,dt({},g,{anchorRect:null===(t=r.current)||void 0===t?void 0:t.getBoundingClientRect(),attribute:e.attribute,responsive:e.responsive,placeholder:e.placeholder,hover:e.hover,parentProps:e,hasInset:e.hasInset,isFilter:e.isFilter,onEscape:()=>s(!1),value:e.shadowFilterValue,onChange:e.shadowFilterOnChange})))}),d.isEqual);ed.defaultProps={attribute:"",label:(0,v.__)("Shadow / Outline",m.i18n),placeholder:"",options:null,valueCallback:null,changeCallback:null,isFilter:!1,hasInset:!0,helpTooltip:{video:"general-shadow",title:(0,v.__)("Shadow/Outline",m.i18n),description:(0,v.__)("Adjusts the intensity of the shadow/outline of the block and the appearance of the block border",m.i18n)}};const td=ed,nd=e=>{const[t,n]=cn(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[o,a]=mn(e),{isDynamic:l,...r}=o,i=void 0===e.value?t:e.value,s=void 0===e.onChange?n:e.onChange,c=Nn({value:i,onChange:s}),d=gt()(["stk-link-control",e.className],{"stk--has-value":i});return(0,ue.createElement)(gn,dt({},a,{className:d}),(0,ue.createElement)(Ln,dt({type:["link","image-url"],enable:l},c),(0,ue.createElement)("div",{className:"stk-link-control__input"},(0,ue.createElement)($e.__experimentalLinkControl,dt({},r,{value:{url:i},onChange:e=>{let{url:t}=e;return s(t)},settings:[],forceIsEditingLink:!i})))),(0,ue.createElement)(bn,{allowReset:e.allowReset&&!e.dynamic,value:i,onChange:()=>s("")}))};nd.defaultProps={className:"",label:"",screens:["desktop"],help:"",value:void 0,onChange:void 0,showSuggestions:!0,isDynamic:!0,allowReset:!0};const od=nd,ad=wp.keycodes,ld=e=>{const{options:t,value:n}=e;return(0,ue.createElement)("div",{className:gt()(e.className,"stk-block-editor-block-styles")},t.map(((t,o)=>(0,ue.createElement)(rd,{key:o,isActive:n===t[e.activeProperty],onSelect:e.onSelect,option:t}))))};ld.defaultProps={className:"",onSelect:()=>{},options:[],value:"",activeProperty:"value"};const rd=(0,ue.memo)((e=>{const{option:t,isActive:n,onSelect:o}=e,a=e=>{t.disabled||n||o(e)},l=t.icon;return(0,ue.createElement)("div",{className:gt()("stk-style-control__option","stk-block-editor-block-styles__item",{"is-active":n,"is-disabled":t.disabled}),onClick:()=>a(t),onKeyDown:e=>{ad.ENTER!==e.keyCode&&ad.SPACE!==e.keyCode||(e.preventDefault(),a(t))},role:"button",tabIndex:"0","aria-label":t.label||""},(0,ue.createElement)("div",{className:"stk-block-editor-block-styles__item-preview stk-style-control__image"},t.image||l&&(0,ue.createElement)(l,{className:"stk-style-control__image__icon"})),t.label&&(0,ue.createElement)("div",{className:"stk-block-editor-block-styles__item-label"},t.label))}));rd.defaultProps={option:{},isActive:!1,onSelect:()=>{}};const id=ld,sd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object.keys(e).reduce(((o,a)=>({...o,[Dm(a,t,t,n?".editor-styles-wrapper":"")]:e[a]})),{})},cd=e=>Object.keys(e).reduce(((t,n)=>{const o=Object.keys(e[n]).reduce(((t,o)=>{const a=e[n][o];if(void 0===a)return t;const l=o.replace(/^(--?)?(.*?$)/,((e,t,n)=>`${t||""}${(0,d.kebabCase)(n)}`));return t+"\n\t"+l+": "+a+";"}),"");return t.push("\n\n"+n+" {"+o+"\n}"),t}),[]),dd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["desktop"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:768;const o=(0,d.sortBy)("string"==typeof e?e.split(",").map((e=>e.trim())):e);return(0,d.isEqual)(o,["desktop","tablet"])?"@media screen and (min-width: "+n+"px)":(0,d.isEqual)(o,["desktop"])?"@media screen and (min-width: "+t+"px)":(0,d.isEqual)(o,["mobile","tablet"])?"@media screen and (max-width: "+(t-1)+"px)":(0,d.isEqual)(o,["tablet"])?"@media screen and (min-width: "+n+"px) and (max-width: "+(t-1)+"px)":(0,d.isEqual)(o,["mobile"])?"@media screen and (max-width: "+(n-1)+"px)":null},ud=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:768,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;const r=[];Object.keys(e).forEach((t=>{if(["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","ie11","editor","saveOnly","custom"].includes(t)){const n=t;Object.keys(e[n]).forEach((t=>{Object.keys(e[n][t]).forEach((o=>void 0===e[n][t][o]?delete e[n][t][o]:{})),Object.keys(e[n][t]).length||delete e[n][t]})),Object.keys(e[n]).length||delete e[n]}else Object.keys(e[t]).forEach((n=>void 0===e[t][n]?delete e[t][n]:{})),Object.keys(e[t]).length||delete e[t]}));const i=(0,d.omit)(e,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","ie11","editor","saveOnly","custom"]);if(Object.keys(i).length){const e=sd(i,t,a);Array.prototype.push.apply(r,cd(e))}if(void 0!==e.desktopTablet){const l=sd(e.desktopTablet,t,a),i=cd(l,!a);i&&(a?i.forEach((e=>{r.push("\n\n"+dd(["desktop","tablet"],n,o)+" {\n"+e+" }")})):r.push(`\n\n${dd(["desktop","tablet"],n,o)} {\n${i.join("")} }`))}if(void 0!==e.desktopOnly){const l=sd(e.desktopOnly,t,a),i=cd(l,!a);i&&(a?i.forEach((e=>{r.push("\n\n"+dd(["desktop"],n,o)+" {\n"+e+" }")})):r.push(`\n\n${dd(["desktop"],n,o)} {\n${i.join("")} }`))}if(void 0!==e.tablet){const l=sd(e.tablet,t,a),i=cd(l,!a);i&&(a?i.forEach((e=>{r.push("\n\n"+dd(["mobile","tablet"],n,o)+" {\n"+e+" }")})):r.push(`\n\n${dd(["mobile","tablet"],n,o)} {\n${i.join("")} }`))}if(void 0!==e.tabletOnly){const l=sd(e.tabletOnly,t,a),i=cd(l,!a);i&&(a?i.forEach((e=>{r.push("\n\n"+dd(["tablet"],n,o)+" {\n"+e+" }")})):r.push(`\n\n${dd(["tablet"],n,o)} {\n${i.join("")} }`))}if(void 0!==e.mobile){const l=sd(e.mobile,t,a),i=cd(l,!a);i&&(a?i.forEach((e=>{r.push("\n\n"+dd(["mobile"],n,o)+" {\n"+e+" }")})):r.push(`\n\n${dd(["mobile"],n,o)} {\n${i.join("")} }`))}if(void 0!==e.ie11){const n=sd(e.ie11,t,a),o=cd(n,!a);o&&r.push(`\n\n@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {\n${o.join("")} }`)}return void 0!==e.custom&&Array.prototype.push.apply(r,cd(e.custom)),a&&void 0!==e.editor&&!l&&Array.prototype.push.apply(r,ud(e.editor,t,n,o,a,l++)),a||void 0===e.saveOnly||l||Array.prototype.push.apply(r,ud(e.saveOnly,t,n,o,a,l++)),r},pd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Desktop";const n=[(0,d.omit)(e,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])];return"Desktop"===t?(n.push(e.desktopTablet||{}),n.push(e.desktopOnly||{}),e.editor&&(n.push((0,d.omit)(e.editor,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])),n.push(e.editor.desktopTablet||{}),n.push(e.editor.desktopOnly||{}))):"Tablet"===t?(n.push(e.desktopTablet||{}),n.push(e.tablet||{}),n.push(e.tabletOnly||{}),e.editor&&(n.push((0,d.omit)(e.editor,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])),n.push(e.editor.desktopTablet||{}),n.push(e.editor.tablet||{}),n.push(e.editor.tabletOnly||{}))):(n.push(e.tablet||{}),n.push(e.mobile||{}),e.editor&&(n.push((0,d.omit)(e.editor,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])),n.push(e.editor.tablet||{}),n.push(e.editor.mobile||{}))),n.forEach((e=>{Object.keys(e).forEach((t=>{Object.keys(e[t]).forEach((n=>void 0===e[t][n]?delete e[t][n]:{})),Object.keys(e[t]).length||delete e[t]}))})),N().all(n)},hd=(0,ue.memo)((e=>{const{breakTablet:t=1024,breakMobile:n=768,styleFunc:o=(()=>{})}=e,a=ve(),{clientId:l}=(0,$e.useBlockEditContext)(),r=Ae(),i=Im(r.uniqueId),s=o({...r,clientId:l}).map((e=>{const o=pd(e,a);return ud(o,i,t,n,!0)}));return s?s.map(((e,t)=>(0,ue.createElement)("style",{key:t},e))):null}));hd.Content=e=>{const{breakTablet:t=1024,breakMobile:n=768,styleFunc:o=(()=>{}),attributes:a={}}=e,l=Im(a.uniqueId),r=ud(gd(o(a)),l,t,n,!1);return r&&r.length?(0,ue.createElement)("style",null,Om(r.join(""))):null},hd.displayName="Style";const gd=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=N().all(e);return t?bd(n):n};hd.addAttributes=e=>{e.add({attributes:{generatedCss:{type:"string",source:"html",selector:".stk-block > style:not(.stk-custom-css),\n\t\t\t\t\t .stk-block > * > style:not(.stk-custom-css)",default:""}},versionAdded:"3.0.3",versionDeprecated:""})};const md=(0,ue.memo)((e=>{var t;const{version:n,versionAdded:o,versionDeprecated:a,styles:l,breakTablet:r,breakMobile:i}=e,s=ve(),c=Ae((e=>e.uniqueId)),d=Im(c),{clientId:u}=(0,$e.useBlockEditContext)();let p=d;if(!d){const e=Gm(u);p=Im(e)}const h=(null===(t=p)||void 0===t?void 0:t.replace("stk-",""))||"",g=Yh(h),m=g&&!p.match(/-[\d]$/g)?p+`-${g}`:p,v=(0,ue.useMemo)((()=>n?M()(n,o)>=0&&(!a||-1===M()(n,a)):!!a),[n,o,a]),b=Sh((()=>{if(!v)return"";const e=pd(l,s);return ud(bd(e),m,r,i).join("")}),[v,l,s,m,r,i]),f=An(b);return v&&b&&m&&f?(0,ue.createElement)("style",null,f):null}));md.defaultProps={styles:null,blockUniqueClassName:"",breakTablet:1024,breakMobile:768,doImportant:!0,deviceType:"",version:"",versionAdded:"",versionDeprecated:!1},md.Content=e=>{const{version:t,versionAdded:n,versionDeprecated:o,styles:a,blockUniqueClassName:l,breakTablet:r,breakMobile:i}=e;if(!e.blockUniqueClassName)return null;if(!(t?M()(t,n)>=0&&(!o||-1===M()(t,o)):o))return null;const s=ud(bd(a),l,r,i);return s?(0,ue.createElement)(ue.Fragment,null,Om(s.join(""))):null},md.Content.defaultProps={styles:null,blockUniqueClassName:"",breakTablet:1024,breakMobile:768,doImportant:!0,version:"",versionAdded:"",versionDeprecated:!1};const vd=md,bd=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"object"!=typeof e?cg(e,t):Object.keys(e).reduce(((n,o)=>({...n,[o]:bd(e[o],t)})),{})},fd=(0,ue.forwardRef)(((e,t)=>{const{children:n,className:o,tagName:a,...l}=e,r=gt()(["stk-link",o]),i=a||"a";return(0,ue.createElement)(i,dt({ref:t,className:r,href:"a"===a?"javascript:void(0)":void 0},l),n)}));fd.defaultProps={className:"",tagName:"a"},fd.Content=e=>{const t=gt()(["stk-link",e.className]),n=(0,d.omit)(e,["target","rel","tagName"]),o=e.tagName||"a";e.target&&(n.target=e.target);const a=(e.rel||"").split(" ").filter((e=>!!e));return"_blank"===e.target&&(a.includes("noreferrer")||a.push("noreferrer"),a.includes("noopener")||a.push("noopener")),a.length&&(n.rel=a.join(" ")),(0,ue.createElement)(o,dt({},n,{className:t}))},fd.Content.defaultProps={className:"",target:"",rel:"",href:"",tagName:"a"};const kd=fd,yd=[.25,.33333,.5,.66666,.75,1],wd=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1],Cd=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"right",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const l=e.slice(0,t).reduce(((e,t)=>e+t),0),r=l+e[t],i=a?wd:yd;return i.map((e=>{const t=n*e;return"right"===o?t-l:r-t}))},_d=yd.map((e=>100*e)),Ed=wd.map((e=>100*e)),Sd=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t?Ed:_d;return e.map((e=>{let t=e;return n.some((n=>Math.abs(e-n)<.2&&(t=n,!0))),t}))},xd=(0,ue.createContext)({showColumnTooltip:!1,setShowColumnTooltip:()=>{}}),Td=e=>{const{providerValue:t,...n}=e;return(0,ue.createElement)(xd.Provider,{value:t},(0,ue.createElement)($e.InnerBlocks,n))};Td.useContext=()=>{const[e,t]=(0,ue.useState)(!1);return[{showColumnTooltip:e,setShowColumnTooltip:t},e?"stk--column-tooltip-hovered":""]};const Bd=Td,Md=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),(0,ue.createElement)("path",{d:"M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0l154.7 154 154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z"}))},Id=e=>{const t=[];return e.reduce(((e,n)=>((0,d.sum)(e[e.length-1])+n>100?e.push([n]):e[e.length-1].push(n),t.push(e.length),e)),[[]]),t},Nd={Desktop:5,Tablet:10,Mobile:10},Rd=e=>(Math.trunc(10*e)/10).toFixed(1),Ad=e=>{const{clientId:t}=(0,$e.useBlockEditContext)(),{getEditorDom:n}=(0,he.useSelect)("stackable/editor-dom"),{isFirstBlock:o,isLastBlock:a,isOnlyBlock:l,adjacentBlocks:r,blockIndex:i,parentBlock:s}=(0,he.useSelect)((e=>{const{getBlockOrder:n,getBlockRootClientId:o,getBlock:a}=e("core/block-editor"),l=o(t),r=a(l),i=r.innerBlocks,s=n(l).indexOf(t);return{isFirstBlock:0===s,isLastBlock:s===i.length-1,isOnlyBlock:1===i.length,adjacentBlocks:i,blockIndex:s,parentBlock:r}}),[t]),c=!e.context["stackable/innerBlockOrientation"],u=!!e.context["stackable/columnWrapDesktop"],p=ve(),[h,g]=(0,ue.useState)([]),[m,v]=(0,ue.useState)(""),[b,f]=(0,ue.useState)([]),[k,y]=(0,ue.useState)(2e3),[w,C]=(0,ue.useState)(""),[_,E]=(0,ue.useState)(null),S="Desktop"===p,x="Tablet"===p,[T,B]=(0,ue.useState)(null==r?void 0:r.length);(0,ue.useEffect)((()=>{T&&null!=r&&r.length?(T!==(null==r?void 0:r.length)&&(e.onResetDesktop(),B(r.length)),(null==r?void 0:r.length)<T&&1===(null==r?void 0:r.length)&&e.onResetTabletMobile()):B(null==r?void 0:r.length)}),[r]),(0,ue.useEffect)((()=>{s&&S&&!u&&O()}),[u]);const[M,I]=(0,ue.useState)(!1);(0,ue.useEffect)((()=>(I(!0),()=>{I(!1)})),[]);const N=pe();(0,ue.useEffect)((()=>{E(null)}),[N]);const R=gt()(["stk-column-resizeable",e.className]),A={top:!1,right:"Desktop"===p?!l&&(!a||u):!l,bottom:!1,left:"Desktop"===p&&!l&&!o&&!u,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},H=null==s?void 0:s.clientId,P=(0,ue.useRef)(void 0),O=()=>{const t=(0,he.select)("core/block-editor").getBlock(H);if(!t)return;const n=P.current=t.innerBlocks;let o=0;const a=n.map((e=>{let{attributes:t}=e;return o+=t.columnWidth,t.columnWidth}));o<100&&o>0&&(a[a.length-1]+=100-o,(0,d.isEqual)(a.map((e=>0|e)),[33,33,33])?e.onChangeDesktop([33.33,33.33,33.33]):e.onChangeDesktop(a))},[z,L]=(0,ue.useState)(!1),[$,D]=(0,ue.useState)(!1),{showColumnTooltip:F,setShowColumnTooltip:U}=(0,ue.useContext)(xd);return(0,ue.useEffect)((()=>{z||($&&!F?U(t):$||F!==t||U(!1))}),[F,U,$,z,t]),(0,ue.createElement)(mt.ResizableBox,{enable:!!e.isHovered&&A,minWidth:"30",minHeight:"30",maxWidth:k,className:R,showHandle:!(!c||!e.isHovered)&&e.showHandle,snap:_,snapGap:20,onResizeStart:(e,o)=>{const a=(0,he.select)("core/block-editor").getBlock(H),{columnGap:l,columnGapTablet:r,columnGapMobile:s}=(null==a?void 0:a.attributes)||{},c=l||0,d=n(),p=P.current=a.innerBlocks;if(S&&!u){const e=c*(p.length-1),t=d.querySelector(`[data-block="${H}"] .stk-inner-blocks`).clientWidth-e,n=p.every((e=>{let{attributes:t}=e;return!t.columnWidth})),a=p.map((e=>{let{clientId:o,attributes:a}=e;if(n)return 1*t/p.length;if(a.columnWidth)return t*a.columnWidth/100;const l=d.querySelector(`[data-block="${o}"]`);return(null==l?void 0:l.clientWidth)||0}));g(a);const l="right"===o?i+1:i-1,r=a[i]+(a[l]-30);y(r)}else{const e=p.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/p.length}));g(e);const n=d.querySelector(`[data-block="${t}"]`),o=(null==n?void 0:n.clientWidth)||0;v(o);const a=d.querySelector(`[data-block="${H}"]`),l=(null==a?void 0:a.clientWidth)||0;y(l)}D(!0)},onResize:(e,n,o,a)=>{let l=[];const r=P.current;if(S&&!u){const e=[...h],t=h.reduce(((e,t)=>e+t),0),o="right"===n?i+1:i-1;e[o]-=a.width,e[i]+=a.width,l=(e||[]).map((e=>parseFloat(Rd(e/t*100)))),l=Sd(l,N);let s=l.reduce(((e,t)=>e+t),0);100!==s&&(l[o]=parseFloat(Rd(l[o]+100-s))),s=l.reduce(((e,t)=>e+t),0),100!==s&&(l[o]=l[o]+100-s),f(l);const c=l.map(((e,t)=>`.editor-styles-wrapper [data-block][data-block="${r[t].clientId}"] {\n\t\t\t\t\tflex: 1 1 ${e}% !important;\n\t\t\t\t\tmax-width: ${e}% !important;\n\t\t\t\t}\n\t\t\t\t[data-block="${r[t].clientId}"] .stk-resizable-column__size-tooltip {\n\t\t\t\t\t--width: '${Rd(e)}%' !important;\n\t\t\t\t}`)).join("");C(c),_||E({x:Cd(e,i,t,n,N)})}else{const e=m+a.width;l=(0,d.clamp)(parseFloat(Rd(e/k*100)),0,100),l=Sd([l],N)[0],f(l);const o=[...h];o[i]=l;const r=Id(o),s=r.filter((e=>e===r[i])).length,c=`.editor-styles-wrapper [data-block][data-block="${t}"] {\n\t\t\t\t\tflex: 1 1 calc(${l}% - var(--stk-column-gap, 0px) * ${s-1} / ${s} ) !important;\n\t\t\t\t\tmax-width: calc(${l}% - var(--stk-column-gap, 0px) * ${s-1} / ${s} ) !important;\n\t\t\t\t}\n\t\t\t\t[data-block="${t}"] .stk-resizable-column__size-tooltip {\n\t\t\t\t\t--width: '${Rd(l)}%' !important;\n\t\t\t\t}`;C(c),_||E({x:Cd([100],0,k,n,N)})}},onResizeStop:(t,n,o,a)=>{const l=P.current;if(a.width)if(S&&!u)(0,d.isEqual)(b.map((e=>0|e)),[33,33,33])?e.onChangeDesktop([33.33,33.33,33.33]):e.onChangeDesktop(b);else if(S){const t=l.map((e=>{let{attributes:t}=e;return t.columnWidth||100/l.length}));t[i]=b,e.onChangeDesktopWrap(b,t,i)}else if(x){const t=l.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/l.length}));t[i]=b,e.onChangeTablet(b,t,i)}else{const t=l.map((e=>{let{attributes:t}=e;return t.columnWidthMobile||100}));t[i]=b,e.onChangeMobile(b,t,i)}w&&setTimeout((()=>{M&&C("")}),400),E(null),D(!1),P.current=void 0}},c&&(0,ue.createElement)(Hd,{isVisible:!l,adjacentBlocks:r,isOnlyBlock:l,blockIndex:i,isLastBlock:a,isFirstBlock:o,value:S?e.columnWidth:x?e.columnWidthTablet||e.columnWidth:e.columnWidthMobile,onChange:t=>{if(""!==t&&t<Nd[p])return;const n=(0,he.select)("core/block-editor").getBlock(H).innerBlocks;if(S&&!u){const o=n.every((e=>{let{attributes:t}=e;return!t.columnWidth})),a=n.map((e=>{let{attributes:t}=e;return o?100/n.length:t.columnWidth})),l=n.length-1!==i?i+1:i-1,r=a[i]+(a[l]-5),s=(0,d.clamp)(t,Nd.Desktop,r),c=s-a[i];a[l]-=c,a[i]=s,e.onChangeDesktop(a)}else if(S){const o=n.map((e=>{let{attributes:t}=e;return t.columnWidth||100/n.length})),a=t?(0,d.clamp)(t,Nd[p],100):"";o[i]=a,e.onChangeDesktopWrap(a,o,i)}else if(x){const o=n.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/n.length})),a=t?(0,d.clamp)(t,Nd[p],100):"";o[i]=a,e.onChangeTablet(a,o,i)}else{const o=n.map((e=>{let{attributes:t}=e;return t.columnWidthMobile||100})),a=t?(0,d.clamp)(t,Nd[p],100):"";o[i]=a,e.onChangeMobile(a,o,i)}},onTogglePopup:e=>{L(e),e?U(t):$||F!==t||U(!1)},tooltipProps:{onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1)}}),w&&(0,ue.createElement)("style",null,w),e.children)},Hd=(0,ue.memo)((e=>{const{adjacentBlocks:t,isOnlyBlock:n,blockIndex:o,isLastBlock:a,isFirstBlock:l}=e,r=ve(),[i,s]=(0,ue.useState)(!1),[c,u]=(0,ue.useState)(""),[p,h]=(0,ue.useState)(""),g=(0,ue.useRef)(),b=(0,ue.useRef)();let f="";if(void 0!==t&&!e.value&&!c)if("Desktop"===r||"Tablet"===r){const e=Rd(100/t.length);f="33.3"===e.toString()?33.33:e}else f=100;const k=(e.value?Rd(parseFloat(e.value)):"")||c||f,y=k!==(0,v.__)("Auto",m.i18n)?`'${k}%'`:`'${k}'`;return(0,ue.useEffect)((()=>{e.onTogglePopup&&e.onTogglePopup(i),i&&(u(e.value),h(e.value||(f!==(0,v.__)("Auto",m.i18n)?f:"")),setTimeout((()=>{var e;null===(e=g.current)||void 0===e||e.querySelector("input").select()}),1))}),[i]),(0,ue.useEffect)((()=>{var e;const t=()=>{s(!0)};return null===(e=b.current)||void 0===e||e.addEventListener("openColumnInputPopup",t),()=>{var e;null===(e=b.current)||void 0===e||e.removeEventListener("openColumnInputPopup",t)}}),[b.current]),(0,ue.createElement)(ue.Fragment,null,!n&&i&&(0,ue.createElement)(Zt,{className:"stk-resizable-column__popup",anchorRef:b.current,position:"bottom right",onFocusOutside:e=>{e.relatedTarget!==b.current&&s(!1)},onEscape:()=>s(!1)},(0,ue.createElement)("div",{ref:g},(0,ue.createElement)(Dn,{label:(0,v.__)("Column",m.i18n),className:"stk-resizable-column__input",value:p,allowReset:!1,onChange:t=>{const n="Desktop"===r?c:"",o=(0,d.clamp)(t,0,100)||n;""===o&&u(""),e.onChange(o),h(t)},onKeyDown:e=>{9===e.keyCode&&(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right";if(window.CustomEvent)if("right"===e){const e=a?0:o+1,t=b.current.closest(".stk-row").querySelectorAll(".stk-resizable-column__size-tooltip")[e];null==t||t.dispatchEvent(new window.CustomEvent("openColumnInputPopup"))}else{const e=l?t.length-1:o-1,n=b.current.closest(".stk-row").querySelectorAll(".stk-resizable-column__size-tooltip")[e];null==n||n.dispatchEvent(new window.CustomEvent("openColumnInputPopup"))}}(e.shiftKey?"left":"right"),e.stopPropagation(),e.preventDefault())},placeholder:c||f||e.value}))),!n&&(0,ue.createElement)("div",dt({},e.tooltipProps,{className:"stk-resizable-column__size-tooltip",ref:b,style:{"--width":y},onMouseDown:e=>{s(!i),e.preventDefault()},onKeyDown:e=>{13===e.keyCode&&s(!i)},role:"button",tabIndex:"0"}),(0,ue.createElement)(Md,{fill:"currentColor",width:"10"})))})),Pd=()=>{};Hd.defaultProps={isVisible:!0,value:"",onChange:Pd,tooltipProps:{},onTogglePopup:null},Ad.defaultProps={className:"",context:null,showHandle:!0,columnWidth:"",columnWidthTablet:"",columnWidthMobile:"",isHovered:!1,onChangeDesktop:Pd,onChangeTablet:Pd,onChangeMobile:Pd,onResetDesktop:Pd};const Od=(0,ue.memo)(Ad),zd=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),(0,ue.createElement)("path",{d:"M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0l154.7 154 154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z"}))},Ld=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%";return"%"===n&&(t=(0,d.clamp)(e,5,100)),t=Math.max(e,5),isNaN(t)?"":t},$d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"height",o=arguments.length>3?arguments[3]:void 0;if("px"===t)return"height"===n?null==o?void 0:o.clientHeight:null==o?void 0:o.clientWidth;const a=null==o?void 0:o.closest(".stk-img-resizer"),l=null==a?void 0:a.parentElement;if(!l)return e;const r="height"===n?l.clientHeight:l.clientWidth;return(0,d.clamp)(10*Math.round(e/r*10),10,100)},Dd=e=>{const[t,n]=(0,ue.useState)(!1),[o,a]=(0,ue.useState)(""),[l,r]=(0,ue.useState)(""),[i,s]=(0,ue.useState)(null),[c,d]=(0,ue.useState)(null),u=(0,ue.useRef)(),p=(0,ue.useRef)(),h=()=>{setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.querySelector("input").select()}),1)};(0,ue.useEffect)((()=>{s(null),d(null),t?(a(e.width),r(e.height),h()):(a(""),r(""))}),[t]);const g=gt()(["stk-resizer-tooltip"],{"stk--is-editing":t}),b=gt()(["stk-resizer-popup"],{"stk--is-wide":e.enableWidth&&e.enableHeight}),f=(0,ue.createElement)(Dn,{placeholder:e.widthPlaceholder,default:"auto"===e.defaultWidth?"":e.defaultWidth,type:"number",label:e.enableWidth&&e.enableHeight?(0,v.__)("Width",m.i18n):(0,v.sprintf)((0,v.__)("%s Width",m.i18n),e.label),className:"stk-resizer-popup__size",units:e.widthUnits,unit:e.widthUnit,value:"auto"===o?"":o,allowReset:e.allowReset,onChangeUnit:t=>{if(t===e.widthUnit)return;let n=null;if(null===i){var o;s(e.width);const l=null===(o=u.current)||void 0===o?void 0:o.parentElement.querySelector(".stk-img"),r=$d(e.width,t,"width",l);a(r),n=Ld(r,t)}else a(i),n=i,s(null);e.onChangeWidth({value:n,unit:t}),h()},onChange:t=>{const n="auto"===t?"":t;s(null),a(n),n>=5?e.onChangeWidth({value:Ld(n,e.widthUnit),unit:e.widthUnit}):""===n&&(s(null),a(""),e.enableWidth&&e.onChangeWidth({value:"",unit:""}))}}),k=(0,ue.createElement)(Dn,{placeholder:e.heightPlaceholder,default:"auto"===e.defaultHeight?"":e.defaultHeight,type:"number",label:e.enableWidth&&e.enableHeight?(0,v.__)("Height",m.i18n):(0,v.sprintf)((0,v.__)("%s Height",m.i18n),e.label),className:"stk-resizer-popup__size",units:e.heightUnits,unit:e.heightUnit,value:"auto"===l?"":l,allowReset:e.allowReset,onChangeUnit:t=>{if(t===e.heightUnit)return;let n=null;if(null===c){var o;d(e.height);const a=null===(o=u.current)||void 0===o?void 0:o.parentElement.querySelector(".stk-img"),l=$d(e.height,t,"height",a);r(l),n=Ld(l,t)}else r(c),n=c,d(null);e.onChangeHeight({value:n,unit:t}),h()},onChange:t=>{const n="auto"===t?"":t;d(null),r(n),n>=5?e.onChangeHeight({value:Ld(n,e.heightUnit),unit:e.heightUnit}):""===n&&(d(null),r(""),e.enableHeight&&e.onChangeHeight({value:"",unit:""}))}});let y=o||0===o?o:e.width||0===e.width?e.width:e.widthPlaceholder;y="auto"===y?"auto":`${y}${e.widthUnit}`;let w=l||0===l?l:e.height||0===e.height?e.height:e.heightPlaceholder;return w="auto"===w?"auto":`${w}${e.heightUnit}`,(0,ue.createElement)(ue.Fragment,null,t&&(0,ue.createElement)(Zt,{className:b,anchorRef:u.current,position:"bottom right",onFocusOutside:e=>{e.relatedTarget!==u.current&&n(!1)},onEscape:()=>n(!1)},(0,ue.createElement)("div",{ref:p},e.enableWidth&&e.enableHeight&&(0,ue.createElement)(mt.BaseControl,{help:e.help,className:gt()("stk-control stk--no-padding",e.className)},(0,ue.createElement)("div",{className:"stk-control-label"},(0,ue.createElement)("div",{className:"components-base-control__label"},(0,ue.createElement)("h3",null,(0,v.sprintf)((0,v.__)("%s Size",m.i18n),e.label)))),(0,ue.createElement)("div",{className:"stk-resizer-popup__control-wrapper"},f,(0,ue.createElement)("span",{className:"stk-resizer-popup__x"},"×"),k)),!(e.enableWidth&&e.enableHeight)&&(0,ue.createElement)("div",{className:"stk-resizer-popup__control-wrapper"},e.enableWidth&&!e.enableHeight&&f,!e.enableWidth&&e.enableHeight&&k))),(0,ue.createElement)("div",{className:g,role:"button",tabIndex:"0",onMouseDown:()=>{n(!t)},onKeyDown:e=>{13===e.keyCode&&n(!t)},ref:u},e.enableWidth?y:null,e.enableWidth&&e.enableHeight?" × ":null,e.enableHeight?w:null,(0,ue.createElement)(zd,{fill:"currentColor",width:"10"})))};Dd.defaultProps={width:"",height:"",widthUnit:"%",heightUnit:"px",widthUnits:["px","%"],heightUnits:["px","%"],enableWidth:!0,enableHeight:!0,allowReset:!0,onChangeWidth:()=>{},onChangeHeight:()=>{},label:(0,v.__)("Image",m.i18n),defaultWidth:"",defaultHeight:""};const Fd=Dd,Ud=e=>{const t=ve();return(0,ue.createElement)(ue.Fragment,null,ue.Children.toArray(e.children).map((n=>(0,ue.cloneElement)(n,{screens:e.screens,...e[t.toLowerCase()+"Props"]}))))};Ud.defaultProps={screens:"all",desktopProps:{},tabletProps:{},mobileProps:{}};const Wd=Ud,Vd={Desktop:24,Tablet:24,Mobile:16},Gd=(0,d.range)(50,1001,50),jd=(0,d.range)(8,1001,8),qd={bottom:{height:"100%"}},Kd={top:!1,right:!1,bottom:!0,left:!1},Jd=e=>{const{deviceType:t}=e,{name:n}=(0,$e.useBlockEditContext)(),[o,a]=(0,ue.useState)(null),[l,r]=(0,ue.useState)(null),[i,s]=(0,ue.useState)(!1),c=(0,ue.useRef)(null),[d,u]=(0,ue.useState)(Gd),p=pe();(0,ue.useEffect)((()=>{u(null)}),[p]);const h=(0,le.applyFilters)("stackable.resizable-bottom-margin.default",Vd[t],n),g=gt()(["stk-resizable-bottom-margin"],{"stk--is-resizing":null!==o,"stk--is-tiny":(""!==e.value?e.value:h)<5}),m=e.value||0===e.value?e.unit:"px",v=e.value||0===e.value?e.value:h,b=e=>{if("%"===m&&c.current){const t=c.current.getParentSize().width;return{height:v/100*t+e,delta:e/t*100}}return{height:v,delta:e}};return(0,ue.createElement)(mt.ResizableBox,{ref:c,className:g,minHeight:"0",handleStyles:qd,enable:Kd,size:{height:b(0).height},snap:d,snapGap:5,onResizeStart:()=>{c.current&&c.current.resizable&&c.current.resizable.closest(".wp-block")?r(c.current.resizable.getBoundingClientRect().top-c.current.resizable.closest(".wp-block").getBoundingClientRect().top):r(null),a(v),s(!0)},onResize:(e,t,n,o)=>{let r=o.height;if("%"===m){const{height:e,delta:t}=b(r);r=t,n.style.height=`${e}px`}null!==l&&(n.style.top=`${l}px`),a(v+r),d||u(function(){return{y:arguments.length>0&&void 0!==arguments[0]&&arguments[0]?jd:Gd}}(p))},onResizeStop:(t,n,l)=>{l.style.top="",e.onChange(parseInt(o,10)===parseInt(h,10)&&"px"===m?"":parseInt(o,10)),a(null),s(!1)}},e.previewSelector&&i&&(0,ue.createElement)("style",null,`.editor-styles-wrapper ${e.previewSelector} { margin-bottom: ${o}${m} !important; }`),(0,ue.createElement)("span",{className:"stk-resizable-bottom-margin__label"},`${i?parseInt(o,10):v}${m}`))};Jd.defaultProps={previewSelector:"",value:"",onChange:()=>{}};const Yd=e=>{var t;const n=He(),o=ve(),a=W(e.attribute,o),l=W(`${e.attribute}Unit`,o);let r=null===(t=e[a])||void 0===t?void 0:t.bottom,i=e[l];if("Mobile"===o&&(void 0===r||""===r)){var s;const t=W(e.attribute,"Tablet"),n=W(`${e.attribute}Unit`,"Tablet");r=null===(s=e[t])||void 0===s?void 0:s.bottom,i=e[n]}if(!("Tablet"!==o&&"Mobile"!==o||void 0!==r&&""!==r)){var c;const t=W(e.attribute,"Desktop"),n=W(`${e.attribute}Unit`,"Desktop");r=null===(c=e[t])||void 0===c?void 0:c.bottom,i=e[n]}return(0,ue.createElement)(Jd,{deviceType:o,previewSelector:e.previewSelector,value:r,unit:i,onChange:t=>{n({[a]:{...e[a],bottom:t}})}})};Yd.defaultProps={previewSelector:"",attribute:"",responsive:!1};const Xd=Yd,{Slot:Qd,Fill:Zd}=(0,mt.createSlotFill)("StackableLayoutPanel"),eu=e=>{let{children:t}=e;return(0,ue.createElement)($e.InspectorControls,null,(0,ue.createElement)(Zd,null,t))},tu=e=>{let{children:t}=e;const{name:n}=(0,$e.useBlockEditContext)(),[o]=Ja(`tabCache-${n}`,"layout");return"layout"!==o?null:(0,ue.createElement)($e.InspectorControls,null,t)},nu=e=>{let{children:t}=e;const{name:n}=(0,$e.useBlockEditContext)(),[o]=Ja(`tabCache-${n}`,"layout");return"style"!==o?null:(0,ue.createElement)($e.InspectorControls,null,t)},ou=e=>{let{children:t}=e;const{name:n}=(0,$e.useBlockEditContext)(),[o]=Ja(`tabCache-${n}`,"layout");return"advanced"!==o?null:(0,ue.createElement)($e.InspectorControls,null,t)},au=e=>{const{name:t}=(0,$e.useBlockEditContext)(),n=(0,Ve.getBlockSupport)(t,"stkDefaultTab")||"style",[o,a]=Ja(`tabCache-${t}`,e.tabs.includes(n)?n:"style");return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)($e.InspectorControls,null,(0,ue.createElement)(Sl,{tabs:e.tabs,initialTab:o,onClick:a})),(0,ue.createElement)(tu,null,e.hasLayoutPanel&&(0,ue.createElement)(ll,{title:(0,v.__)("Layout",m.i18n),id:"layout",initialOpen:!0},(0,ue.createElement)(Qd,null))))};au.defaultProps={tabs:["layout","style","advanced"],hasLayoutPanel:!0};const lu=(0,ue.memo)(au),ru=e=>{let t=e.videoUrl,n=e.videoThumbnailUrl;const o=ve();return"Desktop"!==o&&e.videoUrlTablet&&(t=e.videoUrlTablet),"Mobile"===o&&e.videoUrlMobile&&(t=e.videoUrlMobile),"Desktop"!==o&&e.videoThumbnailUrlTablet&&(n=e.videoThumbnailUrlTablet),"Mobile"===o&&e.videoThumbnailUrlMobile&&(n=e.videoThumbnailUrlMobile),Rm(t)?(0,ue.createElement)("video",{className:"stk-video-background",autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:t,poster:n}):null};ru.defaultProps={videoUrl:"",videoUrlTablet:"",videoUrlMobile:"",videoThumbnailUrl:"",videoThumbnailUrlTablet:"",videoThumbnailUrlMobile:""},(ru.Content=e=>{const t=gt()(["stk-video-background"],{"stk--hide-tablet":e.videoUrlTablet,"stk--hide-mobile":e.videoUrlTablet||e.videoUrlMobile}),n=gt()(["stk-video-background"],{"stk--hide-desktop":!0,"stk--hide-mobile":e.videoUrlMobile}),o=gt()(["stk-video-background"],{"stk--hide-desktop":!0,"stk--hide-tablet":!0});return(0,ue.createElement)(ue.Fragment,null,Rm(e.videoUrl)&&(0,ue.createElement)("video",{className:t,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrl,poster:e.videoThumbnailUrl}),Rm(e.videoUrlTablet)&&(0,ue.createElement)("video",{className:n,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrlTablet,poster:e.videoThumbnailUrlTablet}),Rm(e.videoUrlMobile)&&(0,ue.createElement)("video",{className:o,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrlMobile,poster:e.videoThumbnailUrlMobile}))}).defaultProps={videoUrl:"",videoUrlTablet:"",videoUrlMobile:"",videoThumbnailUrl:"",videoThumbnailUrlTablet:"",videoThumbnailUrlMobile:""};const iu=ru,su=e=>{const{blockTag:t,className:n,hasBackground:o,backgroundUrl:a,backgroundUrlTablet:l,backgroundUrlMobile:r,backgroundThumbnailUrl:i,backgroundThumbnailUrlTablet:s,backgroundThumbnailUrlMobile:c,backgroundColorType:d,...u}=e,p=gt()([n],{"stk--has-background-overlay":o&&("gradient"===d||a||l||r)});return(0,ue.createElement)(t,dt({className:p},u),e.children,(0,ue.createElement)(iu,{videoUrl:a,videoUrlTablet:l,videoUrlMobile:r,videoThumbnailUrl:i,videoThumbnailUrlTablet:s,videoThumbnailUrlMobile:c}))};su.defaultProps={blockTag:"div",className:"",hasBackground:!0,backgroundUrl:"",backgroundUrlTablet:"",backgroundUrlMobile:"",backgroundColorType:""},(su.Content=e=>{const{blockTag:t,className:n,hasBackground:o,backgroundUrl:a,backgroundUrlTablet:l,backgroundUrlMobile:r,backgroundThumbnailUrl:i,backgroundThumbnailUrlTablet:s,backgroundThumbnailUrlMobile:c,backgroundColorType:d,...u}=e,p=gt()([n],{"stk--has-background-overlay":o&&("gradient"===d||a||l||r)});return(0,ue.createElement)(t,dt({className:p},u),e.children,(0,ue.createElement)(iu.Content,{videoUrl:a,videoUrlTablet:l,videoUrlMobile:r,videoThumbnailUrl:i,videoThumbnailUrlTablet:s,videoThumbnailUrlMobile:c}))}).defaultProps={...su.defaultProps};const cu=su,du=function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M-10 210h1620V105.2H-10z"}))},uu={"wave-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"wave-1_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7V210h1620V102c-110.6-40.2-181-53.1-268.6-53.1z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v75.9h1620V98.3c-110.6 40.2-181 53.1-268.6 53.1z"}))}}},"wave-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"wave-2_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3V210h1620V91.6c-53 10-86.8-7.1-177.8-24.2z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v155.2h1620V132c-53-10-86.8 7.1-177.8 24.2z"}))}}},"wave-3":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"wave-3_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.4 102-10 136.2-10 136.2v74.2h1620v-68.5s-68.8 19.5-196.4 19.5z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7-10 64.5-10 64.5v150.2h1620V58.8s-68.8-19.5-196.4-19.5z"}))}}},"wave-4":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 209.7v-51.2s-81.4-33.3-241.4-23.1c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v154h1620z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 208.9V79.2s-81.4 33.3-241.4 23.1c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v26.9h1620z"}))}}},"curve-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"curve-1_svg__st2",d:"M1610 177.3C1423 122.9 1133.3 88 808 88c-334.7 0-631.8 37-818 94.1v28h1620v-32.8z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 78.3c-187 54.4-476.7 89.3-802 89.3-334.7 0-631.8-37-818-94.1v136.8h1620v-132z"}))}}},"curve-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"curve-2_svg__st2",d:"M-10 207.6h1620S1430.8 23.8 1138.3 23.8C884 23.8 234.9 140.1-10 197.9v9.7z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M-10 207.4h1620S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v199.6z"}))}}},"curve-3":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"curve-3_svg__st1",d:"M-6.7 13.4S456 171.1 876.1 171.1 1606.4 16 1606.4 16v192.6H-6.7V13.4z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M-6.6 177.6S456.1 40.3 876.2 40.3s730.3 135.1 730.3 135.1v33.5H-6.6v-31.3z"}))}}},"slant-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 210H-10V.5l1620 183.4z"}))}}},"slant-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}))}}},"straight-1":{default:{shape:du},inverted:{shape:du}},"rounded-1":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"rounded-1_svg__st1",d:"M1602.9 209l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2V209h1610.9z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1604.5-2.7l-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v148.5h1613.9l-1.4-213z"}))}}},"rounded-2":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{className:"rounded-2_svg__st2",d:"M1609.5 133.2h-9.5c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2l-10-.2v77h1619.5v-76.8z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1609.5 128.5h-9.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v83.1h1619.5v-83.3z"}))}}},"rounded-3":{default:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610.5 189.1s-128.2-82.6-138.2-89.2c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v50h1620v-24.1z"}))}},inverted:{shape:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,ue.createElement)("path",{d:"M1610.5 24.1s-128.2 82.6-138.2 89.2c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v158.9h1620V24.1z"}))}}}},pu=e=>{const{design:t,inverted:n,layer:o}=e,{shape:a}=uu[t||"wave-1"][n?"inverted":"default"];return(0,ue.createElement)(a,{className:`stk-separator__layer-${o}`,preserveAspectRatio:"none","aria-hidden":!0})};pu.defaultProps={className:"",design:"wave-1",inverted:!1,layer:1},pu.Content=e=>(0,ue.createElement)(pu,e);const hu=pu,gu=(0,ue.createElement)(Ct,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ue.createElement)(wt,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),mu=e=>{const{icon:t=gu,label:n=(0,v.__)("Choose variation"),instructions:o=(0,v.__)("Select a variation to start with."),variations:a,onSelect:l,allowSkip:r}=e,i=gt()("block-editor-block-variation-picker",{"has-many-variations":a.length>4}),s=a.some((e=>e.isPremium));return(0,ue.createElement)("div",{className:"stk-variation-picker"},(0,ue.createElement)(mt.Placeholder,{icon:t,label:n,instructions:o,className:i},(0,ue.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,v.__)("Block variations")},a.map((e=>(0,ue.createElement)("li",{key:e.name},(0,ue.createElement)(mt.Button,{variant:"tertiary",icon:e.pickerIcon||e.icon,iconSize:48,onClick:()=>l(e),className:gt()("block-editor-block-variation-picker__variation",{"is-premium":e.isPremium}),label:e.description||e.pickerTitle||e.title,disabled:!m.isPro&&e.isPremium}),(0,ue.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.pickerTitle||e.title))))),!m.isPro&&m.showProNotice&&s&&(0,ue.createElement)("p",{className:"block-editor-block-variation-picker__notice"},(0,v.__)("Upgrade to Premium to get more design variations.",m.i18n)," ",(0,ue.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=variation-picker&utm_campaign=learnmore&utm_medium=gutenberg",target:"_premium"},(0,v.__)("Learn more",m.i18n))),r&&(0,ue.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,ue.createElement)(mt.Button,{variant:"link",onClick:()=>l()},(0,v.__)("Skip")))))},vu=()=>(0,ue.createElement)("p",{className:"stk-inspector-bottom-tip"},(0,v.__)("Click on any inner block in the editor to style it.",m.i18n)),bu=(0,ue.memo)((e=>{const{align:t,className:n="",blockHoverClass:o="",children:a,hoverRef:l,...r}=e,i=gt()(o,{[`align${t}`]:t}),s=(0,$e.useBlockProps)({...r||{},ref:l,className:i,"data-align":t});return s.className=s.className.replace(n,"").trim(),(0,ue.createElement)("div",s,a)}));bu.displayName="BlockWrapper";const fu=bu,ku=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"desktop",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:768;return"desktopTablet"===e?"@media screen and (min-width: "+n+"px)":"desktopOnly"===e?"@media screen and (min-width: "+t+"px)":"tablet"===e?"@media screen and (max-width: "+(t-1)+"px)":"tabletOnly"===e?"@media screen and (min-width: "+n+"px) and (max-width: "+(t-1)+"px)":"mobile"===e?"@media screen and (max-width: "+(n-1)+"px)":null},yu=e=>{const t=[],{attrName:n="",dependencies:o=[],attrNameTemplate:a="",styles:l={}}=e,r=a?H(a,n):n;return r&&!t.includes(r)&&t.push(r),Object.values(l).forEach((e=>{const n=a?H(a,e):e;n&&!t.includes(n)&&t.push(n)})),o.forEach((e=>{if(e){const n=a?H(a,e):e;n&&!t.includes(n)&&t.push(n)}})),[...Cu(t),"uniqueId"]},wu=[["","Unit"],["","Tablet","Mobile"],["","Hover","ParentHover","Collapsed"]],Cu=e=>e.reduce(((e,t)=>(wu[0].forEach((n=>{wu[1].forEach((o=>{wu[2].forEach((a=>{e.push(`${t}${n}${o}${a}`)}))}))})),e)),[]),_u=(e,t)=>{const n=e=>`${t||""}${e.startsWith(":")?"":" "}${e||""}`.trim();return Array.isArray(e)?e.map(n).join(", "):n(e)},Eu=(e,t)=>{const n=e=>`${e}${t||""}`.trim();return Array.isArray(e)?e.map(n).join(", "):n(e)},Su=["desktop","desktopOnly","desktopTablet","tabletOnly","tablet","mobile"],xu=class{constructor(){this.styles=null}addStyle(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop";this.styles||(this.styles={}),this.styles[o]||(this.styles[o]={}),this.styles[o][e]||(this.styles[o][e]={}),void 0===n||this.styles[o][e][t]!==n&&(this.styles[o][e][t]=n)}compile(){if(!this.styles)return"";const e=[];return Su.forEach((t=>{if(!this.styles[t])return;let n="";Object.keys(this.styles[t]).forEach((e=>{let o="";Object.keys(this.styles[t][e]).forEach((n=>{const a=this.styles[t][e][n];o+=`${n}:${a};`})),o&&(n+=`${e}{${o}}`)}));const o=ku(t);o&&n&&(n=`${o}{${n}}`),e.push(n)})),e.join("")}},Tu=e=>{const t=new xu;return(0,ue.createElement)(ue.Fragment,null,ue.Children.toArray(e.children).map((e=>(0,ue.cloneElement)(e,{compileCssTo:t}))),(0,ue.createElement)(Bu,{cssObject:t}))},Bu=e=>{const t=e.cssObject.compile();return t?(0,ue.createElement)("style",null,t):null};class Mu{constructor(e){this.commonProps=e,this._blockStyles={},this._dynamicBlockStyles=[],this._blockStyleNamesWithValuePreCallbacks=[],this._orderedStyles=[]}addBlockStyles(e,t){Array.isArray(t)?t.forEach((t=>{this.addBlockStyle(e,t)})):this.addBlockStyle(e,t)}addBlockStyle(e,t){e||console.error("BlockStyleGenerator: No attribute name provided.");const n=t.attrNameTemplate?H(t.attrNameTemplate,e):e;t.valuePreCallback&&this._blockStyleNamesWithValuePreCallbacks.push(n),this._orderedStyles.push(t);const o=this._orderedStyles.length-1;this._blockStyles[n]?this._blockStyles[n].push(o):this._blockStyles[n]=[o]}addBlockStyleConditionally(e){this._orderedStyles.push(e);const t=this._orderedStyles.length-1;this._dynamicBlockStyles.push(t)}getRootAttrName(e){return e.replace(/(Hover|ParentHover|Collapsed|Tablet|TabletHover|TabletParentHover|TabletCollapsed|Mobile|MobileHover|MobileParentHover|MobileCollapsed|Unit|UnitHover|UnitParentHover|UnitCollapsed|UnitTablet|UnitTabletHover|UnitTabletParentHover|UnitTabletCollapsed|UnitMobile|UnitMobileHover|UnitMobileParentHover|UnitMobileCollapsed)$/,"")}getBlockStyles(e){if(!e)return this._orderedStyles.reduce(((e,t,n)=>(e[n]=t,e)),{});const t={},n=e.reduce(((e,n)=>{!e[n]&&this._blockStyles[n]&&(e[n]=!0,this._blockStyles[n].forEach((e=>{t[e]=this._orderedStyles[e]})));const o=this.getRootAttrName(n);return!e[o]&&this._blockStyles[o]&&(e[o]=!0,this._blockStyles[o].forEach((e=>{t[e]=this._orderedStyles[e]}))),e}),{});return this._blockStyleNamesWithValuePreCallbacks.forEach((e=>{n[e]||(n[e]=!0,this._blockStyles[e].forEach((e=>{t[e]=this._orderedStyles[e]})))})),this._dynamicBlockStyles.forEach((e=>{t[e]||(t[e]=this._orderedStyles[e])})),t}getAttributesWithValues(e){return Object.keys((0,d.pickBy)(e,(e=>void 0!==e&&""!==e)))}styleShouldRender(e,t){return!e.renderCondition||("function"==typeof e.renderCondition?e.renderCondition(t):!!t[e.renderCondition])}generateBlockStylesForEditor(e,t,n){const o=[];Object.values(t).forEach((t=>{if("function"==typeof t){const a=t=>{if(!this.styleShouldRender(t,e))return;const a=Ru({...this.commonProps,...t,version:n.version||this.commonProps.version,versionDeprecated:n.versionDeprecated||this.commonProps.versionDeprecated,blockState:n.blockState,clientId:n.clientId,uniqueId:n.uniqueId,instanceId:n.instanceId,attributes:e,editorMode:!0});a&&o.push(a)};return void t(e,a)}if(!this.styleShouldRender(t,e))return;const a=Ru({...this.commonProps,...t,version:n.version||this.commonProps.version,versionDeprecated:n.versionDeprecated||this.commonProps.versionDeprecated,blockState:n.blockState,clientId:n.clientId,uniqueId:n.uniqueId,instanceId:n.instanceId,attributes:e,editorMode:!0});a&&o.push(a)}));let a=o.join("");return a=((e,t,n)=>{var o;if(!e||!(0,d.isString)(e))return e;if(!e.includes("!#stk_dynamic")&&!e.includes("data-stk-dynamic"))return e;if(!(0,he.select)("stackable/dynamic-content"))return e;let a=(null===(o=(0,he.select)("core/editor"))||void 0===o?void 0:o.getCurrentPostId())||-1;var l,r;a&&(null==n?void 0:n.postId)!==a&&(a=(null===(l=n.postId)||void 0===l?void 0:l.toString())||-1),-1===a&&(0,he.select)("core/edit-site")&&(a=(null===(r=(0,he.select)("core/edit-site").getEditedPostContext())||void 0===r?void 0:r.postId)||-1);let i=e;var s,c;-1!==a&&(i=null===(s=i)||void 0===s?void 0:s.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")?(n.length>2&&n[2].startsWith("?")?n.splice(2,0,a):2===n.length&&n.push(a),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),i=null===(c=i)||void 0===c?void 0:c.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")?(n.length>2?n.splice(2,0,a):2===n.length&&n.push(a),"!#stk_dynamic/"+n.join("/")+"!#"):e})));const u=(0,he.select)("core/block-editor").getBlock(t);let p=(0,he.select)("stackable/dynamic-content").parseDynamicContents(i,u);var h,g;return-1!==a&&(p=null===(h=p)||void 0===h?void 0:h.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")&&(0,d.last)(n).match(/^\d+$/)?(n.pop(),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),p=null===(g=p)||void 0===g?void 0:g.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")&&(0,d.last)(n).match(/^\d+$/)?"!#stk_dynamic/"+n.join("/")+"!#":e}))),p})(a,n.clientId,n.context),a=(0,le.applyFilters)("stackable.block-styles.edit",a,Im(e.uniqueId)),a}generateBlockStylesForSave(e,t,n,o){return Object.values(n).forEach((n=>{"function"!=typeof n?this.styleShouldRender(n,t)&&Ru({...this.commonProps,...n,version:o.version||this.commonProps.version,versionDeprecated:o.versionDeprecated||this.commonProps.versionDeprecated,uniqueId:t.uniqueId,attributes:t,editorMode:!1,compileCssTo:e}):n(t,(n=>{if(this.styleShouldRender(n,t))return Ru({...this.commonProps,...n,version:o.version||this.commonProps.version,versionDeprecated:o.versionDeprecated||this.commonProps.versionDeprecated,uniqueId:t.uniqueId,attributes:t,editorMode:!1,compileCssTo:e})}))})),e.compile()}}const Iu=e=>{const{blockStyles:t,version:n,clientId:o,context:a,attributes:l,blockState:r}=e,i=(0,ue.useRef)([]),s=Yh(l.uniqueId),c=(0,ue.useRef)(l.text),d=(0,ue.useRef)(null),u=(0,ue.useMemo)((()=>{if(c.current!==l.text)return c.current=l.text,d.current;const e=t.getAttributesWithValues(l);i.current=t.getBlockStyles(e);const u=t.generateBlockStylesForEditor(l,i.current,{version:n,blockState:r,uniqueId:l.uniqueId,instanceId:s,clientId:o,context:a});return d.current=u,u}),[l,n,r,o,l.uniqueId,s,a]);return xh((()=>{if(c.current!==l.text)return void(c.current=l.text);const e=new xu,o=t.generateBlockStylesForSave(e,l,i.current,{version:n});l.generatedCss=o}),[l,n]),u},Nu=e=>{const{selector:t="",styleRule:n="",hoverStyleRule:o="",attrName:a="",format:l="%s",hasUnits:r=!1,responsive:i=!1,hover:s=!1,attrNameTemplate:c="",selectorCallback:d=null,hoverSelector:u="",hoverSelectorCallback:p=null,hoverCallback:h=null,styleRuleCallback:g=null,renderIn:m="",valuePreCallback:b=null,valueCallback:f=null,enabledCallback:k=null,vendorPrefixes:y=[],clampCallback:w=null,unitCallback:C=null,version:_="",versionAdded:E="",versionDeprecated:S="",compileCssTo:x=null,attributes:T={},editorMode:B=!0,clientId:I="",instanceId:N="",blockState:R="normal"}=e;if(!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?M()(e,t)>=0&&(!n||-1===M()(e,n)):!!n}(_,E,S))return null;const A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=t?H(t,o):o,s=e[W(i,a,l)];return r?""!==s&&void 0!==s||"desktop"===a?s:n(o,"mobile"===a?"tablet":"desktop",l,r):s};return n}(T,c),P=c?H(c,a):a;if(m){if(B&&"save"===m)return null;if(!B&&"edit"===m)return null}if(k&&!k(A,T))return null;const O=(e,t,n)=>{const o=W(`${e}Unit`,t,n),a=W(e,t,n);let s=r?T[o]||r:"",c=T[a];if(""===c&&("tablet"===t||"mobile"===t)){const o=T[W(`${e}Unit`,"desktop",n)],a=T[W(`${e}Unit`,"tablet",n)];"tablet"===t?s=o:"mobile"===t&&(s=""!==T[W(e,"tablet",n)]?a:o)}if(C&&(s=C(s,t,n,A)),w&&i){const o=T[W(e,"desktop",n)],a=T[W(e,"tablet",n)];""!==c&&void 0!==c||("tablet"===t?c=w(o,A,t,n,s,T):"mobile"===t&&(c=w(""!==a?a:o,A,t,n,s,T)))}if(b&&(c=b(c,A,t,n,T)),""!==c&&void 0!==c)return s&&(c="auto"===c?c:`${c}${s}`),"%s"!==l&&""!==l&&(c=(0,v.sprintf)(l.replace(/%([sd])%/,"%$1%%"),c)),f&&(c=f(c,A,t,n,T)),c},z=h?h(A,T):s,L="all"===i||!1===i||Array.isArray(i)&&i.find((e=>e.startsWith("desktop"))),$="all"===i||Array.isArray(i)&&i.find((e=>e.startsWith("tablet"))),D="all"===i||Array.isArray(i)&&i.find((e=>e.startsWith("mobile"))),F="all"===z||Array.isArray(z)&&z.includes("hover"),U="all"===z||Array.isArray(z)&&z.includes("parent-hover"),V="all"===z||Array.isArray(z)&&z.includes("collapsed");let G,j,q,K,J,Y,X,Q,Z,ee,te,ne;if(L&&(G=O(P,"desktop","normal"),F&&(q=O(P,"desktop","hover")),U&&(K=O(P,"desktop","parent-hover")),V&&(j=O(P,"desktop","collapsed"))),$&&(Z=O(P,"tablet","normal"),F&&(te=O(P,"tablet","hover")),U&&(ne=O(P,"tablet","parent-hover")),V&&(ee=O(P,"tablet","collapsed"))),D&&(J=O(P,"mobile","normal"),F&&(X=O(P,"mobile","hover")),U&&(Q=O(P,"mobile","parent-hover")),V&&(Y=O(P,"mobile","collapsed"))),void 0===G&&void 0===q&&void 0===K&&void 0===j&&void 0===Z&&void 0===te&&void 0===ne&&void 0===ee&&void 0===J&&void 0===X&&void 0===Q&&void 0===Y)return null;let oe=n;g&&(oe=g(A,T));const ae=o||oe;let re=d?d(A,T,I):t,ie=p?p(A,T,I):u;const se=(Array.isArray(i)?i.find((e=>e.startsWith("desktop"))):"desktop")||"desktop",ce=(Array.isArray(i)?i.find((e=>e.startsWith("tablet"))):"tablet")||"tablet",de=(Array.isArray(i)?i.find((e=>e.startsWith("mobile"))):"mobile")||"mobile";let ue="",pe="";V&&(ue=_u(re,":where(.stk-block-accordion.stk--is-open) .%s")),U&&(pe=_u(re,"parent-hover"===R?".%s.stk--is-hovered":":where(.stk-hover-parent:hover, .stk-hover-parent.stk--is-hovered) .%s")),F&&(ie=(ie||re).includes("[data-block=")&&(ie||re).endsWith("]")?"hover"===R?Eu(re,".stk--is-hovered"):ie||Eu(re,":hover"):"hover"===R?_u(re,".%s.stk--is-hovered"):ie||_u(re,".%s:hover"));let he=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=Im(e);let o=n;if(!n&&t){const e=Gm(t);o=Im(e)}return o}(T.uniqueId,I);N&&(he.match(/-[\d]$/g)||(he+=`-${N}`),"string"==typeof re&&(re=re.replace(/[^^?](.%s)([^-])/g,`$1-${N}$2`),ie=ie.replace(/[^^?](.%s)([^-])/g,`$1-${N}$2`),pe=pe.replace(/[^^?](.%s)([^-])/g,`$1-${N}$2`),ue=ue.replace(/[^^?](.%s)([^-])/g,`$1-${N}$2`))),he=e.editorMode?(0,le.applyFilters)("stackable.block-css.uniqueClass.edit",he):(0,le.applyFilters)("stackable.block-css.uniqueClass.save",he,T),Array.isArray(re)&&(re=re.join(", ")),Array.isArray(ie)&&(ie=ie.join(", ")),re=Dm(re,he,he,B?".editor-styles-wrapper":""),F&&(ie=Dm(ie,he,he,B?".editor-styles-wrapper":"")),U&&(pe=Dm(pe,he,he,B?".editor-styles-wrapper":"")),V&&(ue=Dm(ue,he,he,B?".editor-styles-wrapper":""));let ge="";const me=B?Pu:Ou;return ge+=me(re,oe,G,se,y,x),F&&(ge+=me(ie,ae,q,se,y,x)),U&&(ge+=me(pe,ae,K,se,y,x)),V&&(ge+=me(ue,oe,j,se,y,x)),$&&(ge+=me(re,oe,Z,ce,y,x),F&&(ge+=me(ie,ae,te,ce,y,x)),U&&(ge+=me(pe,ae,ne,ce,y,x)),V&&(ge+=me(ue,oe,ee,se,y,x))),D&&(ge+=me(re,oe,J,de,y,x),F&&(ge+=me(ie,ae,X,de,y,x)),U&&(ge+=me(pe,ae,Q,de,y,x)),V&&(ge+=me(ue,oe,Y,se,y,x))),e.editorMode||(ge=(0,le.applyFilters)("stackable.block-styles.save",ge,he,T)),ge||null},Ru=Nu,Au=e=>{const{clientId:t}=e,n=Ae((n=>({...(0,d.pick)(n,yu(e)),clientId:t}))),o=Yh(n.uniqueId),a=Nu({...e,clientId:t,attributes:n,instanceId:o});let l=An(a);return l=(0,le.applyFilters)("stackable.block-styles.edit",l,Im(n.uniqueId)),a?(0,ue.createElement)("style",null,l):null},Hu=e=>(e.styles&&console.error("BlockCss `styles` prop is deprecated, use individual BlockCss components instead."),e.compileCssTo?Nu({...e,editorMode:!1}):(0,ue.createElement)(Au,dt({},e,{editorMode:!0})));function Pu(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(void 0===n)return"";const l=t.replace(/^(--?)?(.*?$)/,((e,t,n)=>`${t||""}${(0,d.kebabCase)(n)}`));let r=`${l}: ${n} !important`;a.length&&a.forEach((e=>{r+=`;${e}${l}: ${n} !important`})),r=`\n${e} {\n\t${r}\n}`;const i=781,s=361,c=ku(o,i,s);return c&&(r=`\n${c} {${r}\n}`),r}function Ou(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(void 0===n)return"";const r=t.replace(/^(--?)?(.*?$)/,((e,t,n)=>`${t||""}${(0,d.kebabCase)(n)}`));return l.addStyle(e,r,`${n} !important`,o),a.length&&a.forEach((t=>{l.addStyle(e,`${t}${r}`,`${n} !important`,o)})),""}var zu=n(2473),Lu=n.n(zu),$u=Math.sqrt(50),Du=Math.sqrt(10),Fu=Math.sqrt(2);function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uu(Object(n),!0).forEach((function(t){qu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ju(e,t,n){return t&&Gu(e.prototype,t),n&&Gu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ku(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yu(e,t)}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ju(e)}function Yu(e,t){return Yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yu(e,t)}function Xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xu(e)}function Zu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ju(e);if(t){var a=Ju(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Qu(this,n)}}function ep(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,l=[],r=!0,i=!1;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==n.return||n.return()}finally{if(i)throw a}}return l}}(e,t)||np(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tp(e){return function(e){if(Array.isArray(e))return op(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||np(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function np(e,t){if(e){if("string"==typeof e)return op(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?op(e,t):void 0}}function op(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var ap="react-compound-slider:";function lp(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){return t.val>n.val?e?-1:1:n.val>t.val?e?1:-1:0}}function rp(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.findIndex((function(e){return e.key===t}));if(-1!==a){var l=e[a],r=l.key,i=l.val;return i===n?e:[].concat(tp(e.slice(0,a)),[{key:r,val:n}],tp(e.slice(a+1))).sort(lp(o))}return e}function ip(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function sp(e){var t=e.type,n=void 0===t?"":t,o=e.touches;return!o||o.length>1||"touchend"===n.toLowerCase()&&o.length>0}function cp(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function dp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=0,l=e.map((function(e){var t=n.getValue(e);return e!==t&&(a+=1,Lu()(!o,"".concat(ap," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t})).map((function(e,t){return{key:"$$-".concat(t),val:e}})).sort(lp(t));return{handles:l,changes:a}}function up(e,t){return t}function pp(e,t){for(var n=0;n<e.length;n++){if(e[n].key!==t[n].key)return e;if(t[n+1]&&t[n].val===t[n+1].val)return e}return t}function hp(e,t,n,o,a){for(var l=-1,r=!0,i=0;i<e.length;i++){var s=e[i],c=t[i];if(!c||c.key!==s.key)return e;c.val!==s.val&&(l=i,r=c.val-s.val>0)}if(-1===l)return e;for(var d=r?n:-n,u=0;u<t.length;u++){var p=t[u],h=t[u+1];if(h&&p.val===h.val){if(u===l){var g=h.val+d;if(a(g)===g){var m=hp(t,rp(t,h.key,h.val+d,o),n,o,a);return m===t?e:m}return e}var v=p.val+d;if(a(v)===v){var b=hp(t,rp(t,p.key,p.val+d,o),n,o,a);return b===t?e:b}return e}}return t}function gp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return t&&t(e)}))}}var mp=function(){return{value:0,percent:0}},vp=function(e){Ku(n,e);var t=Zu(n);function n(){var e;Vu(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(e=t.call.apply(t,[this].concat(a))).getRailProps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,o=n.emitMouse,a=n.emitTouch;return Wu(Wu({},t),{},{onMouseDown:gp(t&&t.onMouseDown,o),onTouchStart:gp(t&&t.onTouchStart,a)})},e}return ju(n,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,n=t.getEventData,o=t.activeHandleID,a=void 0===o?"":o,l=(0,t.children)({getEventData:n||mp,activeHandleID:a,getRailProps:e});return l&&ut.Children.only(l)}}]),n}(ut.Component),bp=function(e){Ku(n,e);var t=Zu(n);function n(){var e;Vu(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(e=t.call.apply(t,[this].concat(a))).autofocus=function(e){e.target instanceof HTMLElement&&e.target.focus()},e.getHandleProps=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.props,a=o.emitKeyboard,l=o.emitMouse,r=o.emitTouch;return Wu(Wu({},n),{},{onKeyDown:gp(n&&n.onKeyDown,(function(e){return a&&a(e,t)})),onMouseDown:gp(n&&n.onMouseDown,e.autofocus,(function(e){return l&&l(e,t)})),onTouchStart:gp(n&&n.onTouchStart,(function(e){return r&&r(e,t)}))})},e}return ju(n,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,n=t.activeHandleID,o=void 0===n?"":n,a=t.children,l=t.handles,r=a({handles:void 0===l?[]:l,activeHandleID:o,getHandleProps:e});return r&&ut.Children.only(r)}}]),n}(ut.Component),fp=function(){function e(){Vu(this,e),this.interpolator=void 0,this.domain=[0,1],this.range=[0,1],this.domain=[0,1],this.range=[0,1],this.interpolator=null}return ju(e,[{key:"createInterpolator",value:function(e,t){var n=this,o=e[0],a=e[1],l=t[0],r=t[1];return a<o?function(e){return n.interpolateValue(r,l)(n.deinterpolateValue(a,o)(e))}:function(e){return n.interpolateValue(l,r)(n.deinterpolateValue(o,a)(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(n){return e+t*n}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,n)))(+e)}},{key:"setDomain",value:function(e){return this.domain=[e[0],e[1]],this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=[e[0],e[1]],this}},{key:"getRange",value:function(){return this.range}},{key:"getTicks",value:function(e){var t=this.domain;return function(e,t,n){var o,a,l,r,i=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((o=t<e)&&(a=e,e=t,t=a),0===(r=function(e,t,n){var o=(t-e)/Math.max(0,n),a=Math.floor(Math.log(o)/Math.LN10),l=o/Math.pow(10,a);return a>=0?(l>=$u?10:l>=Du?5:l>=Fu?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(l>=$u?10:l>=Du?5:l>=Fu?2:1)}(e,t,n))||!isFinite(r))return[];if(r>0){let n=Math.round(e/r),o=Math.round(t/r);for(n*r<e&&++n,o*r>t&&--o,l=new Array(a=o-n+1);++i<a;)l[i]=(n+i)*r}else{r=-r;let n=Math.round(e*r),o=Math.round(t*r);for(n/r<e&&++n,o/r>t&&--o,l=new Array(a=o-n+1);++i<a;)l[i]=(n+i)/r}return o&&l.reverse(),l}(t[0],t[t.length-1],e||10)}}]),e}(),kp=function(){return{value:0,percent:0}},yp=function(e){Ku(n,e);var t=Zu(n);function n(){return Vu(this,n),t.apply(this,arguments)}return ju(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,o=e.scale,a=void 0===o?new fp:o,l=e.count,r=void 0===l?10:l,i=e.getEventData,s=void 0===i?kp:i,c=e.activeHandleID,d=t({getEventData:s,activeHandleID:void 0===c?"":c,ticks:(n||a.getTicks(r)).map((function(e){return{id:"$$-".concat(e),value:e,percent:a.getValue(e)}}))});return d&&ut.Children.only(d)}}]),n}(ut.Component),Cp=function(){return{value:0,percent:0}},_p=function(e){Ku(n,e);var t=Zu(n);function n(){var e;Vu(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(e=t.call.apply(t,[this].concat(a))).getTrackProps=function(t){var n=e.props,o=n.emitMouse,a=n.emitTouch;return Wu(Wu({},t||{}),{},{onMouseDown:gp(t&&t.onMouseDown,o),onTouchStart:gp(t&&t.onTouchStart,a)})},e}return ju(n,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,n=t.children,o=t.left,a=void 0===o||o,l=t.right,r=void 0===l||l,i=t.scale,s=void 0===i?new fp:i,c=t.handles,d=void 0===c?[]:c,u=t.getEventData,p=void 0===u?Cp:u,h=t.activeHandleID,g=void 0===h?"":h,m=s.getDomain(),v=[],b=0;b<d.length+1;b++){var f=d[b-1],k=d[b];0===b&&!0===a?f={id:"$",value:m[0],percent:0}:b===d.length&&!0===r&&(k={id:"$",value:m[1],percent:100}),f&&k&&v.push({id:"".concat(f.id,"-").concat(k.id),source:f,target:k})}var y=n({getEventData:p,activeHandleID:g,tracks:v,getTrackProps:e});return y&&ut.Children.only(y)}}]),n}(ut.Component);function Ep(e,t,n){return Math.min(Math.max(e,t),n)}var Sp=ju((function e(){var t=this;Vu(this,e),this.step=1,this.domain=[0,1],this.range=[0,1],this.setDomain=function(e){return t.domain=[e[0],e[1]],t},this.setRange=function(e){return t.range=[e[0],e[1]],t},this.setStep=function(e){return t.step=e,t},this.getValue=function(e){var n=ep(t.domain,2),o=n[0],a=n[1],l=ep(t.range,2),r=l[0],i=l[1],s=t.step,c=(Ep(e,o,a)-o)/(a-o);return Ep(s*Math.round(c*(i-r)/s)+r,r<i?r:i,i>r?i:r)}})),xp="undefined"!=typeof window&&"undefined"!=typeof document,Tp=function(){},Bp=function(e,t,n,o){var a=o?e-t:e+t;return o?Math.max(n[0],a):Math.min(n[1],a)},Mp=function(e,t,n,o){var a=o?e+t:e-t;return o?Math.min(n[1],a):Math.max(n[0],a)},Ip=[0,100],Np=function(e){Ku(n,e);var t=Zu(n);function n(){var e;Vu(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(e=t.call.apply(t,[this].concat(a))).state={step:.1,values:[],domain:Ip,handles:[],reversed:!1,activeHandleID:"",valueToPerc:null,valueToStep:null,pixelToStep:null},e.slider=ut.createRef(),e.onKeyDown=function(t,n){var o=["ArrowRight","ArrowUp"],a=["ArrowDown","ArrowLeft"],l=Xu(e),r=l.state.handles,i=l.props,s=i.step,c=void 0===s?.1:s,d=i.reversed,u=void 0!==d&&d,p=i.vertical,h=void 0!==p&&p,g=i.domain,m=void 0===g?[0,100]:g,v=t.key||"".concat(t.keyCode);if(o.concat(a).includes(v)){if(h){var b=[a,o];o=b[0],a=b[1]}t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault();var f=r.find((function(e){return e.key===n}));if(f){var k=f.val,y=k;o.includes(v)?y=Bp(k,c,m,u):a.includes(v)&&(y=Mp(k,c,m,u));var w=r.map((function(e){return e.key===n?{key:e.key,val:y}:e}));e.submitUpdate(w,!0)}}},e.onMouseDown=function(t,n){e.onStart(t,n,!1)},e.onTouchStart=function(t,n){sp(t)||e.onStart(t,n,!0)},e.getEventData=function(t,n){var o,a=Xu(e),l=a.state,r=l.pixelToStep,i=l.valueToPerc,s=a.props.vertical;return r.setDomain(ip(e.slider.current,s)),n&&t instanceof TouchEvent?o=r.getValue(cp(s,t)):t instanceof MouseEvent&&(o=r.getValue(s?t.clientY:t.pageX)),{value:o,percent:i.getValue(o)}},e.onMouseMove=function(t){var n=Xu(e),o=n.state,a=o.handles,l=o.pixelToStep,r=o.activeHandleID,i=void 0===r?"":r,s=n.props,c=s.vertical,d=s.reversed,u=void 0!==d&&d;l.setDomain(ip(e.slider.current,c));var p=rp(a,i,l.getValue(c?t.clientY:t.pageX),u);e.submitUpdate(p)},e.onTouchMove=function(t){var n=Xu(e),o=n.state,a=o.handles,l=o.pixelToStep,r=o.activeHandleID,i=n.props,s=i.vertical,c=i.reversed;if(null!==l&&!sp(t)){l.setDomain(ip(e.slider.current,s));var d=rp(a,r,l.getValue(cp(s,t)),c);e.submitUpdate(d)}},e.onMouseUp=function(){var t=Xu(e),n=t.state,o=n.handles,a=void 0===o?[]:o,l=n.activeHandleID,r=t.props,i=r.onChange,s=void 0===i?Tp:i,c=r.onSlideEnd,d=void 0===c?Tp:c;s(a.map((function(e){return e.val}))),d(a.map((function(e){return e.val})),{activeHandleID:l}),e.setState({activeHandleID:""}),xp&&(document.removeEventListener("mousemove",e.onMouseMove),document.removeEventListener("mouseup",e.onMouseUp))},e.onTouchEnd=function(){var t=Xu(e),n=t.state,o=n.handles,a=n.activeHandleID,l=t.props,r=l.onChange,i=void 0===r?Tp:r,s=l.onSlideEnd,c=void 0===s?Tp:s;i(o.map((function(e){return e.val}))),c(o.map((function(e){return e.val})),{activeHandleID:a}),e.setState({activeHandleID:""}),xp&&(document.removeEventListener("touchmove",e.onTouchMove),document.removeEventListener("touchend",e.onTouchEnd))},e}return ju(n,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(ip(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){xp&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(e,t,n){var o=this.state.handles,a=this.props.onSlideStart,l=void 0===a?Tp:a;n||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),o.find((function(e){return e.key===t}))?(this.setState({activeHandleID:t}),l(o.map((function(e){return e.val})),{activeHandleID:t}),n?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:""}),this.handleRailAndTrackClicks(e,n))}},{key:"handleRailAndTrackClicks",value:function(e,t){var n,o=this,a=this.state,l=a.handles,r=a.pixelToStep,i=this.props,s=i.vertical,c=i.reversed,d=void 0!==c&&c,u=this.slider;r.setDomain(ip(u.current,s)),n=t?r.getValue(cp(s,e)):r.getValue(s?e.clientY:e.pageX);for(var p="",h=1/0,g=0;g<l.length;g++){var m=l[g],v=m.key,b=m.val,f=Math.abs(b-n);f<h&&(p=v,h=f)}var k=rp(l,p,n,d);this.setState({activeHandleID:p},(function(){o.submitUpdate(k,!0),t?o.addTouchEvents():o.addMouseEvents()}))}},{key:"addMouseEvents",value:function(){xp&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){xp&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.props,o=n.mode,a=void 0===o?1:o,l=n.step,r=void 0===l?.1:l,i=n.onUpdate,s=void 0===i?Tp:i,c=n.onChange,d=void 0===c?Tp:c,u=n.reversed,p=void 0!==u&&u,h=this.state.valueToStep.getValue;this.setState((function(n){var o=n.handles,l=[];if("function"==typeof a)l=a(o,e,r,p,h),Lu()(Array.isArray(l),"Custom mode function did not return an array.");else switch(a){case 1:l=up(0,e);break;case 2:l=pp(o,e);break;case 3:l=hp(o,e,r,p,h);break;default:l=e,Lu()(!1,"".concat(ap," Invalid mode value."))}return s(l.map((function(e){return e.val}))),t&&d(l.map((function(e){return e.val}))),{handles:l}}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.handles,o=t.valueToPerc,a=t.activeHandleID,l=this.props,r=l.className,i=l.rootStyle,s=void 0===i?{}:i,c=l.rootProps,d=void 0===c?{}:c,u=l.component,p=void 0===u?"div":u,h=l.disabled,g=void 0!==h&&h,m=l.flatten,v=void 0!==m&&m,b=n.map((function(e){var t=e.key,n=e.val;return{id:t,value:n,percent:o.getValue(n)}})),f=ut.Children.map(this.props.children,(function(t){return!0===function(e){if(!(0,ut.isValidElement)(e))return!1;var t=e.type,n=t?t.name:"";return n===bp.name||n===vp.name||n===yp.name||n===_p.name}(t)?ut.cloneElement(t,{scale:o,handles:b,activeHandleID:a,getEventData:e.getEventData,emitKeyboard:g?Tp:e.onKeyDown,emitMouse:g?Tp:e.onMouseDown,emitTouch:g?Tp:e.onTouchStart}):t}));return v?ut.createElement(ut.Fragment,null,ut.createElement(p,Wu(Wu({},d),{},{style:s,className:r,ref:this.slider})),f):ut.createElement(ut.Fragment,null,ut.createElement(p,Wu(Wu({},d),{},{style:s,className:r,ref:this.slider}),f))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,a=e.step,l=void 0===a?.1:a,r=e.values,i=e.domain,s=void 0===i?Ip:i,c=e.reversed,d=void 0!==c&&c,u=e.onUpdate,p=void 0===u?Tp:u,h=e.onChange,g=void 0===h?Tp:h,m=e.warnOnChanges,v=void 0!==m&&m,b=t.valueToPerc,f=t.valueToStep,k=t.pixelToStep,y={};if(b&&f&&k||(b=new fp,f=new Sp,k=new Sp,y.valueToPerc=b,y.valueToStep=f,y.pixelToStep=k),t.domain===Ip||null===t.step||null===t.domain||null===t.reversed||l!==t.step||s[0]!==t.domain[0]||s[1]!==t.domain[1]||d!==t.reversed){var w=ep(s,2),C=w[0],_=w[1];f.setStep(l).setRange([C,_]).setDomain([C,_]),!0===d?(b.setDomain([C,_]).setRange([100,0]),k.setStep(l).setRange([_,C])):(b.setDomain([C,_]).setRange([0,100]),k.setStep(l).setRange([C,_])),Lu()(_>C,"".concat(ap," Max must be greater than min (even if reversed). Max is ").concat(_,". Min is ").concat(C,"."));var E=dp(r||t.values,d,f,v),S=E.handles;(E.changes||void 0===r||r===t.values)&&(p(S.map((function(e){return e.val}))),g(S.map((function(e){return e.val})))),y.step=l,y.values=r,y.domain=s===Ip?tp(s):s,y.handles=S,y.reversed=d}else if(!((n=r)===(o=t.values)||n.length===o.length&&n.reduce(function(e){return function(t,n,o){return t&&e[o]===n}}(o),!0))){var x=dp(r,d,f,v),T=x.handles;x.changes&&(p(T.map((function(e){return e.val}))),g(T.map((function(e){return e.val})))),y.values=r,y.handles=T}return Object.keys(y).length?y:null}}]),n}(ut.PureComponent);const Rp={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},Ap={position:"absolute",width:"100%",height:4,backgroundColor:"rgb(221, 221, 221)",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},Hp={backgroundColor:"var(--wp-admin-theme-color)",height:12,width:12},Pp=e=>{let{getRailProps:t}=e;return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)("div",dt({style:Rp},t())),(0,ue.createElement)("div",{style:Ap}))},Op=e=>{const{domain:[t,n],handle:{value:o,percent:a},disabled:l=!1,handleProps:r}=e;return(0,ue.createElement)("button",dt({role:"slider","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":o,disabled:l,style:{left:`${a}%`,...Hp}},r))},zp=10,Lp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";if("left"===t)for(let t=e.length-1;t>=1;t--)if(e[t]<zp){const n=zp-e[t];e[t]=zp,e[t-1]-=n}for(let t=0;t<e.length-1;t++)if(e[t]<zp){const n=zp-e[t];e[t]=zp,e[t+1]-=n}if("right"===t)for(let t=e.length-1;t>=1;t--)if(e[t]<zp){const n=zp-e[t];e[t]=zp,e[t-1]-=n}return e},$p={position:"relative",width:"100%"},Dp=[0,100],Fp=e=>{let t=0;return[...e,100].map((e=>{const n=e-t;return t+=n,n}))},Up=e=>{let t=0;return[...e].pop(),e.reduce(((n,o,a)=>{if(a===e.length-1)return n;const l=o+t;return t+=o,n.push(l),n}),[])},Wp=(0,ue.memo)((e=>{const t=(0,ue.useRef)(null),n=(0,ue.useRef)(0),o=(0,ue.useRef)(null),a=(0,ue.useRef)(!1);return(0,ue.createElement)(Np,{className:"stk-column-widths-control__columns-slider",rootStyle:$p,onSlideStart:e=>t.current=e,mode:(e,o)=>{a.current=!0,t.current&&t.current.length===o.length||(t.current=e.map((e=>e.val)));let l=o.map((e=>e.val));if((0,d.isEqual)(t.current,l))return o;const r=((e,t)=>{let n;return t.some(((t,o)=>t!==e[o]&&(n=t>e[o]?"right":"left",!0))),n})(t.current,l),i=((e,t)=>{let n=-1;return t.some((t=>!e.includes(t)&&(n=t,!0))),-1===n&&t.some(((t,o)=>t!==e[o]&&(n=t,!0))),-1===n?0:n})(t.current,l);l=[...t.current],l[n.current]=i;const s=((e,t,n)=>{const o=Fp(e),a=Lp(o,n);return Up(a)})(l,n.current,r);return t.current=s,s.forEach(((e,t)=>{o[t].val=e})),o},step:1,onChange:()=>{a.current=!1},onUpdate:t=>{a.current&&((0,d.isEqual)(o.current,t)||(o.current=t,e.onChange(Fp(t))))},domain:Dp,values:Up(e.value)},(0,ue.createElement)(vp,null,(e=>{let{getRailProps:t}=e;return(0,ue.createElement)(Pp,{getRailProps:t})})),(0,ue.createElement)(bp,null,(e=>{let{handles:t,getHandleProps:o}=e;return(0,ue.createElement)("div",{className:"slider-handles"},t.map(((e,t)=>{const a=o(e.id),l={...a,onMouseDown:e=>(n.current=t,a.onMouseDown(e)),onTouchStart:e=>(n.current=t,a.onTouchStart(e)),onKeyDown:e=>(n.current=t,a.onKeyDown(e))};return(0,ue.createElement)(Op,{key:e.id,handle:e,domain:Dp,handleProps:l})})))})))}),d.isEqual);Wp.defaultProps={onChange:()=>{},value:[]};const Vp=Wp,Gp=e=>e.every((e=>!e)),jp=e=>{var t;const n={gridTemplateColumns:(o=e.value,o.map((e=>(e/100*o.length).toFixed(2)+"fr")).join(" ")),gridAutoFlow:Gp(e.value)?"column":void 0,justifyContent:Gp(e.value)?"space-around":void 0};var o;const a=gt()("stk-column-widths-control__columns-input",{"stk-column-widths--many":(null===(t=e.value)||void 0===t?void 0:t.length)&&e.value.length>4});return(0,ue.createElement)("div",{className:a,style:n},e.value.map(((t,n)=>(0,ue.createElement)("input",{key:n,className:"components-column-widths-control__number",type:"number",step:"any",value:t||"",onChange:t=>{const o=t.target.value,a=o.includes(".")?parseFloat(parseFloat(o).toFixed(3)):parseInt(o,10),l=[...e.value];l[n]=isNaN(a)?"":a,e.onChange(l)},onBlur:()=>{const t=Lp(e.value),o=100-t.reduce(((e,t)=>e+t),0);n<e.value.length-1?t[n+1]+=o:t[n-1]+=o,e.onChange(Lp(t))}}))))};jp.defaultProps={onChange:()=>{},value:[]};const qp=jp,Kp={"2-1":[50,50],"2-2":[66.666,33.333],"2-3":[33.333,66.666],"3-1":[33.333,33.333,33.333],"3-2":[25,50,25],"3-3":[50,25,25],"3-4":[25,25,50],"4-1":[25,25,25,25],"4-2":[40,20,20,20],"4-3":[20,20,20,40],"5-1":[20,20,20,20,20],"6-1":[16.666,16.666,16.666,16.666,16.666,16.666]},Jp={2:[{value:"2-1",image:"dist/images/components-columns-width-control-2-1.00780d9.png"},{value:"2-2",image:"dist/images/components-columns-width-control-2-2.0388d6b.png"},{value:"2-3",image:"dist/images/components-columns-width-control-2-3.dd648a4.png"}],3:[{value:"3-1",image:"dist/images/components-columns-width-control-3-1.b0d994b.png"},{value:"3-2",image:"dist/images/components-columns-width-control-3-2.d0cd0a1.png"},{value:"3-3",image:"dist/images/components-columns-width-control-3-3.8b9a3da.png"},{value:"3-4",image:"dist/images/components-columns-width-control-3-4.05211d4.png"}],4:[{value:"4-1",image:"dist/images/components-columns-width-control-4-1.ba54e2f.png"},{value:"4-2",image:"dist/images/components-columns-width-control-4-2.96599c1.png"},{value:"4-3",image:"dist/images/components-columns-width-control-4-3.5c76fd1.png"}]},Yp=e=>e.every((e=>!e)),Xp=e=>{const t=Yp(e.values)&&Kp[`${e.columns}-1`]?Kp[`${e.columns}-1`]:(e.values||[]).every((e=>""!==e))?e.values:Array(e.columns).fill(100/e.columns);return(0,ue.createElement)(pn,{label:e.label,help:e.help,responsive:e.responsive,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue,className:gt()(["ugb-columns-width-control",e.className]),helpTooltip:{description:(0,v.__)("Adjust the individual widths of each column",m.i18n)}},Jp[e.columns]&&(0,ue.createElement)(Ml,{options:Jp[e.columns],onChange:t=>{e.onChange(Kp[t])}}),e.columns<=7&&(0,ue.createElement)(Vp,{value:t,onChange:e.onChange}),(0,ue.createElement)(qp,{value:Yp(e.values)?e.forceBlank?e.values:Kp[`${e.columns}-1`]:e.values,onChange:e.onChange}))};Xp.defaultProps={columns:2,values:["",""],onChange:()=>{},help:"",label:(0,v.__)("Column Widths",m.i18n),className:"",responsive:!1,attribute:"",hasTabletValue:void 0,hasMobileValue:void 0};const Qp=Xp,Zp=e=>(0,ue.createElement)(pn,{label:e.label,help:e.help,className:gt()(["ugb-columns-width-multi-control",e.className]),responsive:e.responsive,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue},(0,d.range)(e.columns).map((t=>(0,ue.createElement)("div",{key:t,className:"stk-columns-width-multi-control__range"},(0,ue.createElement)("span",{className:"stk-columns-width-multi-control__range__icon"},t+1),(0,ue.createElement)("div",{className:"stk-columns-width-multi-control__range__range-control"},(0,ue.createElement)(ro,{className:"stk--no-padding",value:e.values[t],max:100,min:0,onChange:n=>{const o=[...e.values];o[t]=n,e.onChange(o)},allowReset:!1,placeholder:e.placeholders?e.placeholders[t]:"",forcePlaceholder:!0}),e.allowReset&&(0,ue.createElement)(bn,{allowReset:e.allowReset,value:e.values[t],default:"",onChange:n=>{const o=[...e.values];o[t]=n,e.onChange(o)}})),(0,ue.createElement)("span",{className:"stk-columns-width-multi-control__range__suffix"},"%")))));Zp.defaultProps={columns:2,values:["",""],onChange:()=>{},help:"",label:(0,v.__)("Column Widths",m.i18n),className:"",responsive:!1,placeholders:null,hasTabletValue:void 0,hasMobileValue:void 0};const eh=Zp,th=(0,ue.memo)((0,ue.forwardRef)(((e,t)=>{const{attrNameTemplate:n,...o}=e,{fontFamily:a}=Ae((e=>({fontFamily:e[P(n)("fontFamily")]})));return je(a),(0,ue.createElement)($e.RichText,dt({ref:t},o))})));th.defaultProps={attrNameTemplate:"%s"},th.Content=e=>(0,ue.createElement)($e.RichText.Content,e);const nh=th,oh={placement:"left-start",offset:236,shift:!0},ah={placement:"left-start",offset:36,shift:!0},lh={lift:[32,13],drop:[32,13],cancel:[27],up:[38,37],down:[40,39]},rh=e=>{const{nonSortableItems:t=[],editableName:n=!0,items:o,dropdownOnAdd:a=!1,onChangeItem:l,onDeleteItem:r,handleAddItem:i,onSortEnd:s,AddItemPopover:c=null,ref:d,enableAddItem:u=!0}=e,[p,h]=(0,ue.useState)(!1),g=gt()("ugb-global-settings-color-picker","components-circular-option-picker","editor-color-palette-control__color-palette",e.className);return(0,ue.createElement)(mt.BaseControl,{className:g,label:e.label},u&&(0,ue.createElement)(mt.Dropdown,{popoverProps:oh,renderToggle:e=>{let{onToggle:t,isOpen:n}=e;return(0,ue.createElement)(yt,{className:"ugb-global-settings-color-picker__add-button",onClick:a?t:i,icon:"plus-alt2","aria-expanded":n})},renderContent:e=>{let{onClose:t}=e;return(0,ue.createElement)(c,{onClose:t,onChange:i})}}),(0,ue.createElement)("div",{ref:d,className:gt()("ugb-global-settings-color-picker__color-indicators",{"is-sorting":p})},(0,ue.createElement)(ch,{items:o,onSortStart:()=>h(!0),onSortEnd:e=>{let{oldIndex:t,newIndex:n}=e;return s({oldIndex:t,newIndex:n,setIsSorting:h})},axis:"y",useDragHandle:!0,keyCodes:lh},null==t?void 0:t.map(((t,o)=>(0,ue.createElement)(uh,{key:o,item:t,onDelete:()=>r(t),onChange:e=>l(e),ItemPreview:e.ItemPreview,ItemPicker:e.ItemPicker,updateOnBlur:e.updateOnBlur,sortable:!1,editableName:n,className:e.buttonClassName,onItemClick:e.onItemClick,showReset:!e.showResetCallback||e.showResetCallback(t)}))),null==o?void 0:o.map(((t,o)=>(0,ue.createElement)(sh,{key:o,index:o,item:t,onDelete:()=>r(t),onChange:e=>l(e),ItemPreview:e.ItemPreview,ItemPicker:e.ItemPicker,updateOnBlur:e.updateOnBlur,editableName:n,className:e.buttonClassName,onItemClick:e.onItemClick}))))))};rh.defaultProps={className:"",label:"",onReset:()=>{}};const ih=rh,sh=Ua((e=>(0,ue.createElement)(uh,e))),ch=$a((e=>{let{children:t}=e;return(0,ue.createElement)("div",null,t)})),dh=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Wo(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return Fo(qo(qo(t=Ko(this,(e=Jo(n)).call.apply(e,[this].concat(a))))),"wrappedInstance",(0,ut.createRef)()),t}return Xo(n,t),Go(n,[{key:"componentDidMount",value:function(){(0,ue.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Zo()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=o.withRef?this.wrappedInstance:null;return(0,ut.createElement)(e,dt({ref:t},this.props))}}]),n}(ut.Component),Fo(t,"displayName",ga("sortableHandle",e)),n}((()=>(0,ue.createElement)(mt.Dashicon,{icon:"menu",size:"16",tabIndex:"0"}))),uh=e=>{const{item:t,onDelete:n,onChange:o,ItemPreview:a=null,ItemPicker:l=null,updateOnBlur:r=!1,sortable:i=!0,editableName:s=!0,showReset:c=!0}=e,[d,u]=(0,ue.useState)(!1),[p,h]=(0,ue.useState)(t.name);(0,ue.useEffect)((()=>{t.name!==p&&h(t.name)}),[t.name]);const g=gt()("block-editor-panel-color-gradient-settings__dropdown",e.className);return(0,ue.createElement)(mt.__experimentalHStack,{justify:"space-between",className:"stk-global-settings-color-picker__color-indicator-wrapper"},(0,ue.createElement)(mt.Dropdown,{popoverProps:ah,focusOnMount:!d&&"firstElement",renderToggle:n=>{let{onToggle:l,isOpen:c}=n;return(0,ue.createElement)(yt,{className:g,onClick:()=>{e.onItemClick?e.onItemClick(t):d||l()},isPressed:c},(0,ue.createElement)(mt.__experimentalHStack,{justify:"flex-start"},(0,ue.createElement)(a,{item:t}),s?(0,ue.createElement)("input",{className:"components-input-control__input",value:d?p:t.name,onChange:e=>{h(e.target.value),r||o({...t,name:e.target.value})},onFocus:()=>u(!0),onBlur:e=>{var n;r&&o({...t,name:p}),setTimeout((()=>{u(!1)}),100),!c||null!==(n=e.relatedTarget)&&void 0!==n&&n.closest(".components-popover")||l()},onClick:()=>{c||l()},onKeyDown:e=>{13===e.keyCode&&e.target.blur()}}):(0,ue.createElement)("p",{className:"stk-sortable-picker__item-name"},t.name),i&&(0,ue.createElement)(dh,null)))},renderContent:()=>(0,ue.createElement)(l,{item:t,onChange:o})}),i&&(0,ue.createElement)(yt,{"aria-label":"Delete",className:"stk-global-settings-color-picker__delete-button",icon:"trash",isSmall:!0,isTertiary:!0,onClick:n}),!i&&(0,ue.createElement)(bn,{showReset:c,onChange:n}))},ph=()=>{},hh=e=>{const{onBack:t=ph,onTrash:n=ph,onReset:o=ph,onDuplicate:a=ph,title:l="",showTrash:r=!0,showReset:i=!1,showDuplicate:s=!1}=e;return(0,ue.createElement)("div",{className:"stk-inspector-sub-header"},(0,ue.createElement)(mt.Button,{icon:"arrow-left-alt2",alt:(0,v.__)("Back",m.i18n),onClick:t}),(0,ue.createElement)("h2",{className:"components-base-control__label"},l),s&&(0,ue.createElement)(mt.Button,{className:"stk-inspector-sub-header__duplicate",size:"small",icon:"admin-page",alt:(0,v.__)("Duplicate",m.i18n),onClick:a}),r&&(0,ue.createElement)(mt.Button,{className:"stk-inspector-sub-header__trash",size:"small",icon:"trash",alt:(0,v.__)("Delete",m.i18n),onClick:n}),i&&(0,ue.createElement)(mt.Button,{className:"stk-inspector-sub-header__reset",size:"small",icon:"image-rotate",alt:(0,v.__)("Reset",m.i18n),onClick:o}))},gh=e=>{var t,n,o,a,l,r;const i=(null===(t=e.fontPair)||void 0===t||null===(n=t.typography)||void 0===n?void 0:n.h1)||{},s=(null===(o=e.fontPair)||void 0===o||null===(a=o.typography)||void 0===a?void 0:a.p)||{};i.fontFamily&&C(i.fontFamily),null!=s&&s.fontFamily&&C(s.fontFamily);const c=(null===(l=x(i.fontFamily))||void 0===l?void 0:l.replaceAll('"',""))||"",u=(null===(r=x(s.fontFamily))||void 0===r?void 0:r.replaceAll('"',""))||"",p=(0,ue.createElement)("div",null,(0,ue.createElement)("span",{style:(0,d.omit)({...i,fontFamily:c},["fontSize","lineHeight"]),className:"ugb-global-settings-font-pair__label"},S(null==i?void 0:i.fontFamily,(0,v.__)("Default Heading",m.i18n))),(0,ue.createElement)("span",{style:(0,d.omit)({...s,fontFamily:u},["fontSize","lineHeight"]),className:"ugb-global-settings-font-pair__sub-label"},S(null==s?void 0:s.fontFamily,(0,v.__)("Default Body",m.i18n)))),h=gt()(["ugb-button-icon-control","ugb-global-settings-font-pair-control",{"ugb-global-settings-font-pair__selected":null==e?void 0:e.isSelected}]);return(0,ue.createElement)("div",{onClick:e.onClick,ref:null==e?void 0:e.ref,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&"Space"!==t.key||(e.onClick(),t.preventDefault())}},(0,ue.createElement)(Ic,{key:e.key,label:p,className:h},(null==e?void 0:e.isCustom)&&(0,ue.createElement)("div",{className:"ugb-button-icon-control__wrapper"},(0,ue.createElement)(yt,{className:"ugb-button-icon-control__edit",label:(0,v.__)("Edit",m.i18n),icon:"edit",isSmall:!0,onClick:t=>{e.onEdit(),t.stopPropagation()}}))))};gh.defaultProps={key:"",fontPair:{},isSelected:!1,onClick:()=>{},onEdit:()=>{}};const mh=gh,vh=e=>(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)("div",{className:"ugb-global-settings__section-settings"},(0,ue.createElement)("p",{className:"ugb-global-settings__section-title"},e.title),e.description&&(0,ue.createElement)("p",null,e.description),e.children)),bh={backgroundColor:{desktop:""},headingColor:{desktop:""},textColor:{desktop:""},linkColor:{desktop:""},accentColor:{desktop:""},buttonBackgroundColor:{desktop:""},buttonTextColor:{desktop:""},buttonOutlineColor:{desktop:""}},fh=()=>{},kh=e=>{let{colors:t,withWrapper:n=!1,onClick:o=fh,isDisabled:a=!1}=e;const l=o===fh?"div":mt.Button,r=o===fh?{}:{onClick:o},i=gt()("stk-global-color-scheme__preview__background",{"stk-scheme--is-disabled":a});return(0,ue.createElement)("div",{className:"stk-global-color-scheme__preview"},(0,ue.createElement)(l,dt({className:i,style:n?{}:{background:null==t?void 0:t.backgroundColor}},r),(0,ue.createElement)("div",{className:"stk-global-color-scheme__preview__typography"},(0,ue.createElement)("span",{style:{color:null==t?void 0:t.headingColor}},"A"),(0,ue.createElement)("span",{style:{color:null==t?void 0:t.textColor}},"a")),(0,ue.createElement)("div",null,(0,ue.createElement)("div",{className:"stk-global-color-scheme__preview__button",style:{background:`${(null==t?void 0:t.buttonBackgroundColor)||"var(--stk-button-background-color)"}`}}),(0,ue.createElement)("div",{className:"stk-global-color-scheme__preview__button",style:{borderStyle:"solid",borderWidth:"1px",borderColor:`${(null==t?void 0:t.buttonOutlineColor)||(null==t?void 0:t.buttonBackgroundColor)||"var(--stk-button-background-color)"}`}}),(0,ue.createElement)("div",{className:"stk-global-color-scheme__preview__circle",style:{backgroundColor:`${(null==t?void 0:t.linkColor)||(null==t?void 0:t.textColor)||"var(--stk-container-color)"}`}}),(0,ue.createElement)("div",{className:"stk-global-color-scheme__preview__circle",style:{backgroundColor:`${(null==t?void 0:t.accentColor)||"var(--stk-icon-color)"}`}}))))},yh=e=>{let{label:t,presets:n,onPresetClick:o}=e;return(0,ue.createElement)(mt.BaseControl,{label:t,className:"stk-preset-color-schemes__control"},(0,ue.createElement)("div",{className:"stk-preset-color-schemes__preset-wrapper"},n.map(((e,t)=>(0,ue.createElement)(kh,{key:t,colors:e,onClick:()=>o(e)})))))},wh=kh,Ch=(e,t)=>{const{blockType:n,defaultVariation:o,variations:a}=(0,he.useSelect)((t=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:a}=t("core/blocks"),{getBlock:l}=t("core/block-editor");if(!e)return{};if(!l(e))return{};const{name:r}=l(e);return{blockType:o(r),defaultVariation:a(r,"block"),variations:n(r,"block")}}),[e,t]),{getActiveBlockVariation:l}=(0,he.useSelect)("core/blocks");return t?null:(0,ue.createElement)(mu,{icon:(0,d.get)(n,["icon","src"]),label:(0,d.get)(n,["title"]),variations:a||[],onSelect:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;const n=(0,he.select)("core/block-editor").getBlock(e),a=(0,le.applyFilters)("stackable.variation-picker.variation-selected",t,n.name),r=l(n.name,n.attributes),i=(0,le.applyFilters)("stackable.variation-picker.variation-selected",r,n.name);let s={};if(i&&(s={...i.attributes},Object.keys(s).forEach((e=>s[e]=void 0))),s={...s,...a.attributes||{},uniqueId:Gm(e)},(0,he.dispatch)("core/block-editor").updateBlockAttributes(e,s),a.innerBlocks){const t=(0,Ve.createBlocksFromInnerBlocksTemplate)(a.innerBlocks);if(Um(t),n.innerBlocks.length){const e=_h(t),o=_h(n.innerBlocks);Object.keys(o).forEach((n=>{o[n].forEach(((o,a)=>{if(e[n])if(a<e[n].length){const t=e[n][a];t.attributes={...t.attributes,...(0,d.pick)(o.attributes,q)}}else if("stackable/button"===n||"stackable/icon-button"===n){const t=e[n][a-1];if(null!=t&&t.parent){const a=(0,Ve.cloneBlock)(t);a.attributes={...a.attributes,...(0,d.pick)(o.attributes,q)},t.parent.innerBlocks.push(a),e[n].push(t)}}else if("stackable/text"===n){const l=e[n][a-1],r=(0,Ve.cloneBlock)(l);if(r.attributes={...r.attributes,...(0,d.pick)(o.attributes,q)},l.parent){const e=l.parent.innerBlocks.indexOf(l);-1!==e&&l.parent.innerBlocks.splice(e+1,0,r)}else{const e=t.indexOf(l);-1!==e&&t.splice(e+1,0,r)}e[n].push(l)}}))}))}(0,he.dispatch)("core/block-editor").replaceInnerBlocks(e,t,!i)}},allowSkip:!0})},_h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let n=0;n<e.length;n++){const o=e[n].name;t[o]?t[o].push(e[n]):t[o]=[e[n]],e[n].innerBlocks.forEach((t=>{t.parent=e[n]})),_h(e[n].innerBlocks,t)}return t},Eh=e=>{const t=(0,ue.useRef)(0),[n,o]=(0,ue.useState)(e),a=(0,ue.useCallback)((e=>{cancelAnimationFrame(t.current),t.current=requestAnimationFrame((()=>{o(e)}))}),[]);return(0,ue.useEffect)((()=>()=>{cancelAnimationFrame(t.current)}),[]),[n,a]},Sh=(e,t)=>{const n=(0,ue.useRef)(0),[o,a]=(0,ue.useState)("");return(0,ue.useEffect)((()=>(cancelAnimationFrame(n.current),n.current=requestAnimationFrame((()=>{a(e)})),()=>cancelAnimationFrame(n.current))),t),o},xh=(e,t)=>{const n=(0,ue.useRef)(0);(0,ue.useEffect)((()=>(cancelAnimationFrame(n.current),n.current=requestAnimationFrame(e),()=>cancelAnimationFrame(n.current))),t)},Th=JSON.parse('{"Block":{"block-margin-bottom":{"desktop":24,"mobile":16}},"Columns":{"column-margin":{"desktop":12,"mobile":8},"columns-column-gap":{"desktop":0},"columns-row-gap":{"desktop":0}},"Containers":{"container-padding":{"desktop":{"top":32,"right":32,"bottom":32,"left":32},"mobile":{"top":24,"right":24,"bottom":24,"left":24}},"container-padding-large":{"desktop":{"top":64,"right":80,"bottom":64,"left":80},"mobile":{"top":32,"right":24,"bottom":32,"left":24}},"container-padding-small":{"desktop":{"top":16,"right":32,"bottom":16,"left":32},"mobile":{"top":8,"right":24,"bottom":8,"left":24}},"container-border-style":{"desktop":""},"container-border-width":{"desktop":1},"container-border-radius":{"desktop":0},"container-box-shadow":{"desktop":"0px 4px 24px rgba(0, 0, 0, 0.04)"},"container-background-color":{"desktop":"#fff"},"container-color":{"desktop":"#1e1e1e"}},"Block Backgrounds":{"block-background-padding":{"desktop":{"top":24,"right":24,"bottom":24,"left":24},"mobile":{"top":16,"right":16,"bottom":16,"left":16}},"block-background-border-style":{"desktop":""},"block-background-border-width":{"desktop":1},"block-background-border-radius":{"desktop":0},"block-background-box-shadow":{"desktop":""},"block-background-color":{"desktop":"#f1f1f1"}},"Images":{"image-border-radius":{"desktop":0},"image-drop-shadow":{"desktop":""}},"Buttons":{"button-min-height":{"desktop":0},"button-padding":{"desktop":{"top":12,"right":16,"bottom":12,"left":16}},"button-border-style":{"desktop":""},"button-border-width":{"desktop":1},"button-ghost-border-width":{"desktop":2},"button-border-radius":{"desktop":0},"button-box-shadow":{"desktop":""},"button-icon-size":{"desktop":24},"button-icon-gap":{"desktop":8},"button-column-gap":{"desktop":12},"button-row-gap":{"desktop":12},"button-background-color":{"desktop":"#008de4"},"button-text-color":{"desktop":"#fff"},"icon-button-padding":{"desktop":{"top":12,"right":12,"bottom":12,"left":12}}},"Icon Lists":{"icon-list-row-gap":{"desktop":0},"icon-list-icon-gap":{"desktop":8},"icon-list-indentation":{"desktop":0}},"Icons":{"icon-size":{"desktop":36},"icon-color":{"desktop":"#a6a6a6"},"icon-shape-color":{"desktop":"#ddd"}},"Typography":{"subtitle-size":{"desktop":16},"subtitle-color":{"desktop":"#39414d"}},"Tabs":{"tab-accent-color":{"desktop":"#008de4"}}}'),Bh=()=>{const{blockLayouts:e}=(0,he.useSelect)((e=>({blockLayouts:{...e("stackable/global-spacing-and-borders").getBlockLayouts(),...e("stackable/global-buttons-and-icons").getBlockLayouts()}})),[]),t={...Th},n=Object.values(t).reduce(((e,t)=>(Object.entries(t).forEach((t=>{let[n,o]=t;"object"==typeof o&&"hoverStates"in o&&delete o.hoverStates,e[n]=o})),e)),{}),o=(e,t,n)=>{var o;let a=null===(o=e[t])||void 0===o?void 0:o[n];var l,r;return a||"mobile"!==n||(a=null===(l=e[t])||void 0===l?void 0:l.tablet),a||"mobile"!==n&&"tablet"!==n||(a=null===(r=e[t])||void 0===r?void 0:r.desktop),a};return{blockLayouts:e,defaults:n,getPlaceholder:function(t){let{device:a="desktop",single:l=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=`${a}`,i=o(n,t,r);let s=o(e,t,r)||i;return"object"==typeof s&&l?s=s.top||s.right||s.bottom||s.left:"object"==typeof s&&(s={top:s.top||i.top,right:s.right||i.right,bottom:s.bottom||i.bottom,left:s.left||i.left}),s}}},Mh=e=>Object.values(e).some((e=>Object.values(e).some((e=>""!==e)))),Ih=()=>{const{getScheme:e,getColorGroups:t,allColorSchemes:n,COLOR_SCHEME_OPTIONS:o,baseColorScheme:a,backgroundModeColorScheme:l,containerModeColorScheme:r}=(0,he.useSelect)((e=>{const{colorSchemes:t,hideColorSchemeColors:n,baseColorScheme:o,backgroundModeColorScheme:a,containerModeColorScheme:l}=e("stackable/global-color-schemes").getSettings(),r=(0,le.applyFilters)("stackable.global-settings.global-color-schemes.custom-color-schemes",t,!0),i=[{label:(0,v.__)("Scheme unavailable",m.i18n),value:"scheme-unavailable",hidden:!0,disabled:!0},...null==r?void 0:r.map((e=>({label:e.name,value:e.key,disabled:!Mh(e.colorScheme)})))],s=function(e){var t;let{mode:n="",returnFallback:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a="background"===n?"scheme-default-2":"scheme-default-1";return(null===(t=i.find((t=>t.value===e)))||void 0===t?void 0:t.value)||(o?a:"scheme-unavailable")},c=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^([a-z])/,(e=>e.toUpperCase())),u=(e,t)=>"--stk-"+t+"-"+(0,d.kebabCase)(e);return{getScheme:s,getColorGroups:()=>{if(n)return{colorSchemeColors:[],colorSchemeGradients:[]};const e=[],t=[];return r.forEach((n=>{if(n.hideInPicker)return;const o=[],a=[];Object.entries(n.colorScheme).forEach((e=>{let[t,l]=e;if(null==l||!l.desktop)return o;null!=l&&l.desktop.startsWith("linear-")||null!=l&&l.desktop.startsWith("radial-")?a.push({gradient:null==l?void 0:l.desktop,name:c(t),slug:u(t,n.key)}):o.push({color:null==l?void 0:l.desktop,name:c(t),slug:u(t,n.key)})})),0!==o.length&&e.push({name:n.name,id:n.key,colors:o}),0!==a.length&&t.push({name:n.name,id:n.key,gradients:a})})),{colorSchemeColors:e,colorSchemeGradients:t}},allColorSchemes:r,COLOR_SCHEME_OPTIONS:i,baseColorScheme:s(o),backgroundModeColorScheme:s(a,"background"),containerModeColorScheme:s(l)}}),[]);return{getScheme:e,getColorGroups:t,allColorSchemes:n,COLOR_SCHEME_OPTIONS:o,baseColorScheme:a,backgroundModeColorScheme:l,containerModeColorScheme:r}},{clearTimeout:Nh,setTimeout:Rh}=window,Ah=250;function Hh(e){let{ref:t,isFocused:n,debounceTimeout:o=Ah,onChange:a=d.noop}=e;const[l,r]=(0,ue.useState)(!1),i=(0,ue.useRef)(),s=e=>{r(e),a(e)},c=()=>{const e=i.current;e&&Nh&&Nh(e)};return(0,ue.useEffect)((()=>()=>c()),[]),{showMovers:l,debouncedShowMovers:e=>{c(),l||s(!0)},debouncedHideMovers:e=>{c(),i.current=Rh((()=>{(()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e})()&&s(!1)}),o)}}}const Ph=(0,jt.createHigherOrderComponent)((e=>t=>{const n=(0,ue.useRef)(),{showMovers:o,gestures:a}=function(e){let{ref:t,debounceTimeout:n=Ah,onChange:o=d.noop}=e;const[a,l]=(0,ue.useState)(!1),{showMovers:r,debouncedShowMovers:i,debouncedHideMovers:s}=Hh({ref:t,debounceTimeout:n,isFocused:a,onChange:o}),c=(0,ue.useRef)(!1),u=()=>(null==t?void 0:t.current)&&t.current.contains(document.activeElement);return(0,ue.useEffect)((()=>{const e=t.current,n=()=>{u()&&(l(!0),i())},o=()=>{u()||(l(!1),s())};return e&&!c.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),c.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}}),[t,c,l,i,s]),{showMovers:r,gestures:{onMouseMove:i,onMouseLeave:s}}}({ref:n});return(0,ue.createElement)("div",dt({},a,{ref:n}),(0,ue.createElement)(e,dt({},t,{isHovered:o})))}),"withIsHovered"),Oh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.version;return(0,jt.createHigherOrderComponent)((t=>n=>(0,ue.createElement)(t,dt({},n,{version:e}))),"withVersion")},zh=(0,jt.createHigherOrderComponent)((e=>t=>(0,ue.createElement)(Oe,t,(0,ue.createElement)(e,t))),"withBlockAttributeContext"),Lh={},$h=(0,jt.createHigherOrderComponent)((e=>t=>{const{wrapperProps:n=Lh}=t,o=Uh(t),[a,l]=Ye();return(0,ue.createElement)(fu,dt({align:t.attributes.align,className:t.attributes.className,blockHoverClass:l},n),o&&(0,ue.createElement)(e,dt({},t,{blockState:a,blockHoverClass:l})))}),"withBlockWrapper");let Dh=!0,Fh=null;const Uh=e=>{const{clientId:t,isSelected:n}=e,{rootBlockClientId:o}=(0,he.useSelect)((e=>{const{getBlockRootClientId:n}=e("core/block-editor");return{rootBlockClientId:n(t)}}),[t]);n&&(Fh=o);const a=o===t;Dh&&setTimeout((()=>{Dh=!1}),1e3);const l=!a||Fh===t||Dh,[r,i]=(0,ue.useState)(l);return(0,ue.useEffect)((()=>{if(!r){const e=setTimeout((()=>{i(!0)}),300);return()=>clearTimeout(e)}}),[r]),r},{clearTimeout:Wh,setTimeout:Vh}=window;const Gh={},jh=(0,jt.createHigherOrderComponent)((e=>t=>{const{wrapperProps:n=Gh}=t,o=(0,ue.useRef)(),{showMovers:a,gestures:l}=function(e){let{ref:t}=e;const[n,o]=(0,ue.useState)(!1),{showMovers:a,debouncedShowMovers:l,debouncedHideMovers:r}=function(e){let{ref:t,isFocused:n}=e;const[o,a]=(0,ue.useState)(!1),l=(0,ue.useRef)(),r=(0,ue.useCallback)((()=>{l.current&&Wh&&Wh(l.current),a(!0)}),[]),i=(0,ue.useCallback)((()=>{l.current&&Wh&&Wh(l.current),l.current=Vh((()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");n||e||a(!1)}),100)}),[n]);return(0,ue.useEffect)((()=>()=>{a(!1),l.current&&Wh&&Wh(l.current)}),[]),{showMovers:o,debouncedShowMovers:r,debouncedHideMovers:i}}({ref:t,isFocused:n}),i=(0,ue.useRef)(!1),s=()=>(null==t?void 0:t.current)&&t.current.contains(document.activeElement);return(0,ue.useEffect)((()=>{const e=t.current,n=()=>{s()&&(o(!0),l())},a=()=>{s()||(o(!1),r())};return e&&!i.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",a,!0),i.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",a))}}),[t,i,o,l,r]),{showMovers:a,gestures:{onMouseMove:l,onMouseLeave:r}}}({ref:o}),[r,i]=Ye(),s=Uh(t);return(0,ue.createElement)(fu,dt({align:t.attributes.align,className:t.attributes.className,blockHoverClass:i,hoverRef:o},s?l:{},n),s&&(0,ue.createElement)(e,dt({},t,{isHovered:a,blockState:r,blockHoverClass:i})))}),"withBlockWrapperIsHovered");class qh{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.styleParams=e,this.initStyles(),this.queryLoopInstance=null}setStyleParams(e){this.styleParams=e}initStyles(){this.styles={editor:{},saveOnly:{}}}setQueryLoopInstance(e){this.queryLoopInstance=e}getQueryLoopInstance(){return this.queryLoopInstance}appendToSelector(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];this.queryLoopInstance&&(e=e.replace(/[^^?](.%s)([^-])/g,`$1-${this.queryLoopInstance}$2`));const r="edit"!==a?o:o.match(/^(desktop|tablet|mobile)/g),i=""===a?this.styles:this.styles[a];"desktop"!==r&&r?(void 0===i[r]&&(i[r]={}),void 0===i[r][e]&&(i[r][e]={}),i[r][e][t]=n,l.forEach((o=>{i[r][e][`${o}${t}`]=n}))):(void 0===i[e]&&(i[e]={}),i[e][t]=n,l.forEach((o=>{i[e][`${o}${t}`]=n})))}generateStyles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return this.initStyles(),this.styleParams.forEach((n=>{n.styles?Object.keys(n.styles).forEach((o=>{this.add(e,{...n,styleRule:o,attrName:n.styles[o]},t)})):this.add(e,n,t)})),this.styles}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";const{selector:o="",styleRule:a="",attrName:l="",format:r="%s",hasUnits:i=!1,responsive:s=!1,hover:c=!1,attrNameTemplate:u="",selectorCallback:p=null,hoverSelector:h="",hoverSelectorCallback:g=null,hoverCallback:m=null,styleRuleCallback:b=null,renderIn:f="",valuePreCallback:k=null,valueCallback:y=null,enabledCallback:w=null,vendorPrefixes:C=[],clampCallback:_=null,unitCallback:E=null}=t,S=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=u?H(u,t):t;let r=e[W(l,n,o)];if(!a)return r;const i="mobile"===n?["mobile","tablet","desktop"]:"tablet"===n?["tablet","desktop"]:["desktop"];return i.some((t=>{const n=e[W(l,t)];return""!==n&&void 0!==n&&(r=n,!0)})),r},x=u?H(u,l):l,T=f.replace("save","saveOnly").replace("edit","editor");if(w&&!w(S,e))return;let B=a;b&&(B=b(S,e));let M=p?p(S,e):o,I=g?g(S,e):h;const N=m?m(S,e):c,R=(t,n,o)=>{const a=W(`${t}Unit`,n,o),l=W(t,n,o);let c=i?e[a]||i:"",d=e[l];if(""===d&&("tablet"===n||"mobile"===n)){const a=e[W(`${t}Unit`,"desktop",o)],l=e[W(`${t}Unit`,"tablet",o)];"tablet"===n?c=a:"mobile"===n&&(c=""!==e[W(t,"tablet",o)]?l:a)}if(E&&(c=E(c,n,o)),_&&s){const a=e[W(t,"desktop",o)],l=e[W(t,"tablet",o)];""!==d&&void 0!==d||("tablet"===n?d=_(a,S,n,o,c,e):"mobile"===n&&(d=_(""!==l?l:a,S,n,o,c,e)))}if(k&&(d=k(d,S,n,o,e)),""!==d&&void 0!==d)return c&&(d="auto"===d?d:`${d}${c}`),"%s"!==r&&""!==r&&(d=(0,v.sprintf)(r.replace(/%([sd])%/,"%$1%%"),d)),y&&(d=y(d,S,n,o,e)),d},A="all"===s||Array.isArray(s)&&s.find((e=>e.startsWith("tablet"))),P="all"===s||Array.isArray(s)&&s.find((e=>e.startsWith("mobile"))),O=(Array.isArray(s)?s.find((e=>e.startsWith("desktop"))):"desktop")||"desktop",z=(Array.isArray(s)?s.find((e=>e.startsWith("tablet"))):"tablet")||"tablet",L=(Array.isArray(s)?s.find((e=>e.startsWith("mobile"))):"mobile")||"mobile",$="all"===N||Array.isArray(N)&&N.includes("hover"),D="all"===N||Array.isArray(N)&&N.includes("parent-hover"),F="all"===N||Array.isArray(N)&&N.includes("collapsed"),U=(e,t,o,a)=>{const l=e=>{const l=[];return l.push(n===a?o:t),l.push(e),(0,d.compact)(l).join(e.startsWith(":")?"":" ")};return Array.isArray(e)?e.map(l).join(", "):l(e)},V=(e,t,o,a)=>{const l=e=>`${e}${n===a?o:t}`;return Array.isArray(e)?e.map(l).join(", "):l(e)},G=U(M,":where(.stk-block-accordion.stk--is-open) .%s, .%s.stk--is-open",":where(.stk-block-accordion.stk--is-open) .%s, .%s.stk--is-open","collapsed"),j=U(M,":where(.stk-hover-parent:hover, .stk-hover-parent.stk--is-hovered) .%s",".%s.stk--is-hovered","parent-hover");I=(I||M).includes("[data-block=")&&(I||M).endsWith("]")?I?V("hover"===n?M:I||M,null,".stk--is-hovered","hover"):V(M,":hover",".stk--is-hovered","hover"):I?U("hover"===n?M:I||M,null,".%s.stk--is-hovered","hover"):U(M,".%s:hover",".%s.stk--is-hovered","hover"),M=U(M),this.appendToSelector(M,B,R(x,"desktop","normal"),O,T,C),$&&this.appendToSelector(I,B,R(x,"desktop","hover"),O,T,C),D&&this.appendToSelector(j,B,R(x,"desktop","parent-hover"),O,T,C),F&&this.appendToSelector(G,B,R(x,"desktop","collapsed"),O,T,C),A&&(this.appendToSelector(M,B,R(x,"tablet","normal"),z,T,C),$&&this.appendToSelector(I,B,R(x,"tablet","hover"),z,T,C),D&&this.appendToSelector(j,B,R(x,"tablet","parent-hover"),z,T,C),F&&this.appendToSelector(G,B,R(x,"tablet","collapsed"),O,T,C)),P&&(this.appendToSelector(M,B,R(x,"mobile","normal"),L,T,C),$&&this.appendToSelector(I,B,R(x,"mobile","hover"),L,T,C),D&&this.appendToSelector(j,B,R(x,"mobile","parent-hover"),L,T,C),F&&this.appendToSelector(G,B,R(x,"mobile","collapsed"),O,T,C))}}const Kh=qh,Jh={},Yh=e=>{const t=(0,ue.useContext)(Sn),n=(0,he.useSelect)((e=>{var t;return null===(t=e("core/editor"))||void 0===t?void 0:t.getCurrentPostId()})),[o,a]=(0,ue.useState)(0);return(0,ue.useEffect)((()=>{if(((e,t)=>(null==e?void 0:e.postId)&&t&&(null==e?void 0:e.postId)!==t)(t,n)&&e){const n=Jh[e]||[];n.includes(null==t?void 0:t.postId)||n.push(null==t?void 0:t.postId),Jh[e]=n,a(n.findIndex((e=>e===(null==t?void 0:t.postId)))+1)}}),[null==t?void 0:t.id,n,e]),o},Xh=[["","Unit"],["","Tablet","Mobile"],["","Hover","ParentHover","Collapsed"]],Qh=e=>e.reduce(((e,t)=>(Xh[0].forEach((n=>{Xh[1].forEach((o=>{Xh[2].forEach((a=>{e.push(`${t}${n}${o}${a}`)}))}))})),e)),[]);function Zh(e){const t=[];return e.forEach((e=>{const{attrName:n="",dependencies:o=[],attrNameTemplate:a="",styles:l={}}=e,r=a?H(a,n):n;r&&!t.includes(r)&&t.push(r),Object.values(l).forEach((e=>{const n=a?H(a,e):e;n&&!t.includes(n)&&t.push(n)})),o.forEach((e=>{const n=a?H(a,e):e;n&&!t.includes(n)&&t.push(n)}))})),[...Qh(t),"uniqueId"]}function eg(e){const t=2===arguments.length?arguments[1]:e,[n]=Ye(),{clientId:o}=(0,$e.useBlockEditContext)(),a=Ae((e=>({...(0,d.pick)(e,Zh(t)),clientId:o}))),l=Yh(a.uniqueId),r=(0,ue.useRef)(new qh);return r.current.setStyleParams(t),(0,ue.useEffect)((()=>{r.current.getQueryLoopInstance()||r.current.setQueryLoopInstance(l)}),[r.current,l]),(0,ue.useMemo)((()=>r.current.generateStyles(a,n)),[r.current,a,n])}const tg=(e,t)=>new qh(t).generateStyles(e),ng=e=>{try{let t=(0,le.applyFilters)("stackable.util.is-dark-color",e);if(!t.match(/^#/)){if(!(t.indexOf("var(")>-1))return Q()(t);t=ie(t)}if(t.match(/^rgb/)){const e=(e,t,n)=>"#"+[e,t,n].map((e=>{const t=e.toString(16);return 1===t.length?"0"+t:t})).join(""),n=ae(t);n.splice(3,1),t=e(...n)}return t=t.replace(/#/g,""),3===t.length&&(t=t.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")),Q()(`#${t}`.trim())}catch(e){return!1}},og=e=>"left"===e||"flex-start"===e?0:"auto",ag=e=>"right"===e||"flex-end"===e?0:"auto",lg=e=>"left"===e?"flex-start":"right"===e?"flex-end":e,rg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=""!==e?e:void 0;return!n&&t&&ng(t)?"#ffffff":n},ig=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#ffffff",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#222222";const a=""!==e?e:void 0;return!a&&t?ng(t)?n:o:a},sg=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(((n,o)=>({...n,[o]:cg(e[o],t)})),{})},cg=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""!==e&&void 0!==e&&t&&!String(e).match(/!important/i)?`${e} !important`:e},dg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;const r=null!==t?t:e=>(0,d.lowerFirst)(e),i=void 0===e[r(o)]?"":e[r(o)];return""!==i?a?(0,v.sprintf)(a.replace(/%([sd])%/,"%$1%%"),i):i:l}},ug=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{min:n=Number.NEGATIVE_INFINITY,max:o=Number.POSITIVE_INFINITY}=t;if(""!==e){const t=(0,d.clamp)(e,parseFloat(n),parseFloat(o));if(!isNaN(t))return parseFloat(t)!==parseFloat(e)?t:void 0}},pg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"marginBottom",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"%spx",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const r="boolean"==typeof l?{important:l}:l,{important:i=!1,inherit:s=!0,inheritTabletMax:c,inheritTabletMin:d,inheritMobileMax:u,inheritMobileMin:p}=r,h=dg(a);if(s){const a=h((0,v.sprintf)(t,""),o),l=h((0,v.sprintf)(t,"Tablet"),o),r=h((0,v.sprintf)(t,"Mobile"),o),s=ug(h((0,v.sprintf)(t,"")),{min:d,max:c}),g=ug(h((0,v.sprintf)(t,"")),{min:p,max:u});return[{[e]:{[n]:cg(a,i)},tabletOnly:{[e]:{[n]:cg(l||s&&(0,v.sprintf)(o,s),i)}},mobile:{[e]:{[n]:cg(r||g&&(0,v.sprintf)(o,g),i)}}}]}return[{desktopOnly:{[e]:{[n]:cg(h((0,v.sprintf)(t,""),o),i)}},tabletOnly:{[e]:{[n]:cg(h((0,v.sprintf)(t,"Tablet"),o),i)}},mobile:{[e]:{[n]:cg(h((0,v.sprintf)(t,"Mobile"),o),i)}}}]},hg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=dg(n),a=o("contentAlign"),l=o("TabletContentAlign"),r=o("MobileContentAlign"),i=o((0,v.sprintf)(t,"")),s=o((0,v.sprintf)(t,"Tablet")),c=o((0,v.sprintf)(t,"Mobile"));return[{[e]:sg({marginLeft:i||a?og(i||a):void 0,marginRight:i||a?ag(i||a):void 0}),tablet:{[e]:sg({marginLeft:s||l?og(s||l):void 0,marginRight:s||l?ag(s||l):void 0})},mobile:{[e]:sg({marginLeft:c||r?og(c||r):void 0,marginRight:c||r?ag(c||r):void 0})}}]},gg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"marginBottom",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"%spx",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return[{editor:pg(e,t,n,o,a,l)[0]}]},mg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),l=dg(n,a,""),{importantSize:r=!1,important:i=!0,inherit:s=!0,inheritMax:c=50,inheritMin:u}=o;let p={};const h=l("FontSize"),g=l("TabletFontSize"),m=l("MobileFontSize");if("tablet"!==t&&"mobile"!==t)p={fontFamily:""!==l("FontFamily")?x(l("FontFamily")):void 0,fontSize:""!==h?cg(`${h}${l("FontSizeUnit")||"px"}`,r):void 0,fontWeight:""!==l("FontWeight")?l("FontWeight"):void 0,textTransform:""!==l("TextTransform")?l("TextTransform"):void 0,letterSpacing:""!==l("LetterSpacing")?`${l("LetterSpacing")}px`:void 0,lineHeight:""!==l("LineHeight")?`${l("LineHeight")}${l("LineHeightUnit")||"em"}`:void 0};else if("tablet"===t){if(p={lineHeight:""!==l("TabletLineHeight")?`${l("TabletLineHeight")}${l("TabletLineHeightUnit")||"em"}`:void 0,letterSpacing:""!==l("TabletLetterSpacing")?`${l("TabletLetterSpacing")}px`:void 0},s){const e=ug(h,{min:u,max:c});e&&(p.fontSize=`${e}${l("FontSizeUnit")||"px"}`)}g&&(p.fontSize=l("TabletFontSize",`%s${l("TabletFontSizeUnit")||"px"}`))}else{if(p={lineHeight:""!==l("MobileLineHeight")?`${l("MobileLineHeight")}${l("MobileLineHeightUnit")||"em"}`:void 0,letterSpacing:""!==l("MobileLetterSpacing")?`${l("MobileLetterSpacing")}px`:void 0},s){const e=ug(h,{min:u,max:c});e&&(p.fontSize=`${e}${l("FontSizeUnit")||"px"}`);const t=ug(g,{min:u,max:c});t?p.fontSize=`${t}${l("TabletFontSizeUnit")||"px"}`:(e||g)&&(p.fontSize=void 0)}m&&(p.fontSize=l("MobileFontSize",`%s${l("MobileFontSizeUnit")||"px"}`))}return i?sg(p):p},vg=e=>{const t=document.createElement("div");if(t.classList.add("editor-styles-wrapper"),t.classList.add("ugb-default-font-size"),t.innerHTML=`<div class="wp-block">${e.map((e=>e.startsWith(".")?`<p class="${e.substring(1)}"></p>`:`<${e}></${e}>`)).join()}</div>`,!document||!document.body)return{};document.body.appendChild(t);const n={};return e.forEach((e=>{const o=window.getComputedStyle(t.querySelector(e)).getPropertyValue("font-size");n[e]=Math.round(parseFloat(o))})),document.body.removeChild(t),n};let bg={};const fg=()=>{bg={...vg(["h1","h2","h3","h4","h5","h6","p",".stk-subtitle",".stk-button__inner-text"])}};(0,le.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",((e,t,n,o)=>(e[`.ugb-default-font-size .wp-block ${t}`]=mg("%s","desktop",o,{important:!0}),bg={},e)));const kg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(bg).length&&!t||fg(),bg[e]||bg.p||21};on((()=>{fg()}));const yg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{exclude:n=[],include:o=[]}=t;return $(L({...O(e,{type:"string",default:""},["BorderType","BorderColor"]),...O(e,{type:"number",default:""},["BorderWidthTop","BorderWidthRight","BorderWidthBottom","BorderWidthLeft","TabletBorderWidthTop","TabletBorderWidthRight","TabletBorderWidthBottom","TabletBorderWidthLeft","MobileBorderWidthTop","MobileBorderWidthRight","MobileBorderWidthBottom","MobileBorderWidthLeft"])},n,e),o,e)},wg=yg,Cg=e=>Object.keys(yg(e)),_g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),a=dg(n,o),l=[];return a("BorderType")?(l.push({[t]:sg({borderStyle:a("BorderType"),borderColor:a("BorderColor")||"#000000",borderTopWidth:a("BorderWidthTop","%spx")||"1px",borderRightWidth:a("BorderWidthRight","%spx")||"1px",borderBottomWidth:a("BorderWidthBottom","%spx")||"1px",borderLeftWidth:a("BorderWidthLeft","%spx")||"1px"}),tablet:{[t]:sg({borderTopWidth:a("TabletBorderWidthTop","%spx"),borderRightWidth:a("TabletBorderWidthRight","%spx"),borderBottomWidth:a("TabletBorderWidthBottom","%spx"),borderLeftWidth:a("TabletBorderWidthLeft","%spx")})},mobile:{[t]:sg({borderTopWidth:a("MobileBorderWidthTop","%spx"),borderRightWidth:a("MobileBorderWidthRight","%spx"),borderBottomWidth:a("MobileBorderWidthBottom","%spx"),borderLeftWidth:a("MobileBorderWidthLeft","%spx")})}}),N().all(l)):l},Eg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-img",exclude:o=[]}=t;return L({...O(e,{type:"string",default:"",source:"attribute",selector:n,attribute:"src"},["Url"]),...O(e,{type:"string",default:"",source:"attribute",selector:n,attribute:"alt"},["Alt"]),...O(e,{type:"string",default:""},["Shape","Size","BlendMode","BackgroundPosition"]),...O(e,{type:"number",default:""},["Id","Width","Height","TabletWidth","MobileWidth","BorderRadius","Shadow"]),...O(e,{type:"boolean",default:""},["ShapeStretch","ShapeFlipX","ShapeFlipY","Square","TabletSquare","MobileSquare"]),...O(e,{type:"string",default:"large"},["Size"])},o,e)},Sg=Eg,xg=e=>Object.keys(Eg(e)),Tg=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,ue.renderToString)(e).replace(/viewbox/,"viewBox").replace(/preserveaspectratio/,"preserveAspectRatio");return t?n.replace(/#/g,"%23"):n},Bg={circle:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},e),(0,ue.createElement)("circle",{cx:50,cy:50,r:50}))},square:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,ue.createElement)("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}))},blob1:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,ue.createElement)("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"}))}},Mg=e=>{const t=(0,le.applyFilters)("stackable.image.shape.svgs",Bg);return t[e]?t[e]:null},Ig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),o=dg(t,n),a=o("Shape");return{borderRadius:a?void 0:o("BorderRadius","%spx")}},Ng=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),a=dg(n,o),l=a("Shape"),r=(e,t)=>a(t)&&a(e)?a(e,"%spx"):"auto";return"tablet"!==t&&"mobile"!==t?{borderRadius:l?void 0:a("BorderRadius","%spx"),width:a("Width","%spx"),height:a("Width")?cg(r("Width","Square")):void 0}:"tablet"===t?{width:a("TabletWidth","%spx"),height:a("TabletWidth")?cg(r("TabletWidth","TabletSquare")):void 0}:{width:a("MobileWidth","%spx"),height:a("MobileWidth")?cg(r("MobileWidth","MobileSquare")):void 0}},Rg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parentAttrNameTemplate:o}=n,a=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),l=dg(t,a),r=e=>{if(o){const n=dg(t,(e=>(0,d.camelCase)((0,v.sprintf)(o,e))));return void 0!==l(e)?l(e):n(e)}return l(e)},i=r("Shape");if(!i)return{};const s=r("ShapeStretch"),c=r("ShapeFlipX"),u=r("ShapeFlipY"),p=Mg(i),h=(0,ue.createElement)(p,{preserveAspectRatio:!["","square"].includes(i)&&s?"none":void 0,transform:c||u?`scale(${c?-1:1},${u?-1:1})`:void 0}),g=btoa(Tg(h));return{"-webkit-mask-image":`url('data:image/svg+xml;base64,${g}')`,"mask-image":`url('data:image/svg+xml;base64,${g}')`}},Ag=Ng,Hg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{inherit:a=!0}=o,l={[`.${t}`]:{...Rg(e,n,o)},tabletOnly:{[`.${t}`]:{...Ng(e,"tablet",n,o)}},mobile:{[`.${t}`]:{...Ng(e,"mobile",n,o)}}};return a?l[`.${t}`]={...l[`.${t}`],...Ng(e,"desktop",n,o)}:(l[`.${t}`]={...l[`.${t}`],...Ig(e,n)},l.desktopTablet={[`.${t}`]:{...Ng(e,"desktop",n,o)}}),l},Pg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{width:e.media_details?e.media_details.width:"",height:e.media_details?e.media_details.height:"",source_url:e.source_url||""}},Og=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.media_details&&e.media_details.sizes&&e.media_details.sizes[t]||Pg(e):null};window._stackableCachedImageData={};const zg=(e,t)=>{const{getMedia:n}=t("core"),o=e?n(e):null;return o&&void 0!==o.id&&(window._stackableCachedImageData[o.id]=o),o},Lg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full";const n=$g(e)||zg(e,he.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""},$g=e=>window._stackableCachedImageData[e]||null,Dg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{exclude:n=[]}=t;return L({...O(e,{type:"string",default:""},["Url","BackgroundPosition","BackgroundRepeat","BackgroundSize","Alt","Title"]),...O(e,{type:"number",default:""},["Id","BackgroundCustomSize"]),...O(e,{type:"string",default:"large"},["Size"]),...O(e,{type:"string",default:"px"},["BackgroundCustomSizeUnit"])},n,e)},Fg=Dg,Ug=e=>Object.keys(Dg(e)),Wg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),a=dg(n,o);return"tablet"!==t&&"mobile"!==t?{backgroundImage:a("Url","url(%s)"),backgroundPosition:cg(a("BackgroundPosition")),backgroundRepeat:cg(a("BackgroundRepeat")),backgroundSize:cg("custom"!==a("BackgroundSize")?a("BackgroundSize"):a("BackgroundCustomSize")?a("BackgroundCustomSize")+a("BackgroundCustomSizeUnit","%s","px"):void 0)}:{}},Vg=Wg,Gg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{[`.${t}`]:{...Wg(e,"desktop",n,o)},tablet:{[`.${t}`]:{...Wg(e,"tablet",n,o)}},mobile:{[`.${t}`]:{...Wg(e,"mobile",n,o)}}}},jg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-button",defaultText:o=(0,v.__)("Button text",m.i18n),exclude:a=[],include:l=[]}=t;return $(L({...J(e),...O(e,{type:"string",source:"html",selector:`${n} span`,default:o},["Text"]),...O(e,{type:"string",source:"attribute",selector:n,attribute:"href",default:""},["Url"]),...O(e,{type:"boolean",source:"attribute",selector:n,attribute:"target",default:""},["NewTab"]),...O(e,{type:"string",default:""},["Design","Size","Icon","IconPosition","TextColor","BackgroundColorType","BackgroundColor","BackgroundColor2","HoverEffect","HoverTextColor","HoverBackgroundColor","HoverBackgroundColor2"]),...O(e,{type:"number",default:""},["Opacity","HoverOpacity","PaddingTop","PaddingRight","PaddingBottom","PaddingLeft","BorderRadius","BorderWidth","Shadow","IconSize","IconSpacing","BackgroundGradientDirection","HoverBackgroundGradientDirection"]),...O(e,{type:"boolean",default:""},["HoverGhostToNormal","NoFollow","Sponsored","Ugc"])},a,e),l,e)},qg=jg,Kg=e=>Object.keys(jg(e)),Jg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{hasIcon:a=!1,hasActiveStyles:l=!1}=o,r=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),i=dg(n,r,""),s=[];s.push({[`.${t} .ugb-button--inner`]:{...mg(e,"desktop",n)},tablet:{[`.${t} .ugb-button--inner`]:{...mg(e,"tablet",n)}},mobile:{[`.${t} .ugb-button--inner`]:{...mg(e,"mobile",n)}}});const c=i("BackgroundColor2"),u=i("BackgroundColor");let p=!1;const h="gradient"===i("BackgroundColorType")&&(i("HoverBackgroundColor")||i("HoverBackgroundColor2")||i("HoverBackgroundGradientDirection"));if(""!==i("Design")&&"basic"!==i("Design")||(s.push({[`.${t}`]:{backgroundColor:""!==i("BackgroundColor")?i("BackgroundColor"):void 0,backgroundImage:"gradient"===i("BackgroundColorType")?`linear-gradient(${""!==n[r("BackgroundGradientDirection")]?i("BackgroundGradientDirection","%sdeg","90deg"):"90deg"}, ${i("BackgroundColor")||c}, ${i("BackgroundColor2")||u})`:void 0,paddingTop:""!==i("PaddingTop")?`${i("PaddingTop")}px`:void 0,paddingRight:""!==i("PaddingRight")?`${i("PaddingRight")}px`:void 0,paddingBottom:""!==i("PaddingBottom")?`${i("PaddingBottom")}px`:void 0,paddingLeft:""!==i("PaddingLeft")?`${i("PaddingLeft")}px`:void 0},[`.${t} .ugb-button--inner, .${t} svg:not(.ugb-custom-icon)`]:{color:cg(ig(i("TextColor"),i("BackgroundColor")))},[`.${t}:hover .ugb-button--inner, .${t}:hover svg:not(.ugb-custom-icon)`]:{color:cg(ig(i("HoverTextColor"),i("HoverBackgroundColor")))},[`.${t}:hover`]:{backgroundColor:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0},...l?{[`.${t}.is-active`]:{...h?{backgroundImage:`linear-gradient(${i("HoverBackgroundGradientDirection","%sdeg")||i("BackgroundGradientDirection","%sdeg","90deg")}, ${i("HoverBackgroundColor")||i("BackgroundColor")||c}, ${i("HoverBackgroundColor2")||i("BackgroundColor2")||u})`}:{backgroundColor:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0}},[`.${t}.is-active .ugb-button--inner, .${t}.is-active svg:not(.ugb-custom-icon)`]:{color:cg(ig(i("HoverTextColor"),i("HoverBackgroundColor")))},[`.${t}:focus`]:{backgroundColor:cg(""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0)}}:{}}),p=""!==i("HoverBackgroundColor"),s.push({[`.${t}:before`]:{content:h?'""':void 0,backgroundImage:h?`linear-gradient(${i("HoverBackgroundGradientDirection","%sdeg")||i("BackgroundGradientDirection","%sdeg","90deg")}, ${i("HoverBackgroundColor")||i("BackgroundColor")||c}, ${i("HoverBackgroundColor2")||i("BackgroundColor2")||u})`:void 0}}),p=p||h||""!==i("HoverTextColor")),"ghost"===i("Design")&&(s.push({[`.${t}`]:{borderColor:""!==i("BackgroundColor")?cg(i("BackgroundColor")):void 0,borderWidth:""!==i("BorderWidth")?`${i("BorderWidth")}px`:void 0,paddingTop:""!==i("PaddingTop")?`${i("PaddingTop")}px`:void 0,paddingRight:""!==i("PaddingRight")?`${i("PaddingRight")}px`:void 0,paddingBottom:""!==i("PaddingBottom")?`${i("PaddingBottom")}px`:void 0,paddingLeft:""!==i("PaddingLeft")?`${i("PaddingLeft")}px`:void 0},[`.${t} .ugb-button--inner`]:{color:""!==i("BackgroundColor")?cg(i("BackgroundColor")):void 0},[`.${t}:hover`]:{borderColor:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):void 0},[`.${t}:hover .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):""!==i("BackgroundColor")?cg(i("BackgroundColor")):void 0},...l?{[`.${t}:focus`]:{borderColor:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):void 0},[`.${t}:focus .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):""!==i("BackgroundColor")?cg(i("BackgroundColor")):void 0},[`.${t}.is-active`]:{borderColor:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):void 0},[`.${t}.is-active .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):""!==i("BackgroundColor")?cg(i("BackgroundColor")):void 0}}:{}}),(""!==i("Icon")||a)&&s.push({[`.${t}.ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)`]:{color:""!==i("BackgroundColor")?i("BackgroundColor"):void 0},[`.${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)`]:{color:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):""!==i("BackgroundColor")?i("BackgroundColor"):void 0}}),p=""!==i("HoverBackgroundColor"),i("HoverGhostToNormal")&&(s.push({[`.${t}:before`]:{content:'""',backgroundImage:`linear-gradient(${i("HoverBackgroundGradientDirection","%sdeg","90deg")}, ${i("HoverBackgroundColor")||i("BackgroundColor")}, ${i("HoverBackgroundColor2")||i("HoverBackgroundColor")||i("BackgroundColor")})`,top:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0,right:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0,bottom:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0,left:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0},[`.${t}:hover`]:{backgroundColor:cg(""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):i("BackgroundColor"))},[`.${t}:hover .ugb-button--inner`]:{color:cg(ig(i("HoverTextColor"),i("HoverBackgroundColor")||i("BackgroundColor")))},...l?{[`.${t}.is-active`]:{backgroundColor:cg(""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):i("BackgroundColor"))},[`.${t}.is-active .ugb-button--inner`]:{color:cg(ig(i("HoverTextColor"),i("HoverBackgroundColor")||i("BackgroundColor")))}}:{}}),(""!==i("Icon")||a)&&s.push({[`.${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)`]:{color:cg(ig(i("HoverTextColor"),i("HoverBackgroundColor")||i("BackgroundColor")))}}),p=!0)),"plain"===i("Design")&&(s.push({[`.${t} .ugb-button--inner`]:{color:""!==i("BackgroundColor")?cg(i("BackgroundColor")):void 0},[`.${t}:hover .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):void 0},...l?{[`.${t}.is-active .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?cg(i("HoverBackgroundColor")):void 0}}:{}}),(""!==i("Icon")||a)&&s.push({[`.${t}.ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)`]:{color:""!==i("BackgroundColor")?i("BackgroundColor"):void 0},[`.${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)`]:{color:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0}}),p=""!==i("HoverBackgroundColor")),"link"!==i("Design")){const e=""!==n[r("IconSpacing")]&&void 0!==n[r("IconSpacing")]?`${i("IconSpacing","%spx",16)}`:void 0,o=n[r("BorderRadius")];s.push({[`.${t}`]:{opacity:""!==i("Opacity")?i("Opacity"):void 0,borderRadius:""!==o&&void 0!==o?cg(`${o}px`):void 0},[`.${t}:before`]:{borderRadius:""!==o&&void 0!==o?cg(`${o}px`):void 0},[`.${t}:hover`]:{opacity:""!==i("HoverOpacity")?i("HoverOpacity"):p?1:void 0},...l?{[`.${t}.is-active`]:{opacity:""!==i("HoverOpacity")?i("HoverOpacity"):p?1:void 0}}:{},[`.${t}.ugb-button--has-icon.ugb-button--has-icon svg`]:{marginLeft:""===i("Icon")&&!a||"right"!==i("IconPosition")?void 0:e,marginRight:""===i("Icon")&&!a||"right"===i("IconPosition")?void 0:e,width:""!==i("IconSize")||a?`${i("IconSize")}px`:void 0,height:""!==i("IconSize")||a?`${i("IconSize")}px`:void 0}})}return N().all(s)},Yg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-button-%s",exclude:o=[],include:a=[]}=t,l=Object.keys(em).reduce(((o,a)=>({...o,...O(e,{type:"string",source:"attribute",selector:(0,v.sprintf)(n,a),attribute:"href",default:t[`${a}Default`]?t[`${a}Default`]:""},[`${(0,d.upperFirst)(a)}Url`])})),{});return $(L({...qg(e,{exclude:["Text","Url","NoFollow","Sponsored","Ugc","Icon","IconPosition","NewTab"]}),...O(e,{type:"boolean",default:""},["NewTab"]),...O(e,{type:"boolean",default:!0},["UseSocialColors"]),...l},o,e),a,e)},Xg=Yg,Qg=e=>Object.keys(Yg(e)),Zg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),a=dg(n,o,""),l=[];return l.push({...Jg(e,t,n,{hasIcon:!0})}),a("UseSocialColors")?(""!==a("Design")&&"basic"!==a("Design")||l.push({[`.${t}`]:{backgroundColor:void 0,backgroundImage:void 0},[`.${t} .ugb-button--inner, .${t} svg`]:{color:void 0},[`.${t}:hover .ugb-button--inner, .${t}:hover svg`]:{color:void 0},[`.${t}:hover`]:{backgroundColor:void 0},[`.${t}:before`]:{content:void 0,backgroundImage:void 0}}),"ghost"===a("Design")&&(l.push({[`.${t}`]:{borderColor:void 0},[`.${t} .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon svg`]:{color:void 0},[`.${t}:hover`]:{borderColor:void 0},[`.${t}:hover .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg`]:{color:void 0}}),a("HoverGhostToNormal")&&l.push({[`.${t}:before`]:{content:void 0,backgroundImage:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},[`.${t}:hover .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg`]:{color:void 0}})),"plain"===a("Design")&&l.push({[`.${t} .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon svg`]:{color:void 0},[`.${t}:hover .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg`]:{color:void 0}}),N().all(l)):N().all(l)},em={facebook:{label:(0,v.__)("Facebook",m.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg>'},twitter:{label:(0,v.__)("Twitter",m.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>'},instagram:{label:(0,v.__)("Instagram",m.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg>'},pinterest:{label:(0,v.__)("Pinterest",m.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="pinterest-p" class="svg-inline--fa fa-pinterest-p fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'},linkedin:{label:(0,v.__)("LinkedIn",m.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg>'},youtube:{label:(0,v.__)("YouTube",m.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path></svg>'},email:{label:(0,v.__)("Email",m.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg>'}},tm=Object.freeze({ENABLED:1,HIDDEN:2,DISABLED:3}),nm=e=>e.replace(/\//g,"-"),om=["uniqueClass"],am={};function lm(e){return am[e.name]||(am[e.name]=(0,Ve.createBlock)(e.name).attributes),Object.keys(am[e.name]).every((t=>!!om.includes(t)||am[e.name][t]===e.attributes[t]))}const rm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{getBlockName:n,getSelectedBlockClientId:o,getBlockAttributes:a,hasMultiSelection:l,getMultiSelectedBlockClientIds:r}=(0,he.select)("core/block-editor"),{updateBlockAttributes:i}=(0,he.dispatch)("core/block-editor"),{getBlockType:s}=(0,he.select)("core/blocks");if(!t&&l())return void r().forEach((t=>{rm(e,t)}));const c=t||o();if(!c)return;const u=a(c),p=n(c).replace(/^\w+\//g,""),h=s(n(c)).attributes,g=Object.keys(h).reduce(((e,t)=>({...e,[t]:h[t]?h[t].default:""})),{}),m=(0,le.applyFilters)(`stackable.${p}.design.filtered-block-attributes`,{...g,...e},u),v=(0,le.applyFilters)(`stackable.${p}.design.no-text-attributes`,m,u);T(v),i(c,(0,d.omit)(v,["uniqueClass"]))},im=(e,t,n)=>{const{getBlock:o}=(0,he.select)("core/block-editor"),{replaceInnerBlocks:a}=(0,he.dispatch)("core/block-editor"),l=o(e);a(e,Fm(l.innerBlocks,t,n),!1)},sm=()=>({name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=(0,he.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e("core/block-editor"),a=t();return{selectedBlockName:a?n(a):null,rootClientId:o().rootClientId}}),[]),{categories:o,collections:a,items:l}=(0,he.useSelect)((e=>{const{getInserterItems:n}=e("core/block-editor"),{getCategories:o,getCollections:a}=e("core/blocks");return{categories:o(),collections:a(),items:n(t)}}),[t]),r=(0,ue.useMemo)((()=>{let t=(0,d.orderBy)(l,["frecency"],["desc"]);return t=t.filter((t=>t.name.toLowerCase().includes(null==e?void 0:e.toLowerCase())||t.title.toLowerCase().includes(null==e?void 0:e.toLowerCase()))),t.slice(0,9)}),[e,n,l,o,a]),i=(0,ue.useMemo)((()=>r.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)($e.BlockIcon,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}))),[r]);return[i]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:(0,Ve.createBlock)(t,n,(0,Ve.createBlocksFromInnerBlocksTemplate)(o))}}}),cm=(e,t)=>{let n=e;const o=[];for(;null!==n;){const{getBlock:e,getBlockParents:a}=(0,he.select)("core/block-editor"),l=e(n),r=l.name,i=(0,d.last)(a(n));if(!i||i===n){o.unshift({type:l.name,nthOfType:1,numOfType:1});break}const s=e(i).innerBlocks,{nthOfType:c,numOfType:u}=s.reduce(((e,t)=>{let{name:o,clientId:a}=t;return o===r&&(e.numOfType++,e.foundClientId||(e.nthOfType++,a===n&&(e.foundClientId=!0))),e}),{nthOfType:0,numOfType:0,foundClientId:!1});o.unshift({type:l.name,nthOfType:c,numOfType:u}),n=n===t?null:(0,d.last)((0,he.select)("core/block-editor").getBlockParents(n))}return o},dm=(e,t)=>{const n=[];if(!t.length)return n;t[0].nthOfType=1,t[0].numOfType=1;let o=[(0,he.select)("core/block-editor").getBlock(e)];return t.forEach(((e,t)=>{const a=o.filter((n=>{if(e.type!==n.name)return!1;if(0===t)return!0;const o=um(n.clientId);return o===e.nthOfType||!!(e.nthOfType===e.numOfType&&o>e.nthOfType&&o>=e.numOfType)}));e.attributes&&a.forEach((e=>{let{clientId:t}=e;n.push(t)})),o=a.reduce(((e,t)=>[...e,...t.innerBlocks]),[])})),n},um=e=>{const{getBlock:t,getBlockParents:n}=(0,he.select)("core/block-editor"),o=t(e).name,a=(0,d.last)(n(e));if(!a||a===e)return 1;const l=t(a).innerBlocks;let r=0;return l.some((t=>{let{name:n,clientId:a}=t;return n===o&&(r++,a===e)})),r},pm=()=>{if(!(0,Ve.getCategories)().some((e=>"stackable"===e.slug))){const e={slug:"stackable",title:(0,v.__)("Stackable",m.i18n),icon:Li},t=m.blockCategoryIndex||0,n=[...(0,Ve.getCategories)()];n.splice(t,0,e),(0,Ve.setCategories)(n)}},hm=(e,t)=>{let n=(0,le.applyFilters)("stackable.block.metadata",t||{});n.variations&&n.variations.forEach((e=>{e.title||(e.title=n.title)})),n.getEditWrapperProps=()=>({"data-align":void 0}),n.edit=(0,le.applyFilters)("stackable.registerBlockType.edit",n.edit),n=(0,le.applyFilters)(`stackable.${e.replace("stackable/","")}.settings`,n),(0,Ve.registerBlockType)(e,n)},gm=(e,t,n,o)=>{const a=m.settings.stackable_block_states||{};if(o&&e in o){const l=o[e];if("variants"in l)return l.transform(t,n,a);if(e in a&&a[e]===tm.DISABLED)return l.transform(t,n)}return n?[e,t,n]:[e,t,[]]},mm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const[n,o]=(0,ue.useState)((()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}})),a=t=>{try{const a=t instanceof Function?t(n):t;o(a),window.localStorage.setItem(e,JSON.stringify(a))}catch(e){}};return[n,a]},vm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-icon",defaultIcon:o="fas-cogs",exclude:a=[],include:l=[]}=t;return $(L({...O(e,{type:"string",source:"html",selector:`${n}`,default:o},["Icon"]),...O(e,{type:"string",default:""},["Design","ColorType","Color","Color2","BackgroundColorType","BackgroundColor","BackgroundColor2","BackgroundShape","BackgroundShapeColor","Color3","Color4","Color5","Color5","Color6","Color7","Color8","Color9","Color10"]),...O(e,{type:"number",default:""},["ColorGradientDirection","OutlineWidth","BackgroundColorGradientDirection","Size","TabletSize","MobileSize","BorderRadius","Shadow","Opacity","Padding","Rotation","BackgroundShapeOpacity","BackgroundShapeSize","BackgroundShapeOffsetHorizontal","BackgroundShapeOffsetVertical","MultiOpacity1","MultiOpacity2","MultiOpacity3","MultiOpacity4","MultiOpacity5","MultiOpacity6","MultiOpacity7","MultiOpacity8","MultiOpacity9","MultiOpacity10"]),...O(e,{type:"boolean",default:""},["ShowBackgroundShape"])},a,e),l,e)},bm=vm,fm=e=>Object.keys(vm(e)),km=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,d.camelCase)((0,v.sprintf)(e,t)),a=dg(n,o),l=[],r=ug(a("Size"),{max:200}),i=ug(a("Size"),{max:200});return l.push({[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg`]:{width:cg(a("Size","%spx")),height:cg(a("Size","%spx"))},tabletOnly:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg`]:{width:cg(a("TabletSize","%spx")||r&&`${r}px`),height:cg(a("TabletSize","%spx")||i&&`${i}px`)}},mobile:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg`]:{width:cg(a("MobileSize","%spx")||r&&`${r}px`),height:cg(a("MobileSize","%spx")||i&&`${i}px`)}},[`.${t} .ugb-icon-inner-svg`]:{color:cg(a("Color")),transform:cg(a("Rotation","rotate(%sdeg)"))},saveOnly:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg *`]:{color:cg(a("Color")),fill:cg(a("Color"))}},editor:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg path, .${t} .ugb-icon-inner-svg svg g, .${t} .ugb-icon-inner-svg svg shape, .${t} .ugb-icon-inner-svg svg circle, .${t} .ugb-icon-inner-svg svg path, .${t} .ugb-icon-inner-svg svg rect, .${t} .ugb-icon-inner-svg svg polygon, .${t} .ugb-icon-inner-svg svg ellipse`]:{color:cg(a("Color")),fill:cg(a("Color"))}},[`.${t}`]:{opacity:cg(a("Opacity"))}}),"shaped"!==a("Design")&&"outlined"!==a("Design")||l.push({[`.${t} .ugb-icon__design-wrapper`]:{borderRadius:cg(a("BorderRadius","%s%","100%")),padding:cg(a("Padding","%spx"))}}),"shaped"===a("Design")&&l.push({[`.${t} .ugb-icon__design-wrapper`]:{background:cg(a("BackgroundColor"))}}),"outlined"===a("Design")&&l.push({[`.${t} .ugb-icon__design-wrapper`]:{borderColor:cg(a("BackgroundColor")),borderWidth:cg(a("OutlineWidth","%spx"))}}),N().all((0,le.applyFilters)("stackable.icon-style-set.styles",l,a,t,n))},ym=e=>"string"!=typeof e?0:(0,d.range)(10).reduce(((t,n)=>{const o=n+1;return new RegExp(`(<(circle|ellipse|line|polygon|polyline|rect|shape|path)[^>]*(/>|>[sS]*?</\\w+>)[ \t\r\n\v\f]*){${o}}`,"gm").test(e)?o:t}),0),wm=e=>{const t=document.createElement("div");return t.innerHTML=e,t.firstElementChild},Cm=(m.iconsFaKit?m.iconsFaProKitVersion:m.iconsFaFreeKitVersion||"6.5.1")||"5.15.4",_m={fas:"solid",far:"regular",fal:"light",fat:"thin",fad:"duotone",fab:"brands",fass:"sharp-solid",fasr:"sharp-regular",fasl:"sharp-light"},Em=(e,t)=>window.StkFontAwesome&&window.StkFontAwesome[`${e}-${t}`]?window.StkFontAwesome[`${e}-${t}`]:"",Sm=(e,t)=>{const n=m.iconsFaKit?m.iconsFaKit:"5.15.4"===m.iconsFaFreeKitVersion?"d2a8ea0b89":"8f4ebede24",o=(e=>_m[e]||"solid")(e);let a;return a=m.iconsFaKit?`https://ka-p.fontawesome.com/releases/v${Cm}/svgs/${o}/${t}.svg?token=${n}`:`https://ka-f.fontawesome.com/releases/v${Cm}/svgs/${o}/${t}.svg?token=${n}`,new Promise((async(n,o)=>{const l=await fetch(a).then((e=>e.text())).catch((()=>o(!1)));window.StkFontAwesome||(window.StkFontAwesome={}),window.StkFontAwesome[`${e}-${t}`]=l,n(!0)}))},xm=async e=>{const t=(0,he.select)("core").getCurrentUser().id;return t&&(await st()({path:(0,rt.addQueryArgs)(`/wp/v2/users/${t}`,{context:"edit"})})).capabilities[e]||!1},Tm=e=>ue.createRoot?(0,ue.createRoot)(e):{render:t=>wp.element.render(t,e),unmount:()=>wp.element.unmountComponentAtNode(e)};var Bm=n(3726),Mm=n.n(Bm);const Im=e=>e?`stk-${e}`:"",Nm=(e,t)=>Array.from({length:t-e},((t,n)=>n+e)),Rm=e=>(null==e?void 0:e.endsWith("mp4"))||(null==e?void 0:e.endsWith("webm"))||(null==e?void 0:e.endsWith("ogg")),Am=e=>{let t="";return t=(e.match(/youtube\.com\/watch\?v=([^\&\?\/]+)/i)||[])[1],t||(t=(e.match(/youtube\.com\/embed\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtube\.com\/v\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtu\.be\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtube\.com\/shorts\/([^\&\?\/]+)/i)||[])[1]),t?{type:"youtube",id:t}:(t=(e.match(/vimeo\.com\/(\d+)/i)||[])[1],t||(t=(e.match(/vimeo\.com\/(\w*\/)*(\d+)/i)||[])[2]),t||(t=(e.match(/^\d+$/i)||[])[0]),t?{type:"vimeo",id:t}:{type:"youtube",id:e})},Hm=e=>"short"===e?(0,v.__)("Description for this block. You can use this space for describing your block.",m.i18n):"medium"===e?`${Hm()} ${Hm("short")}`:"long"===e?`${Hm("medium")} ${Hm()} ${Hm("short")}`:(0,v.__)("Description for this block. Use this space for describing your block. Any text will do.",m.i18n),Pm=()=>void 0!==window.wp&&void 0!==window.wp.editor,Om=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;const n=e.replace(/\/\*.*?\*\//g,"").replace(/\n\s*\n/g,"").replace(/[\n\r \t]/g," ").replace(/ +/g," ").replace(/:is/g," :is").replace(/ ?([,:;{}]) ?/g,"$1").replace(/[^\}\{]+\{\}/g,"").replace(/[^\}\{]+\{\}/g,"").replace(/;}/g,"}").trim();return t?n.replace(/\s?\!important/g,"").replace(/([;\}])/g," !important$1").replace(/\} !important\}/g,"}}").trim():n},zm={Tablet:1023,Mobile:767},Lm=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Desktop";return(e||"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/(.*)?\n/g,"").replace(/([^}]+)({)/g,((e,l,r)=>{if(l.match(/@\w+/))return l.replace(/(@\w+[^{]+{\s*)([^{]+)/g,((e,l,i)=>{const s=Dm(i,t,n);if(o&&"Desktop"!==a){var c,u;let e=null==l||null===(c=l.match(/min-width:\s*(\d+)px/))||void 0===c?void 0:c[1],t=null==l||null===(u=l.match(/max-width:\s*(\d+)px/))||void 0===u?void 0:u[1];if("string"!=typeof e&&(e=0),"string"!=typeof t&&(t=9999),(0,d.inRange)(zm[a],parseInt(e),parseInt(t)))return`@media screen { ${s} ${r}`}return`${l} ${s} ${r}`}));const i=Dm(l,t,n);return(o?".editor-styles-wrapper ":"")+`${i} ${r}`})).trim()},$m={},Dm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const a=`${e}-${t}-${n}-${o}`;if($m[a])return $m[a];const l=e.trim().replace(/[\n\s\t]+/g," ").replace(/:(is|where|matches)\([^\)]*\)/g,(e=>e.replace(/,/g,"|||"))).split(",").map((e=>{let a="";return a=e.includes("[data-block=")||"html"===e||"body"===e?e:e.includes("%s")?e.replaceAll("%s",n):n&&t?e.includes(n)?e:n&&!t?`.${n} ${e.trim()}`:`.${n} ${e.trim()}`.replace(new RegExp(`(.${n}) (.${t}(#|:|\\[|\\.|\\s|$))`,"g"),"$1$2").replace(/\s:(?!(is|where))/,":"):e,o?`${o} ${a}`:a})).join(", ").replace(/\|\|\|/g,", ");return $m[a]=l,l},Fm=(e,t,n)=>(e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e),Um=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.length)return null;e.forEach((e=>{e.name.startsWith("stackable/")&&(0,Ve.getBlockVariations)(e.name).length>0&&(e.attributes={...e.attributes,uniqueId:Gm(e.clientId)}),Um(e.innerBlocks)}))},Wm=function(e,t){let n=t.parentNode;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},Vm=e=>Mm()(e.replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/&[\w\d]+;/g,"-")).replace(/<[^>]*>/g,"").replace(/[^\w\d\s-_]/g,"").replace(/[^\w\d]/g,"-").replace(/[-]+/g,"-").trim().toLowerCase(),Gm=e=>`${e.substring(0,7)}`,jm=(e,t,n)=>(0,B.compare)(e,n,t),qm=[{value:"",label:(0,v.__)("Default",m.i18n)},{value:"address",label:(0,v._x)("Address","HTML Tag",m.i18n)},{value:"article",label:(0,v._x)("Article","HTML Tag",m.i18n)},{value:"aside",label:(0,v._x)("Aside","HTML Tag",m.i18n)},{value:"blockquote",label:(0,v._x)("Blockquote","HTML Tag",m.i18n)},{value:"div",label:(0,v._x)("Div","HTML Tag",m.i18n)},{value:"details",label:(0,v._x)("Details","HTML Tag",m.i18n)},{value:"footer",label:(0,v._x)("Footer","HTML Tag",m.i18n)},{value:"header",label:(0,v._x)("Header","HTML Tag",m.i18n)},{value:"hgroup",label:(0,v._x)("Hgroup","HTML Tag",m.i18n)},{value:"main",label:(0,v._x)("Main","HTML Tag",m.i18n)},{value:"nav",label:(0,v._x)("Nav","HTML Tag",m.i18n)},{value:"section",label:(0,v._x)("Section","HTML Tag",m.i18n)},{value:"summary",label:(0,v._x)("Summary","HTML Tag",m.i18n)}],Km=()=>null;Km.InspectorControls=()=>{const e=Ae((e=>({position:e.position,positionTablet:e.positionTablet,positionMobile:e.positionMobile})));return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("General",m.i18n),id:"general"},(0,ue.createElement)(so,{label:(0,v.sprintf)((0,v._x)("%s HTML Tag","component",m.i18n),(0,v.__)("Block",m.i18n)),attribute:"htmlTag",options:qm}),(0,ue.createElement)(so,{label:(0,v.__)("Overflow",m.i18n),attribute:"overflow",responsive:"all",options:[{value:"",label:(0,v.__)("Default",m.i18n)},{value:"auto",label:(0,v.__)("Auto",m.i18n)},{value:"hidden",label:(0,v.__)("Hidden",m.i18n)},{value:"scroll",label:(0,v.__)("Scroll",m.i18n)},{value:"visible",label:(0,v.__)("Visible",m.i18n)}]}),(0,ue.createElement)(so,{label:(0,v.__)("Clear",m.i18n),attribute:"clear",options:[{value:"",label:(0,v.__)("Default",m.i18n)},{value:"left",label:(0,v.__)("Left",m.i18n)},{value:"right",label:(0,v.__)("Right",m.i18n)},{value:"both",label:(0,v.__)("Both",m.i18n)},{value:"none",label:(0,v.__)("None",m.i18n)}]})),(0,ue.createElement)(ll,{title:(0,v.__)("Position",m.i18n),id:"position"},(0,ue.createElement)(ro,{label:(0,v.__)("Opacity",m.i18n),attribute:"opacity",responsive:"all",hover:"all",min:0,max:1,step:.1,allowReset:!0,placeholder:"1",helpTooltip:{video:"advanced-opacity",description:(0,v.__)("Adjusts the transparency of the entire block",m.i18n)}}),(0,ue.createElement)(ro,{label:(0,v.__)("Z-Index",m.i18n),attribute:"zIndex",responsive:"all",sliderMin:-10,sliderMax:10,allowReset:!0,placeholder:"1",helpTooltip:{video:"advanced-zindex",description:(0,v.__)("Sets the stack order of different blocks to make one appear in front of another. A block with a higher z-index will show up on top of another block with a lower z-index.",m.i18n)}}),(0,ue.createElement)(so,{label:(0,v.__)("Position",m.i18n),attribute:"position",responsive:"all",help:[e.position,e.positionTablet,e.positionMobile].includes("sticky")?(0,v.__)("Sticky position may not work across all themes",m.i18n):"",options:[{value:"",label:(0,v.__)("Default",m.i18n)},{value:"static",label:(0,v.__)("Static",m.i18n)},{value:"relative",label:(0,v.__)("Relative",m.i18n)},{value:"absolute",label:(0,v.__)("Absolute",m.i18n)},{value:"sticky",label:(0,v.__)("Sticky",m.i18n)}]}),(0,ue.createElement)(_r,{label:(0,v.__)("Position",m.i18n),attribute:"positionNum",responsive:"all",units:["px","%"],hover:"all",defaultLocked:!1,hasLock:!1,sliderMin:-100,sliderMax:100}))))},Km.addAttributes=e=>{e.add({attributes:{htmlTag:{type:"string",default:""},opacity:{stkResponsive:!0,stkHover:!0,type:"number",default:""},zIndex:{stkResponsive:!0,type:"number",default:""},overflow:{stkResponsive:!0,type:"string",default:""},clear:{type:"string",default:""},position:{stkResponsive:!0,type:"string",default:""},positionNum:{stkUnits:"px",stkResponsive:!0,stkHover:!0,type:"object",default:""}},versionAdded:"3.0.0",versionDeprecated:""})},Km.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{positionSelector:o="",dependencies:a=[]}=t;e.addBlockStyles("positionNum",[{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"top",attrName:"positionNum",key:"positionNum-save-top",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:(e,t,n,o)=>{if("desktop"===n&&"normal"===o){const o="sticky"===t("position",n,"normal",!0),a=!e||e&&""===e.top;if(o&&a)return 0}return null==e?void 0:e.top},dependencies:["position",...a]},{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"right",attrName:"positionNum",key:"positionNum-save-right",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right},{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"bottom",attrName:"positionNum",key:"positionNum-save-bottom",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom},{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"left",attrName:"positionNum",key:"positionNum-save-left",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left}]),e.addBlockStyles("position",[{...n,renderIn:"save",selector:"",styleRule:"position",attrName:"position",key:"position-save",responsive:"all"}]),e.addBlockStyles("positionNum",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,styleRule:"top",attrName:"positionNum",key:"positionNum-top",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:(e,t,n,o)=>{if("desktop"===n&&"normal"===o){const o="sticky"===t("position",n,"normal",!0),a=!e||e&&""===e.top;if(o&&a)return 0}return null==e?void 0:e.top},dependencies:["position",...a]},{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"bottom",attrName:"positionNum",key:"positionNum-bottom",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom},{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"left",attrName:"positionNum",key:"positionNum-left",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left},{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"right",attrName:"positionNum",key:"positionNum-right",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right},{...n,renderIn:"edit",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"position",attrName:"positionNum",key:"positionNum",responsive:"all",hover:"all",valuePreCallback:(e,t,n)=>{if(e&&(""!==e.top||""!==e.right||""!==e.bottom||""!==e.left)&&""===t("position",n))return"relative"},dependencies:["position",...a]}]),e.addBlockStyles("position",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"position",attrName:"position",key:"position",responsive:"all"}]),e.addBlockStyles("opacity",[{...n,selector:"",styleRule:"opacity",attrName:"opacity",key:"opacity",responsive:"all",hover:"all"}]),e.addBlockStyles("zIndex",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"zIndex",attrName:"zIndex",key:"zIndex",responsive:"all"},{...n,renderIn:"save",selector:"",styleRule:"zIndex",attrName:"zIndex",key:"zIndex-save",responsive:"all"}]),e.addBlockStyles("overflow",[{...n,selector:"",styleRule:"overflow",attrName:"overflow",key:"overflow",responsive:"all"},{...n,selector:".stk-container",styleRule:"overflow",attrName:"overflow",key:"overflow-container",enabledCallback:e=>"visible"===e("overflow"),responsive:"all"}]),e.addBlockStyles("clear",[{...n,selector:"",styleRule:"clear",attrName:"clear",key:"clear"}]),e.addBlockStyles("positionNum",[{...n,selector:o,styleRule:"top",attrName:"positionNum",key:"positionNum-hover-top",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.top)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.top||o&&""!==o.top)return 0}}},{...n,selector:o,styleRule:"right",attrName:"positionNum",key:"positionNum-hover-right",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.right)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.right||o&&""!==o.right)return 0}}},{...n,selector:o,styleRule:"bottom",attrName:"positionNum",key:"positionNum-hover-bottom",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.bottom)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.bottom||o&&""!==o.bottom)return 0}}},{...n,selector:o,styleRule:"left",attrName:"positionNum",key:"positionNum-hover-left",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.left)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.left||o&&""!==o.left)return 0}}}])};const Jm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:{backgroundColorOpacity:{stkHover:!0,type:"number",default:""},backgroundColor2:{type:"string",default:""},backgroundGradientDirection:{type:"number",default:""},backgroundGradientLocation1:{type:"number",default:""},backgroundGradientLocation2:{type:"number",default:""}},attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:"3.12.0"})},Ym={isEligible:e=>t=>{var n;const o=P(e),a=e=>t[o(e)];return!(a("backgroundColorType")||!(a("backgroundColorOpacity")||0===a("backgroundColorOpacity")||a("backgroundColorOpacityHover")||0===a("backgroundColorOpacityHover")||a("backgroundColorOpacityParentHover")||0===a("backgroundColorOpacityParentHover")))||!("gradient"!==a("backgroundColorType")||null!==(n=a("backgroundColor"))&&void 0!==n&&n.includes("-gradient"))},migrate:e=>t=>{var n;const o=P(e),a=e=>t[o(e)],l={...t,[o("backgroundColorOpacity")]:void 0,[o("backgroundColorOpacityHover")]:void 0,[o("backgroundColorOpacityParentHover")]:void 0,[o("backgroundColor2")]:void 0,[o("backgroundGradientDirection")]:void 0,[o("backgroundGradientLocation1")]:void 0,[o("backgroundGradientLocation2")]:void 0};if(!a("backgroundColorType")&&(a("backgroundColorOpacity")||0===a("backgroundColorOpacity")||a("backgroundColorOpacityHover")||0===a("backgroundColorOpacityHover")||a("backgroundColorOpacityParentHover")||0===a("backgroundColorOpacityParentHover"))){const e=a("backgroundColor"),t=a("backgroundColorHover")||e,n=a("backgroundColorParentHover")||t;(a("backgroundColorOpacity")||0===a("backgroundColorOpacity"))&&(l[o("backgroundColor")]=se(e,a("backgroundColorOpacity"))),(a("backgroundColorOpacityHover")||0===a("backgroundColorOpacityHover"))&&(l[o("backgroundColorHover")]=se(t,a("backgroundColorOpacityHover"))),(a("backgroundColorOpacityParentHover")||0===a("backgroundColorOpacityParentHover"))&&(l[o("backgroundColorParentHover")]=se(n,a("backgroundColorOpacityParentHover")))}if("gradient"===a("backgroundColorType")&&(null===(n=a("backgroundColor"))||void 0===n||!n.includes("-gradient"))){const e=l[o("backgroundColor")],t=a("backgroundColor2")||"rgba(0,0,0,0)",n=a("backgroundGradientDirection")||0===a("backgroundGradientDirection")?a("backgroundGradientDirection"):90,r=a("backgroundGradientLocation1")||0,i=a("backgroundGradientLocation2")||100;l[o("backgroundColor")]=`linear-gradient(${n}deg, ${e} ${r}%, ${t} ${i}%)`}return l}},Xm={backgroundColorType:{type:"string",default:""},backgroundColor:{stkHover:!0,type:"string",default:""},backgroundMediaId:{stkResponsive:!0,type:"string",default:""},backgroundMediaUrl:{stkResponsive:!0,type:"string",default:""},backgroundMediaThumbnailId:{stkResponsive:!0,type:"string",default:""},backgroundMediaThumbnailUrl:{stkResponsive:!0,type:"string",default:""},backgroundGradientBlendMode:{type:"string",default:""},backgroundPosition:{stkResponsive:!0,type:"string",default:""},backgroundRepeat:{stkResponsive:!0,type:"string",default:""},backgroundSize:{stkResponsive:!0,type:"string",default:""},backgroundImageBlendMode:{type:"string",default:""},backgroundTintStrength:{stkHover:!0,type:"number",default:""},backgroundCustomSize:{stkResponsive:!0,stkUnits:"%",type:"number",default:""},fixedBackground:{type:"boolean",default:""},backgroundMediaExternalUrl:{stkResponsive:!0,type:"string",default:""}},Qm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";Jm(e,t),e.add({attributes:Xm,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},Zm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",attrNameTemplate:a="%s",dependencies:l=[],selectorCallback:r=null}=t;e.addBlockStyles("backgroundColor",[{...n,selector:o,hoverSelector:`${o}:hover`,styleRule:"backgroundColor",attrName:"backgroundColor",key:"backgroundColor-hover",attrNameTemplate:a,selectorCallback:r,hoverCallback:e=>"gradient"!==e("backgroundColorType")&&"all",valueCallback:(e,t)=>"gradient"===t("backgroundColorType")&&(e.match(/rgba\(([^\)]*?)\s*0\s*\.?0?0?\)/)||e.includes("transparent"))?"transparent":e,dependencies:["backgroundColorType",...l]}]),e.addBlockStyles("backgroundMediaUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaUrl",key:"backgroundMediaUrl",attrNameTemplate:a,format:"url(%s)",responsive:["desktop"],valuePreCallback:e=>{if("string"!=typeof e||!e.match(/\.(mp4|ogg|webm)$/i))return e}}]),e.addBlockStyles("backgroundMediaExternalUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaExternalUrl",key:"backgroundMediaExternalUrl",responsive:["desktop"],attrNameTemplate:a,format:"url(%s)"}]),e.addBlockStyles("backgroundMediaUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaUrl",key:"backgroundMediaUrlTablet",attrNameTemplate:a,format:"url(%s)",responsive:["tablet"],valuePreCallback:e=>{if("string"!=typeof e||!e.match(/\.(mp4|ogg|webm)$/i))return e}}]),e.addBlockStyles("backgroundMediaExternalUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaExternalUrl",key:"backgroundMediaExternalUrlTablet",responsive:["tablet"],attrNameTemplate:a,format:"url(%s)"}]),e.addBlockStyles("backgroundMediaUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaUrl",key:"backgroundMediaUrlMobile",attrNameTemplate:a,format:"url(%s)",responsive:["mobile"],valuePreCallback:e=>{if("string"!=typeof e||!e.match(/\.(mp4|ogg|webm)$/i))return e}}]),e.addBlockStyles("backgroundMediaExternalUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaExternalUrl",key:"backgroundMediaExternalUrlMobile",responsive:["mobile"],attrNameTemplate:a,format:"url(%s)"}]),e.addBlockStyles("fixedBackground",[{...n,selector:o,styleRule:"backgroundAttachment",attrName:"fixedBackground",key:"fixedBackground",attrNameTemplate:a,valueCallback:e=>e?"fixed":void 0}]),e.addBlockStyles("backgroundPosition",[{...n,selector:o,styleRule:"backgroundPosition",attrName:"backgroundPosition",key:"backgroundPosition",attrNameTemplate:a,responsive:"all"}]),e.addBlockStyles("backgroundRepeat",[{...n,selector:o,styleRule:"backgroundRepeat",attrName:"backgroundRepeat",key:"backgroundRepeat",attrNameTemplate:a,responsive:"all"}]),e.addBlockStyles("backgroundSize",[{...n,selector:o,styleRule:"backgroundSize",attrName:"backgroundSize",key:"backgroundSize",attrNameTemplate:a,responsive:"all",valueCallback:(e,t,n)=>"custom"===e&&t("backgroundCustomSize",n)?t("backgroundCustomSize",n)+(t("backgroundCustomSizeUnit",n)||"%"):e,dependencies:["backgroundCustomSize","backgroundCustomSizeUnit",...l]}]),e.addBlockStyles("backgroundImageBlendMode",[{...n,selector:o,styleRule:"backgroundBlendMode",attrName:"backgroundImageBlendMode",key:"backgroundImageBlendMode",attrNameTemplate:a}]),e.addBlockStyles("backgroundColor",[{...n,selector:`${o}:before`,hoverSelector:`${o}:hover:before`,styleRule:"backgroundColor",attrName:"backgroundColor",key:"backgroundColor-before",attrNameTemplate:a,selectorCallback:r,hover:"all",valuePreCallback:(e,t,n,o)=>""===e&&t("backgroundTintStrength",n,o)?"#000000":e,valueCallback:(e,t)=>"gradient"!==t("backgroundColorType")&&e?e:void 0,dependencies:["backgroundColorType","backgroundTintStrength",...l]}]),e.addBlockStyles("backgroundTintStrength",[{...n,selector:`${o}:before`,hoverSelector:`${o}:hover:before`,styleRule:"opacity",attrName:"backgroundTintStrength",key:"backgroundTintStrength",attrNameTemplate:a,hover:"all",enabledCallback:e=>!(!e("backgroundMediaUrl","mobile","normal",!0)&&!e("backgroundMediaExternalUrl","mobile","normal",!0)),valuePreCallback:(e,t,n,o)=>""===e&&t("backgroundColor",n,o)?5:e,valueCallback:e=>parseInt(e,10)/10,dependencies:["backgroundColor","backgroundMediaUrl","backgroundMediaExternalUrl",...l]}]),e.addBlockStyles("backgroundGradientBlendMode",[{...n,selector:`${o}:before`,styleRule:"mixBlendMode",attrName:"backgroundGradientBlendMode",key:"backgroundGradientBlendMode",attrNameTemplate:a,enabledCallback:e=>"gradient"===e("backgroundColorType"),dependencies:["backgroundColorType",...l]}]),e.addBlockStyles("backgroundColor",[{...n,selector:`${o}:before`,styleRule:"backgroundImage",attrName:"backgroundColor",key:"backgroundColor-image",attrNameTemplate:a,enabledCallback:e=>"gradient"===e("backgroundColorType"),dependencies:["backgroundColorType","backgroundColor",...l]}]),e.addBlockStyles("borderRadius",[{...n,renderIn:"edit",selector:`${o}:before`,styleRule:"borderRadius",attrName:"borderRadius",key:"borderRadius",attrNameTemplate:a,format:"%spx",enabledCallback:e=>"gradient"===e("backgroundColorType")||e("backgroundColor")||e("backgroundColor","desktop","hover")||e("backgroundColor","desktop","parent-hover"),dependencies:["backgroundColorType","backgroundColor",...l]}])},ev=[{value:"",title:(0,v.__)("Single",m.i18n)},{value:"gradient",title:(0,v.__)("Gradient",m.i18n)}],tv=["image","video"],nv=["image"],ov=e=>{const t=ve(),{getAttribute:n,getAttributes:o,updateAttributes:a,getAttrName:l}=qe(e.attrNameTemplate),r=He(),[i]=Ye(),s=n("backgroundMediaUrl")||n("backgroundMediaUrlTablet")||n("backgroundMediaUrlMobile")||n("backgroundMediaExternalUrl")||n("backgroundMediaExternalUrlTablet")||n("backgroundMediaExternalUrlMobile"),c=[n("backgroundMediaUrl"),n("backgroundMediaUrlTablet"),n("backgroundMediaUrlMobile")].filter((e=>e)).filter(Rm).length>0;return(0,ue.createElement)(ue.Fragment,null,e.hasGradient&&(0,ue.createElement)(Ao,{controls:ev,attribute:l("backgroundColorType"),isSmall:!0}),(0,ue.createElement)(Cn,{label:(0,v.__)("Background Color",m.i18n),attribute:l("backgroundColor"),onChange:t=>{const n={[l("backgroundColor","desktop",i)]:t};e.onBackgroundEnableAttribute&&(n[e.onBackgroundEnableAttribute]=!0),r(n)},hover:"gradient"!==n("backgroundColorType")&&"all",isGradient:"gradient"===n("backgroundColorType")}),e.hasBackgroundImage&&(0,ue.createElement)(Ac,{label:e.backgroundMediaAllowVideo?(0,v.__)("Background Image or Video",m.i18n):(0,v.__)("Background Image",m.i18n),help:e.backgroundMediaAllowVideo?(0,v.__)("Use .mp4 format for videos",m.i18n):"",allowedTypes:e.backgroundMediaAllowVideo?tv:nv,attribute:l("backgroundMedia"),onChange:n=>{const o=W(`${l("backgroundMedia")}Id`,t),a=W(`${l("backgroundMedia")}Url`,t),i=W(`${l("backgroundMedia")}HeightAttribute`,t),s=W(`${l("backgroundMedia")}WidthAttribute`,t),c=W(`${l("backgroundMedia")}Alt`,t),d=W(l("backgroundMediaExternalUrl",t)),u={[o]:n.id,[a]:n.url,[i]:n.width||"",[s]:n.height||"",[c]:n.alt||"",[d]:""};e.onBackgroundEnableAttribute&&(u[e.onBackgroundEnableAttribute]=!0),r(u)},responsive:"all"}),(0,ue.createElement)(Dn,{label:(0,v.__)("Background Image Url",m.i18n),attribute:l("backgroundMediaExternalUrl"),responsive:"all",onChange:n=>{const o={[l("backgroundMediaExternalUrl",t)]:n,[W(`${l("backgroundMedia")}Id`,t)]:"",[W(`${l("backgroundMedia")}Url`,t)]:"",[W(`${l("backgroundMedia")}HeightAttribute`,t)]:"",[W(`${l("backgroundMedia")}WidthAttribute`,t)]:"",[W(`${l("backgroundMedia")}Alt`,t)]:""};e.onBackgroundEnableAttribute&&(o[e.onBackgroundEnableAttribute]=!0),r(o)}}),s&&(0,ue.createElement)(ro,{label:(0,v.__)("Background Media Tint Strength",m.i18n),attribute:l("backgroundTintStrength"),hover:"all",min:0,max:10,step:1,allowReset:!0,placeholder:n("backgroundColor")?"5":"0",helpTooltip:{video:"background-tint",description:(0,v.__)("Adjusts the intensity of the background media tint",m.i18n)}}),s&&c&&(0,ue.createElement)(Ac,{label:(0,v.__)("Background Video Thumbnail",m.i18n),allowedTypes:nv,attribute:l("backgroundMediaThumbnail"),onChange:e=>{const n=W(`${l("backgroundMediaThumbnail")}Id`,t),o=W(`${l("backgroundMediaThumbnail")}Url`,t),a=W(`${l("backgroundMediaThumbnail")}HeightAttribute`,t),i=W(`${l("backgroundMediaThumbnail")}WidthAttribute`,t),s=W(`${l("backgroundMediaThumbnail")}Alt`,t),c={[n]:e.id,[o]:e.url,[a]:e.width||"",[i]:e.height||"",[s]:e.alt||""};r(c)},responsive:"all"}),s&&!c&&(0,ue.createElement)(Pc,{help:(0,v.__)("Note: Fixed Background works on Desktop and Android devices only.",m.i18n),label:(0,v.__)("Fixed Background",m.i18n),attribute:l("fixedBackground"),helpTooltip:{video:"background-fixed",description:(0,v.__)("Keeps the background image fixed in place while scrolling",m.i18n)}}),"gradient"===n("backgroundColorType")&&e.hasBackgroundGradientBlendMode&&(0,ue.createElement)(jn,{label:(0,v.__)("Background Gradient Blend Mode",m.i18n),attribute:l("backgroundGradientBlendMode"),helpTooltip:{video:"background-blend-mode",description:(0,v.__)("Sets how this background gradient/image blends into the other background",m.i18n)}}),s&&(0,ue.createElement)(Kl,{label:(0,v.__)("Adv. Background Image Settings",m.i18n),onReset:()=>{a({BackgroundPosition:"",BackgroundPositionTablet:"",BackgroundPositionMobile:"",BackgroundRepeat:"",BackgroundRepeatTablet:"",BackgroundRepeatMobile:"",BackgroundSize:"",BackgroundSizeTablet:"",BackgroundSizeMobile:"",BackgroundCustomSize:"",BackgroundCustomSizeTablet:"",BackgroundCustomSizeMobile:"",BackgroundCustomSizeUnit:"%",BackgroundCustomSizeUnitTablet:"%",BackgroundCustomSizeUnitMobile:"%",BackgroundImageBlendMode:""})},allowReset:n("backgroundPosition")||n("BackgroundPositionTablet")||n("BackgroundPositionMobile")||n("backgroundRepeat")||n("BackgroundRepeatTablet")||n("BackgroundRepeatMobile")||n("backgroundSize")||n("BackgroundSizeTablet")||n("BackgroundSizeMobile")||n("backgroundImageBlendMode")},(0,ue.createElement)(so,{label:(0,v.__)("Image Position",m.i18n),attribute:l("backgroundPosition"),options:[{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Top Left",m.i18n),value:"top left"},{label:(0,v.__)("Top Center",m.i18n),value:"top center"},{label:(0,v.__)("Top Right",m.i18n),value:"top right"},{label:(0,v.__)("Center Left",m.i18n),value:"center left"},{label:(0,v.__)("Center Center",m.i18n),value:"center center"},{label:(0,v.__)("Center Right",m.i18n),value:"center right"},{label:(0,v.__)("Bottom Left",m.i18n),value:"bottom left"},{label:(0,v.__)("Bottom Center",m.i18n),value:"bottom center"},{label:(0,v.__)("Bottom Right",m.i18n),value:"bottom right"}],helpTooltip:{video:"background-image-position",description:(0,v.__)("Chooses which part of the background image will be the focal point",m.i18n)},responsive:"all"}),(0,ue.createElement)(so,{label:(0,v.__)("Image Repeat",m.i18n),attribute:l("backgroundRepeat"),options:[{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("No-Repeat",m.i18n),value:"no-repeat"},{label:(0,v.__)("Repeat",m.i18n),value:"repeat"},{label:(0,v.__)("Repeat-X",m.i18n),value:"repeat-x"},{label:(0,v.__)("Repeat-Y",m.i18n),value:"repeat-y"}],helpTooltip:{video:"background-image-repeat",description:(0,v.__)("Covers the background with tiled images",m.i18n)},responsive:"all"}),(0,ue.createElement)(so,{label:(0,v.__)("Image Size",m.i18n),attribute:l("backgroundSize"),options:[{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Auto",m.i18n),value:"auto"},{label:(0,v.__)("Cover",m.i18n),value:"cover"},{label:(0,v.__)("Contain",m.i18n),value:"contain"},{label:(0,v.__)("Custom",m.i18n),value:"custom"}],helpTooltip:{video:"background-image-size",description:(0,v.__)("Sets the display image size",m.i18n)},responsive:"all"}),"custom"===o()[W(l("backgroundSize"),t)]&&(0,ue.createElement)(ro,{label:(0,v.__)("Custom Size",m.i18n),attribute:l("backgroundCustomSize"),responsive:"all",units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100]}),(0,ue.createElement)(jn,{label:(0,v.__)("Image Blend Mode",m.i18n),attribute:l("backgroundImageBlendMode"),helpTooltip:{video:"background-blend-mode",description:(0,v.__)("Sets how this background gradient/image blends into the other background",m.i18n)}})))};ov.defaultProps={attrNameTemplate:"%s",backgroundMediaAllowVideo:!0,hasGradient:!0,hasBackgroundImage:!0,hasBackgroundGradientBlendMode:!0,onBackgroundEnableAttribute:""},(0,le.addFilter)("stackable.block-component.helpers.borders","borders",((e,t,n)=>{const o=t("borderRadius"),a=t("borderRadiusTablet"),l=t("borderRadiusMobile");(o||a||l)&&((0,he.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),n({borderRadius2:o?{top:o,right:o,left:o,bottom:o}:void 0,borderRadius2Tablet:a?{top:a,right:a,left:a,bottom:a}:void 0,borderRadius2Mobile:l?{top:l,right:l,left:l,bottom:l}:void 0,borderRadius:o?"":void 0,borderRadiusTablet:a?"":void 0,borderRadiusMobile:l?"":void 0}))}));const av=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:{shadow:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.12.11",attrNameTemplate:t})},lv={isEligible:e=>t=>{const n=P(e),o=e=>t[n(e)];return!!(o("shadow")||o("shadowHover")||o("shadowParentHover"))},migrate:e=>t=>{const n=P(e),o=e=>t[n(e)],a={...t},l=o("shadow"),r=o("shadowHover")||l,i=o("shadowParentHover")||r;if(o("shadow")&&-1!==o("shadow").indexOf("rgba")){const{options:e,color:t}=ce(l),o=de(t);a[n("shadow")]=`${e} ${o}`}if(o("shadowHover")&&-1!==o("shadowHover").indexOf("rgba")){const{options:e,color:t}=ce(r),o=de(t);a[n("shadowHover")]=`${e} ${o}`}if(o("shadowParentHover")&&-1!==o("shadowParentHover").indexOf("rgba")){const{options:e,color:t}=ce(i),o=de(t);a[n("shadowParentHover")]=`${e} ${o}`}return a}},rv={borderType:{type:"string",default:""},borderColor:{stkHover:!0,type:"string",default:""},borderWidth:{stkResponsive:!0,stkHover:!0,type:"object"},borderRadius:{stkResponsive:!0,stkHover:!0,type:"number",default:""},borderRadius2:{stkResponsive:!0,stkHover:!0,type:"object"},shadow:{stkHover:!0,type:"string",default:""}},iv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";av(e,t),e.add({attributes:rv,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},sv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{addBorderRadiusOverflow:o=!0,selector:a="",attrNameTemplate:l="%s",hoverSelector:r,borderRadiusSelector:i}=t;e.addBlockStyles("borderRadius",[{...n,selector:i||a,styleRule:"borderRadius",attrName:"borderRadius",key:"borderRadius",attrNameTemplate:l,format:"%spx",responsive:"all",hover:"all",hoverSelector:i?void 0:r}]),e.addBlockStyles("borderRadius2",[{...n,selector:i||a,styleRule:"borderTopLeftRadius",attrName:"borderRadius2",key:"borderTopLeftRadius2",attrNameTemplate:l,format:"%spx",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.top,hoverSelector:i?void 0:r},{...n,selector:i||a,styleRule:"borderTopRightRadius",attrName:"borderRadius2",key:"borderTopRightRadius2",attrNameTemplate:l,format:"%spx",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.right,hoverSelector:i?void 0:r},{...n,selector:i||a,styleRule:"borderBottomRightRadius",attrName:"borderRadius2",key:"borderBottomRightRadius2",attrNameTemplate:l,format:"%spx",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.left,hoverSelector:i?void 0:r},{...n,selector:i||a,styleRule:"borderBottomLeftRadius",attrName:"borderRadius2",key:"borderBottomLeftRadius2",attrNameTemplate:l,format:"%spx",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.bottom,hoverSelector:i?void 0:r}]),e.addBlockStyles("borderRadius",[{...n,selector:i||a,styleRule:"overflow",attrName:"borderRadius",key:"borderRadius-overflow",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:i?void 0:r,enabledCallback:(e,t)=>(!o||"block%s"!==l||!t.overflow)&&o,valueCallback:()=>"hidden",dependencies:["overflow"]}]),e.addBlockStyles("borderRadius2",[{...n,selector:i||a,styleRule:"overflow",attrName:"borderRadius2",key:"borderRadius2-overflow",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:i?void 0:r,enabledCallback:(e,t)=>(!o||"block%s"!==l||!t.overflow)&&o,valueCallback:()=>"hidden",dependencies:["overflow"]}]),e.addBlockStyles("shadow",[{...n,selector:a,styleRule:"boxShadow",attrName:"shadow",key:"shadow",attrNameTemplate:l,hover:"all",hoverSelector:r}]),e.addBlockStyles("borderType",[{...n,selector:a,styleRule:"borderStyle",attrName:"borderType",key:"borderType",attrNameTemplate:l}]),e.addBlockStyles("borderColor",[{...n,selector:a,styleRule:"borderColor",attrName:"borderColor",key:"borderColor",attrNameTemplate:l,hover:"all",hoverSelector:r,dependencies:["borderType"]}]),e.addBlockStyles("borderWidth",[{...n,selector:a,styleRule:"borderTopWidth",attrName:"borderWidth",key:"borderWidth-top",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.top,dependencies:["borderType"]},{...n,selector:a,styleRule:"borderRightWidth",attrName:"borderWidth",key:"borderWidth-right",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.right,dependencies:["borderType"]},{...n,selector:a,styleRule:"borderBottomWidth",attrName:"borderWidth",key:"borderWidth-bottom",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.bottom,dependencies:["borderType"]},{...n,selector:a,styleRule:"borderLeftWidth",attrName:"borderWidth",key:"borderWidth-left",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.left,dependencies:["borderType"]}])},cv=[{value:"",title:(0,v.__)("None",m.i18n)},{value:"solid",title:(0,v.__)("Solid",m.i18n)},{value:"dashed",title:(0,v.__)("Dashed",m.i18n)},{value:"dotted",title:(0,v.__)("Dotted",m.i18n)}],dv=[{value:"none",title:(0,v.__)("None",m.i18n)},{value:"solid",title:(0,v.__)("Solid",m.i18n)},{value:"dashed",title:(0,v.__)("Dashed",m.i18n)},{value:"dotted",title:(0,v.__)("Dotted",m.i18n)}],uv=e=>{const{getAttribute:t,getAttrName:n,updateAttributes:o}=qe(e.attrNameTemplate),a=He(),{blockLayouts:l,getPlaceholder:r}=Bh(),i=""!==r(`${e.placeholderTemplate}-border-style`)?dv:cv;return(0,le.applyFilters)("stackable.block-component.helpers.borders",null,t,o),(0,ue.createElement)(ue.Fragment,null,e.hasBorderType&&(0,ue.createElement)(Ao,{label:(0,v.__)("Borders",m.i18n),controls:i,className:"ugb-border-controls__border-type-toolbar",attribute:n("borderType"),fullwidth:!0,isSmall:!0,placeholder:r(`${e.placeholderTemplate}-border-style`)}),e.hasBorderControls&&(0,ue.createElement)(_r,{label:(0,v.__)("Border Width",m.i18n),attribute:n("borderWidth"),responsive:"all",hover:"all",min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,placeholder:e.borderWidthPlaceholder||r(`${e.placeholderTemplate}-border-width`),changeCallback:o=>{const r=(null==o?void 0:o.top)||(null==o?void 0:o.right)||(null==o?void 0:o.bottom)||(null==o?void 0:o.left),i=`${e.placeholderTemplate}-border-style`;return!r||t("borderType")||null!=l&&l[i]||a({[n("borderType")]:"solid"}),o}}),e.hasBorderControls&&(0,ue.createElement)(Cn,{label:(0,v.__)("Border Color",m.i18n),attribute:n("borderColor"),hover:"all"}),e.hasBorderRadius&&(0,ue.createElement)(_r,{label:(0,v.__)("Border Radius",m.i18n),attribute:n("borderRadius2"),responsive:"all",hover:e.hasBorderRadiusHover,helpTooltip:{video:"general-border-radius",description:(0,v.__)("Adjusts the radius of block corners to make them more rounded",m.i18n)},min:0,isCorner:!0,sliderMax:e.borderSliderMax,placeholder:e.borderRadiusPlaceholder}),(0,ue.createElement)(td,{label:(0,v.__)("Shadow / Outline",m.i18n),attribute:n("shadow"),hover:"all",placeholder:r(`${e.placeholderTemplate}-box-shadow`)}))};uv.defaultProps={attrNameTemplate:"%s",borderTypeValue:"",hasBorderType:!0,hasBorderControls:!0,hasBorderRadius:!0,hasBorderRadiusHover:!0,borderSelector:null,borderSliderMax:50};const pv={columnGap:{stkResponsive:!0,type:"number",default:""},rowGap:{stkResponsive:!0,type:"number",default:""}},hv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:pv,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},gv=e=>{const{placeholderTemplate:t}=e,{getPlaceholder:n}=Bh();return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ro,{label:(0,v.__)("Column Gap",m.i18n),attribute:"columnGap",responsive:"all",min:"0",sliderMax:"50",placeholder:t?n(`${t}-column-gap`):""}),(0,ue.createElement)(ro,{label:(0,v.__)("Row Gap",m.i18n),attribute:"rowGap",responsive:"all",min:"0",sliderMax:"50",placeholder:t?n(`${t}-row-gap`):""}))},mv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o,editSelector:a="",saveSelector:l="",enableColumnGap:r=!0}=t;e.addBlockStyles("columnGap",[{...n,renderIn:"edit",selector:a||o,styleRule:"columnGap",attrName:"columnGap",key:"columnGap",format:"%spx",responsive:"all",enabledCallback:()=>r},{...n,renderIn:"save",selector:l||o,styleRule:"columnGap",attrName:"columnGap",key:"columnGap",format:"%spx",responsive:"all",enabledCallback:()=>r}]),e.addBlockStyles("rowGap",[{...n,renderIn:"edit",selector:a||o,styleRule:"rowGap",attrName:"rowGap",key:"rowGap",format:"%spx",responsive:"all"},{...n,renderIn:"save",selector:l||o,styleRule:"rowGap",attrName:"rowGap",key:"rowGap",format:"%spx",responsive:"all"}])},vv={height:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},width:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},verticalAlign:{stkResponsive:!0,type:"string",default:""},horizontalAlign:{stkResponsive:!0,type:"string",default:""},margin:{stkResponsive:!0,stkUnits:"px",type:"object"},padding:{stkResponsive:!0,stkHover:!0,stkUnits:"px",type:"object"}},bv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:vv,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},fv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",attrNameTemplate:a="%s",horizontalAlignRule:l="margin",verticalAlignRule:r="alignItems",verticalAlignSelectorEdit:i="",verticalAlignSelectorSave:s="",verticalAlignSelector:c="",hasPaddings:d=!0,wrapperSelector:u="",dependencies:p=[]}=t;e.addBlockStyles("height",[{...n,selector:o,styleRule:"minHeight",attrName:"height",key:"height",attrNameTemplate:a,responsive:"all",hasUnits:"px"}]),i&&e.addBlockStyles("verticalAlign",[{...n,renderIn:"edit",selector:i,styleRule:r||"alignItems",attrName:"verticalAlign",key:"verticalAlign-edit",attrNameTemplate:a,responsive:"all"}]),s&&e.addBlockStyles("verticalAlign",[{...n,renderIn:"save",selector:s,styleRule:r||"alignItems",attrName:"verticalAlign",key:"verticalAlign-save",attrNameTemplate:a,responsive:"all"}]),i||s||e.addBlockStyles("verticalAlign",[{...n,selector:c||o,styleRule:r||"alignItems",attrName:"verticalAlign",key:"verticalAlign",attrNameTemplate:a,responsive:"all"}]),e.addBlockStyles("width",[{...n,selector:u||o,styleRule:"maxWidth",attrName:"width",key:"width-maxwidth",attrNameTemplate:a,responsive:"all",hasUnits:"px"},{...n,selector:u||o,styleRule:"minWidth",attrName:"width",key:"width-minwidth",attrNameTemplate:a,responsive:"all",hover:"all",versionAdded:"3.0.0",versionDeprecated:"3.0.2",valueCallback:e=>""!==e?"auto":void 0}]),d&&e.addBlockStyles("padding",[{...n,selector:o,styleRule:"paddingTop",attrName:"padding",key:"padding-top",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.top},{...n,selector:o,styleRule:"paddingRight",attrName:"padding",key:"padding-right",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right},{...n,selector:o,styleRule:"paddingBottom",attrName:"padding",key:"padding-bottom",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom},{...n,selector:o,styleRule:"paddingLeft",attrName:"padding",key:"padding-left",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left}]),e.addBlockStyles("margin",[{...n,selector:u||o,styleRule:"marginTop",attrName:"margin",key:"margin-top",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.top,valueCallback:e=>e.startsWith("auto")?"auto":e},{...n,selector:u||o,styleRule:"marginRight",attrName:"margin",key:"margin-right",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:(e,t,n)=>{const o=null==e?void 0:e.right,a=t("horizontalAlign",n);if(!t("width",n)&&void 0===o)return"";switch(a){case"flex-start":case"center":return"auto";case"flex-end":return o||0;default:return o}},valueCallback:e=>e.startsWith("auto")?"auto":e,dependencies:["horizontalAlign","width",...p]},{...n,selector:u||o,styleRule:"marginBottom",attrName:"margin",key:"margin-bottom",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom,valueCallback:e=>e.startsWith("auto")?"auto":e},{...n,selector:u||o,styleRule:"marginLeft",attrName:"margin",key:"margin-left",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:(e,t,n)=>{const o=null==e?void 0:e.left,a=t("horizontalAlign",n);if(!t("width",n)&&void 0===o)return"";switch(a){case"flex-start":return o||0;case"center":case"flex-end":return"auto";default:return o}},valueCallback:e=>e.startsWith("auto")?"auto":e,dependencies:["horizontalAlign","width",...p]}]),e.addBlockStyles("verticalAlign",[{...n,selector:o,styleRule:"display",attrName:"verticalAlign",key:"verticalAlign-display",attrNameTemplate:a,responsive:"all",valueCallback:()=>"flex"}]),"margin"!==l&&e.addBlockStyles("horizontalAlign",[{...n,renderIn:"save",selector:u||o,styleRule:l||"justifyContent",attrName:"horizontalAlign",key:"horizontalAlign",attrNameTemplate:a,responsive:"all"}])},kv=e=>{const t=ve(),{getAttribute:n,getAttrName:o}=qe(e.attrNameTemplate),{labelHeight:a=(0,v.__)("Min. Height",m.i18n),labelContentWidth:l=(0,v.__)("Max. Content Width",m.i18n),labelHorizontalAlign:r=(0,v.__)("Content Horizontal Align",m.i18n),labelVerticalAlign:i=(0,v.__)("Content Vertical Align",m.i18n)}=e.labels;return(0,ue.createElement)(ue.Fragment,null,e.hasMinHeight&&(0,ue.createElement)(ro,{label:a,attribute:o("height"),responsive:"all",units:["px","vh"],min:[0,0],sliderMax:[1e3,100],step:[1,1],allowReset:!0,placeholder:"0",helpTooltip:{video:"block-height",description:(0,v.__)("Adjusts the minimum allowable height of the block",m.i18n)},visualGuide:e.visualGuide}),e.hasContentVerticalAlign&&(0,ue.createElement)(Ao,{label:i,attribute:o("verticalAlign"),responsive:"all",controls:"vertical",helpTooltip:{video:"content-vertical-align",description:(0,v.__)("Sets the placement of the content to top, center or bottom. Available when the min. block height is set to higher than default.",m.i18n)},visualGuide:e.visualGuide?{...e.visualGuide,selector:(e.visualGuide.selector||"")+", .stk-%s > *"}:null}),(0,ue.createElement)(ro,{label:l,attribute:o("width"),responsive:"all",units:["px","%","vw"],min:[0,0],sliderMax:[1500,100],step:[1,1],allowReset:!0,placeholder:"",initialPosition:"1500",helpTooltip:{video:"max-content-width",description:(0,v.__)("Adjusts the maximum allowable width of the block. The settings will depend on the block width you set on the toolbar.",m.i18n)},visualGuide:e.visualGuide}),(""!==n("width")&&"Desktop"===t||(""!==n("width")||""!==n("widthTablet"))&&"Tablet"===t||(""!==n("width")||""!==n("widthTablet")||""!==n("widthMobile"))&&"Mobile"===t)&&(0,ue.createElement)(Ao,{label:r,attribute:o("HorizontalAlign"),responsive:"all",controls:"horizontal",helpTooltip:{video:"content-horizontal-align",description:(0,v.__)("Sets the placement of the content to left, center or right. Not available when block width is set to full width.",m.i18n)},visualGuide:e.visualGuide}))};kv.defaultProps={attrNameTemplate:"%s",hasMinHeight:!0,hasContentVerticalAlign:!0,visualGuide:null,labels:{}};const yv=e=>{const t=V(e.attrNameTemplate),{labelPaddings:n=(0,v.__)("Paddings",m.i18n),labelMargins:o=(0,v.__)("Margins",m.i18n)}=e.labels,a=e.visualGuide?{...e.visualGuide,highlight:"padding"}:null,l=e.visualGuide?{...e.visualGuide,highlight:"margin"}:null;return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(_r,{label:n,attribute:t("padding"),responsive:"all",hover:"all",units:["px","em","%"],defaultLocked:!0,min:[0,0,0],sliderMax:[200,30,100],helpTooltip:{video:"inner-block-padding",description:(0,v.__)("Sets the block paddings, i.e the space between the inner columns and the block border",m.i18n)},visualGuide:a,placeholder:e.paddingPlaceholder}),e.enableMargin&&(0,ue.createElement)(_r,{label:o,attribute:t("margin"),responsive:"all",units:["px","%"],defaultLocked:!1,sliderMin:[-200,-100],sliderMax:[200,100],placeholder:"0",helpTooltip:{video:"advanced-block-margin",description:(0,v.__)("Sets the block margin, i.e. the space outside the block between the block border and the next block.",m.i18n)},visualGuide:l}))};yv.defaultProps={attrNameTemplate:"%s",paddingPlaceholder:"",enableMargin:!0,visualGuide:null,labels:{}};const wv={Layout:kv,Spacing:yv};(0,le.addFilter)("stackable.block-components.block-div.classnames.content","stackable/3.8.0",((e,t)=>(jm(t.version,"<","3.8.0")&&(e.push({"stk--block-margin-top-auto":!1,"stk--block-margin-bottom-auto":!1}),t.className.includes("stk-block-columns")||t.className.includes("stk-block-feature")||e.push({"stk--has-column-order":t.attributes.columnArrangementMobile||t.attributes.columnArrangementTablet})),e)));const Cv={isEligible:e=>Ym.isEligible("block%s")(e),migrate:e=>Ym.migrate("block%s")(e)},_v={isEligible:e=>lv.isEligible("block%s")(e),migrate:e=>lv.migrate("block%s")(e)},Ev=e=>`${e.substring(0,7)}`,Sv=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{clientId:n}=(0,$e.useBlockEditContext)(),{getEditorDom:o}=(0,he.useSelect)("stackable/editor-dom");(0,ue.useEffect)((()=>{if(!t&&!e.uniqueId)return;const a=Ev(n);if(e.uniqueId){if(a!==e.uniqueId){var l;const t=(null===(l=o())||void 0===l?void 0:l.querySelectorAll(`[data-block-id="${e.uniqueId}"]`))||[];Array.prototype.filter.call(t,(e=>!e.closest('[data-type="core/block"]'))).length>1&&((0,he.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,he.dispatch)("core/block-editor").updateBlockAttributes(n,{uniqueId:a}))}}else(0,he.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,he.dispatch)("core/block-editor").updateBlockAttributes(n,{uniqueId:a})}),[n])},xv=(0,ue.memo)((e=>{const{hasSizeSpacing:t,initialOpen:n,backgroundMediaAllowVideo:o}=e,{hasBackground:a,backgroundColorScheme:l}=Ae((e=>({hasBackground:e.hasBackground,backgroundColorScheme:e.backgroundColorScheme}))),r=He(),{getPlaceholder:i}=Bh(),{getScheme:s,COLOR_SCHEME_OPTIONS:c,backgroundModeColorScheme:d}=Ih();return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(tu,null,t&&(0,ue.createElement)(ll,{title:(0,v.__)("Block Size & Spacing",m.i18n),id:"spacing",initialOpen:"spacing"===n},(0,ue.createElement)(wv.Layout,dt({},e,{attrNameTemplate:"block%s",visualGuide:{highlight:"outline"}},e.sizeControlLayoutProps)),(0,ue.createElement)(wv.Spacing,dt({attrNameTemplate:"block%s",paddingPlaceholder:a?i("block-background-padding"):"",visualGuide:{highlight:"padding"}},e.sizeControlSpacingProps)))),(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Background",m.i18n),id:"background",hasToggle:!0,checked:a,onChange:e=>r({hasBackground:e}),initialOpen:"background"===n},(0,ue.createElement)(so,{label:(0,v.__)("Color Scheme",m.i18n),value:s(l||d,{mode:"background",returnFallback:!1}),options:c,attribute:"backgroundColorScheme",changeCallback:e=>e===d?"":e,default:d}),(0,ue.createElement)(ov,{attrNameTemplate:"block%s",onBackgroundEnableAttribute:"hasBackground",backgroundMediaAllowVideo:o})),(0,ue.createElement)(ll,{title:(0,v.__)("Borders & Shadows",m.i18n),id:"borders",initialOpen:"borders"===n},(0,ue.createElement)(uv,{attrNameTemplate:"block%s",placeholderTemplate:"block-background",borderTypeValue:i("block-background-border-style"),borderRadiusPlaceholder:i("block-background-border-radius")}))))}));xv.defaultProps={hasSizeSpacing:!0,initialOpen:!1,sizeControlLayoutProps:{}};var Tv=n(1991),Bv=n.n(Tv);const Mv=e=>e.htmlTag||"div",Iv=["class","className","id","ref","style","dangerouslySetInnerHTML"],Nv=["customAttributes"],Rv=()=>null;Rv.InspectorControls=()=>{const e=Ae((e=>e.customAttributes)),t=He();return(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("Custom Attributes",m.i18n),id:"custom-attributes"},(0,ue.createElement)(Wn,{label:(0,v.__)("Custom Attributes",m.i18n),value:e,invalidHtmlAttributes:Iv,onChange:e=>t({customAttributes:e})})))},Rv.addAttributes=e=>{e.add({attributes:{customAttributes:{type:"array",default:[]}},versionAdded:"3.0.0",versionDeprecated:""})},Rv.getCustomAttributes=e=>{if(!Array.isArray(e.customAttributes)||0===e.customAttributes.length)return{};const t=Object.fromEntries(e.customAttributes);return Object.keys(t).forEach((n=>{let o=unescape(t[n]);t[n]=o;try{const a=o.match(/%[^\%]*%/g);a&&(a.forEach((t=>{const n=t.substr(1,t.length-2);Nv.includes(n)||!e.hasOwnProperty(n)||(0,d.isUndefined)(e[n])||(o=o.replace(t,Mm()(e[n].toString())))})),t[n]=o)}catch{}})),(0,d.omit)(t,Iv)};const Av=(0,ue.memo)((e=>{var t,n,o,a;const{className:l,applyCustomAttributes:r,renderHtmlTag:i,enableVariationPicker:s,withUniqueClass:c,blockHoverClass:d,clientId:u,attributes:p,blockTag:h,version:g,...m}=e;Sv(p,!s);const v=Ev(u),b=Yh(p.uniqueId||v);let f=Im(p.uniqueId||v);f=b?f+`-${b}`:f,f=(0,le.applyFilters)("stackable.block-div.uniqueClass.edit",f);const k=Mv(p),y=r?Rv.getCustomAttributes(p):{},w=Bv()((0,le.applyFilters)("stackable.block-components.block-div.classnames",[l,"stk-block",d,p.className,{[f]:c,"stk-block-background":p.hasBackground,[`stk--background-scheme--${p.backgroundColorScheme}`]:p.hasBackground&&p.backgroundColorScheme,"stk--block-margin-top-auto":"auto"===(null===(t=p.blockMargin)||void 0===t?void 0:t.top),"stk--block-margin-right-auto":"auto"===(null===(n=p.blockMargin)||void 0===n?void 0:n.right),"stk--block-margin-bottom-auto":"auto"===(null===(o=p.blockMargin)||void 0===o?void 0:o.bottom),"stk--block-margin-left-auto":"auto"===(null===(a=p.blockMargin)||void 0===a?void 0:a.left)}],e)),C=Ch(u,p.uniqueId);return C&&s?C:(0,ue.createElement)(cu,dt({},m,y,{className:w,id:p.anchor||void 0,"data-block-id":p.uniqueId||v,blockTag:i?k:h,hasBackground:p.hasBackground,backgroundUrl:p.blockBackgroundMediaUrl||p.blockBackgroundMediaExternalUrl,backgroundUrlTablet:p.blockBackgroundMediaUrlTablet||p.blockBackgroundMediaExternalUrlTablet,backgroundUrlMobile:p.blockBackgroundMediaUrlMobile||p.blockBackgroundMediaExternalUrlMobile,backgroundThumbnailUrl:p.blockBackgroundMediaThumbnailUrl,backgroundThumbnailUrlTablet:p.blockBackgroundMediaThumbnailUrlTablet,backgroundThumbnailUrlMobile:p.blockBackgroundMediaThumbnailUrlMobile,backgroundColorType:p.blockBackgroundColorType},(0,le.applyFilters)("stackable.block-components.block-div.attributes",{},p)),e.children,((e,t)=>{var n;if(!e)return null;const o=null===(n=navigator)||void 0===n?void 0:n.userAgent;var a,l,r,i;return o&&-1!==o.indexOf("Firefox")?(0,ue.createElement)("style",null,"auto"===(null===(a=t.blockMargin)||void 0===a?void 0:a.top)&&`[data-block="${e}"] {\n\t\t\t\tmargin-top: auto !important;\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}`,"auto"===(null===(l=t.blockMargin)||void 0===l?void 0:l.right)&&`[data-block="${e}"] {\n\t\t\t\tmargin-right: auto !important;\n\t\t\t\tmargin-left: 0;\n\t\t\t\twidth: fit-content;\n\t\t\t}`,"auto"===(null===(r=t.blockMargin)||void 0===r?void 0:r.bottom)&&`[data-block="${e}"] {\n\t\t\t\tmargin-bottom: auto !important;\n\t\t\t\tmargin-top: 0;\n\t\t\t}`,"auto"===(null===(i=t.blockMargin)||void 0===i?void 0:i.left)&&`[data-block="${e}"] {\n\t\t\t\tmargin-left: auto !important;\n\t\t\t\tmargin-right: 0;\n\t\t\t\twidth: fit-content;\n\t\t\t}`):null})(u,p))}));Av.defaultProps={className:"",applyCustomAttributes:!0,renderHtmlTag:!0,enableVariationPicker:!1,withUniqueClass:!0,blockHoverClass:"",blockTag:"div"},Av.Content=e=>{var t,n;const{className:o,attributes:a,applyCustomAttributes:l,blockTag:r,version:i,...s}=e,c=Mv(a),d=l?Rv.getCustomAttributes(a):{};let u=Im(a.uniqueId);u=(0,le.applyFilters)("stackable.block-div.uniqueClass.save",u,a);const p=Bv()((0,le.applyFilters)("stackable.block-components.block-div.classnames.content",[o,"stk-block",u,{"stk-block-background":a.hasBackground,[`stk--background-scheme--${a.backgroundColorScheme}`]:a.hasBackground&&a.backgroundColorScheme,"stk--block-margin-top-auto":"auto"===(null===(t=a.blockMargin)||void 0===t?void 0:t.top),"stk--block-margin-bottom-auto":"auto"===(null===(n=a.blockMargin)||void 0===n?void 0:n.bottom),"stk--has-lightbox":a.blockLinkHasLightbox||a.linkHasLightbox}],e));return(0,ue.createElement)(cu.Content,dt({},s,d,$e.useBlockProps.save({className:p}),{id:a.anchor||void 0,"data-block-id":a.uniqueId||void 0,blockTag:r||c,hasBackground:a.hasBackground,backgroundUrl:a.blockBackgroundMediaUrl||a.blockBackgroundMediaExternalUrl,backgroundUrlTablet:a.blockBackgroundMediaUrlTablet||a.blockBackgroundMediaExternalUrlTablet,backgroundUrlMobile:a.blockBackgroundMediaUrlMobile||a.blockBackgroundMediaExternalUrlMobile,backgroundThumbnailUrl:a.blockBackgroundMediaThumbnailUrl,backgroundThumbnailUrlTablet:a.blockBackgroundMediaThumbnailUrlTablet,backgroundThumbnailUrlMobile:a.blockBackgroundMediaThumbnailUrlMobile,backgroundColorType:a.blockBackgroundColorType},(0,le.applyFilters)("stackable.block-components.block-div.attributes.content",{},a)))},Av.Content.defaultProps={version:m.version,className:"",attributes:{},applyCustomAttributes:!0,blockTag:""},Av.InspectorControls=xv,Av.addAttributes=e=>{e.add({attributes:{uniqueId:{type:"string",default:""},hasBackground:{type:"boolean",default:!1},hasBorders:{type:"boolean",default:!1},backgroundColorScheme:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),Qm(e,"block%s"),iv(e,"block%s"),bv(e,"block%s")},Av.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zm(e,{...t,renderCondition:"hasBackground",attrNameTemplate:"block%s"}),sv(e,{...t,attrNameTemplate:"block%s"}),fv(e,{...t,attrNameTemplate:"block%s"})};const Hv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";return{hasLink:{type:"boolean",default:!0},url:{type:"string",source:"attribute",selector:e,attribute:"href",default:""},newTab:{type:"boolean",source:"attribute",selector:e,attribute:"target",default:!1},rel:{type:"string",source:"attribute",selector:e,attribute:"rel",default:""},hasTitle:{type:"boolean",default:!0},title:{type:"string",source:"attribute",selector:e,attribute:"title",default:""},hasLightbox:{type:"boolean",default:!1}}},Pv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a";e.add({attributes:Hv(n),attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},Ov=e=>{const{hasLink:t,hasTitle:n,hasLightbox:o,lightboxHelp:a,hasAnchorId:l=!1}=e,{getAttribute:r,updateAttributeHandler:i}=qe(e.attrNameTemplate),s=r("url")||"",c=r("hasLightbox")&&s.startsWith("https://www.google.com/maps/")&&!s.startsWith("https://www.google.com/maps/embed");return(0,ue.createElement)(ue.Fragment,null,(t||r("hasLink"))&&(0,ue.createElement)(od,{label:(0,v.__)("Link / URL",m.i18n),value:r("url"),onChange:i("url")}),(0,ue.createElement)(Pc,{label:(0,v.__)("Open in new tab",m.i18n),checked:r("newTab"),onChange:i("newTab")}),o&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Pc,{label:(0,v.__)("Open Link in Lightbox",m.i18n),help:a,checked:r("hasLightbox"),onChange:i("hasLightbox")}),c&&(0,ue.createElement)("div",{className:"stk-inspector-hint stk-inspector-hint__google-map "},(0,ue.createElement)("span",null,(0,v.__)("Displaying a Google Map in a Lightbox? Use the embed iframe URL instead. Need help finding it?",m.i18n)," ",(0,ue.createElement)("a",{href:"https://docs.wpstackable.com/article/528-how-to-add-a-google-map-in-a-lightbox?utm_source=inspector&utm_campaign=learnmore&utm_medium=gutenberg",target:"_blank",rel:"noreferrer"},(0,v.__)(" Check out our docs.",m.i18n))))),(0,ue.createElement)(Dn,{label:(0,v.__)("Link rel",m.i18n),help:(0,v.__)("Link relationship keywords, e.g. nofollow noreferrer prefetch",m.i18n),value:r("rel"),onChange:i("rel")}),(n||r("hasTitle"))&&(0,ue.createElement)(Dn,{label:(0,v.__)("Link Title",m.i18n),value:r("title"),onChange:i("title"),isDynamic:!0,isFormatType:!1,help:(0,v.__)("Also used for lightbox caption",m.i18n)}),l&&(0,ue.createElement)(Dn,{label:(0,v.__)("Anchor ID",m.i18n),attribute:"anchorId",help:(0,v.__)("Add an id attribute to the anchor tag.",m.i18n)}))};Ov.defaultProps={attrNameTemplate:"%s",hasLink:!0,hasTitle:!1,hasLightbox:!1,lightboxHelp:(0,v.__)("Supports links to images, videos, YouTube, Vimeo, and web pages that allow embedding",m.i18n)};const zv=e=>{const{hasLink:t,hasTitle:n,hasLightbox:o}=e;return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("Link",m.i18n),id:"link"},(0,ue.createElement)(Ov,{attrNameTemplate:"blockLink%s",hasLink:t,hasTitle:n,hasLightbox:o,lightboxHelp:(0,v.__)("Supports links to images, videos, YouTube, Vimeo, and web pages that allow embedding. Opens inner image block if no link is provided",m.i18n)}))))};zv.defaultProps={hasLink:!0,hasTitle:!0,hasLightbox:!0};const Lv=()=>null;Lv.Content=e=>{const{href:t,attributes:n,isHidden:o}=e;return n.blockLinkUrl?(0,ue.createElement)(kd.Content,{className:"stk-block-link stk--transparent-overlay",href:t||n.blockLinkUrl,target:n.blockLinkNewTab?"_blank":"",rel:n.blockLinkRel||void 0,title:n.blockLinkTitle||void 0,"aria-hidden":o?"true":void 0,tabindex:o?"-1":void 0}):null},Lv.Content.defaultProps={className:"",attributes:{},href:"",isHidden:!0},Lv.InspectorControls=zv,Lv.addAttributes=e=>{Pv(e,"blockLink%s","a.stk-block-link")},Lv.addStyles=()=>{};const $v=(0,ue.memo)((e=>(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Styles",m.i18n),id:"styles",initialOpen:e.initialOpen},(0,ue.createElement)(hc,{styles:e.styles}),e.children))));$v.defaultProps={initialOpen:!0,styles:[]};const Dv=()=>null;Dv.Content=()=>null,Dv.InspectorControls=$v;const Fv=(e,t)=>{const{attrNameTemplate:n="button%s"}=t;e.add({attributes:{backgroundColor2:{stkHover:!0,type:"string",default:""},backgroundGradientDirection:{stkHover:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.12.0",attrNameTemplate:n})},Uv={isEligible:e=>t=>{const n=P(e),o=e=>t[n(e)];return"gradient"===o("backgroundColorType")&&o("backgroundColor2")},migrate:e=>t=>{const n=P(e),o=e=>t[n(e)],a={...t,[n("backgroundColor2")]:void 0,[n("backgroundGradientDirection")]:void 0};if("gradient"===o("backgroundColorType")){const e=o("backgroundColor"),t=o("backgroundColor2")||o("backgroundColor"),l=o("backgroundGradientDirection")||0===o("backgroundGradientDirection")?o("backgroundGradientDirection"):90,r=o("backgroundColorHover")||void 0,i=o("backgroundColor2Hover")||r,s=o("backgroundGradientDirectionHover")||0===o("backgroundGradientDirectionHover")?o("backgroundGradientDirectionHover"):90,c=o("backgroundColorParentHover")||void 0,d=o("backgroundColor2ParentHover")||c,u=o("backgroundGradientDirectionParentHover")||0===o("backgroundGradientDirectionParentHover")?o("backgroundGradientDirectionParentHover"):90;e&&t&&(a[n("backgroundColor")]=`linear-gradient(${l}deg, ${e} 0%, ${t} 100%)`),r&&i&&(a[n("backgroundColorHover")]=`linear-gradient(${s}deg, ${r} 0%, ${i} 100%)`),c&&d&&(a[n("backgroundColorParentHover")]=`linear-gradient(${u}deg, ${c} 0%, ${d} 100%)`)}return a}},Wv={padding:{stkResponsive:!0,type:"object",stkUnits:"px"},backgroundColorType:{type:"string",default:""},backgroundColor:{stkHover:!0,type:"string",default:""},minHeight:{stkResponsive:!0,type:"number",default:""},width:{stkResponsive:!0,type:"number",default:""},fullWidth:{type:"boolean",default:""},hoverEffect:{type:"string",default:"darken"}},Vv=e=>{const{hasShape:t,hasIconGap:n,hasIconPosition:o,hideControlsIfIconIsNotSet:a=!1,iconSizeProps:l={},iconControlHelp:r,initialOpen:i,hasMultiColor:s,hasGradient:c,wrapInPanels:d=!0,responsive:u="all",hover:p="all",defaultValue:h,onChangeIcon:g,iconGapPlaceholder:b="0",iconSizePlaceholderName:f="icon-size",attrNameTemplate:k}=e,y=P(k),w=(0,ue.useMemo)((()=>(0,le.applyFilters)("stackable.block-component.icon.color-controls",null)),[]),C=(0,ue.useMemo)((()=>(0,le.applyFilters)("stackable.block-component.icon.shape-color-controls",null)),[]),_=(0,ue.useMemo)((()=>(0,le.applyFilters)("stackable.block-component.icon.edit.background-shape",null)),[]),E=Ae((e=>({icon:e.icon,iconColorType:e.iconColorType,shapeColorType:e.shapeColorType}))),S=He(),{getPlaceholder:x}=Bh(),T=!a||!!E.icon,B=(0,le.applyFilters)("stackable.block-component.icon.color-types",[{value:"",title:(0,v.__)("Single",m.i18n)}],e),M=(0,le.applyFilters)("stackable.block-component.icon.shape-color-types",[{value:"",title:(0,v.__)("Single",m.i18n)}],e),I=(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Ol,{label:(0,le.applyFilters)("stackable.block-component.icon.label",(0,v.__)("Icon",m.i18n)),value:E.icon,defaultValue:h,onChange:e=>{g?g(e):S({icon:e})},help:r,hasPanelModifiedIndicator:!1}),e.children,m.showProNotice&&(s||c)&&(0,ue.createElement)(ar,{type:"icon-colors"}),(0,le.applyFilters)("stackable.block-component.icon.after",null),B.length>1&&(0,ue.createElement)(Ao,{controls:B,isSmall:!0,fullwidth:!1,attribute:"iconColorType"}),T&&(0,ue.createElement)(ue.Fragment,null,""===(E.iconColorType||"")&&(0,ue.createElement)(Cn,{label:(0,v.__)("Icon Color",m.i18n),attribute:y("iconColor1"),hover:p}),w&&(0,ue.createElement)(w,e)),T&&(0,ue.createElement)(ro,dt({label:(0,v.__)("Icon Size",m.i18n),attribute:"iconSize",min:0,sliderMax:100,step:1,allowReset:!0,placeholder:x(f)||"",responsive:u},l)),T&&(0,ue.createElement)(ro,{label:(0,v.__)("Icon Opacity",m.i18n),attribute:"iconOpacity",min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",hover:p}),T&&(0,ue.createElement)(ro,{label:(0,v.__)("Icon Rotation",m.i18n),attribute:"iconRotation",min:0,max:360,allowReset:!0,placeholder:"0",hover:p}),o&&(0,ue.createElement)(so,{label:(0,v.__)("Icon Position",m.i18n),attribute:"iconPosition",options:[{value:"",label:(0,v.__)("Left",m.i18n)},{value:"right",label:(0,v.__)("Right",m.i18n)}]}),n&&(0,ue.createElement)(ro,{label:(0,v.__)("Icon Gap",m.i18n),attribute:"iconGap",min:0,sliderMax:50,allowReset:!0,placeholder:e.iconGapPlaceholderName?x(e.iconGapPlaceholderName):b})),N=(0,ue.createElement)(ue.Fragment,null,M.length>1&&(0,ue.createElement)(Ao,{controls:M,isSmall:!0,fullwidth:!1,attribute:"shapeColorType"}),""===(E.shapeColorType||"")&&(0,ue.createElement)(Cn,{label:(0,v.__)("Shape Color",m.i18n),attribute:"shapeColor1",hover:"all"}),C&&(0,ue.createElement)(C,e),(0,ue.createElement)(ro,{label:(0,v.__)("Shape Border Radius",m.i18n),attribute:"shapeBorderRadius",hover:p,min:0,sliderMax:100,step:1,allowReset:!0,placeholder:50}),(0,ue.createElement)(ro,{label:(0,v.__)("Shape Padding",m.i18n),attribute:"shapePadding",min:0,sliderMax:150,step:1,allowReset:!0,placeholder:20}),(0,ue.createElement)(_r,{label:(0,v.__)("Shape Outline Width",m.i18n),units:["px"],min:0,step:1,sliderMax:20,defaultLocked:!0,attribute:"shapeOutlineWidth",responsive:u,default:"1"}),(0,ue.createElement)(Cn,{label:(0,v.__)("Shape Outline Color",m.i18n),attribute:"shapeOutlineColor",hover:p})),R=(0,ue.createElement)(In,{type:"icon-background-shape"}),A=d?nu:ue.Fragment;return(0,ue.createElement)(A,null,d?(0,ue.createElement)(ll,{title:(0,v.__)("Icon",m.i18n),id:"icon",initialOpen:i},I):I,t&&(d?(0,ue.createElement)(ll,{title:(0,v.__)("Icon Shape",m.i18n),id:"icon-shape"},N):N),e.hasBackgroundShape&&(0,ue.createElement)(ue.Fragment,null,m.showProNotice&&!m.isPro&&(d?(0,ue.createElement)(ll,{title:(0,v.__)("Background Shape",m.i18n),id:"icon-background-shape",isPremiumPanel:!0}," ",R):R),_&&(0,ue.createElement)(_,e)))};Vv.defaultProps={label:(0,v.__)("Icon",m.i18n),hasColor:!0,hasGradient:!0,hasShape:!0,hasShapeGradient:!0,hasBackgroundShape:!0,initialOpen:!1,hasIconGap:!1,hasIconPosition:!1,hasMultiColor:!1,defaultValue:"",onChangeIcon:null,attrNameTemplate:"%s"};const Gv={icon:{type:"string",default:""},icon2:{type:"string",default:""},iconColorType:{type:"string",default:""},...(0,d.range)(1,11).reduce(((e,t)=>({...e,[`iconColor${t}`]:{stkHover:!0,type:"string",default:""},[`iconOpacity${t}`]:{stkHover:!0,type:"number",default:""}})),{}),iconColorGradientDirection:{type:"number",default:""},iconOpacity:{stkHover:!0,type:"number",default:""},iconRotation:{stkHover:!0,type:"number",default:""},iconPosition:{type:"string",default:""},iconGap:{type:"number",default:""},shapeColorType:{type:"string",default:""},shapeColor1:{stkHover:!0,type:"string",default:""},shapeColor2:{type:"string",default:""},shapeColorGradientDirection:{type:"number",default:""},shapeBorderRadius:{stkHover:!0,type:"number",default:""},shapePadding:{type:"number",default:""},showBackgroundShape:{type:"boolean",default:!1},backgroundShape:{type:"string",default:""},backgroundShapeColor:{stkHover:!0,type:"string",default:""},backgroundShapeOpacity:{stkHover:!0,type:"number",default:""},backgroundShapeSize:{type:"number",default:""},backgroundShapeOffsetHorizontal:{type:"number",default:""},backgroundShapeOffsetVertical:{type:"number",default:""},shapeOutlineColor:{stkHover:!0,type:"string",default:""},iconSize:{stkResponsive:!0,type:"number",default:""},shapeOutlineWidth:{stkResponsive:!0,type:"object"}},jv=e=>{let{id:t}=e;const n=(0,d.kebabCase)(t);return(0,ue.createElement)("svg",{style:{height:0,width:0}},(0,ue.createElement)("defs",null,(0,ue.createElement)("linearGradient",{id:t,x1:"0",x2:"100%",y1:"0",y2:"0"},(0,ue.createElement)("stop",{offset:"0%",style:{stopOpacity:1,stopColor:`var(--${n}-color-1)`}}),(0,ue.createElement)("stop",{offset:"100%",style:{stopOpacity:1,stopColor:`var(--${n}-color-2)`}}))))},qv=()=>{},Kv=e=>{const{attrNameTemplate:t="%s",hasLinearGradient:n=!0,value:o="",defaultValue:a="",onChange:l=qv,openEvenIfUnselected:r=!1}=e,{isSelected:i}=(0,$e.useBlockEditContext)(),[s,c]=(0,ue.useState)(!1),d=(0,ue.useRef)(null);(0,ue.useEffect)((()=>{i||!s||r||c(!1)}),[i,s]),(0,ue.useEffect)((()=>{const e=e=>{s&&(e.target.closest(".stk--inner-svg")&&e.stopPropagation(),e.target.closest(".stk--inner-svg")||Wm(d.current,e.target)||e.target.closest(".components-popover")||c(!1))};return document.body.addEventListener("click",e),()=>document.body.removeEventListener("click",e)}),[d.current,s]);const[u,p]=(0,ue.useState)(!1);(0,ue.useEffect)((()=>{if(!i)return void p(!1);const e=setTimeout((()=>{i&&p(i)}),1);return()=>clearTimeout(e)}),[i]);const h=Ae((e=>e.uniqueId)),{getAttribute:g,updateAttributeHandler:m}=qe(t),v=(0,ue.useMemo)((()=>Mg(g("backgroundShape")||"blob1")),[g("backgroundShape")]),b=o||g("icon");if(!b)return null;const f=n?(0,ue.renderToString)((0,ue.createElement)(jv,{id:"linear-gradient-"+h,iconColor1:g("iconColor1"),iconColor2:g("iconColor2")})):void 0,k=gt()(["stk--svg-wrapper"],{"stk--show-cursor":u,"stk--has-icon2":g("icon2")});return(0,ue.createElement)("span",{className:k,onClick:e=>{(u||r)&&e.target.closest(".stk--inner-svg")&&!s&&c(!s)}},b&&(0,ue.createElement)(Bc,{className:"stk--inner-svg",prependRenderString:f,value:b,ariaLabel:g("ariaLabel")}),g("showBackgroundShape")&&(0,ue.createElement)(v,{className:"stk--shape-icon"}),s&&(0,ue.createElement)(jl,{__hasPopover:!0,__deprecateUseRef:d,onClose:()=>c(!1),onChange:e=>{l===qv?m("icon")(e):l(e),c(!1)},defaultValue:a}),g("icon2")&&(0,ue.createElement)(Bc,{className:"stk--inner-svg stk--icon-2",prependRenderString:f,value:g("icon2"),ariaLabel:g("ariaLabel"),style:{display:"none"}}))};Kv.Content=e=>{const{attributes:t,attrNameTemplate:n,hasLinearGradient:o=!0,children:a,value:l=""}=e,r=P(n),i=dg(t,r,""),s=Mg(i("backgroundShape")||"blob1"),c=o?(0,ue.renderToString)((0,ue.createElement)(jv,{id:"linear-gradient-"+t.uniqueId,iconColor1:i("iconColor1"),iconColor2:i("iconColor2")})):void 0,d=gt()(["stk--svg-wrapper"],{"stk--has-icon2":i("icon2")}),u=l||i("icon");return u||i("icon2")?(0,ue.createElement)("span",{className:d},u&&(0,ue.createElement)(Bc.Content,{className:"stk--inner-svg",prependRenderString:c,value:u,ariaLabel:i("ariaLabel")}),i("showBackgroundShape")&&(0,ue.createElement)(s,{className:"stk--shape-icon"}),i("icon2")&&(0,ue.createElement)(Bc.Content,{className:"stk--inner-svg stk--icon-2",prependRenderString:c,value:i("icon2"),ariaLabel:i("ariaLabel"),style:{display:"none"}}),a):null},Kv.InspectorControls=Vv,Kv.addAttributes=e=>{e.add({attributes:Gv,versionAdded:"3.0.0",versionDeprecated:""})},Kv.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{hasIconGap:o=!0,selector:a="",hoverSelector:l="",dependencies:r=[]}=t,i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;const l=`${t||o} .stk--inner-svg svg:last-child`;return n.length?[l,l+` :is(${n.join(",")})`]:l},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return i(e,t,n,a+":hover")},c=`${a} .stk--inner-svg`,d=`${l} .stk--inner-svg`;e.addBlockStyles("iconSize",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"height",attrName:"iconSize",key:"iconSize",responsive:"all",format:"%spx"}]),e.addBlockStyles("iconSize",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"width",attrName:"iconSize",key:"iconSize-width",responsive:"all",format:"%spx"}]),e.addBlockStyles("iconOpacity",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"opacity",attrName:"iconOpacity",key:"iconOpacity",hover:"all"}]),e.addBlockStyles("iconRotation",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"transform",attrName:"iconRotation",key:"iconRotation",hover:"all",format:"rotate(%sdeg)"}]),o&&e.addBlockStyles("iconGap",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>i(e,l),styleRuleCallback:e=>"right"===e("iconPosition")?"marginInlineStart":"marginInlineEnd",attrName:"iconGap",key:"iconGap",format:"%spx",dependencies:["iconPosition",...r]}]),e.addBlockStyles("iconColor1",[{...n,selectorCallback:e=>i(e,a,["g","path","rect","polygon","ellipse"]),hoverSelectorCallback:e=>s(e,l,["g","path","rect","polygon","ellipse"]),styleRule:"fill",attrName:"iconColor1",key:"iconColor1-fill",valuePreCallback:(e,t,n,o)=>"gradient"===t("iconColorType")&&t("iconColor1","desktop",o)&&t("iconColor2","desktop",o)?`url(#linear-gradient-${t("uniqueId")})`:t("iconColorType")?void 0:e,dependencies:["iconColorType","iconColor1","iconColor2","uniqueId",...r],hover:"all"}]),e.addBlockStyles("iconColorGradientDirection",[{...n,selectorCallback:e=>`${a} #linear-gradient-${e("uniqueId")}`,styleRule:"transform",format:"rotate(%sdeg)",attrName:"iconColorGradientDirection",key:"iconColorGradientDirection",hoverSelectorCallback:e=>`${a}:hover #linear-gradient-${e("uniqueId")}`}]),e.addBlockStyles("iconColor1",[{...n,selectorCallback:e=>`${a} #linear-gradient-${e("uniqueId")}`,styleRuleCallback:e=>`--linear-gradient-${e("uniqueId")}-color-1`,attrName:"iconColor1",key:"iconColor1",valuePreCallback:(e,t,n,o)=>{if("gradient"===t("iconColorType")&&t("iconColor1","desktop",o)&&t("iconColor2","desktop",o))return e},hoverSelectorCallback:e=>`${a}:hover #linear-gradient-${e("uniqueId")}`,dependencies:["iconColorType","iconColor1","iconColor2",...r]}]),e.addBlockStyles("iconColor2",[{...n,selectorCallback:e=>`${a} #linear-gradient-${e("uniqueId")}`,styleRuleCallback:e=>`--linear-gradient-${e("uniqueId")}-color-2`,attrName:"iconColor2",key:"iconColor2",valuePreCallback:(e,t,n,o)=>{if("gradient"===t("iconColorType")&&t("iconColor1","desktop",o)&&t("iconColor2","desktop",o))return e},hoverSelectorCallback:e=>`${a}:hover #linear-gradient-${e("uniqueId")}`,dependencies:["iconColorType","iconColor1","iconColor2",...r]}]),e.addBlockStyles("shapeColor1",[{...n,selector:c,hoverSelector:d,styleRule:"backgroundColor",attrName:"shapeColor1",key:"shapeColor1",hover:"all",valuePreCallback:(e,t,n,o)=>{const a=t("shapeColorType");if("normal"===o||"gradient"!==a)return e},dependencies:["shapeColorType","shapeColor2","shapeColorType","shapeGradientDirection",...r]}]),e.addBlockStyles("shapeBorderRadius",[{...n,selector:c,hoverSelector:d,styleRule:"borderRadius",attrName:"shapeBorderRadius",key:"shapeBorderRadius",format:"%s%",hover:"all"}]),e.addBlockStyles("shapePadding",[{...n,selector:c,hoverSelector:d,styleRule:"padding",attrName:"shapePadding",key:"shapePadding",format:"%spx"}]),e.addBlockStyles("shapeOutlineColor",[{...n,selector:c,hoverSelector:d,styleRule:"borderColor",attrName:"shapeOutlineColor",key:"shapeOutlineColor",hover:"all"}]),e.addBlockStyles("borderStyle",[{...n,selector:c,hoverSelector:d,styleRule:"borderStyle",attrName:"borderStyle",key:"borderStyle",valuePreCallback:(e,t,n,o)=>{var a,l,r,i;if(null!==(a=t("shapeOutlineWidth","desktop",o))&&void 0!==a&&a.top&&null!==(l=t("shapeOutlineWidth","desktop",o))&&void 0!==l&&l.right&&null!==(r=t("shapeOutlineWidth","desktop",o))&&void 0!==r&&r.bottom&&null!==(i=t("shapeOutlineWidth","desktop",o))&&void 0!==i&&i.left)return"solid"},hover:"all",dependencies:["shapeOutlineWidth",...r]}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderTopWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-top",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.top}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderRightWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-right",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.right}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderBottomWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-bottom",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.bottom}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderLeftWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-left",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.left}]),(0,le.doAction)("stackable.block-component.icon.indiv-icon-style.addStyles",e)};const Jv=e=>{const t=P("link%s")("hasLink"),n=Ae((e=>e[t])),o=He(),a=e.isAdvancedTab?ou:nu;return(0,ue.createElement)(a,null,(0,ue.createElement)(ll,{title:(0,v.__)("Link",m.i18n),id:"link",hasToggle:e.hasToggle,checked:e.hasToggle?n:void 0,onChange:e.hasToggle?e=>{o({[t]:e})}:void 0},(0,ue.createElement)(Ov,{attrNameTemplate:"link%s",hasLightbox:!0,hasAnchorId:e.hasAnchorId})))};Jv.defaultProps={hasToggle:!1,isAdvancedTab:!1,hasAnchorId:!1};const Yv=e=>{const t=Ae((e=>e.linkHasLink));return t?(0,ue.createElement)(kd,dt({},e.linkProps,{className:e.className}),e.children):e.children};Yv.defaultProps={className:"",linkProps:{}},Yv.Content=e=>{const{linkProps:t={},attributes:n}=e;return n.linkHasLink?(0,ue.createElement)(kd.Content,dt({},t,{className:e.className,href:n.linkUrl||void 0,target:n.linkNewTab?"_blank":void 0,rel:n.linkRel||void 0,title:n.linkTitle||void 0}),e.children):e.children},Yv.InspectorControls=Jv,Yv.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{attrNameTemplate:n="link%s",selector:o="a"}=t;Pv(e,n,o)};const Xv=e=>(0,ue.createElement)(Kv.InspectorControls,{hasColor:e.hasColor,hasGradient:!1,hasShape:!1,hasBackgroundShape:!1,hasIconGap:e.hasIconGap,hasIconPosition:e.hasIconPosition,defaultValue:e.defaultValue,iconSizePlaceholderName:"button-icon-size",iconGapPlaceholderName:e.iconGapPlaceholderName});Xv.defaultProps={hasIconGap:!0,hasIconPosition:!0,hasColor:!0,defaultValue:""};const Qv=Yv.InspectorControls,Zv=[{label:(0,v.__)("None",m.i18n),value:""},{label:(0,v.__)("Darken",m.i18n),value:"darken"},{label:(0,v.__)("Lift",m.i18n),value:"lift"},{label:(0,v.__)("Scale",m.i18n),value:"scale"},{label:(0,v.__)("Lift & Scale",m.i18n),value:"lift-scale"},{label:(0,v.__)("Lift More",m.i18n),value:"lift-more"},{label:(0,v.__)("Scale More",m.i18n),value:"scale-more"},{label:(0,v.__)("Lift & Scale More",m.i18n),value:"lift-scale-more"}],eb=e=>{const{hasIconColor:t,hasTextColor:n,attrNameTemplate:o="button%s"}=e,a=V(o),l=Ae((e=>e[a("backgroundColorType")]));return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Ao,{controls:[{value:"",title:(0,v.__)("Single",m.i18n)},{value:"gradient",title:(0,v.__)("Gradient",m.i18n)}],attribute:a("backgroundColorType"),isSmall:!0}),(0,ue.createElement)(Cn,{label:(0,v.__)("Button Color",m.i18n),attribute:a("backgroundColor"),hover:"all",isGradient:"gradient"===l}),n&&(0,ue.createElement)(Cn,{label:(0,v.__)("Text Color",m.i18n),attribute:"textColor1",hover:"all"}),t&&(0,ue.createElement)(Cn,{label:(0,v.__)("Icon Color",m.i18n),attribute:"iconColor1",hover:"all"}))},tb=e=>(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Button Colors",m.i18n),id:"button-colors"},(0,ue.createElement)(eb,e)));tb.defaultProps={hasTextColor:!0,hasIconColor:!1};const nb=e=>{const{attrNameTemplate:t="button%s",paddingPlaceholderName:n="button-padding"}=e,o=V(t),{getPlaceholder:a}=Bh(),l=a(n,{single:!1});return(0,ue.createElement)(ue.Fragment,null,e.hasFullWidth&&(0,ue.createElement)(Pc,{label:(0,v.__)("Full Width",m.i18n),attribute:o("fullWidth")}),(0,ue.createElement)(ro,{label:(0,v.__)("Min. Button Height",m.i18n),responsive:"all",attribute:o("minHeight"),min:0,max:100,placeholder:a("button-min-height")}),e.hasWidth&&!e.hasFullWidth&&(0,ue.createElement)(ro,{label:(0,v.__)("Button Width",m.i18n),responsive:"all",attribute:o("width"),min:0,max:100,placeholder:""}),(0,ue.createElement)(_r,{label:(0,v.__)("Button Padding",m.i18n),units:["px","%"],responsive:"all",defaultLocked:!0,attribute:o("padding"),sliderMin:[0,0],sliderMax:[40,100],vhMode:!0,placeholderTop:(null==l?void 0:l.top)||"",placeholderRight:(null==l?void 0:l.right)||"",placeholderBottom:(null==l?void 0:l.bottom)||"",placeholderLeft:(null==l?void 0:l.left)||"",helpTooltip:{title:(0,v.__)("Button padding",m.i18n),description:(0,v.__)("Adjusts the space between the button text and button borders",m.i18n)}}))},ob=e=>(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Button Size & Spacing",m.i18n),id:"button"},(0,ue.createElement)(nb,e)));ob.defaultProps={hasWidth:!1};const ab=e=>{const t=Ae((e=>e.className)),{getPlaceholder:n}=Bh(),o=n("is-style-ghost"===t?"button-ghost-border-width":"button-border-width");return(0,ue.createElement)(uv,dt({hasBorderRadiusHover:!1,borderSelector:e.borderSelector,borderRadiusPlaceholder:e.placeholder,borderTypeValue:n("button-border-style"),borderWidthPlaceholder:o,placeholderTemplate:"button"},e))},lb=e=>(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Button Borders & Shadows",m.i18n),id:"button-borders"},(0,ue.createElement)(ab,dt({attrNameTemplate:"button%s",hasBorderRadiusHover:!1},e))));lb.defaultProps={borderSelector:""};const rb=e=>{const{borderSelector:t,hasTextColor:n,hasIcon:o,hasLink:a,hasIconGap:l,hasIconPosition:r,borderRadiusPlaceholder:i,hasFullWidth:s,iconGapPlaceholderName:c,...d}=e,{clientId:u}=(0,$e.useBlockEditContext)(),{parentBlock:p}=(0,he.useSelect)((e=>{const{getBlockRootClientId:t,getBlock:n}=e("core/block-editor");return{parentBlock:n(t(u))}}),[u]),h=(0,le.applyFilters)("stackable.edit.button.enable-link",!0,p);return(0,ue.createElement)(ue.Fragment,null,a&&h&&(0,ue.createElement)(Qv,{hasAnchorId:!0}),(0,ue.createElement)(tb,dt({hasTextColor:n},d)),(0,ue.createElement)(ob,{hasFullWidth:s}),(0,ue.createElement)(lb,{borderSelector:t,placeholder:i}),o&&(0,ue.createElement)(Xv,{hasIconGap:l,hasIconPosition:r,iconGapPlaceholderName:c}))};rb.defaultProps={hasIcon:!0,hasLink:!0,borderSelector:"",hasTextColor:!0,hasIconGap:!0,hasIconPosition:!0,hasFullWidth:!1,iconGapPlaceholderName:void 0},rb.Link=Qv,(rb.Colors=tb).Controls=eb,(rb.Size=ob).Controls=nb,(rb.Borders=lb).Controls=ab,rb.Icon=Xv,rb.HoverEffects=()=>(0,ue.createElement)(so,{label:(0,v.__)("Hover Effect",m.i18n),attribute:"buttonHoverEffect",options:Zv,default:"darken",helpTooltip:{video:"button-hover-effect",title:(0,v.__)("Hover effect",m.i18n),description:(0,v.__)("Triggers animation or effects when you mouse over",m.i18n)}});const ib=e=>gt()("stk-button",{[`stk--hover-effect-${e.buttonHoverEffect}`]:e.buttonHoverEffect}),sb=e=>{const{className:t,buttonProps:n,linkTrigger:o}=e,a=Ae((e=>({buttonHoverEffect:e.buttonHoverEffect,iconPosition:e.iconPosition})));return(0,ue.createElement)(Yv,{className:gt()([t,ib(a)]),linkProps:n,linkTrigger:o},"right"===a.iconPosition&&e.children,(0,ue.createElement)(Kv,{hasLinearGradient:!1}),"right"!==a.iconPosition&&e.children)};sb.defaultProps={className:"",buttonProps:{}},sb.Content=e=>{const{className:t,attributes:n,buttonProps:o}=e;return(0,ue.createElement)(Yv.Content,{linkProps:o,attributes:n,className:gt()([t,ib(n)])},"right"===n.iconPosition&&e.children,(0,ue.createElement)(Kv.Content,{attributes:n,hasLinearGradient:!1}),"right"!==n.iconPosition&&e.children)},sb.Content.defaultProps={className:"",buttonProps:{}},sb.InspectorControls=rb,sb.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n,attrNameTemplate:o="button%s"}=t;Fv(e,t),e.add({attributes:Wv,attrNameTemplate:o,versionAdded:"3.0.0",versionDeprecated:""}),iv(e,o),Yv.addAttributes(e,{selector:n}),Kv.addAttributes(e)},sb.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",attrNameTemplate:a="button%s",borderSelector:l=`${o}:before`,borderHoverSelector:r=`${o}:hover:before`,backgroundSelector:i=`${o}:after`,hoverSelector:s,dependencies:c=[]}=t;e.addBlockStyles("fullWidth",[{...n,selector:["",".stk-button"],styleRule:"width",attrName:"fullWidth",attrNameTemplate:a,key:"buttonFullWidth",valueCallback:()=>"100%",format:"%spx",enabledCallback:e=>e("fullWidth")}]),e.addBlockStyles("fullWidth",[{...n,renderIn:"save",selector:"",styleRule:"flex",attrName:"fullWidth",attrNameTemplate:a,key:"buttonFullWidth-save",valueCallback:()=>"1 0 var(--stk-button-group-flex-wrap, 0)",enabledCallback:e=>e("fullWidth")}]),e.addBlockStyles("fullWidth",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"flex",attrName:"fullWidth",attrNameTemplate:a,key:"buttonFullWidth-flex",valueCallback:()=>"1 0 var(--stk-button-group-flex-wrap, 0)",enabledCallback:e=>e("fullWidth")}]),e.addBlockStyles("minHeight",[{...n,selector:o,responsive:"all",styleRule:"minHeight",attrName:"minHeight",attrNameTemplate:a,key:"buttonMinHeight",format:"%spx"}]),e.addBlockStyles("width",[{...n,selector:o,responsive:"all",styleRule:"width",attrName:"width",attrNameTemplate:a,key:"buttonWidth",format:"%spx",enabledCallback:e=>!e("fullWidth"),dependencies:["fullWidth",...c]}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingTop",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-top",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.top}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingRight",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-right",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingBottom",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-bottom",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingLeft",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-left",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left}]),e.addBlockStyles("backgroundColor",[{...n,selector:o,styleRule:"background",attrName:"backgroundColor",attrNameTemplate:a,key:"buttonBackgroundColor",dependencies:["backgroundColorType",...c]}]),e.addBlockStyles("backgroundColor",[{...n,selector:i||`${o}:after`,styleRule:"background",attrName:"backgroundColor",attrNameTemplate:a,key:"buttonBackgroundColor-after",hover:"all",hoverSelector:s||`${o}:hover:after`,valuePreCallback:(e,t,n,o)=>{if("normal"!==o)return e},dependencies:["backgroundColorType",...c]}]),e.addBlockStyles("backgroundColor",[{...n,selector:i||`${o}:after`,styleRule:"opacity",attrName:"backgroundColor",attrNameTemplate:a,key:"buttonBackgroundColor-opacity",hover:"all",hoverSelector:s||`${o}:hover:after`,valuePreCallback:(e,t,n,o)=>{if("normal"===o)return;const a=t("backgroundColor","desktop",o);return void 0!==a&&""!==a?1:void 0}}]),sv(e,{...n,selector:l,addBorderRadiusOverflow:!1,hoverSelector:r,borderRadiusSelector:o,attrNameTemplate:a}),Kv.addStyles(e,{...n})};const cb=()=>m.showProNotice||m.isPro?(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("Conditional Display",m.i18n),id:"conditional-display",isPremiumPanel:!m.isPro},!m.isPro&&(0,ue.createElement)(In,{type:"conditional-display"}),m.isPro&&(0,le.applyFilters)("stackable.block-component.conditional-display.control",null)))):null;cb.defaultProps={mainBlockClass:""};const db=()=>null;db.InspectorControls=cb,db.addAttributes=e=>{e.add({attributes:{displayCondition:{type:"object",default:{}}},versionAdded:"3.0.0",versionDeprecated:""})};const ub={isEligible:e=>Ym.isEligible("container%s")(e),migrate:e=>Ym.migrate("container%s")(e)},pb={isEligible:e=>lv.isEligible("container%s")(e),migrate:e=>lv.migrate("container%s")(e)},hb=e=>{const t=Ae((e=>({uniqueId:e.uniqueId,hasContainer:e.hasContainer,triggerHoverState:e.triggerHoverState,containerBackgroundMediaUrl:e.containerBackgroundMediaUrl,containerBackgroundMediaUrlTablet:e.containerBackgroundMediaUrlTablet,containerBackgroundMediaUrlMobile:e.containerBackgroundMediaUrlMobile,containerBackgroundMediaExternalUrl:e.containerBackgroundMediaExternalUrl,containerBackgroundMediaExternalUrlTablet:e.containerBackgroundMediaExternalUrlTablet,containerBackgroundMediaExternalUrlMobile:e.containerBackgroundMediaExternalUrlMobile,containerBackgroundColorType:e.containerBackgroundColorType,containerColorScheme:e.containerColorScheme}))),n=Yh(t.uniqueId);let o=Im(t.uniqueId);o=n?o+`-${n}`:o;const a=(0,le.applyFilters)("stackable.container-div.uniqueClass.edit",`${o}-container`,o),l=gt()([e.className,"stk-container",a],{"stk-hover-parent":t.hasContainer&&t.triggerHoverState,"stk--no-background":!t.hasContainer,"stk--no-padding":!t.hasContainer,[`stk--container-scheme--${t.containerColorScheme}`]:t.hasContainer&&t.containerColorScheme});return(0,ue.createElement)(cu,dt({},e,{className:l,hasBackground:t.hasContainer,backgroundUrl:t.containerBackgroundMediaUrl||t.containerBackgroundMediaExternalUrl,backgroundUrlTablet:t.containerBackgroundMediaUrlTablet||t.containerBackgroundMediaExternalUrlTablet,backgroundUrlMobile:t.containerBackgroundMediaUrlMobile||t.containerBackgroundMediaExternalUrlMobile,backgroundColorType:t.containerBackgroundColorType}))};hb.defaultProps={className:""},hb.Content=e=>{const{attributes:t,...n}=e,o=(0,le.applyFilters)("stackable.container-div.uniqueClass.save",`stk-${t.uniqueId}-container`,`stk-${t.uniqueId}`,t),a=gt()([e.className,"stk-container",o],{"stk-hover-parent":t.hasContainer&&t.triggerHoverState,"stk--no-background":!t.hasContainer,"stk--no-padding":!t.hasContainer,[`stk--container-scheme--${t.containerColorScheme}`]:t.hasContainer&&t.containerColorScheme});return(0,ue.createElement)(cu.Content,dt({},n,{className:a,hasBackground:t.hasContainer,backgroundUrl:t.containerBackgroundMediaUrl||t.containerBackgroundMediaExternalUrl,backgroundUrlTablet:t.containerBackgroundMediaUrlTablet||t.containerBackgroundMediaExternalUrlTablet,backgroundUrlMobile:t.containerBackgroundMediaUrlMobile||t.containerBackgroundMediaExternalUrlMobile,backgroundColorType:t.containerBackgroundColorType}))},hb.Content.defaultProps={className:"",attributes:{}},hb.InspectorControls=e=>{const{hasContentVerticalAlign:t=!1}=e,{hasContainer:n,containerColorScheme:o}=Ae((e=>({hasContainer:e.hasContainer,containerColorScheme:e.containerColorScheme}))),a=He(),{getPlaceholder:l}=Bh(),{getScheme:r,COLOR_SCHEME_OPTIONS:i,containerModeColorScheme:s}=Ih();return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(tu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Container",m.i18n),id:"container-size",hasToggle:!0,checked:n,onChange:e=>a({hasContainer:e})},(0,ue.createElement)(so,{label:(0,v.__)("Color Scheme",m.i18n),value:r(o||s,{returnFallback:!1}),options:i,attribute:"containerColorScheme",changeCallback:e=>e===s?"":e,default:s}),(0,ue.createElement)(wv.Layout,{attrNameTemplate:"container%s",enableMargin:!1,labels:{labelHeight:(0,v.__)("Container Min. Height",m.i18n),labelContentWidth:(0,v.__)("Max Container Width",m.i18n),labelHorizontalAlign:(0,v.__)("Container Horizontal Align",m.i18n),labelVerticalAlign:(0,v.__)("Container Vertical Align",m.i18n)},hasContentVerticalAlign:t,visualGuide:{selector:".stk-%s-container",highlight:"outline"}}),(0,ue.createElement)(wv.Spacing,{attrNameTemplate:"container%s",enableMargin:!1,paddingPlaceholder:l("container-padding"),visualGuide:{selector:".stk-%s-container"}}))),n&&(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Container Background",m.i18n),id:"container"},(0,ue.createElement)(Pc,{label:(0,v.__)("Trigger hover state on nested blocks",m.i18n),attribute:"triggerHoverState",defaultValue:!0}),(0,ue.createElement)(ov,{attrNameTemplate:"container%s"})),(0,ue.createElement)(ll,{title:(0,v.__)("Container Borders & Shadow",m.i18n),id:"container-size"},(0,ue.createElement)(uv,{attrNameTemplate:"container%s",placeholderTemplate:"container",borderTypeValue:l("container-border-style"),borderRadiusPlaceholder:l("container-border-radius")}))))},hb.addAttributes=e=>{e.add({attributes:{hasContainer:{type:"boolean",default:!1},triggerHoverState:{type:"boolean",default:!0},containerColorScheme:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),Qm(e,"container%s"),iv(e,"container%s"),bv(e,"container%s")},hb.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{backgroundSelector:n=".%s-container",borderSelector:o=".%s-container",sizeSelector:a=".%s-container",sizeVerticalAlignRule:l=null,sizeHorizontalAlignRule:r="margin",wrapperSelector:i="",sizeVerticalAlignSelector:s=""}=t;Zm(e,{...t,renderCondition:"hasContainer",attrNameTemplate:"container%s",selector:n}),sv(e,{...t,renderCondition:"hasContainer",attrNameTemplate:"container%s",selector:o,hoverSelector:`${o}:hover`}),fv(e,{...t,attrNameTemplate:"container%s",selector:a,verticalAlignRule:l,verticalAlignSelector:s,horizontalAlignRule:r,wrapperSelector:i})};const gb=()=>[gt()(["stk-column"]),"stk-column-wrapper"],mb=(0,ue.memo)((e=>{const{isHovered:t,clientId:n,parentBlock:o,...a}=e,l=((e,t)=>({onChangeDesktop:e=>{const n=(null==t?void 0:t.innerBlocks)||[];if(n.length){const[t,o]=e.reduce(((t,o,a)=>{const l=n[a].clientId;return t[0].push(l),t[1][l]={columnWidth:o,columnAdjacentCount:e.length,columnWrapDesktop:!1},t}),[[],{}]);(0,he.dispatch)("core/block-editor").updateBlockAttributes(t,o,!0)}},onChangeDesktopWrap:(n,o)=>{const a=[e],l={[e]:{columnWidth:n}},r=(null==t?void 0:t.innerBlocks)||[];if(r.length){const e=Id(o);o.forEach(((t,n)=>{const o=r[n].clientId;a.push(o),l[o]={columnWidth:t,columnAdjacentCount:e.filter((t=>t===e[n])).length,columnWrapDesktop:!0}}))}(0,he.dispatch)("core/block-editor").updateBlockAttributes(a,l,!0)},onChangeTablet:(n,o)=>{const a=[e],l={[e]:{columnWidthTablet:n}},r=(null==t?void 0:t.innerBlocks)||[];if(r.length){const e=Id(o);o.forEach(((t,n)=>{const o=r[n].clientId;a.push(o),l[o]={columnWidthTablet:t,columnAdjacentCountTablet:e.filter((t=>t===e[n])).length}}))}(0,he.dispatch)("core/block-editor").updateBlockAttributes(a,l,!0)},onChangeMobile:(n,o)=>{const a=[e],l={[e]:{columnWidthMobile:n}},r=(null==t?void 0:t.innerBlocks)||[];if(r.length){const e=Id(o);o.forEach(((t,n)=>{const o=r[n].clientId;a.push(o),l[o]={columnWidthMobile:t,columnAdjacentCountMobile:e.filter((t=>t===e[n])).length}}))}(0,he.dispatch)("core/block-editor").updateBlockAttributes(a,l,!0)},onResetDesktop:()=>{const e=(null==t?void 0:t.innerBlocks)||[];if(e.length){const t=e.map((e=>e.clientId));(0,he.dispatch)("core/block-editor").updateBlockAttributes(t,{columnWidth:""})}},onResetTabletMobile:()=>{const e=(null==t?void 0:t.innerBlocks)||[];if(e.length){const t=e.map((e=>e.clientId));(0,he.dispatch)("core/block-editor").updateBlockAttributes(t,{columnWidthTablet:"",columnWidthMobile:""})}}}))(n,o);return(0,ue.createElement)(Od,dt({showHandle:t,isHovered:t,columnWidth:e.columnWidth,columnWidthTablet:e.columnWidthTablet,columnWidthMobile:e.columnWidthMobile},l,a))}));mb.defaultProps={isHovered:!0},mb.InspectorControls=null,mb.addAttributes=e=>{e.add({attributes:{columnWidth:{stkResponsive:!0,type:"number",default:""},columnAdjacentCount:{stkResponsive:!0,type:"number",default:""},columnWrapDesktop:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""})},mb.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",dependencies:a=[]}=t;e.addBlockStyles("columnWidth",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"flex",attrName:"columnWidth",key:"columnWidth-flex",responsive:["desktopTablet","tabletOnly","mobile"],format:"1 1 %s%",dependencies:["columnAdjacentCount",...a],valueCallback:(e,t,n)=>{if("desktop"===n)return e;const o=t("columnAdjacentCount",n);return o?e.replace(/([\d\.]+%)$/,`calc($1 - var(--stk-column-gap, 0px) * ${o-1} / ${o} )`):e}}]),e.addBlockStyles("columnWidth",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"maxWidth",attrName:"columnWidth",key:"columnWidth-maxwidth",responsive:["desktopTablet","tabletOnly","mobile"],format:"%s%",dependencies:["columnAdjacentCount",...a],valueCallback:(e,t,n)=>{const o=t("columnAdjacentCount",n);return o?e.replace(/([\d\.]+%)$/,`calc($1 - var(--stk-column-gap, 0px) * ${o-1} / ${o} )`):e}}]),e.addBlockStyles("columnWidth",[{...n,renderIn:"save",selector:o,styleRule:"flex",attrName:"columnWidth",key:"columnWidth-save-flex",responsive:["desktopTablet","tabletOnly","mobile"],format:"var(--stk-flex-grow, 1) 1 %s%",dependencies:["columnAdjacentCount",...a],valueCallback:(e,t,n)=>{const o="desktop"!==n||t("columnWrapDesktop")?e.replace(/^var(--stk-flex-grow, 1) 1/,"0 1"):e,a=t("columnAdjacentCount",n);return a?o.replace(/([\d\.]+%)$/,`calc($1 - var(--stk-column-gap, 0px) * ${a-1} / ${a} )`):o}}])};const vb=e=>{const{label:t,sliderMax:n=6,rootClientId:o=null,onChangeCallback:a,newColumnAttributes:l}=e,{clientId:r}=(0,$e.useBlockEditContext)(),i=o||r,{numInnerBlocks:s,innerBlocks:c}=(0,he.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),{innerBlocks:n}=t(i);return{innerBlocks:n,numInnerBlocks:n.length}}),[i]),{multiClientIds:u,multiNumInnerBlocks:p,multiInnerBlocks:h,hasMultiSelectedBlocks:g}=(0,he.useSelect)((e=>{const t=e("core/block-editor").getMultiSelectedBlocks();let n=[];const o={},a={};return t.length&&"stackable/tabs"===t[0].name?t.forEach((e=>{const t="stackable/tab-content"===e.innerBlocks[0].name?e.innerBlocks[0]:e.innerBlocks[1];n.push(t.clientId)})):n=t.map((e=>e.clientId)),n.forEach((t=>{var n;const l=null===(n=e("core/block-editor").getBlock(t))||void 0===n?void 0:n.innerBlocks,r=l.length;o[t]=l,a[t]=r})),{multiClientIds:n,multiNumInnerBlocks:a,multiInnerBlocks:o,hasMultiSelectedBlocks:n.length>1}})),[m,v]=mm("stk__columns_new_duplicate",!1);return(0,ue.createElement)(ro,{label:t,min:1,sliderMax:n,placeholder:"1",value:s,onChange:e=>{const t=function(t,n,o,a){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{insertBlock:i,removeBlocks:s}=(0,he.dispatch)("core/block-editor");if(""===n);else if(n<o){const t=a.slice(e).map((e=>{let{clientId:t}=e;return t}));r&&(0,he.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),s(t,!1)}else if(n>o&&!m){const e=n-o;for(let n=0;n<e;n++){const e=(0,Ve.getBlockFromExample)("stackable/column",{attributes:{...l}});r&&(0,he.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),i(e,o+n+1,t,!1)}}else if(n>o){const e=n-o,l=(0,d.last)(a),s=l?(0,he.select)("core/block-editor").getBlock(l.clientId):{};for(let n=0;n<e;n++){const e=(0,Ve.getBlockFromExample)("stackable/column",(0,d.pick)(s,["attributes","innerBlocks"]));r&&(0,he.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),i(e,o+n+1,t,!1)}}};a((e=>{g?u.forEach(((n,o)=>t(n,e,p[n],h[n],0!==o))):g||t(i,e,s,c,!1)}),e)},allowReset:!1,after:(0,ue.createElement)(bb,{isPressed:m,onClick:()=>v(!m)})})},bb=e=>(0,ue.createElement)(pc,{text:(0,v.__)("When enabled, the last column will be cloned instead of adding a blank column.",m.i18n)},(0,ue.createElement)(mt.Button,{className:"stk-control-columns__settings-button",isSmall:!0,isTertiary:!0,isPressed:e.isPressed,"aria-label":(0,v.__)("Settings",m.i18n),onClick:e.onClick,icon:(0,ue.createElement)(mt.Dashicon,{icon:"admin-page"})}));vb.defaultProps={label:(0,v.__)("Columns",m.i18n),rootClientId:null,onChangeCallback:(e,t)=>e(t),newColumnAttributes:{}},bb.defaultProps={isPressed:!1,onClick:null};const fb=e=>{const[,t]=(0,ue.useState)(0),n=ve(),{getPlaceholder:o}=Bh(),{clientId:a}=(0,$e.useBlockEditContext)(),{numInnerBlocks:l,innerBlocks:r}=(0,he.useSelect)((e=>{var t;const{getBlock:n}=e("core/block-editor"),o=null===(t=n(a))||void 0===t?void 0:t.innerBlocks;return{innerBlocks:o,numInnerBlocks:o.length}}),[a]),{multiClientIds:i,multiInnerBlocks:s,hasMultiSelectedBlocks:c}=(0,he.useSelect)((e=>{const t=e("core/block-editor").getMultiSelectedBlockClientIds(),n={};return t.forEach((t=>{var o;const a=null===(o=e("core/block-editor").getBlock(t))||void 0===o?void 0:o.innerBlocks;n[t]=a})),{multiClientIds:t,multiInnerBlocks:n,hasMultiSelectedBlocks:t.length>1}})),u=Ae((e=>({columnArrangementTablet:e.columnArrangementTablet,columnArrangementMobile:e.columnArrangementMobile,columnWrapDesktop:e.columnWrapDesktop}))),p=He(),h=[],g=[],b=[];let f=!1,k=!1;r.forEach((e=>{let{clientId:t}=e;const n=(0,he.select)("core/block-editor").getBlockAttributes(t);n&&(h.push(n.columnWidth),g.push(n.columnWidthTablet),b.push(n.columnWidthMobile),n.columnWidthTablet&&(f=!0),n.columnWidthMobile&&(k=!0))}));const y=(0,d.range)(l).map((e=>(e+1).toString())).join(","),w="Desktop"===n?y:"Tablet"===n?u.columnArrangementTablet||y:u.columnArrangementMobile||y;return(0,ue.createElement)(ue.Fragment,null,e.hasColumnsControl&&(0,ue.createElement)(vb,null),l>1&&"Desktop"===n&&(0,ue.createElement)(Pc,{label:(0,v.__)("Allow Column Wrapping",m.i18n),attribute:"columnWrapDesktop"}),l>1&&"Tablet"!==n&&"Mobile"!==n&&!u.columnWrapDesktop&&(0,ue.createElement)(Qp,{columns:l,values:h,hasTabletValue:f,hasMobileValue:k,responsive:"all",onChange:e=>{const o=[],a={},l=W("columnWidth",n),i=W("columnAdjacentCount",n);c?Object.values(s).forEach((t=>{t.forEach(((t,n)=>{o.push(t.clientId),a[t.clientId]={[l]:e[n],[i]:e.length}}))})):r.forEach(((t,n)=>{o.push(t.clientId),a[t.clientId]={[l]:e[n],[i]:e.length}})),(0,he.dispatch)("core/block-editor").updateBlockAttributes(o,a,!0),t(Math.random())}}),l>1&&("Tablet"===n||"Mobile"===n||u.columnWrapDesktop)&&(0,ue.createElement)(eh,{columns:l,values:"Desktop"===n?h:"Tablet"===n?g:b,responsive:"all",hasTabletValue:f,hasMobileValue:k,placeholders:"Mobile"===n?Array(l).fill("100"):h,allowReset:!0,onChange:e=>{const o=Id(e),a=[],l={},i=W("columnWidth",n),d=W("columnAdjacentCount",n);c?Object.values(s).forEach((t=>{t.forEach(((t,n)=>{a.push(t.clientId),l[t.clientId]={[i]:e[n],[d]:o.filter((e=>e===o[n])).length}}))})):r.forEach(((t,n)=>{a.push(t.clientId),l[t.clientId]={[i]:e[n],[d]:o.filter((e=>e===o[n])).length}})),(0,he.dispatch)("core/block-editor").updateBlockAttributes(a,l,!0),t(Math.random())}}),l>1&&(0,ue.createElement)(qa,{responsive:"all",attribute:"columnArrangement",axis:"Mobile"!==n?"x":"y",values:w,num:l,allowReset:!0,onChange:(e,t)=>{let{oldIndex:o,newIndex:l}=t;if("Tablet"!==n&&"Mobile"!==n)if(c)for(const e in s)(0,he.dispatch)("core/block-editor").moveBlockToPosition(s[e][o].clientId,e,e,l);else(0,he.dispatch)("core/block-editor").moveBlockToPosition(r[o].clientId,a,a,l);else{const t=W("columnArrangement",n);d={[t]:(e||[]).join(",")},i.length?i.forEach((e=>((e,t)=>{(0,he.dispatch)("core/block-editor").updateBlockAttributes(i,t)})(0,d))):p(d)}var d}}),(0,ue.createElement)(wc,null),e.hasGap&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ro,{label:(0,v.__)("Inner Column Spacing",m.i18n),attribute:"columnSpacing",responsive:"all",units:["px","em","vw"],defaultLocked:!0,min:[0,0],sliderMax:[200,30],placeholder:1===l?"0":o("column-margin"),visualGuide:{selector:'.stk-%s-column > * > * > [data-type="stackable/column"] > * > .stk-column > .stk-inner-blocks',highlight:"column-spacing",defaultValue:"12px"},helpTooltip:{description:(0,v.__)("Sets column paddings, the space inside the block between the block elements and the column container border",m.i18n)}}),(0,ue.createElement)(ro,{label:(0,v.__)("Column Gap",m.i18n),attribute:"columnGap",responsive:"all",min:0,sliderMax:100,placeholder:o("columns-column-gap"),visualGuide:{selector:".stk-%s-column > * > *",highlight:"columns:column-gap",responsive:["desktop"]},helpTooltip:{video:"column-gap",description:(0,v.__)("Sets the distance between two or more columns",m.i18n)}}),(0,ue.createElement)(ro,{label:(0,v.__)("Row Gap",m.i18n),attribute:"rowGap",responsive:"all",min:0,sliderMax:100,placeholder:o("columns-row-gap"),helpTooltip:{description:(0,v.__)("Sets the distance between two or more columns",m.i18n)}})))},kb=e=>(0,ue.createElement)(eu,null,(0,ue.createElement)(fb,e));kb.defaultProps={hasColumnsControl:!0,hasGap:!0},kb.Controls=fb;const yb=()=>null;yb.InspectorControls=kb,yb.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{hasRowGap:o=!0,columnWrapDesktopSaveStyleRule:a=""}=t;e.addBlockStyles("columnSpacing",[{...n,selector:".%s-column",styleRule:"--stk-columns-spacing",attrName:"columnSpacing",hasUnits:"px",responsive:"all"}]),e.addBlockStyles("columnGap",[{...n,renderIn:"save",selector:".%s-column",styleRule:"--stk-column-gap",attrName:"columnGap",format:"%spx",responsive:"all"},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"--stk-column-gap",attrName:"columnGap",format:"%spx",responsive:"all"}]),e.addBlockStyles("columnWrapDesktop",[{...n,renderIn:"save",selector:".%s-column",styleRule:a||"flexWrap",attrName:"columnWrapDesktop",valueCallback:e=>e?"wrap":void 0},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"flexWrap",attrName:"columnWrapDesktop",valueCallback:e=>e?"wrap":void 0}]),e.addBlockStyles("columnWrapDesktop",[{...n,renderIn:"save",selector:".%s-column",styleRule:"--stk-flex-grow",attrName:"columnWrapDesktop",valueCallback:e=>e?"0":void 0}]),o&&e.addBlockStyles("rowGap",[{...n,renderIn:"save",selector:".%s-column",styleRule:"rowGap",attrName:"rowGap",format:"%spx",responsive:"all"},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"rowGap",attrName:"rowGap",format:"%spx",responsive:"all"}]),e.addBlockStyles("columnJustify",[{...n,renderIn:"save",selector:".%s-column",styleRule:"justifyContent",attrName:"columnJustify",responsive:"all"},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"justifyContent",attrName:"columnJustify",responsive:"all"}]),e.addBlockStyleConditionally(((e,t)=>{const o=(e.columnArrangementMobile||e.columnArrangementTablet||"").split(",").length;(0,d.range)(1,o+1).forEach((e=>{t({...n,renderIn:"edit",selector:`> .stk-block-content > .block-editor-inner-blocks > .block-editor-block-list__layout > :nth-child(${e})`,styleRule:"order",responsive:"all",attrName:"columnArrangement",valueCallback:t=>(t.split(",")||[]).indexOf(e.toString())+1,valuePreCallback:(e,t,n)=>{const a=t("columnArrangement","tablet");return"mobile"===n&&!e&&a?[...Array(o).keys()].map((e=>e+1)).join(","):e}}),t({renderIn:"save",styleRule:`--stk-col-order-${e}`,responsive:"all",attrName:"columnArrangement",valueCallback:t=>(t.split(",")||[]).indexOf(e.toString())+1,valuePreCallback:(e,t,n)=>{const a=t("columnArrangement","tablet");return"mobile"===n&&!e&&a?[...Array(o).keys()].map((e=>e+1)).join(","):e}})}))}))},yb.addAttributes=e=>{e.add({attributes:{columnSpacing:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},columnGap:{stkResponsive:!0,type:"number",default:""},rowGap:{stkResponsive:!0,type:"number",default:""},columnWrapDesktop:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""})},(0,le.addFilter)("stackable.block-components.content-align.getContentAlignmentClasses","stackable/3_7_3",((e,t)=>(e["stk--fit-content"]=t.columnFit,e)));const wb=()=>{const e=Ae((e=>({align:e.align,columnFit:e.columnFit})));return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Ao,{label:(0,v.__)("Block Width",m.i18n),attribute:"align",default:"",controls:[{value:"",title:(0,v.__)("Align Center",m.i18n),icon:"align-center"},{value:"wide",title:(0,v.__)("Align Wide",m.i18n),icon:"align-wide"},{value:"full",title:(0,v.__)("Align Full",m.i18n),icon:"align-full-width"}],visualGuide:{highlight:"outline"}}),(0,ue.createElement)(Ao,{label:(0,v.__)("Content Width",m.i18n),attribute:"innerBlockContentAlign",default:e.align?`align${e.align}`:"",controls:[{value:"",title:(0,v.__)("Align Center",m.i18n),icon:"align-center"},{value:"alignwide",title:(0,v.__)("Align Wide",m.i18n),icon:"align-wide"},{value:"alignfull",title:(0,v.__)("Align Full",m.i18n),icon:"align-full-width"}],help:(0,v.__)("Set the content to be smaller than the block width",m.i18n),visualGuide:{selector:", .stk-%s-column",highlight:"outline-first-offset"}}))},Cb=e=>(0,ue.createElement)(eu,null,(0,ue.createElement)(wb,e));Cb.Controls=wb;const _b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";return n&&(o=`${n}-`),gt()("stk-content-align",`stk-${e.uniqueId}-${o}${t}`,(0,le.applyFilters)("stackable.block-components.content-align.getContentAlignmentClasses",{"stk--flex":e.columnJustify,alignwide:"alignwide"===e.innerBlockContentAlign,alignfull:"alignfull"===e.innerBlockContentAlign},e))},Eb=()=>null;Eb.InspectorControls=Cb,Eb.addStyles=()=>{},Eb.addAttributes=e=>{(e=>{e.add({attributes:{columnFit:{type:"boolean",default:""},columnFitAlign:{type:"string",default:"",stkResponsive:!0}},versionAdded:"3.0.0",versionDeprecated:""})})(e),e.add({attributes:{innerBlockContentAlign:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""})};const Sb=e=>{const t=Ae((e=>e.customCSSMinified));return m.showProNotice||m.isPro?(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("Custom CSS",m.i18n),id:"custom-css",isPremiumPanel:!m.isPro,showModifiedIndicator:!!t},!m.isPro&&(0,ue.createElement)(In,{type:"custom-css"}),m.isPro&&(0,le.applyFilters)("stackable.block-component.custom-css.control",null,{mainBlockClass:e.mainBlockClass})))):null};Sb.defaultProps={mainBlockClass:""};const xb=e=>(0,le.applyFilters)("stackable.block-component.custom-css",null,e);xb.defaultProps={mainBlockClass:""},xb.Content=e=>(0,le.applyFilters)("stackable.block-component.custom-css.content",null,e),xb.Content.defaultProps={attributes:{}},xb.InspectorControls=Sb,xb.addAttributes=e=>{e.add({attributes:{customCSS:{type:"string",default:""},customCSSMinified:{type:"string",source:"html",selector:"style.stk-custom-css",default:""}},versionAdded:"3.0.0",versionDeprecated:""})};const Tb=e=>m.showProNotice||m.isPro?(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("Motion Effects",m.i18n),id:"effects-animations",isPremiumPanel:!m.isPro},!m.isPro&&(0,ue.createElement)(In,{type:"motion-effects"}),m.isPro&&(0,le.applyFilters)("stackable.block-component.effects-animations.control",null,{mainBlockClass:e.mainBlockClass})))):null;Tb.defaultProps={mainBlockClass:""};const Bb=e=>(0,le.applyFilters)("stackable.block-component.effects-animations",null,e);var Mb;Bb.defaultProps={mainBlockClass:""},Bb.Content=e=>(0,le.applyFilters)("stackable.block-component.effects-animations.content",null,e),Bb.Content.defaultProps={attributes:{}},Bb.InspectorControls=Tb,Bb.addAttributes=e=>{e.add({attributes:{effectType:{type:"string",default:""},effectEntrance:{type:"string",stkResponsive:"all",default:""},effectEntranceDuration:{type:"string",default:""},effectEntranceDelay:{type:"number",default:""},effectAnimationSmooth:{type:"boolean",default:""},effectAnimation3d:{type:"boolean",default:""},effectAnimationPerspective:{type:"number",default:""},effectAnimationOut:{type:"object",default:{}},effectAnimationIn:{type:"object",default:{}}},versionAdded:"3.0.0",versionDeprecated:""})},Bb.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,le.doAction)("stackable.block-component.effects-animations.style.addStyles",e,t)};const Ib=[{align:"left",title:(0,v.__)("Align Left",m.i18n),icon:"editor-alignleft"},{align:"center",title:(0,v.__)("Align Center",m.i18n),icon:"editor-aligncenter"},{align:"right",title:(0,v.__)("Align Right",m.i18n),icon:"editor-alignright"},{align:"justify",title:(0,v.__)("Justified",m.i18n),icon:"editor-justify"}],Nb=Ib.filter((e=>"justify"!==e.align)),Rb=(0,ue.memo)((e=>{const{contentAlign:t,columnJustify:n,innerBlockOrientation:o,innerBlockWrap:a,containerWidth:l,containerWidthTablet:r,containerWidthMobile:i,alignLastBlockToBottom:s,innerBlockRowGap:c,innerBlockColumnGap:d}=Ae((e=>({contentAlign:e.contentAlign,columnJustify:e.columnJustify,innerBlockOrientation:e.innerBlockOrientation,innerBlockWrap:e.innerBlockWrap,containerWidth:e.containerWidth,containerWidthTablet:e.containerWidthTablet,containerWidthMobile:e.containerWidthMobile,alignLastBlockToBottom:e.alignLastBlockToBottom,innerBlockRowGap:e.innerBlockRowGap,innerBlockColumnGap:e.innerBlockColumnGap}))),u=He(),p=ve(),{labelContentAlign:h=(0,v.sprintf)((0,v.__)("%s Alignment",m.i18n),(0,v.__)("Content",m.i18n)),enableContentAlign:g=!0}=e,b=e.hasContainerSize&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(wc,null),e.hasContainerHeight&&(0,ue.createElement)(ro,{label:(0,v.__)("Content Min. Height",m.i18n),attribute:"containerHeight",responsive:"all",units:["px","vh"],min:[0,0],sliderMax:[1e3,100],step:[1,1],allowReset:!0,placeholder:"0",visualGuide:{selector:".stk-%s-container",highlight:"outline"}}),(0,ue.createElement)(ro,{label:(0,v.__)("Content Max Width",m.i18n),attribute:"containerWidth",responsive:"all",units:["px","%","vw"],min:[0,0],sliderMax:[1500,100],step:[1,1],allowReset:!0,placeholder:"",initialPosition:"1500",visualGuide:{selector:".stk-%s-container",highlight:"outline"}}),(""!==l&&"Desktop"===p||(""!==l||""!==r)&&"Tablet"===p||(""!==l||""!==r||""!==i)&&"Mobile"===p)&&(0,ue.createElement)(Ao,{label:(0,v.__)("Content Horizontal Align",m.i18n),attribute:"containerHorizontalAlign",responsive:"all",controls:"horizontal",helpTooltip:{video:"content-horizontal-align",description:(0,v.__)("Sets the placement of the column container to left, center or right. Not available when block width is set to full width.",m.i18n)},visualGuide:{selector:".stk-%s-container",highlight:"outline"}}));return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)($e.BlockControls,null,(0,ue.createElement)($e.AlignmentToolbar,{value:t,onChange:e=>u({contentAlign:e}),alignmentControls:e.hasContentJustify?Ib:Nb})),(0,ue.createElement)(eu,null,e.containerSizePriority<5&&b,g&&(0,ue.createElement)(Hr,{label:h,attribute:"contentAlign",responsive:"all",justified:e.hasContentJustify,helpTooltip:{video:"alignment-all",description:(0,v.__)("Adjusts the placement of all content in the block to align left, center or right",m.i18n)}}),e.hasColumnJustify&&(0,ue.createElement)(Ao,{label:(0,v.sprintf)((0,v.__)("%s Justify",m.i18n),(0,v.__)("Column",m.i18n)),attribute:"columnJustify",responsive:"all",controls:"flex-horizontal",disableTablet:!n,disableMobile:!n,helpTooltip:{video:"content-horizontal-align",description:(0,v.__)("Sets the horizontal position and spacing of the inner columns.",m.i18n)},visualGuide:{selector:".stk-%s-column > * > * > [data-type]",highlight:"outline"},help:(0,v.__)("Column contents need to be narrow for effect to show.",m.i18n)}),e.hasColumnAlignment&&(0,ue.createElement)(Ao,{label:(0,v.sprintf)((0,v.__)("%s Alignment",m.i18n),(0,v.__)("Column",m.i18n)),attribute:"columnAlign",responsive:"all",controls:"flex-vertical",helpTooltip:{video:"column-vertical-align",description:(0,v.__)("Sets the vertical position of the inner columns relative to the columns block.",m.i18n)},visualGuide:{selector:', .stk-block-columns:has( > .stk-inner-blocks > * > * > [data-type="stackable/column"] > * > .stk-%s)',highlight:"outline-second-offset"}}),e.hasRowAlignment&&(0,ue.createElement)(Ao,{label:(0,v.sprintf)((0,v.__)("%s Alignment",m.i18n),(0,v.__)("Column",m.i18n)),attribute:"rowAlign",responsive:"all",controls:"flex-vertical",helpTooltip:{video:"column-vertical-align",description:(0,v.__)("Sets the vertical position of the inner columns relative to the columns block.",m.i18n)},visualGuide:{selector:".stk-%s-column > * > * > [data-type]",highlight:"outline"}}),5===e.containerSizePriority&&b,(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,ue.createElement)(wc,null),(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,ue.createElement)(Ao,{label:(0,v.sprintf)((0,v.__)("%s Direction",m.i18n),(0,v.__)("Inner Block",m.i18n)),controls:[{value:"horizontal",title:(0,v.__)("Horizontal",m.i18n)},{value:"",title:(0,v.__)("Vertical",m.i18n)}],attribute:"innerBlockOrientation",onChange:e=>{const t={innerBlockOrientation:e};""===e?t.innerBlockJustify="":t.innerBlockAlign="",u(t)}}),(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,ue.createElement)(Ao,{label:(0,v.sprintf)((0,v.__)("%s Justify",m.i18n),(0,v.__)("Inner Block",m.i18n)),attribute:"innerBlockJustify",responsive:"all",controls:o?"flex-horizontal":"horizontal",visualGuide:{selector:".stk-%s-container, .stk-%s-container > * > .block-editor-block-list__layout > [data-type]",highlight:"outline-first-offset"},helpTooltip:{description:(0,v.__)("Sets the horizontal/vertical position and spacing of the inner blocks.",m.i18n)}}),(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,ue.createElement)(Ao,{label:(0,v.sprintf)((0,v.__)("%s Alignment",m.i18n),(0,v.__)("Inner Block",m.i18n)),attribute:"innerBlockAlign",responsive:"all",controls:o?"vertical":"flex-justify-vertical",disabled:s?"all":void 0,visualGuide:{selector:".stk-%s-container, .stk-%s-container > * > .block-editor-block-list__layout > [data-type]",highlight:"outline-first-offset"},helpTooltip:{description:(0,v.__)("Aligns the horizontal/vertical position of the inner blocks.",m.i18n)},help:(0,v.__)("Set Content Min. Height for alignment to display properly",m.i18n)}),o&&(0,ue.createElement)(Ao,{label:(0,v.__)("Inner Block Wrapping",m.i18n),controls:[{value:"",title:(0,v.__)("No Wrap",m.i18n)},{value:"wrap",title:(0,v.__)("Wrap",m.i18n)}],attribute:"innerBlockWrap"}),o&&(0,ue.createElement)(ro,{label:"wrap"===a?(0,v.sprintf)((0,v.__)("%s %s",m.i18n),(0,v.__)("Inner Block",m.i18n),(0,v.__)("Column Gap",m.i18n)):(0,v.sprintf)((0,v.__)("%s %s",m.i18n),(0,v.__)("Inner Block",m.i18n),(0,v.__)("Gap",m.i18n)),responsive:"all",min:0,sliderMax:100,placeholder:"24",attribute:"innerBlockColumnGap",helpTooltip:{description:(0,v.__)("Sets the gap between the columns of inner blocks.",m.i18n)},visualGuide:"wrap"!==a?{selector:".stk-%s-container > * > .block-editor-block-list__layout",highlight:"column-gap",value:d}:null}),(e.hasColumnAlignment||e.hasBlockAlignment)&&!o&&(0,ue.createElement)(ro,{label:(0,v.sprintf)((0,v.__)("%s %s",m.i18n),(0,v.__)("Inner Block",m.i18n),(0,v.__)("Gap",m.i18n)),responsive:"all",min:0,sliderMax:100,placeholder:"0",attribute:"innerBlockRowGap",helpTooltip:{description:(0,v.__)("Sets the gap between inner blocks.",m.i18n)},visualGuide:{selector:".stk-%s-container > * > .block-editor-block-list__layout",highlight:"row-gap",value:c}}),o&&"wrap"===a&&(0,ue.createElement)(ro,{label:(0,v.sprintf)((0,v.__)("%s %s",m.i18n),(0,v.__)("Inner Block",m.i18n),(0,v.__)("Row Gap",m.i18n)),responsive:"all",min:0,sliderMax:100,placeholder:"0",attribute:"innerBlockRowGap",helpTooltip:{description:(0,v.__)("Sets the gap between the rows of inner blocks.",m.i18n)}})))})),Ab=null===(Mb=navigator)||void 0===Mb?void 0:Mb.userAgent;Ab&&-1!==Ab.indexOf("Firefox")&&(0,le.addFilter)("stackable.block-components.block-div.classnames","alignment-editor-has-polyfill",((e,t)=>{const n=(0,he.useSelect)((e=>{var n;return(null===(n=e("core/block-editor").getBlock(t.clientId))||void 0===n?void 0:n.innerBlocks)||[]}),[t.clientId]);if(n.length>0)for(let t=0;t<n.length;t++){const{blockMargin:o}=n[t].attributes;!o||"auto"!==o.top&&"auto"!==o.bottom||e.push("stk--alignment-polyfill")}return e})),Rb.defaultProps={hasColumnJustify:!1,hasRowAlignment:!1,hasColumnAlignment:!1,hasBlockAlignment:!1,hasContentJustify:!1,hasContainerSize:!1,hasContainerHeight:!0,containerSizePriority:5};const Hb=e=>{let{innerBlockOrientation:t}=e;return t||"vertical"},Pb=e=>gt()({[`has-text-align-${e.contentAlign}`]:e.contentAlign,[`has-text-align-${e.contentAlignTablet}-tablet`]:e.contentAlignTablet,[`has-text-align-${e.contentAlignMobile}-mobile`]:e.contentAlignMobile,"stk--block-horizontal-flex":"horizontal"===e.innerBlockOrientation,"stk--column-flex":e.innerBlockJustify||e.innerBlockAlign,[`stk--block-align-${e.uniqueId}`]:e.rowAlign||e.rowAlignTablet||e.rowAlignMobile}),Ob=()=>null;Ob.InspectorControls=Rb,Ob.addAttributes=e=>{e.add({attributes:{align:{type:"string"},contentAlign:{stkResponsive:!0,type:"string",default:""},rowAlign:{stkResponsive:!0,type:"string",default:""},columnJustify:{type:"string",default:"",stkResponsive:!0},columnAlign:{stkResponsive:!0,type:"string",default:""},innerBlockOrientation:{type:"string",default:""},innerBlockJustify:{stkResponsive:!0,type:"string",default:""},innerBlockAlign:{stkResponsive:!0,type:"string",default:""},innerBlockWrap:{type:"string",default:""},innerBlockColumnGap:{stkResponsive:!0,type:"number",default:""},innerBlockRowGap:{stkResponsive:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""})},Ob.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selectorCallback:o=(e=>`.stk--block-align-${e("uniqueId")}`),editorSelectorCallback:a=(e=>`.stk--block-align-${e("uniqueId")}`),columnAlignSelectorEditCallback:l=(()=>""),columnAlignSelectorSaveCallback:r=(()=>""),innerBlockSelectorCallback:i=(e=>`.stk-${e("uniqueId")}-inner-blocks > .block-editor-inner-blocks > .block-editor-block-list__layout`),editorInnerBlockSelectorCallback:s=(e=>`.stk-${e("uniqueId")}-inner-blocks`),dependencies:c=[]}=t;e.addBlockStyles("columnAlign",[{...n,renderIn:"edit",selectorCallback:l,responsive:"all",styleRule:"alignSelf",attrName:"columnAlign",key:"columnAlign"},{...n,renderIn:"save",selectorCallback:r,responsive:"all",styleRule:"alignSelf",attrName:"columnAlign",key:"columnAlign"}]),e.addBlockStyles("rowAlign",[{...n,renderIn:"save",selectorCallback:o,styleRule:"alignItems",attrName:"rowAlign",key:"rowAlign-save",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"edit",selectorCallback:a,styleRule:"alignItems",attrName:"rowAlign",key:"rowAlign",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockJustify",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"alignItems",attrName:"innerBlockJustify",key:"innerBlockJustifyVerticalEdit",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"alignItems",attrName:"innerBlockJustify",key:"innerBlockJustifyVerticalSave",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockAlign",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"justifyContent",attrName:"innerBlockAlign",key:"innerBlockAlignVerticalEdit",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"justifyContent",attrName:"innerBlockAlign",key:"innerBlockAlignVerticalSave",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockJustify",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"justifyContent",attrName:"innerBlockJustify",key:"innerBlockJustifyHorizontalEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"justifyContent",attrName:"innerBlockJustify",key:"innerBlockJustifyHorizontalSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockAlign",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"alignItems",attrName:"innerBlockAlign",key:"innerBlockAlignHorizontalEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"alignItems",attrName:"innerBlockAlign",key:"innerBlockAlignHorizontalSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockWrap",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"flexWrap",attrName:"innerBlockWrap",key:"innerBlockWrapEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"flexWrap",attrName:"innerBlockWrap",key:"innerBlockWrapSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockColumnGap",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"columnGap",attrName:"innerBlockColumnGap",key:"innerBlockColumnGapEdit",format:"%spx",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"columnGap",attrName:"innerBlockColumnGap",key:"innerBlockColumnGapSave",format:"%spx",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockRowGap",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"rowGap",attrName:"innerBlockRowGap",key:"innerBlockRowGapEdit",format:"%spx",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation")||"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),dependencies:["innerBlockOrientation","innerBlockWrap",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"rowGap",attrName:"innerBlockRowGap",key:"innerBlockRowGapSave",format:"%spx",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation")||"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),dependencies:["innerBlockOrientation","innerBlockWrap",...c]}]),e.addBlockStyles("innerBlockAlign",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"alignContent",attrName:"innerBlockAlign",key:"innerBlockAlignWrapEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),dependencies:["innerBlockOrientation","innerBlockWrap",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"alignContent",attrName:"innerBlockAlign",key:"innerBlockAlignWrapSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),dependencies:["innerBlockOrientation","innerBlockWrap",...c]}])};const zb=e=>gt()(["stk-row"],{[`stk-columns-${e.numInnerBlocks}`]:e.numInnerBlocks&&e.numInnerBlocks>1}),Lb=e=>{const{clientId:t}=(0,$e.useBlockEditContext)(),{numInnerBlocks:n}=(0,he.useSelect)((e=>{const{getBlockRootClientId:n,getBlockOrder:o}=e("core/block-editor");return{numInnerBlocks:o(n(t)).length}}),[t]),o=Ae();return(0,ue.useEffect)((()=>{o.numInnerBlocks=n}),[n]),(0,ue.createElement)(ue.Fragment,{children:e.children})};Lb.InspectorControls=null,Lb.addAttributes=e=>{e.add({attributes:{numInnerBlocks:{type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""})},Lb.addStyles=()=>{};const $b=e=>{e.add({attributes:{imageOverlayColor2:{type:"string",default:"",stkHover:!0},imageOverlayGradientDirection:{type:"number",default:"",stkHover:!0},imageOverlayGradientLocation1:{type:"number",default:"",stkHover:!0},imageOverlayGradientLocation2:{type:"number",default:"",stkHover:!0}},versionAdded:"3.0.0",versionDeprecated:"3.12.0"})},Db={isEligible:e=>{var t,n,o;const a=e.imageOverlayColor||e.imageOverlayColorHover||e.imageOverlayColorParentHover,l=e.imageOverlayColor2||e.imageOverlayColor2Hover||e.imageOverlayColor2ParentHover,r="gradient"===e.imageOverlayColorType&&(a||l||e.imageOverlayGradientDirection||e.imageOverlayGradientLocation1||e.imageOverlayGradientLocation2),i="gradient"===e.imageOverlayColorType&&!e.imageOverlayColor2&&!e.imageOverlayColor2Hover&&!e.imageOverlayColor2ParentHover&&((null===(t=e.imageOverlayColor)||void 0===t?void 0:t.includes("-gradient"))||(null===(n=e.imageOverlayColorHover)||void 0===n?void 0:n.includes("-gradient"))||(null===(o=e.imageOverlayColorParentHover)||void 0===o?void 0:o.includes("-gradient")));return r&&!i},migrate:e=>{var t,n,o;let a={...e};const l=e.imageOverlayColor||e.imageOverlayColorHover||e.imageOverlayColorParentHover,r=e.imageOverlayColor2||e.imageOverlayColor2Hover||e.imageOverlayColor2ParentHover,i="gradient"===e.imageOverlayColorType&&(l||r||e.imageOverlayGradientDirection||e.imageOverlayGradientLocation1||e.imageOverlayGradientLocation2),s="gradient"===e.imageOverlayColorType&&!e.imageOverlayColor2&&!e.imageOverlayColor2Hover&&!e.imageOverlayColor2ParentHover&&((null===(t=e.imageOverlayColor)||void 0===t?void 0:t.includes("-gradient"))||(null===(n=e.imageOverlayColorHover)||void 0===n?void 0:n.includes("-gradient"))||(null===(o=e.imageOverlayColorParentHover)||void 0===o?void 0:o.includes("-gradient"))),c=i&&!s;if("gradient"===e.imageOverlayColorType&&c){const t=a.imageOverlayColor||"rgba(0,0,0,0)",n=a.imageOverlayColorHover||t,o=a.imageOverlayColorParentHover||t,l=a.imageOverlayColor2||"rgba(0,0,0,0)",r=a.imageOverlayColor2Hover||l,i=a.imageOverlayColor2ParentHover||l,s=e.imageOverlayGradientDirection||0===e.imageOverlayGradientDirection?e.imageOverlayGradientDirection:90,c=e.imageOverlayGradientDirectionHover||s,d=e.imageOverlayGradientDirectionParentHover||s,u=e.imageOverlayGradientLocation1||0===e.imageOverlayGradientLocation1?e.imageOverlayGradientLocation1:0,p=e.imageOverlayGradientLocation1Hover||u,h=e.imageOverlayGradientLocation1ParentHover||u,g=e.imageOverlayGradientLocation2||0===e.imageOverlayGradientLocation2?e.imageOverlayGradientLocation2:100,m=e.imageOverlayGradientLocation2Hover||g,v=e.imageOverlayGradientLocation2ParentHover||g,b=a.imageOverlayColor||a.imageOverlayColor2||e.imageOverlayGradientDirection||e.imageOverlayGradientLocation1||e.imageOverlayGradientLocation2,f=a.imageOverlayColorHover||a.imageOverlayColor2Hover||e.imageOverlayGradientDirectionHover||e.imageOverlayGradientLocation1Hover||e.imageOverlayGradientLocation2Hover,k=a.imageOverlayColorParentHover||a.imageOverlayColor2ParentHover||e.imageOverlayGradientDirectionParentHover||e.imageOverlayGradientLocation1ParentHover||e.imageOverlayGradientLocation2ParentHover;a={...a,imageOverlayColor2:void 0,imageOverlayColor2Hover:void 0,imageOverlayColor2ParentHover:void 0,imageOverlayGradientDirection:void 0,imageOverlayGradientLocation1:void 0,imageOverlayGradientLocation2:void 0,imageOverlayGradientDirectionHover:void 0,imageOverlayGradientLocation1Hover:void 0,imageOverlayGradientLocation2Hover:void 0,imageOverlayGradientDirectionParentHover:void 0,imageOverlayGradientLocation1ParentHover:void 0,imageOverlayGradientLocation2ParentHover:void 0,imageOverlayColor:b?`linear-gradient(${s}deg, ${t} ${u}%, ${l} ${g}%)`:a.imageOverlayColor,imageOverlayColorHover:f?`linear-gradient(${c}deg, ${n} ${p}%, ${r} ${m}%)`:a.imageOverlayColorHover,imageOverlayColorParentHover:k?`linear-gradient(${d}deg, ${o} ${h}%, ${i} ${v}%)`:a.imageOverlayColorParentHover}}return a}},Fb={circle:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},e),(0,ue.createElement)("circle",{cx:50,cy:50,r:50}))},square:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,ue.createElement)("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}))},blob1:function(e){return(0,ue.createElement)("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,ue.createElement)("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"}))}},Ub=(e,t,n,o)=>{if(!e)return{};const a=(e=>{const t=(0,le.applyFilters)("stackable.image.shape.svgs",Fb);return t[e]?t[e]:null})(e),l=(0,ue.createElement)(a,{preserveAspectRatio:!["","square"].includes(e)&&o?"none":void 0,transform:t||n?`scale(${t?-1:1},${n?-1:1})`:void 0});return`url('data:image/svg+xml;base64,${btoa(Tg(l))}')`},Wb=e=>{let{x:t,y:n}=e,o=(0,d.toNumber)(t),a=(0,d.toNumber)(n);return o=isNaN(o)?50:100*o,a=isNaN(a)?50:100*a,`${o}% ${a}%`},Vb=["none","0px 0 1px rgba(120, 120, 120, 0.5)","0px 0 2px rgba(120, 120, 120, 0.5)","0px 5px 10px rgba(153, 153, 153, 0.35)","0px 2px 20px rgba(153, 153, 153, 0.2)","25px 10px 30px rgba(18, 63, 82, 0.3)","0px 10px 30px rgba(0, 0, 0, 0.1)","7px 5px 30px rgba(72, 73, 121, 0.15)","0px 10px 60px rgba(0, 0, 0, 0.1)","70px 60px 60px rgba(72, 73, 121, 0.2) "],Gb=e=>{const t=Ae((e=>({imageId:e.imageId,imageAspectRatio:e.imageAspectRatio,imageWidthUnit:e.imageWidthUnit,imageHeightUnit:e.imageHeightUnit,imageWidth:e.imageWidth,imageHeight:e.imageHeight,imageWidthAttribute:e.imageWidthAttribute,imageHeightTablet:e[W("imageHeight","tablet")],imageHeightMobile:e[W("imageHeight","mobile")],imageHasLightbox:e.imageHasLightbox,imageSize:e.imageSize,imageAlt:e.imageAlt,imageOverlayColorType:e.imageOverlayColorType,imageUrl:e.imageUrl,imageShapeFlipX:e.imageShapeFlipX,imageShapeFlipY:e.imageShapeFlipY,imageShapeStretch:e.imageShapeStretch,imageShape:e.imageShape,imageFilter:e.imageFilter,imageExternalUrl:e.imageExternalUrl}))),n=He(),o=ve(),{getPlaceholder:a}=Bh(),{getEditorDom:l}=(0,he.useSelect)("stackable/editor-dom"),{clientId:r}=(0,$e.useBlockEditContext)(),i=(null==l?void 0:l())||void 0,s=(0,ue.useMemo)((()=>"stackable/image"===(0,he.select)("core/block-editor").getBlockName(r)),[r]),c=(0,ue.useMemo)((()=>{if(i&&s){const e=i.querySelector(`[data-block="${r}"]`);return(null==e?void 0:e.clientWidth)||void 0}}),[i,s,r]),{imageData:d}=(0,he.useSelect)((e=>({imageData:{...e("core").getMedia(t.imageId)}})),[t.imageId]),u=(0,ue.useMemo)((()=>"px"===t.imageWidthUnit&&["","px"].includes(t.imageHeightUnit)?(Math.max(t.imageWidth,t.imageHeight)||200)/2:"px"===t.imageWidthUnit?t.imageWidth:["","px"].includes(t.imageHeightUnit)?(t.imageHeight||200)/2:100),[t.imageWidth,t.imageWidthUnit,t.imageHeight,t.imageHeightUnit]);return(0,ue.createElement)(ue.Fragment,null,(0,le.applyFilters)("stackable.block-component.image.before",null,e),e.hasSelector&&(0,ue.createElement)(Ac,{label:(0,v.__)("Select Image",m.i18n),allowedTypes:["image"],attribute:"image",hasPanelModifiedIndicator:!1,onRemove:()=>n({imageId:"",imageUrl:"",imageWidthAttribute:"",imageHeightAttribute:"",imageWidthUnit:"",imageHeightUnit:""}),onChange:o=>{var a;let{url:l,width:r,height:i}=o;const d=t.imageSize||"full";var u,p,h,g,m,v;null!==(a=o.sizes)&&void 0!==a&&a[d]&&(l=(null===(u=o.sizes)||void 0===u||null===(p=u[d])||void 0===p?void 0:p.url)||l,i=(null===(h=o.sizes)||void 0===h||null===(g=h[d])||void 0===g?void 0:g.height)||i||"",r=(null===(m=o.sizes)||void 0===m||null===(v=m[d])||void 0===v?void 0:v.width)||r||"");const b={imageId:o.id,imageUrl:l,imageWidthAttribute:r,imageHeightAttribute:i,imageExternalUrl:"",...t.imageAlt?{}:{imageAlt:o.alt||""}};s&&c&&!e.hasManuallyChangedDimensions&&(b.imageWidth="",b.imageWidthUnit="%",r<c&&(b.imageWidth=r,b.imageWidthUnit="px")),n(b)}}),(0,ue.createElement)(Dn,{label:(0,v.__)("Image Url",m.i18n),attribute:"imageExternalUrl",onChange:e=>{n({imageExternalUrl:e,imageUrl:"",imageAlt:"",imageId:"",imageWidthAttribute:"",imageHeightAttribute:""})}}),e.hasAspectRatio&&(0,ue.createElement)(so,{label:(0,v.__)("Aspect Ratio",m.i18n),attribute:"imageAspectRatio",options:[{label:(0,v.__)("Original",m.i18n),value:""},{label:(0,v.__)("Square 1:1",m.i18n),value:"1/1"},{label:(0,v.__)("Standard 4:3",m.i18n),value:"4/3"},{label:(0,v.__)("Classic 3:2",m.i18n),value:"3/2"},{label:(0,v.__)("Wide 16:9",m.i18n),value:"16/9"},{label:(0,v.__)("Cinematic 2:1",m.i18n),value:"2/1"},{label:(0,v.__)("Ultra Wide 3:1",m.i18n),value:"3/1"},{label:(0,v.__)("Panoramic 4:1",m.i18n),value:"4/1"},{label:(0,v.__)("Portrait 3:4",m.i18n),value:"3/4"},{label:(0,v.__)("Classic Portrait 2:3",m.i18n),value:"2/3"},{label:(0,v.__)("Tall 9:16",m.i18n),value:"9/16"}],responsive:"all",onChange:a=>{const l=W("imageAspectRatio",o),r=W("imageHeight",o),i={[l]:a};a&&e.hasHeight&&t[r]&&(i[r]=""),n(i)}}),e.hasWidth&&(0,ue.createElement)(ro,{label:(0,v.__)("Width",m.i18n),attribute:"imageWidth",units:e.widthUnits,min:e.widthMin,sliderMax:e.widthMax,step:e.widthStep,initialPosition:100,allowReset:!0,placeholder:"auto",default:s&&"Desktop"===o&&"px"===t.imageWidthUnit&&c&&t.imageWidthAttribute<c?t.imageWidthAttribute:"",onChangeUnit:(e,a,l)=>{if(s&&"Desktop"===o)if("%"===l&&"px"===e){if(c&&t.imageWidthAttribute<c)return n({imageWidth:t.imageWidthAttribute,[a]:e});if(""===t.imageWidth)return n({imageWidth:c,[a]:e})}else if("px"===l&&"%"===e){if(c&&t.imageWidthAttribute>c)return n({imageWidth:"",[a]:e});if(t.imageWidth>100)return n({imageWidth:"",[a]:e})}n({[a]:e})},responsive:"all",onOverrideReset:()=>{if(s&&"Desktop"===o){let e="";return"px"===t.imageWidthUnit?(t.imageWidthAttribute&&(e=t.imageWidthAttribute),c&&t.imageWidthAttribute>c&&(e="",n({imageWidthUnit:"%"}))):"%"===t.imageWidthUnit&&c&&t.imageWidthAttribute<c&&(e=t.imageWidthAttribute,n({imageWidthUnit:"px"})),e}},helpTooltip:{title:(0,v.__)("Image width",m.i18n),description:(0,v.__)("Adjusts the image width",m.i18n)}}),e.hasHeight&&(0,ue.createElement)(ro,{label:(0,v.__)("Height",m.i18n),attribute:"imageHeight",units:e.heightUnits,min:e.heightMin,sliderMax:e.heightMax,step:e.heightStep,allowReset:!0,placeholder:"",responsive:"all",helpTooltip:{title:(0,v.__)("Image height",m.i18n),description:(0,v.__)("Adjusts the image height",m.i18n)}}),e.hasLightbox&&(0,ue.createElement)(Pc,{label:(0,v.__)("Open Image in Lightbox",m.i18n),attribute:"imageHasLightbox"}),e.hasAlt&&(0,ue.createElement)(Xn,{label:(0,v.__)("Image Alt",m.i18n),value:t.imageAlt,onChange:e=>n({imageAlt:e})}),e.hasAlt&&!t.imageAlt&&(0,ue.createElement)(Pc,{label:(0,v.__)("Show Empty Alt Attribute",m.i18n),attribute:"imageShowEmptyAlt"}),(0,ue.createElement)(ro,{label:(0,v.__)("Zoom",m.i18n),attribute:"imageZoom",hover:"all",min:0,sliderMax:3,step:.01,initialPosition:1,allowReset:!0}),e.hasShadow&&(0,ue.createElement)(td,{options:Vb,attribute:"imageShadow",hover:"all",isFilter:!0,placeholder:a("image-drop-shadow"),helpTooltip:{video:"image-shadow",title:(0,v.__)("Image Shadow",m.i18n),description:(0,v.__)("Adjusts the intensity of the image shadow",m.i18n)}}),t.imageId&&(0,ue.createElement)(to,{label:(0,v.__)("Image Size",m.i18n),value:t.imageSize,onChange:e=>{var t,o,a,l,r,i,s,c;const u=(null===(t=d.media_details)||void 0===t||null===(o=t.sizes[e])||void 0===o?void 0:o.source_url)||d.source_url,p=(null===(a=d.media_details)||void 0===a||null===(l=a.sizes[e])||void 0===l?void 0:l.width)||(null===(r=d.media_details)||void 0===r?void 0:r.width)||"",h=(null===(i=d.media_details)||void 0===i||null===(s=i.sizes[e])||void 0===s?void 0:s.height)||(null===(c=d.media_details)||void 0===c?void 0:c.height)||"";n({imageSize:e,imageUrl:u,imageWidthAttribute:p,imageHeightAttribute:h})},defaultValue:"full",helpTooltip:{video:"image-size",description:(0,v.__)("Sets the image display size to thumbnail, medium, large or full size. A smaller image size will also load faster.",m.i18n)}}),e.hasBorderRadius&&(0,ue.createElement)(ro,{label:(0,v.__)("Border Radius",m.i18n),attribute:"imageBorderRadius",min:"0",sliderMax:u,placeholder:a("image-border-radius")||"0",defaultValue:0,allowReset:!0,helpTooltip:{video:"image-border-radius",description:(0,v.__)("Adjusts the radius of image corners to make them more rounded",m.i18n)}}),(0,ue.createElement)(wc,null),(0,ue.createElement)(Ao,{controls:[{value:"",title:(0,v.__)("Single",m.i18n)},{value:"gradient",title:(0,v.__)("Gradient",m.i18n)}],attribute:"imageOverlayColorType",isSmall:!0}),(0,ue.createElement)(Cn,{label:(0,v.__)("Overlay Color",m.i18n),attribute:"imageOverlayColor",hover:"all",isGradient:"gradient"===t.imageOverlayColorType}),(0,ue.createElement)(ro,{label:(0,v.__)("Overlay Opacity",m.i18n),attribute:"imageOverlayOpacity",hover:"all",min:0,max:1,step:.1,placeholder:"0.3"}),(0,ue.createElement)(jn,{label:(0,v.__)("Overlay Blend Mode",m.i18n),attribute:"imageOverlayBlendMode",helpTooltip:{description:(0,v.__)("Sets how the overlay color blends with the image",m.i18n)}}),(0,ue.createElement)(wc,null),(0,ue.createElement)(Dc,{attribute:"imageFocalPoint",label:(0,v.__)("Focal point",m.i18n),url:e.src?e.src:t.imageUrl||t.imageExternalUrl,responsive:"all",hover:"all"}),(0,ue.createElement)(so,{label:(0,v.__)("Image Fit",m.i18n),attribute:"imageFit",options:[{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Contain",m.i18n),value:"contain"},{label:(0,v.__)("Cover",m.i18n),value:"cover"},{label:(0,v.__)("Fill",m.i18n),value:"fill"},{label:(0,v.__)("None",m.i18n),value:"none"},{label:(0,v.__)("Scale Down",m.i18n),value:"scale-down"}],helpTooltip:{video:"image-size",description:(0,v.__)("Sets the fit to default, contain, cover, fill, none, and scale down. Image fit specifies how an image resizes in a container.",m.i18n)},responsive:"all"}),e.hasShape&&(0,ue.createElement)(Kl,{label:(0,v.__)("Image Shape",m.i18n),onReset:()=>{n({imageShape:"",imageShapeFlipX:"",imageShapeFlipY:"",imageShapeStretch:!0})},allowReset:t.imageShape||t.imageShapeFlipX||t.imageShapeFlipY||!t.imageShapeStretch},(0,ue.createElement)(Zn,{selected:t.imageShape,onChange:e=>n({imageShape:e}),helpTooltip:{video:"image-shape",title:(0,v.__)("Shape",m.i18n),description:(0,v.__)("Change the shape of the image",m.i18n)}}),(0,ue.createElement)(Pc,{label:(0,v.__)("Flip Shape Horizontally",m.i18n),attribute:"imageShapeFlipX"}),(0,ue.createElement)(Pc,{label:(0,v.__)("Flip Shape Vertically",m.i18n),attribute:"imageShapeFlipY"}),(0,ue.createElement)(Pc,{label:(0,v.__)("Stretch Shape Mask",m.i18n),attribute:"imageShapeStretch",defaultValue:!0})),(0,ue.createElement)(Kl,{label:(0,v.__)("Image Filter",m.i18n),popoverLabel:"",onReset:()=>{n({imageFilter:""})},allowReset:t.imageFilter},(0,ue.createElement)(Gc,{label:(0,v.__)("Image Filter",m.i18n),attribute:"imageFilter",hover:"all"})))};Gb.defaultProps={hasAlt:!0,hasWidth:!0,hasSelector:!0,hasShadow:!0,widthUnits:["px","%","vw"],widthMin:[0,0,0],widthMax:[1e3,100,100],widthStep:[1,1,1],hasHeight:!0,heightUnits:["px","%","vh"],heightMin:[0,0,0],heightMax:[1e3,100,100],heightStep:[1,1,1],hasAspectRatio:!0,hasBorderRadius:!0,hasShape:!0};const jb=e=>{const t=Ae((e=>e.imageShow)),n=He();return(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,dt({title:e.label,id:"image",initialOpen:e.initialOpen,hasToggle:e.hasToggle},e.hasToggle?{checked:t,onChange:e=>n({imageShow:e})}:{}),(0,ue.createElement)(Gb,e)))};jb.defaultProps={initialOpen:!1,label:(0,v.__)("Image",m.i18n),hasToggle:!1,hasAlt:!0,hasWidth:!0,hasSelector:!0,hasShadow:!0,widthUnits:["px","%","vw"],widthMin:[0,0,0],widthMax:[1e3,100,100],widthStep:[1,1,1],hasHeight:!0,heightUnits:["px","%","vh"],heightMin:[0,0,0],heightMax:[1e3,100,100],heightStep:[1,1,1],hasBorderRadius:!0,hasShape:!0},jb.Controls=Gb;const qb=[.25,.5,.75,1],Kb=(0,d.range)(50,2001,50),Jb=(0,d.range)(100,2001,100),Yb=[.1,.2,.25,.3,.4,.5,.6,.7,.75,.8,.9,1],Xb=(0,d.range)(8,2001,8),Qb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return"auto"===e?e:e||0===e?"%"===t?o?`${e}%`:e:n?`${e}px`:e:"%"===t?o?"100%":100:n?"150px":150},Zb=e=>gt()([e.className,"stk-img-wrapper"],{"stk-img--shape":e.shape,"stk-image--shape-stretch":e.shapeStretch,[`stk--shadow-${e.shadow}`]:!e.shape&&e.shadow,"stk-img--gradient-overlay":e.hasGradientOverlay,"stk--has-lightbox":e.hasLightbox}),ef=e=>gt()(["stk-img"],{[`wp-image-${e.imageId}`]:e.imageId}),tf=(0,ue.memo)((e=>{const{isSelected:t}=(0,$e.useBlockEditContext)(),[n,o]=(0,ue.useState)(!0),[a,l]=(0,ue.useState)(!1),[r,i]=(0,ue.useState)(!1),[s,c]=(0,ue.useState)(),[u,p]=(0,ue.useState)(),[h,g]=(0,ue.useState)(),[m,v]=(0,ue.useState)(),[b,f]=(0,ue.useState)(!1),[k,y]=(0,ue.useState)(),[w,C]=(0,ue.useState)(),[_,E]=(0,ue.useState)(!1),S=(0,ue.useRef)(),x=(0,ue.useRef)(),{clientId:T}=(0,$e.useBlockEditContext)(),B=(0,ue.useMemo)((()=>"stackable/image"===(0,he.select)("core/block-editor").getBlockName(T)),[T]),[M,I]=(0,ue.useState)(null),[N,R]=(0,ue.useState)(null),A=An(e.src),H=pe();(0,ue.useEffect)((()=>{R(null)}),[H]);const P=gt()([Zb(e),"stk-img-resizer"],{"stk-img-placeholder":!A||b,"stk--never-resized":(!A||b)&&n,"stk--is-resizing":a,"stk--no-click-to-edit":!e.enableClickToEdit,"stk--too-small":_});(0,ue.useEffect)((()=>{if(S.current){const e=new ResizeObserver((e=>{for(const t of e)E(t.contentRect.width<140)}));return e.observe(S.current),()=>e.disconnect()}}),[S.current]);const O=ef(e);return(0,ue.createElement)(mt.ResizableBox,{className:P,enable:{top:!(!e.showHandles||"top"!==e.heightResizePosition)&&e.enableHeight,bottom:!(!e.showHandles||"bottom"!==e.heightResizePosition)&&e.enableHeight,right:!(!e.showHandles||"right"!==e.widthResizePosition)&&e.enableWidth,left:!(!e.showHandles||"left"!==e.widthResizePosition)&&e.enableWidth,topRight:!1,bottomRight:e.showHandles&&e.enableDiagonal,bottomLeft:!1,topLeft:!1},size:{width:Qb(w||e.width,e.widthUnit),height:Qb(k||e.height,e.heightUnit)},resizeRatio:1.2,lockAspectRatio:r,snap:N,snapGap:10,onResizeStart:(t,n,a)=>{i("bottomRight"===n);let r=e.height?parseFloat(e.height):0;if("%"===e.heightUnit){const t=a.parentElement.getBoundingClientRect().height;g(t),r=(e.height||100)/100*t}else e.height&&"auto"!==e.height||(r=parseInt(a.getBoundingClientRect().height,10));c(r||0);let s=e.width?parseFloat(e.width):0;if("%"===e.widthUnit){const t=a.parentElement.getBoundingClientRect().width;v(t),s=(e.width||100)/100*t}else e.width&&"auto"!==e.width||(s=parseInt(a.getBoundingClientRect().width,10));p(s||0),o(!1),l(!0),R(null)},onResize:(t,n,o,a)=>{let l,r;"%"===e.heightUnit?(l=(0,d.clamp)(Math.round((s+a.height)/h*100),0,100),I(`.stk--is-resizing { height: ${l}% !important; }`)):l=s+a.height,y(l),r="%"===e.widthUnit?(0,d.clamp)(Math.round((u+a.width)/m*100),0,100):u+a.width,C(r),N||R(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"%",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return"bottomRight"!==(arguments.length>4&&void 0!==arguments[4]?arguments[4]:"bottom")||a?{x:a?"%"===n?Yb.map((t=>t*e)):Xb:"%"===n?qb.map((t=>t*e)):Kb,y:a?"%"===o?Yb.map((e=>e*t)):Xb:"%"===o?qb.map((e=>e*t)):Kb}:{x:"%"===n?qb.map((t=>t*e)):Kb,y:"%"===o?qb.map((e=>e*t)):Jb}}(m,h,e.widthUnit,e.heightUnit,n,H))},onResizeStop:()=>{e.onChangeSize({width:w,widthUnit:e.widthUnit,height:k,heightUnit:e.heightUnit}),l(!1),C(null),y(null),I(null),R(null)}},A&&e.onRemove&&e.hasRemove&&e.showTooltips&&(0,ue.createElement)("button",{className:"stk-img-upload-remove",onClick:t=>{e.onRemove(),t.stopPropagation()}},(0,ue.createElement)(mt.Dashicon,{icon:"no"})),e.hasTooltip&&e.showTooltips&&(0,ue.createElement)(Fd,{enableHeight:e.enableHeight||e.enableDiagonal,enableWidth:e.enableWidth||e.enableDiagonal,height:Qb(k||e.height,e.heightUnit,!1,!1),width:Qb(w||e.width,e.widthUnit,!1,!1),widthUnits:e.widthUnits,heightUnits:e.heightUnits,heightUnit:e.heightUnit,widthUnit:e.widthUnit,allowReset:e.allowReset,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,onChangeHeight:t=>{let{value:n,unit:o}=t;const a={};void 0!==n&&(a.height=n),void 0!==o&&(a.heightUnit=o),e.onChangeSize(a)},onChangeWidth:t=>{let{value:n,unit:o}=t;const a={};void 0!==n&&(a.width=n),void 0!==o&&(a.widthUnit=o),e.onChangeSize(a)}}),(0,ue.createElement)("div",{className:"stk-img-resizer-wrapper",ref:x},(0,ue.createElement)("img",{ref:S,onLoad:()=>f(!1),onError:()=>f(!0),className:O,src:A||void 0,alt:Mm()(e.alt||void 0),title:Mm()(e.title||void 0),width:e.width||void 0,height:e.height||void 0,draggable:"false"})),a&&M&&(0,ue.createElement)("style",null,M),t&&e.enableClickToEdit&&(0,ue.createElement)($e.MediaUpload,{onSelect:t=>{let{url:n,width:o,height:a}=t;const l=e.size||"full";var r,i;(t.sizes&&t.sizes[l]&&(n=t.sizes[l].url,o=t.sizes[l].width,a=t.sizes[l].height),B&&S.current&&!e.hasManuallyChangedDimensions)&&(e.onChangeSize({width:"",widthUnit:"%"}),o<((null===(r=x.current.parentElement)||void 0===r||null===(i=r.parentElement)||void 0===i?void 0:i.clientWidth)||x.current.clientWidth)&&e.onChangeSize({width:o,widthUnit:"px"}));e.onChange({...t,url:n,width:o,height:a})},allowedTypes:e.allowedTypes,value:e.imageID,render:e=>(0,ue.createElement)(mt.Button,{className:"stk-img-media-manager-button",onClick:()=>e.open()})}),e.children)}));tf.defaultProps={imageId:"",enableClickToEdit:!0,showHandles:!0,showTooltips:!0,alt:"",title:"",src:"",size:"full",width:"",height:"",widthUnit:"%",heightUnit:"px",widthUnits:["px","%","vw"],heightUnits:["px","%","vh"],shape:"",shapeStretch:!1,shadow:"",allowedTypes:["image"],enableWidth:!0,enableHeight:!0,enableDiagonal:!0,widthResizePosition:"right",heightResizePosition:"bottom",allowReset:!0,hasGradientOverlay:!1,hasRemove:!0,hasTooltip:!0,onChange:()=>{},onRemove:()=>{},onChangeSize:()=>{}};const nf=e=>{const t=ve(),n="Desktop"===t,o="Mobile"===t;let a=e.width,l=e.widthUnit||"%";n||""===e.widthTablet||(a=e.widthTablet,l=e.widthUnitTablet),o&&""!==e.widthMobile&&(a=e.widthMobile,l=e.widthUnitMobile);let r=e.height,i=e.heightUnit||"px";return n||""===e.heightTablet||(r=e.heightTablet,""!==e.heightUnitTablet&&(i=e.heightUnitTablet)),o&&""!==e.heightMobile&&(r=e.heightMobile,""!==e.heightUnitMobile&&(i=e.heightUnitMobile)),(0,ue.createElement)(tf,dt({},e,{width:a,widthUnit:l,height:r,heightUnit:i,onChangeSize:n=>{e[`onChangeSize${t}`](n)}}))};nf.defaultProps={...tf.defaultProps,widthTablet:"",heightTablet:"",widthUnitTablet:"",heightUnitTablet:"",widthMobile:"",heightMobile:"",widthUnitMobile:"",heightUnitMobile:"",onChangeSizeDesktop:()=>{},onChangeSizeTablet:()=>{},onChangeSizeMobile:()=>{},defaultWidth:"",defaultHeight:""};const of=e=>{const t=Zb(e),n=ef(e),o=e.width||0===e.width?"%"===e.widthUnit?`${e.width}%`:e.width:void 0,a=e.height||0===e.height?"%"===e.heightUnit?`${e.height}%`:e.height:void 0,l={},r=Mm()(e.alt||void 0);r?l.alt=r:e.showEmptyAlt&&(l.alt="");const i=Mm()(e.title||void 0);i&&(l.title=i);const s=gt()(e.figcaptionClassnames,"stk-img-figcaption"),c=e.customWrapper;let d=(0,ue.createElement)("img",dt({className:n,src:e.src||void 0,width:o||void 0,height:a||void 0},l));return d=e.hasWrapper?(0,ue.createElement)("span",{className:t},d):d,(0,le.applyFilters)("stackable.image.save.wrapper",(0,ue.createElement)("figure",{className:e.hasWrapper?void 0:t},(0,ue.createElement)((e=>{let{condition:t,children:n}=e;return t?(0,ue.createElement)(c,null,n):n}),{condition:!!e.customWrapper,children:d}),e.figcaptionShow&&e.src&&(0,ue.createElement)($e.RichText.Content,{tagName:"figcaption",className:s,value:e.figcaption}),e.children),e,t,d,s)};of.defaultProps={imageId:"",hasWrapper:!1,alt:"",title:"",src:"",size:"full",width:"",height:"",widthUnit:"px",heightUnit:"px",shape:"",shapeStretch:!1,shadow:"",hasGradientOverlay:!1,customWrapper:null,figcaptionShow:!1,figcaption:""},nf.Content=of;const af=nf,lf=e=>{const{defaultWidth:t,defaultHeight:n,...o}=e,{isSelected:a,clientId:l}=(0,$e.useBlockEditContext)(),r=Ae((e=>({imageOverlayColorType:e.imageOverlayColorType,imageOverlayColorHover:e.imageOverlayColorHover,imageOverlayColorParentHover:e.imageOverlayColorParentHover,imageOverlayOpacityHover:e.imageOverlayOpacityHover,imageOverlayOpacityParentHover:e.imageOverlayOpacityParentHover,imageOverlayGradientLocation1Hover:e.imageOverlayGradientLocation1Hover,imageOverlayGradientLocation1ParentHover:e.imageOverlayGradientLocation1ParentHover,imageOverlayGradientLocation2Hover:e.imageOverlayGradientLocation2Hover,imageOverlayGradientLocation2ParentHover:e.imageOverlayGradientLocation2ParentHover,imageId:e.imageId,imageUrl:e.imageUrl,imageSize:e.imageSize,imageWidth:e.imageWidth,imageWidthTablet:e.imageWidthTablet,imageWidthMobile:e.imageWidthMobile,imageWidthUnit:e.imageWidthUnit,imageWidthUnitTablet:e.imageWidthUnitTablet,imageWidthUnitMobile:e.imageWidthUnitMobile,imageHeight:e.imageHeight,imageHeightTablet:e.imageHeightTablet,imageHeightMobile:e.imageHeightMobile,imageHeightUnit:e.imageHeightUnit,imageHeightUnitTablet:e.imageHeightUnitTablet,imageHeightUnitMobile:e.imageHeightUnitMobile,imageHasLightbox:e.imageHasLightbox,imageShape:e.imageShape,imageShapeStretch:e.imageShapeStretch,imageShadow:e.imageShadow,imageExternalUrl:e.imageExternalUrl,figcaption:e.figcaptionText,figcaptionShow:e.figcaptionShow}))),{parentBlock:i}=(0,he.useSelect)((e=>{const{getBlockRootClientId:t,getBlock:n}=e("core/block-editor");return{parentBlock:n(t(l))}}),[l]),{setImage:s}=(()=>{const e=He(),t=Ae((e=>({imageAlt:e.imageAlt})));return{setImage:{onChange:n=>{e({imageUrl:n.url,imageId:n.id,imageHeightAttribute:n.height,imageWidthAttribute:n.width,imageExternalUrl:"",...t.imageAlt?{}:{imageAlt:n.alt||""}})},onChangeSizeDesktop:t=>{let{width:n,height:o,widthUnit:a,heightUnit:l}=t;const r={};void 0!==n&&(r.imageWidth=n),void 0!==o&&(r.imageHeight=o),void 0!==l&&(r.imageHeightUnit=l),void 0!==a&&(r.imageWidthUnit=a),e(r)},onChangeSizeTablet:t=>{let{width:n,height:o,widthUnit:a,heightUnit:l}=t;const r={};void 0!==n&&(r.imageWidthTablet=n),void 0!==o&&(r.imageHeightTablet=o),void 0!==l&&(r.imageHeightUnitTablet=l),void 0!==a&&(r.imageWidthUnitTablet=a),e(r)},onChangeSizeMobile:t=>{let{width:n,height:o,widthUnit:a,heightUnit:l}=t;const r={};void 0!==n&&(r.imageWidthMobile=n),void 0!==o&&(r.imageHeightMobile=o),void 0!==l&&(r.imageHeightUnitMobile=l),void 0!==a&&(r.imageWidthUnitMobile=a),e(r)},onRemove:()=>{e({imageUrl:"",imageId:"",imageHeightAttribute:"",imageWidthAttribute:""})}}}})(),c="auto"===n?"auto":void 0!==n?n:"",u=(0,le.applyFilters)("stackable.image.enable-handlers",!0,i),p="gradient"===r.imageOverlayColorType&&(r.imageOverlayColorHover||r.imageOverlayColorParentHover||r.imageOverlayOpacityHover||r.imageOverlayOpacityParentHover);return(0,ue.createElement)(af,dt({},s,{showHandles:u&&a,imageId:r.imageId,imageURL:r.imageUrl,size:r.imageSize,src:r.imageUrl||r.imageExternalUrl,width:r.imageWidth||t,widthTablet:r.imageWidthTablet,widthMobile:r.imageWidthMobile,widthUnit:r.imageWidthUnit||"%",widthUnitTablet:r.imageWidthUnitTablet,widthUnitMobile:r.imageWidthUnitMobile,height:r.imageHeight||c,heightTablet:r.imageHeightTablet,heightMobile:r.imageHeightMobile,heightUnit:r.imageHeightUnit||"px",heightUnitTablet:r.imageHeightUnitTablet,heightUnitMobile:r.imageHeightUnitMobile,shape:r.imageShape,shapeStretch:r.imageShapeStretch,shadow:r.imageShadow,hasGradientOverlay:p,hasLightbox:r.imageHasLightbox,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,figcaption:r.figcaption,figcaptionShow:r.figcaptionShow,figcaptionClassnames:e.figcaptionClassnames},(0,d.pickBy)(o,(e=>void 0!==e))))};lf.defaultProps={defaultWidth:150,defaultHeight:300,enableHandles:!0,showTooltips:!1},lf.Content=e=>{const{defaultWidth:t,defaultHeight:n,attributes:o,src:a,alt:l,width:r,...i}=e,s="auto"===n&&o.imageUrl?"auto":300,c="gradient"===o.imageOverlayColorType&&(o.imageOverlayColorHover||o.imageOverlayColorParentHover||o.imageOverlayOpacityHover||o.imageOverlayOpacityParentHover);return(0,ue.createElement)(af.Content,dt({imageId:o.imageId,imageURL:o.imageUrl,alt:l||o.imageAlt,showEmptyAlt:o.imageShowEmptyAlt,size:o.imageSize,src:a||o.imageUrl||o.imageExternalUrl,width:r||o.imageWidthAttribute||o.imageWidth||t,height:o.imageHeightAttribute||o.imageHeight||s,shape:o.imageShape,shapeStretch:o.imageShapeStretch,shadow:o.imageShadow,hasGradientOverlay:c,hasLightbox:o.imageHasLightbox,figcaption:o.figcaptionText,figcaptionShow:o.figcaptionShow,figcaptionClassnames:e.figcaptionClassnames},i))},lf.Content.defaultProps={attributes:{},defaultWidth:150,defaultHeight:300},lf.InspectorControls=jb,lf.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{imageWidthUnitDefault:n="%",selector:o="img"}=t;$b(e),e.add({attributes:{imageShow:{type:"boolean",default:!0},imageUrl:{type:"string",default:""},imageId:{type:"number",default:""},imageAlt:{type:"string",source:"attribute",selector:o,attribute:"alt",default:""},imageShowEmptyAlt:{type:"boolean",default:!1},imageAspectRatio:{stkResponsive:!0,type:"string",default:""},imageSize:{type:"string",default:"full"},imageWidthAttribute:{type:"number",default:""},imageHeightAttribute:{type:"number",default:""},imageBorderRadius:{type:"number",default:""},imageOverlayColorType:{type:"string",default:""},imageOverlayColor:{type:"string",default:"",stkHover:!0},imageOverlayOpacity:{type:"number",default:"",stkHover:!0},imageOverlayBlendMode:{type:"string",default:""},imageFocalPoint:{stkResponsive:!0,stkHover:!0,type:"object"},imageFit:{stkResponsive:!0,type:"string",default:""},imageHeight:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},imageWidth:{stkResponsive:!0,stkUnits:n,type:"number",default:""},imageHasLightbox:{type:"boolean",default:!1},imageZoom:{stkHover:!0,type:"number",default:""},imageShadow:{stkHover:!0,type:"string",default:""},imageFilter:{stkHover:!0,type:"string",default:""},imageShape:{type:"string",default:""},imageShapeFlipX:{type:"boolean",default:""},imageShapeFlipY:{type:"boolean",default:""},imageShapeStretch:{type:"boolean",default:!0},imageExternalUrl:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""})},lf.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o=".stk-img-wrapper",hoverSelector:a=".stk-img-wrapper:hover",hoverSelectorCallback:l=null,enableWidth:r=!0,enableWidthCallback:i=null,saveEnableWidthCallback:s=null,enableHeight:c=!0,enableHeightCallback:d=null,enableAspectRatio:u=!0,enableAspectRatioCallback:p=null,widthStyleRule:h=null,widthStyleRuleCallback:g=null,editorWidthUnitCallback:m=null,saveWidthUnitCallback:v=null,heightUnitCallback:b=null,dependencies:f=[]}=t,k=i||(()=>r),y=d||(()=>c),w=p||(()=>u),C=g||(()=>h||"width");e.addBlockStyles("imageAspectRatio",[{...n,selector:[o,`${o} .stk-img-resizer-wrapper`],renderIn:"edit",styleRule:"aspectRatio",attrName:"imageAspectRatio",key:"imageAspectRatio",responsive:"all",enabledCallback:w},{...n,selector:o,renderIn:"save",styleRule:"aspectRatio",attrName:"imageAspectRatio",key:"imageAspectRatio",responsive:"all",enabledCallback:w}]),e.addBlockStyles("imageWidth",[{...n,selector:`${o}:not(.stk--is-resizing)`,renderIn:"edit",styleRule:"width",attrName:"imageWidth",key:"imageWidth",hasUnits:"%",unitCallback:m,responsive:"all",enabledCallback:k,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageHeight")?"auto":e,dependencies:["imageAspectRatio","imageHeight"]},{...n,selector:o,renderIn:"save",styleRuleCallback:C,attrName:"imageWidth",key:"imageWidth-save",hasUnits:"%",unitCallback:v,responsive:"all",enabledCallback:s||k,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageHeight")?"auto":e,dependencies:["imageAspectRatio","imageHeight"]}]),e.addBlockStyles("imageHeight",[{...n,selector:`${o}:not(.stk--is-resizing)`,renderIn:"edit",styleRule:"height",attrName:"imageHeight",key:"imageHeight",hasUnits:"px",unitCallback:b,responsive:"all",enabledCallback:y,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageWidth")?"auto":e,valuePreCallback:(e,t)=>u&&""===e&&t("imageAspectRatio")&&!t("imageWidth")?"auto":e,dependencies:["imageAspectRatio","imageWidth"]},{...n,selector:o,renderIn:"save",styleRule:"height",attrName:"imageHeight",key:"imageHeight-save",hasUnits:"px",unitCallback:b,responsive:"all",enabledCallback:y,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageWidth")?"auto":e,valuePreCallback:(e,t)=>u&&""===e&&t("imageAspectRatio")&&!t("imageHeight")?"auto":e,dependencies:["imageAspectRatio","imageWidth"]}]),e.addBlockStyles("imageShadow",[{...n,selector:`${o} .stk-img-resizer-wrapper`,hoverSelector:a?`${a} .stk-img-resizer-wrapper`:void 0,hoverSelectorCallback:l,renderIn:"edit",styleRule:"filter",attrName:"imageShadow",key:"imageShadow",format:"drop-shadow(%s)",hover:"all"},{...n,selector:o,hoverSelector:a,renderIn:"save",styleRule:"filter",attrName:"imageShadow",key:"imageShadow-save",format:"drop-shadow(%s)",hover:"all"}]),e.addBlockStyles("imageFilter",[{...n,selector:`${o} img`,hoverSelector:`${a} img`,hoverSelectorCallback:l,styleRule:"filter",attrName:"imageFilter",key:"imageFilter",hover:"all"}]),e.addBlockStyles("imageZoom",[{...n,selector:`${o} img`,hoverSelector:`${a} img`,hoverSelectorCallback:l,styleRule:"transform",attrName:"imageZoom",key:"imageZoom",format:"scale(%s)",hover:"all"}]),e.addBlockStyles("imageBorderRadius",[{...n,selector:`${o} .stk-img-resizer-wrapper img`,renderIn:"edit",styleRule:"borderRadius",attrName:"imageBorderRadius",key:"imageBorderRadius",format:"%spx"},{...n,selector:`${o} img`,renderIn:"save",styleRule:"borderRadius",attrName:"imageBorderRadius",key:"imageBorderRadius-save",format:"%spx"}]),e.addBlockStyles("imageFocalPoint",[{...n,selector:`${o} img`,hoverSelector:`${a} img`,hoverSelectorCallback:l,styleRule:"objectPosition",attrName:"imageFocalPoint",key:"imageFocalPoint",valueCallback:Wb,responsive:"all",hover:"all"}]),e.addBlockStyles("imageFit",[{...n,selector:`${o} img`,styleRule:"objectFit",attrName:"imageFit",key:"imageFit",responsive:"all"}]),e.addBlockStyles("imageShape",[{...n,renderIn:"edit",selector:[`${o} .stk-img-resizer-wrapper img`,`${o} .stk-img-resizer-wrapper::after`,`${o} .stk-img-resizer-wrapper::before`],styleRule:"mask-image",vendorPrefixes:["-webkit-"],attrName:"imageShape",key:"imageShape",responsive:"all",enabledCallback:e=>!!e("imageShape"),valueCallback:(e,t)=>Ub(e,t("imageShapeFlipX"),t("imageShapeFlipY"),t("imageShapeStretch")),dependencies:["imageShapeFlipX","imageShapeFlipY","imageShapeStretch",...f]},{...n,renderIn:"save",selector:[`${o} img`,`${o}::after`,`${o}::before`],styleRule:"mask-image",vendorPrefixes:["-webkit-"],attrName:"imageShape",key:"imageShape-save",responsive:"all",enabledCallback:e=>!!e("imageShape"),valueCallback:(e,t)=>Ub(e,t("imageShapeFlipX"),t("imageShapeFlipY"),t("imageShapeStretch")),dependencies:["imageShapeFlipX","imageShapeFlipY","imageShapeStretch",...f]}]),e.addBlockStyles("imageOverlayColor",[{...n,renderIn:"save",selector:`${o}::after`,hoverSelector:`${a}::after`,hoverSelectorCallback:l,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor-save",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?null:"all",valueCallback:(e,t)=>{const n=t("imageOverlayColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType",...f]},{...n,renderIn:"edit",selector:`${o} .stk-img-resizer-wrapper::after`,hoverSelector:`${a} .stk-img-resizer-wrapper::after`,hoverSelectorCallback:l,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?null:"all",valueCallback:(e,t)=>{const n=t("imageOverlayColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType",...f]}]),e.addBlockStyles("imageOverlayColor",[{...n,renderIn:"edit",selector:`${o}::after`,hoverSelector:`${o}::before`,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor-edit-image",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?"all":null,enabledCallback:e=>"gradient"===e("imageOverlayColorType"),valueCallback:(e,t,n,o)=>{if("normal"===o)return;const a=t("imageOverlayColorType"),l=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===a&&!l)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==a&&l){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType","imageOverlayOpacity",...f]},{...n,renderIn:"save",selector:`${o}::after`,hoverSelector:`${o}::before`,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor-save-image",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?"all":null,enabledCallback:e=>"gradient"===e("imageOverlayColorType"),valueCallback:(e,t,n,o)=>{if("normal"===o)return;const a=t("imageOverlayColorType"),l=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===a&&!l)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==a&&l){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType","imageOverlayOpacity",...f]}]),e.addBlockStyles("imageOverlayOpacity",[{...n,renderIn:"save",selector:`${o}`,hoverSelector:`${o}::before`,styleRule:"--stk-gradient-overlay",attrName:"imageOverlayOpacity",key:"imageOverlayOpacity-save",hover:"all"},{...n,renderIn:"edit",selector:`${o} .stk-img-resizer-wrapper`,hoverSelector:`${o} .stk-img-resizer-wrapper::before`,styleRule:"--stk-gradient-overlay",attrName:"imageOverlayOpacity",key:"imageOverlayOpacity",hover:"all"}]),e.addBlockStyles("imageOverlayBlendMode",[{...n,renderIn:"save",selector:`${o}::after, ${o}::before`,styleRule:"mix-blend-mode",attrName:"imageOverlayBlendMode",key:"imageOverlayBlendMode-save"},{...n,renderIn:"edit",selector:`${o} .stk-img-resizer-wrapper::after, ${o} .stk-img-resizer-wrapper::before`,hoverSelectorCallback:l,styleRule:"mix-blend-mode",attrName:"imageOverlayBlendMode",key:"imageOverlayBlendMode"}])},(0,le.addFilter)("stackable.block-linking.blocks","stackable",(e=>({...e,"stackable/button":{filterAttributes:["text","linkUrl","linkRel","linkNewTab","icon"]},"stackable/icon-button":{filterAttributes:["linkUrl","linkRel","linkNewTab","icon"]},"stackable/button-group":{},"stackable/blockquote":{},"stackable/call-to-action":{},"stackable/card":{filterAttributes:["imageUrl","imageId","imageAlt","imageTitle"]},"stackable/card-group":{},"stackable/column":{},"stackable/columns":{},"stackable/expand":{},"stackable/feature":{},"stackable/feature-grid":{},"stackable/hero":{},"stackable/heading":{filterAttributes:["text"]},"stackable/icon":{filterAttributes:["icon","ariaLabel"]},"stackable/icon-box":{},"stackable/icon-label":{},"stackable/icon-list":{filterAttributes:["text"]},"stackable/image":{filterAttributes:["imageUrl","imageId","imageAlt"]},"stackable/notification":{},"stackable/price":{},"stackable/pricing-box":{},"stackable/text":{filterAttributes:["text"]},"stackable/subtitle":{filterAttributes:["text"]}}))),(0,le.addFilter)("stackable.block-linking.blocks","stackable-essentials",(e=>(Object.keys(e).forEach((t=>{t.startsWith("stackable/")&&(e[t].filterAttributes||(e[t].filterAttributes=[]),e[t].filterAttributes.push("uniqueId","templateLock","columnWidth","columnWidthTablet","columnWidthMobile","isFirstBlock","isLastBlock","blockLinkUrl"))})),e)),99),(0,le.addFilter)("stackable.block-linking.blocks","core",(e=>({...e,"core/archives":{},"core/audio":{filterAttributes:["src","caption","id"]},"core/block":{filterAttributes:["ref"]},"core/button":{filterAttributes:["url","title","text","linkTarget","rel","placeholder"]},"core/buttons":{},"core/calendar":{},"core/categories":{},"core/freeform":{filterAttributes:["content"]},"core/code":{filterAttributes:["content"]},"core/column":{},"core/columns":{},"core/cover":{filterAttributes:["url","id"]},"core/file":{filterAttributes:["id","href","fileName","textLinkHref","downloadButtonText"]},"core/gallery":{filterAttributes:["images","ids","caption"]},"core/group":{},"core/heading":{filterAttributes:["content","level","placeholder"]},"core/html":{filterAttributes:["content"]},"core/image":{filterAttributes:["url","capion","title","href","rel","id","linkDestination","linkTarget"]},"core/latest-comments":{},"core/latest-posts":{filterAttributes:["categories"]},"core/legacy-widget":{filterAttributes:["id","idBase","instance"]},"core/list":{filterAttributes:["values"]},"core/media-text":{filterAttributes:["mediaAlt","mediaId","mediaUrl","mediaLink","linkDestination","linkTarget","href","rel"]},"core/missing":{filterAttributes:["content"]},"core/navigation":{},"core/paragraph":{filterAttributes:["content","placeholder"]},"core/post-author":{},"core/post-date":{},"core/post-excerpt":{},"core/preformatted":{filterAttributes:["content"]},"core/pullquote":{filterAttributes:["value","citation"]},"core/quote":{filterAttributes:["value","citation"]},"core/rss":{filterAttributes:["feedURL"]},"core/search":{filterAttributes:["label","placeholder","buttonText"]},"core/separator":{},"core/site-title":{filterAttributes:["level"]},"core/social-links":{},"core/spacer":{},"core/subhead":{filterAttributes:["content"]},"core/table":{filterAttributes:["caption","head","body","foot"]},"core/tag-cloud":{filterAttributes:["taxonomy"]},"core/text-columns":{filterAttributes:["content"]},"core/verse":{filterAttributes:["content"]},"core/video":{filterAttributes:["caption","id","poster","src"]}}))),(0,le.addFilter)("stackable.block-linking.blocks","common",(e=>(Object.keys(e).forEach((t=>{e[t].filterAttributes||(e[t].filterAttributes=[]),e[t].filterAttributes.includes("id")||e[t].filterAttributes.push("id"),e[t].filterAttributes.includes("anchor")||e[t].filterAttributes.push("anchor")})),e)),99);const rf=wp.plugins,sf=e=>(0,rf.getPlugin)("stackable-block-linking")?(0,ue.createElement)(cf,e):null,cf=()=>{const[e,t]=tt(),{clientId:n}=(0,$e.useBlockEditContext)(),{isOnlyBlock:o}=(0,he.useSelect)((e=>{const{getBlockRootClientId:t,getBlock:o}=e("core/block-editor");return{isOnlyBlock:1===o(t(n)).innerBlocks.length}}),[n]),a=(e=>{const t=(0,ue.useMemo)((()=>wp.data.select("core/blocks").getBlockTypes().reduce(((e,t)=>{var n;return null!==(n=t.supports)&&void 0!==n&&n.stkBlockLinking&&e.push(t.name),e}),[])),[]);return(0,ue.useMemo)((()=>{var n;if(!e)return null;let o=null;const{getBlock:a,getBlockParents:l}=(0,he.select)("core/block-editor"),r=(null===(n=a(e))||void 0===n?void 0:n.name)||"";if(t.includes(r)&&(o=e),o||(o=[...l(e)].reverse().find((e=>{var n;const o=null===(n=a(e))||void 0===n?void 0:n.name;return!!t.includes(o)&&e}))||null),o){const e=(0,d.last)(l(o));if(e){var i,s;const t=null===(i=a(e))||void 0===i?void 0:i.name,n=wp.data.select("core/blocks").getBlockType(t);if(!1===(null==n||null===(s=n.supports)||void 0===s?void 0:s.stkBlockLinking))return null}}return o}),[e])})(n);if(o||!a)return null;const l=gt()(["stk-linking-wrapper__tooltip"],{"stk--is-unlinked":!e});return(0,ue.createElement)("div",{className:"stk-linking-wrapper"},(0,ue.createElement)(pc,{position:"bottom",text:(0,ue.createElement)(ue.Fragment,null,(0,v.__)("When linked, styling this block would also style other linked blocks in adjacent columns.",m.i18n),(0,ue.createElement)("br",null),(0,ue.createElement)("a",{href:"https://docs.wpstackable.com/article/452-how-to-use-linking/?utm_source=wp-linking-tooltip&utm_campaign=learnmore&utm_medium=gutenberg",target:"_blank",rel:"noopener noreferrer"},(0,v.__)("Learn more about linking",m.i18n)))},(0,ue.createElement)("div",{className:l,onClick:()=>t(!e),onKeyDown:n=>{13===n.keyCode&&t(!e)},role:"button",tabIndex:"0"},(0,ue.createElement)(mt.Dashicon,{icon:e?"admin-links":"editor-unlink"}))))};sf.Content=()=>null;const df=e=>gt()({"stk-has-top-separator":e.topSeparatorShow,"stk-has-bottom-separator":e.bottomSeparatorShow}),uf=(e,t)=>{const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{location:o="",selector:a,wrapperSelector:l=".stk-separator__wrapper",enableFlipHorizontally:r=!0,enableFlipVertically:i=!1,isInitiallyFlippedVertically:s=!0,dependencies:c=[]}=t,u=void 0!==a?a:` > .stk-separator__${o}`;e.addBlockStyles("separatorBringToFront",[{...n,attrNameTemplate:`${o}%s`,selector:u,styleRule:"zIndex",attrName:"separatorBringToFront",valuePreCallback:e=>{if(e)return 6}}]),e.addBlockStyles("separatorFlipHorizontally",[{...n,attrNameTemplate:`${o}%s`,selector:u,styleRule:"transform",attrName:"separatorFlipHorizontally",valuePreCallback:(e,t)=>{const n=e,o=t("separatorFlipVertically");if(!i&&!r)return;if(!n&&!o)return;const a=r&&n,l=a&&s,c=i&&o;return(0,d.compact)([a?"scaleX(-1)":void 0,l?"scaleY(-1)":void 0,c?"scaleY(-1)":void 0]).join(" ")},dependencies:["separatorFlipVertically",...c]}]),e.addBlockStyles("separatorColor",[{...n,attrNameTemplate:`${o}%s`,selector:u+" svg",styleRule:"fill",attrName:"separatorColor"}]),e.addBlockStyles("separatorWidth",[{...n,attrNameTemplate:`${o}%s`,selector:u+` ${l}`,styleRule:"transform",attrName:"separatorWidth",format:"scaleX(%s)"}]),e.addBlockStyles("separatorHeight",[{...n,attrNameTemplate:`${o}%s`,selector:u+` ${l}`,styleRule:"height",responsive:"all",attrName:"separatorHeight",format:"%spx"}]),e.addBlockStyles("separatorShadow",[{...n,attrNameTemplate:`${o}%s`,selector:u+" svg",styleRule:"filter",attrName:"separatorShadow",format:"drop-shadow(%s)",valueCallback:e=>"drop-shadow(none)"===e?"none":e}])},pf=(e,t)=>{const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o}=t;e.addBlockStyles("textShadow",[{...n,renderIn:"edit",selector:void 0!==o?o:" > .stk-separator__bottom",styleRule:"bottom",attrName:"blockMargin",responsive:"all",valuePreCallback:e=>null==e?void 0:e.bottom,format:"%spx"}])},hf=[{image:"dist/images/block-components-separator-wave-1.fe7d2e5.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),1),value:"wave-1"},{image:"dist/images/block-components-separator-straight-1.fba0f99.png",label:(0,v.__)("Straight",m.i18n),value:"straight-1"},{image:"dist/images/block-components-separator-wave-2.bc3ff78.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),2),value:"wave-2"},{image:"dist/images/block-components-separator-wave-3.9e204d5.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),3),value:"wave-3"},{image:"dist/images/block-components-separator-wave-4.b82e3aa.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Wave",m.i18n),4),value:"wave-4"},{image:"dist/images/block-components-separator-slant-1.645f0b9.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Slant",m.i18n),1),value:"slant-1"},{image:"dist/images/block-components-separator-slant-2.50e3178.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Slant",m.i18n),2),value:"slant-2"},{image:"dist/images/block-components-separator-curve-1.277a020.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Curve",m.i18n),1),value:"curve-1"},{image:"dist/images/block-components-separator-curve-2.4b8c7da.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Curve",m.i18n),2),value:"curve-2"},{image:"dist/images/block-components-separator-curve-3.da5eb6d.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Curve",m.i18n),3),value:"curve-3"},{image:"dist/images/block-components-separator-rounded-1.85d0e25.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Rounded",m.i18n),1),value:"rounded-1"},{image:"dist/images/block-components-separator-rounded-2.6e57ec5.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Rounded",m.i18n),2),value:"rounded-2"},{image:"dist/images/block-components-separator-rounded-3.78cb6da.png",label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",m.i18n),(0,v.__)("Rounded",m.i18n),3),value:"rounded-3"}];(0,le.hasFilter)("stackable.block-component.separator.layouts","default")||(0,le.addFilter)("stackable.block-component.separator.layouts","default",(e=>[...e,...hf]));const gf=e=>{const{attribute:t,responsive:n,hover:o,valueCallback:a,changeCallback:l,onChange:r,value:i}=e,{excludeDesigns:s,...c}=e,u=(0,ue.useMemo)((()=>((0,le.applyFilters)("stackable.block-component.separator.layouts",[])||[]).filter((e=>-1===(0,d.findIndex)(s,(t=>t===(null==e?void 0:e.value)))))),[...s]),[p,h]=cn(t,n,o,a,l),[g,m]=mn(c);return(0,ue.createElement)(gn,m,(0,ue.createElement)(Ml,dt({},g,{options:u,selected:void 0===i?p:i,onChange:void 0===r?h:r})))};gf.defaultProps={excludeDesigns:[],attribute:""};const mf=gf,vf=["none","0px 0 1px rgba(120, 120, 120, 0.5)","0px 0 2px rgba(120, 120, 120, 0.5)","2px 4px 6px #000","0px 5px 10px rgba(153, 153, 153, 0.35)","0px 2px 20px rgba(153, 153, 153, 0.2)","25px 10px 30px rgba(18, 63, 82, 0.3)","0px 10px 30px rgba(0, 0, 0, 0.05)","7px 5px 30px rgba(72, 73, 121, 0.15)","0px 10px 60px rgba(0, 0, 0, 0.1)","70px 130px -60px rgba(72, 73, 121, 0.38) "],bf=e=>{const{attrNameTemplate:t,hasFlipVertically:n}=e,o=V(t),a=(0,le.applyFilters)("stackable.separator.shadows",vf);return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(mf,{label:(0,v.__)("Design",m.i18n),attribute:o("separatorDesign")}),(0,ue.createElement)(Cn,{label:(0,v.__)("Color",m.i18n),attribute:o("separatorColor")}),(0,ue.createElement)(ro,{label:(0,v.__)("Height",m.i18n),min:30,sliderMax:400,placeholder:"",attribute:o("separatorHeight"),responsive:"all",helpTooltip:{video:"separator-height",title:(0,v.__)("Separator Height",m.i18n),description:(0,v.__)("Adjusts the height of the separator to stretch or compress vertically",m.i18n)}}),(0,ue.createElement)(ro,{label:(0,v.__)("Width",m.i18n),attribute:o("separatorWidth"),min:1,sliderMax:4,step:.1,helpTooltip:{video:"separator-width",title:(0,v.__)("Separator Width",m.i18n),description:(0,v.__)("Adjusts the height of the separator to stretch or compress vertically",m.i18n)}}),(0,ue.createElement)(td,{isFilter:!0,label:(0,v.__)("Shadow / Outline",m.i18n),attribute:o("separatorShadow"),options:a,placeholder:"5",helpTooltip:{video:"separator-shadow",title:(0,v.__)("Shadow",m.i18n),description:(0,v.__)("Adjusts the intensity of the separator shadow and makes the separator more prominent",m.i18n)}}),(0,ue.createElement)(Pc,{label:(0,v.__)("Invert Design",m.i18n),attribute:o("separatorInverted")}),(0,ue.createElement)(Pc,{label:(0,v.__)("Flip Horizontally",m.i18n),attribute:o("separatorFlipHorizontally")}),n&&(0,ue.createElement)(Pc,{label:(0,v.__)("Flip Vertically",m.i18n),attribute:o("separatorFlipVertically")}),(0,ue.createElement)(Pc,{label:(0,v.__)("Bring to Front",m.i18n),attribute:o("separatorBringToFront"),helpTooltip:{video:"separator-bring-to-front",title:(0,v.__)("Bring to Front",m.i18n),description:(0,v.__)("Brings the separator layer in front of other block elements",m.i18n)}}))};bf.defaultProps={attrNameTemplate:"%s",hasFlipVertically:!1};const ff=e=>{const t=(0,ue.useMemo)((()=>(0,le.applyFilters)("stackable.block-component.separator.top.after",null)),[]),n=(0,ue.useMemo)((()=>(0,le.applyFilters)("stackable.block-component.separator.bottom.after",null)),[]),o=He(),a=Ae((e=>({topSeparatorShow:e.topSeparatorShow,bottomSeparatorShow:e.bottomSeparatorShow})));return(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:(0,v.__)("Top Separator",m.i18n),id:"top-separator",hasToggle:!0,checked:a.topSeparatorShow,onChange:e=>o({topSeparatorShow:e})},(0,ue.createElement)(bf,{attrNameTemplate:"top%s"}),t&&(0,ue.createElement)(t,e),m.showProNotice&&(0,ue.createElement)(ar,{type:"separator"})),(0,ue.createElement)(ll,{title:(0,v.__)("Bottom Separator",m.i18n),id:"bottom-separator",hasToggle:!0,checked:a.bottomSeparatorShow,onChange:e=>o({bottomSeparatorShow:e})},(0,ue.createElement)(bf,{attrNameTemplate:"bottom%s"}),n&&(0,ue.createElement)(n,e),m.showProNotice&&(0,ue.createElement)(ar,{type:"separator"})))};ff.SeparatorControls=bf;const kf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"top%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=P(e);return{[n(`SeparatorLayer${t}Show`)]:{type:"boolean",default:""},[n(`SeparatorLayer${t}Color`)]:{type:"string",default:""},[n(`SeparatorLayer${t}Height`)]:{stkResponsive:!0,type:"number",default:""},[n(`SeparatorLayer${t}Width`)]:{type:"number",default:""},[n(`SeparatorLayer${t}FlipHorizontally`)]:{type:"boolean",default:""},[n(`SeparatorLayer${t}Inverted`)]:{type:"boolean",default:""},[n(`SeparatorLayer${t}Opacity`)]:{type:"number",default:""},[n(`SeparatorLayer${t}BlendMode`)]:{type:"string",default:""}}},yf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s";const t=P(e);return{[t("separatorShow")]:{type:"boolean",default:""},[t("separatorDesign")]:{type:"string",default:""},[t("separatorColor")]:{type:"string",default:""},[t("separatorHeight")]:{stkResponsive:!0,type:"number",default:""},[t("separatorWidth")]:{type:"number",default:""},[t("separatorShadow")]:{type:"string",default:""},[t("separatorInverted")]:{type:"boolean",default:""},[t("separatorFlipHorizontally")]:{type:"boolean",default:""},[t("separatorFlipVertically")]:{type:"boolean",default:""},[t("separatorBringToFront")]:{type:"boolean",default:""}}},wf={...yf("top%s"),...yf("bottom%s"),...kf("top%s",2),...kf("top%s",3),...kf("bottom%s",2),...kf("bottom%s",3)},Cf=e=>{let{children:t}=e;const n=Ae((e=>({topSeparatorShow:e.topSeparatorShow,topSeparatorDesign:e.topSeparatorDesign,topSeparatorInverted:e.topSeparatorInverted,topSeparatorLayer2Show:e.topSeparatorLayer2Show,topSeparatorLayer3Show:e.topSeparatorLayer3Show,bottomSeparatorShow:e.bottomSeparatorShow,bottomSeparatorDesign:e.bottomSeparatorDesign,bottomSeparatorInverted:e.bottomSeparatorInverted,bottomSeparatorLayer2Show:e.bottomSeparatorLayer2Show,bottomSeparatorLayer3Show:e.bottomSeparatorLayer3Show})));return(0,ue.createElement)(ue.Fragment,null,n.topSeparatorShow&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)("div",{className:"stk-separator stk-separator__top"},(0,ue.createElement)("div",{className:"stk-separator__wrapper"},(0,ue.createElement)(hu,{design:n.topSeparatorDesign,inverted:n.topSeparatorInverted}),(0,le.applyFilters)("stackable.block-component.separator.output.top.after",null,n)))),t,n.bottomSeparatorShow&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)("div",{className:"stk-separator stk-separator__bottom"},(0,ue.createElement)("div",{className:"stk-separator__wrapper"},(0,ue.createElement)(hu,{design:n.bottomSeparatorDesign,inverted:n.bottomSeparatorInverted}),(0,le.applyFilters)("stackable.block-component.separator.output.bottom.after",null,n)))))};Cf.Content=e=>{let{children:t,attributes:n}=e;return(0,ue.createElement)(ue.Fragment,null,n.topSeparatorShow&&(0,ue.createElement)("div",{className:"stk-separator stk-separator__top"},(0,ue.createElement)("div",{className:"stk-separator__wrapper"},(0,ue.createElement)(hu,{design:n.topSeparatorDesign,inverted:n.topSeparatorInverted}),(0,le.applyFilters)("stackable.block-component.separator.output.top.after",null,n))),t,n.bottomSeparatorShow&&(0,ue.createElement)("div",{className:"stk-separator stk-separator__bottom"},(0,ue.createElement)("div",{className:"stk-separator__wrapper"},(0,ue.createElement)(hu,{design:n.bottomSeparatorDesign,inverted:n.bottomSeparatorInverted}),(0,le.applyFilters)("stackable.block-component.separator.output.bottom.after",null,n))))},Cf.Content.defaultProps={attributes:{}},Cf.InspectorControls=ff,Cf.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{}=t;e.add({attributes:wf,versionAdded:"3.0.0",versionDeprecated:""})},Cf.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uf(e,{...t,location:"top"}),uf(e,{...t,isInitiallyFlippedVertically:!1,location:"bottom"}),pf(e,t),(0,le.doAction)("stackable.block-component.separator.layer-styles.addStyles",e,{...t,location:"top"}),(0,le.doAction)("stackable.block-component.separator.layer-styles.addStyles",e,{...t,location:"bottom"})};const _f=(0,ue.memo)((e=>{const{clientId:t}=(0,$e.useBlockEditContext)(),n=Ae((e=>({layout:e.layout,uniqueId:e.uniqueId,blockMargin:e.blockMargin,blockMarginTablet:e.blockMarginTablet,blockMarginMobile:e.blockMarginMobile,blockMarginUnit:e.blockMarginUnit,blockMarginUnitTablet:e.blockMarginUnitTablet,blockMarginUnitMobile:e.blockMarginUnitMobile}))),{isLastBlock:o,parentBlock:a,isGroupBlock:l,isRowLayout:r}=(0,he.useSelect)((e=>{const{getBlockOrder:n,getBlockRootClientId:o,getBlock:a}=e("core/block-editor"),l=o(t),r=a(l),i=n(l),s="core/group"===(null==r?void 0:r.name);let c=!1;var d,u;return s&&(c="flex"===(null===(d=r.attributes.layout)||void 0===d?void 0:d.type)&&"nowrap"===(null===(u=r.attributes.layout)||void 0===u?void 0:u.flexWrap)),{parentBlock:r,isLastBlock:i[i.length-1]===t,isGroupBlock:s,isRowLayout:c}}),[t]);return"horizontal"===Pe((e=>e["stackable/innerBlockOrientation"]))||l&&r||o||!n.uniqueId?null:(0,le.applyFilters)("stackable.edit.margin-bottom.enable-handlers",!0,a)?(0,ue.createElement)(Xd,dt({previewSelector:e.previewSelector||(n.uniqueId?`.${Im(n.uniqueId)}`:void 0),attribute:"blockMargin",responsive:"all"},n)):null}));_f.addAttributes=e=>{e.add({attributes:{blockMargin:{stkResponsive:!0,type:"object"}},versionAdded:"3.0.0",versionDeprecated:""})},_f.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o=""}=t;e.addBlockStyles("blockMarginBottom",[{...n,selector:o,styleRule:"marginBottom",attrName:"blockMarginBottom",key:"blockMarginBottom",responsive:"all",format:"%spx"}])};const Ef=e=>gt()({"stk--hide-desktop":e.hideDesktop,"stk--hide-tablet":e.hideTablet,"stk--hide-mobile":e.hideMobile}),Sf=()=>null;Sf.InspectorControls=()=>{const e=He(),{hideDesktop:t,hideTablet:n,hideMobile:o}=Ae((e=>({hideDesktop:e.hideDesktop,hideTablet:e.hideTablet,hideMobile:e.hideMobile})));return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("Responsive",m.i18n),initialOpen:!1},(0,ue.createElement)(Pc,{label:(0,v.__)("Hide on Desktop",m.i18n),checked:t,onChange:t=>e({hideDesktop:t})}),(0,ue.createElement)(Pc,{label:(0,v.__)("Hide on Tablet",m.i18n),checked:n,onChange:t=>e({hideTablet:t})}),(0,ue.createElement)(Pc,{label:(0,v.__)("Hide on Mobile",m.i18n),checked:o,onChange:t=>e({hideMobile:t})}))))},Sf.addAttributes=e=>{e.add({attributes:{hideDesktop:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""})};const xf=()=>m.showProNotice||m.isPro?(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ou,null,(0,ue.createElement)(ll,{title:(0,v.__)("Transform & Transition",m.i18n),id:"transform-transition",isPremiumPanel:!m.isPro},!m.isPro&&(0,ue.createElement)(In,{type:"transforms"}),m.isPro&&(0,le.applyFilters)("stackable.block-component.transform-transition.control",null)))):null;xf.defaultProps={};const Tf=()=>null;Tf.InspectorControls=xf,Tf.addAttributes=e=>{e.add({attributes:{transitionDuration:{type:"number",default:""},transitionOrigin:{type:"string",default:""},transitionFunction:{type:"string",default:""},transform:{type:"string",stkHover:!0,stkResponsive:!0,default:""}},versionAdded:"3.0.0",versionDeprecated:""})},Tf.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,le.doAction)("stackable.block-component.transform.style.addStyles",e,t)};const Bf=wp.escapeHtml,Mf=["none","2px 2px 4px rgba(0, 0, 0, 0.2)","6px 6px 4px rgba(120, 120, 120, 0.2)","2px 4px 5px rgba(0, 0, 0, 0.4)","0px 0px 5px rgba(0, 0, 0, 0.4)","4px 4px 0px rgba(0, 0, 0, 1)","0px 15px 14px rgba(18, 63, 82, 0.3)","25px 10px 14px rgba(18, 63, 82, 0.3)","25px 10px 30px rgba(18, 63, 82, 0.3)","0px 0px 40px rgba(18, 63, 82, 0.6)","0px 0px 62px rgba(71, 73, 79, 1)","0px 0px 100px rgba(71, 73, 79, 1)"],If=[{value:"",title:(0,v.__)("Single",m.i18n)},{value:"gradient",title:(0,v.__)("Gradient",m.i18n)}],Nf=e=>{const{hasAlign:t,hasColor:n,hasTextTag:o,hasTextContent:a,hasRemoveMargins:l,attrNameTemplate:r,isMultiline:i,hasGradient:s,hasTextShadow:c,blockState:u}=e,{getAttribute:p,updateAttributeHandler:h,updateAttributes:g,updateAttribute:b}=qe(r),f=P(r),k=p("text"),[y,w]=(0,ue.useState)(k);(0,ue.useEffect)((()=>{k!==y&&w(k)}),[k]),(0,ue.useEffect)((()=>{let e;return y!==k&&(e=setTimeout((()=>{b("text",y)}),300)),()=>clearTimeout(e)}),[b,y,k]);const C=(0,ue.useCallback)((e=>w((e=>{const t=(new DOMParser).parseFromString(e,"text/html"),n=t.querySelector("parsererror"),o=t.body.innerHTML.trim();return n||o!==e.trim()?(0,Bf.escapeHTML)(e):e})(e))),[]);return(0,ue.createElement)(ue.Fragment,null,(0,le.applyFilters)("stackable.block-component.typography.before",null,e),a&&(0,ue.createElement)(Dn,{label:(0,v.__)("Content",m.i18n),hasPanelModifiedIndicator:!1,isMultiline:i,value:(0,d.unescape)(y),onChange:C,changeDynamicContent:w,isDynamic:!0}),l&&(0,ue.createElement)(Pc,{label:(0,v.__)("Use theme heading margins",m.i18n),attribute:f("useThemeTextMargins")}),o&&(0,ue.createElement)(Ir,{attribute:f("textTag"),hasP:p("hasP")}),(0,ue.createElement)(Kl,{label:(0,v.__)("Typography",m.i18n),popoverLabel:(0,v.__)("Typography",m.i18n),onReset:()=>{g({[W("fontFamily")]:"",[W("fontWeight","desktop",u)]:"",[W("textTransform","desktop",u)]:"",[W("letterSpacing","desktop",u)]:"",[W("letterSpacing","tablet",u)]:"",[W("letterSpacing","mobile",u)]:"",[W("lineHeight","desktop",u)]:"",[W("lineHeight","tablet",u)]:"",[W("lineHeight","mobile",u)]:""})},allowReset:p("fontFamily")||p("fontWeight","desktop",u)||p("textTransform","desktop",u)||p("letterSpacing","desktop",u)||p("letterSpacing","tablet",u)||p("letterSpacing","mobile",u)||p("lineHeight","desktop",u)||p("lineHeight","tablet",u)||p("lineHeight","mobile",u)},(0,ue.createElement)(zo,{label:(0,v.__)("Font Family",m.i18n),onChange:h("fontFamily"),value:p("fontFamily"),placeholder:(0,v.__)("Theme Default",m.i18n),helpTooltip:{video:"typography-family",description:(0,v.__)("Sets the font set to be used for the element",m.i18n)}}),(0,ue.createElement)(so,{label:(0,v.__)("Weight",m.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Normal",m.i18n),value:"normal"},{label:(0,v.__)("Bold",m.i18n),value:"bold"}],attribute:f("fontWeight"),helpTooltip:{video:"typography-weight",title:(0,v.__)("Font weight",m.i18n),description:(0,v.__)("Sets the thinness or thickness of text characters",m.i18n)}}),(0,ue.createElement)(so,{label:(0,v.__)("Transform",m.i18n),options:[{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Uppercase",m.i18n),value:"uppercase"},{label:(0,v.__)("Lowercase",m.i18n),value:"lowercase"},{label:(0,v.__)("Capitalize",m.i18n),value:"capitalize"},{label:(0,v.__)("None",m.i18n),value:"none"}],attribute:f("textTransform"),helpTooltip:{video:"typography-transform",title:(0,v.__)("Transform",m.i18n),description:(0,v.__)("Sets the usage of upper or lower case",m.i18n)}}),(0,ue.createElement)(so,{label:(0,v.__)("Font Style",m.i18n),options:[{label:(0,v.__)("Default",m.i18n),value:""},{label:(0,v.__)("Normal",m.i18n),value:"normal"},{label:(0,v.__)("Italic",m.i18n),value:"italic"},{label:(0,v.__)("Oblique",m.i18n),value:"oblique"}],attribute:f("fontStyle")}),(0,ue.createElement)(ro,{label:(0,v.__)("Line-Height",m.i18n),attribute:f("lineHeight"),units:["px","em","rem"],min:[1,.1],sliderMax:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,initialPosition:[37,1.8],responsive:"all",helpTooltip:{video:"typography-line-height",title:(0,v.__)("Line height",m.i18n),description:(0,v.__)("Sets the vertical distance between lines of text",m.i18n)}}),(0,ue.createElement)(ro,{label:(0,v.__)("Letter Spacing",m.i18n),attribute:f("letterSpacing"),min:-5,sliderMax:10,step:.1,allowReset:!0,placeholder:"0",responsive:"all",helpTooltip:{video:"typography-letter-spacing",title:(0,v.__)("Letter spacing",m.i18n),description:(0,v.__)("Sets the distance or space between letters",m.i18n)}})),(0,ue.createElement)(ro,{label:(0,v.__)("Size",m.i18n),allowReset:!0,attribute:f("fontSize"),units:["px","em","rem"],min:[0,0],sliderMax:[150,7],step:[1,.05],placeholder:e.sizePlaceholder,responsive:"all",helpTooltip:{title:(0,v.__)("Font size",m.i18n),description:(0,v.__)("Sets the size of text characters",m.i18n)}}),n&&(0,ue.createElement)(ue.Fragment,null,s&&(0,ue.createElement)(Ao,{controls:If,isSmall:!0,attribute:f("textColorType")}),(0,ue.createElement)(Cn,{label:(0,v.__)("Text Color",m.i18n),attribute:f("textColor1"),hover:(!s||"gradient"!==p("textColorType"))&&"all",isGradient:"gradient"===p("textColorType")}),(0,le.applyFilters)("stackable.block-component.typography.color.after",null,e)),c&&(0,ue.createElement)(td,{isFilter:!0,label:(0,v.__)("Shadow / Outline",m.i18n),attribute:f("textShadow"),options:Mf,placeholder:"",hover:"all",hasInset:!1}),t&&(0,ue.createElement)(Hr,{label:(0,v.__)("Align",m.i18n),attribute:f("textAlign"),responsive:"all"}))};Nf.defaultProps={hasAlign:!1,hasColor:!0,hasTextTag:!0,hasTextContent:!0,hasRemoveMargins:!1,attrNameTemplate:"%s",isMultiline:!1,hasGradient:!0,hasTextShadow:!1,blockState:"normal"};const Rf=(0,ue.memo)((e=>{const{hasAlign:t,hasColor:n,hasTextTag:o,hasTextContent:a,hasRemoveMargins:l,attrNameTemplate:r,isMultiline:i,initialOpen:s,hasGradient:c,hasToggle:d,label:u,hasTextShadow:p,blockState:h}=e,{getAttribute:g,updateAttributeHandler:m}=qe(r);return(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,dt({title:u,initialOpen:s,hasToggle:d},d?{checked:g("%s"!==r?"show":"showText"),onChange:m("%s"!==r?"show":"showText")}:{},{id:"text"}),(0,ue.createElement)(Nf,{hasAlign:t,hasColor:n,hasTextTag:o,hasTextContent:a,hasRemoveMargins:l,attrNameTemplate:r,isMultiline:i,hasGradient:c,hasTextShadow:p,blockState:h})))}));Rf.defaultProps={hasAlign:!1,hasColor:!0,hasTextTag:!0,hasTextContent:!0,attrNameTemplate:"%s",isMultiline:!1,initialOpen:!0,hasGradient:!0,hasRemoveMargins:!1,label:(0,v.__)("Typography",m.i18n),sizePlaceholder:"32",hasTextShadow:!1},Rf.Controls=Nf;const Af=(e,t)=>{const{attrNameTemplate:n="%s"}=t;e.add({attributes:{textColor2:{type:"string",default:""},textGradientDirection:{type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.12.0",attrNameTemplate:n})},Hf={isEligible:e=>t=>{const n=P(e),o=e=>t[n(e)];return"gradient"===o("textColorType")&&o("textColor2")},migrate:e=>t=>{const n=P(e),o=e=>t[n(e)],a={...t,[n("textColor2")]:void 0,[n("textGradientDirection")]:void 0};if("gradient"===o("textColorType")&&o("textColor2")){const e=o("textColor1")||o("textColor2"),t=o("textColor2")||o("textColor1"),l=o("textGradientDirection")||0===o("textGradientDirection")?o("textGradientDirection"):180;a[n("textColor1")]=`linear-gradient(${l}deg, ${e} 0%, ${t} 100%)`}return a}},Pf={isEligible:e=>t=>{const n=P(e),o=e=>t[n(e)];return!!(o("textShadow")||o("textShadowHover")||o("textShadowParentHover"))},migrate:e=>t=>{const n=P(e),o=e=>t[n(e)],a={...t},l=o("textShadow"),r=o("textShadowHover")||l,i=o("textShadowParentHover")||r;if(o("textShadow")&&-1!==o("textShadow").indexOf("rgba")){const{options:e,color:t}=ce(r),o=de(t);a[n("textShadow")]=`${e} ${o}`}if(o("textShadowHover")&&-1!==o("textShadowHover").indexOf("rgba")){const{options:e,color:t}=ce(r),o=de(t);a[n("textShadowHover")]=`${e} ${o}`}if(o("textShadowParentHover")&&-1!==o("textShadowParentHover").indexOf("rgba")){const{options:e,color:t}=ce(i),o=de(t);a[n("textShadowParentHover")]=`${e} ${o}`}return a}},Of={fontSize:{stkResponsive:!0,type:"number",default:"",stkUnits:"px"},lineHeight:{stkResponsive:!0,type:"number",default:"",stkUnits:"em"},fontFamily:{type:"string",default:""},fontStyle:{type:"string",default:""},fontWeight:{type:"string",default:""},textTransform:{type:"string",default:""},letterSpacing:{stkResponsive:!0,type:"number",default:""},textColorType:{type:"string",default:""},textColorClass:{type:"string",default:""},textColor1:{type:"string",stkHover:!0,default:""},textShadow:{stkHover:!0,type:"string",default:""},textAlign:{stkResponsive:!0,type:"string",default:""},hasP:{type:"boolean",default:!1}},zf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";const n=P(t);return gt()({"stk--is-gradient":"gradient"===e[n("textColorType")],[`has-text-align-${e[n("textAlign")]}`]:e[n("textAlign")],[`has-text-align-${e[n("textAlignTablet")]}-tablet`]:e[n("textAlignTablet")],[`has-text-align-${e[n("textAlignMobile")]}-mobile`]:e[n("textAlignMobile")],"has-text-color":!!e[n("textColor1")],[e[n("textColorClass")]]:!!e[n("textColorClass")]})},Lf=(0,ue.memo)((0,ue.forwardRef)(((e,t)=>{const{className:n,attrNameTemplate:o,tagName:a,defaultTag:l,value:r,onChange:i,children:s,editable:c,identifier:d,defaultValue:u,withoutInteractiveFormatting:p=!1,allowedFormats:h=null,enableDebounce:g=!0,...m}=e,v=P(o),b=He(),{textTag:f,text:k,fontFamily:y}=Ae((e=>{const t=P(o);return{textTag:e[t("textTag")],text:e[t("text")],fontFamily:e[t("fontFamily")]}})),w=(null===a?f:a)||l||"p",C=null===r?k:r,_=null===i?e=>b({[v("text")]:e}):i,[E,S]=(0,ue.useState)(C);je(y),(0,ue.useEffect)((()=>{C!==E&&S(C)}),[C]),(0,ue.useEffect)((()=>{let e;return C!==E&&g&&(e=setTimeout((()=>{_(E||u)}),300)),()=>clearTimeout(e)}),[E,_]);const x=An(E);return c?(0,ue.createElement)($e.RichText,dt({identifier:d,className:n,tagName:w,value:x,onChange:e=>{g?S(e):_(e)},ref:t,withoutInteractiveFormatting:p,allowedFormats:h},m),s):(0,ue.createElement)(w,{className:n},x)})));Lf.defaultProps={attrNameTemplate:"%s",tagName:null,defaultTag:"p",value:null,onChange:null,editable:!0,identifier:"text"},Lf.Content=e=>{const{className:t,attrNameTemplate:n,attributes:o,tagName:a,defaultTag:l,value:r,children:i,...s}=e,c=e=>{const t=H(n,e);return o[W(t)]};return(0,ue.createElement)($e.RichText.Content,dt({className:t,tagName:(null===a?c("textTag"):a)||l,value:null===r?c("text"):r},s),i)},Lf.Content.defaultProps={attrNameTemplate:"%s",attributes:{},tagName:null,defaultTag:"p",value:null},Lf.InspectorControls=Rf,Lf.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".stk-content",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{hasTextTag:o=!0,hasTextContent:a=!0,defaultTextTag:l="p",attrNameTemplate:r="%s",multiline:i,defaultText:s="",multilineWrapperTags:c}=n;Af(e,n),e.add({attributes:{...Of,...a?{showText:{type:"boolean",default:!0},text:{source:"html",selector:t,multiline:i,default:s,__unstableMultilineWrapperTags:c}}:{},...o?{textTag:{type:"string",default:l}}:{}},versionAdded:"3.0.0",versionDeprecated:"",attrNameTemplate:r})},Lf.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",editSelector:a="",saveSelector:l="",selectorCallback:r=null,attrNameTemplate:i="%s",inherit:s=!0,inheritMin:c,inheritMax:d=50,hoverSelector:u="",hoverSelectorCallback:p=null,editHoverSelectorCallback:h=null,saveHoverSelectorCallback:g=null,dependencies:m=[]}=t;e.addBlockStyles("textShadow",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textShadow",attrName:"textShadow",key:"textShadow",hover:"all",hoverSelector:u,hoverSelectorCallback:h||p},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textShadow",attrName:"textShadow",key:"textShadow",hover:"all",hoverSelector:u,hoverSelectorCallback:g||p}]),e.addBlockStyles("fontSize",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontSize",attrName:"fontSize",key:"fontSize",hasUnits:"px",responsive:"all",clampCallback:(e,t,n,o)=>{const a=t("fontSize",n,o),l="mobile"===n;let r=e;const i=s&&ug(e,{min:c,max:d});if(l){r=s&&ug(t("fontSize","desktop",o),{min:c,max:d})||r}return r=i||r,r=void 0!==a&&""!==a?a:l?void 0:r,r},dependencies:["fontSizeUnit","fontSize",...m]},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontSize",attrName:"fontSize",key:"fontSize",hasUnits:"px",responsive:"all",clampCallback:(e,t,n,o)=>{const a=t("fontSize",n,o),l="mobile"===n;let r=e;const i=s&&ug(e,{min:c,max:d});if(l){r=s&&ug(t("fontSize","desktop",o),{min:c,max:d})||r}return r=i||r,r=void 0!==a&&""!==a?a:l?void 0:r,r},dependencies:["fontSizeUnit","fontSize",...m]}]),e.addBlockStyles("textColor1",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRuleCallback:e=>"gradient"===e("textColorType")?"backgroundImage":"color",hover:"all",hoverSelector:u,hoverSelectorCallback:h||p,attrName:"textColor1",key:"textColor1-color",valuePreCallback:(e,t,n,o)=>e||"gradient"!==t("textColorType","desktop",o)?e:"currentColor",valueCallback:(e,t)=>{const n=t("textColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["textColorType",...m]},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRuleCallback:e=>"gradient"===e("textColorType")?"backgroundImage":"color",hover:"all",hoverSelector:u,hoverSelectorCallback:g||p,attrName:"textColor1",key:"textColor1-color",valuePreCallback:(e,t,n,o)=>e||"gradient"!==t("textColorType","desktop",o)?e:"currentColor",valueCallback:(e,t)=>{const n=t("textColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["textColorType",...m]}]),e.addBlockStyles("lineHeight",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"lineHeight",attrName:"lineHeight",key:"lineHeight",responsive:"all",hasUnits:"em",dependencies:m},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"lineHeight",attrName:"lineHeight",key:"lineHeight",responsive:"all",hasUnits:"em",dependencies:m}]),e.addBlockStyles("fontWeight",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontWeight",attrName:"fontWeight",key:"fontWeight",dependencies:m},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontWeight",attrName:"fontWeight",key:"fontWeight",dependencies:m}]),e.addBlockStyles("textTransform",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textTransform",attrName:"textTransform",key:"textTransform",dependencies:m},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textTransform",attrName:"textTransform",key:"textTransform",dependencies:m}]),e.addBlockStyles("fontStyle",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontStyle",attrName:"fontStyle",key:"fontStyle",dependencies:m},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontStyle",attrName:"fontStyle",key:"fontStyle",dependencies:m}]),e.addBlockStyles("fontFamily",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontFamily",attrName:"fontFamily",key:"fontFamily",valueCallback:e=>x(e),dependencies:m},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontFamily",attrName:"fontFamily",key:"fontFamily",valueCallback:e=>x(e),dependencies:m}]),e.addBlockStyles("letterSpacing",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"letterSpacing",attrName:"letterSpacing",key:"letterSpacing",format:"%spx",responsive:"all",dependencies:m},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"letterSpacing",attrName:"letterSpacing",key:"letterSpacing",format:"%spx",responsive:"all",dependencies:m}])};const $f=[{value:"",title:(0,v.__)("Single",m.i18n)},{value:"gradient",title:(0,v.__)("Gradient",m.i18n)}],Df=e=>{let{attrNameTemplate:t,isCircle:n}=e;const{getAttribute:o,updateAttributes:a}=qe(t),l="gradient"===o("progressColorType"),r=o("progressMax")||100;return(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(nu,null,(0,ue.createElement)(ll,{title:n?(0,v.__)("Progress Circle",m.i18n):(0,v.__)("Progress Bar",m.i18n),initialOpen:!0},(0,ue.createElement)(ro,{label:(0,v.__)("Progress",m.i18n),attribute:"progressValue",min:"0",max:r,sliderMax:r,step:r<=1?.01:.1,placeholder:50,isDynamic:!0}),(0,ue.createElement)(ro,{label:(0,v.__)("Maximum Progress",m.i18n),attribute:"progressMax",min:"0",sliderMax:"100",step:"1",placeholder:100}),!n&&(0,ue.createElement)(ro,{label:(0,v.__)("Width",m.i18n),attribute:"progressWidth",responsive:"all",units:["%","px","vw"],min:[0,0,0],sliderMax:[100,1e3,100],step:"1",placeholder:100}),(0,ue.createElement)(ro,{label:n?(0,v.__)("Size",m.i18n):(0,v.__)("Height",m.i18n),responsive:!!n&&"all",attribute:"progressSize",min:"0",sliderMin:n?50:8,sliderMax:n?300:50,step:"1",placeholder:n?150:32}),!n&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(ro,{label:(0,v.__)("Border Radius",m.i18n),attribute:"progressBorderRadius",allowReset:!0,min:"0",units:["px","%","rem"],step:"1",sliderMax:"25",changeCallback:e=>(e||a({progressApplyBarRadius:!1}),e)}),o("progressBorderRadius")?(0,ue.createElement)(Pc,{label:(0,v.__)("Apply border radius to bar",m.i18n),attribute:"progressApplyBarRadius",defaultValue:!1}):null),n&&(0,ue.createElement)(ro,{label:(0,v.__)("Thickness",m.i18n),responsive:"all",attribute:"progressThickness",min:"0",sliderMin:"1",sliderMax:"30",step:"1",placeholder:8}),(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Ao,{controls:$f,isSmall:!0,attribute:"progressColorType"}),(0,ue.createElement)(Cn,{label:l?(0,v.sprintf)((0,v.__)("Bar Color #%s",m.i18n),1):(0,v.__)("Bar Color",m.i18n),attribute:"progressColor1"}),l&&(0,ue.createElement)(ue.Fragment,null,(0,ue.createElement)(Cn,{label:(0,v.sprintf)((0,v.__)("Bar Color #%s",m.i18n),2),attribute:"progressColor2"}),n&&(0,ue.createElement)(ro,{label:(0,v.__)("Gradient Direction (degrees)",m.i18n),attribute:"progressColorGradientDirection",min:0,max:360,step:10,allowReset:!0})),l&&!n&&(0,ue.createElement)(Kl,{label:(0,v.__)("Adv. Gradient Color Settings",m.i18n),onReset:()=>{a({progressColorGradientDirection:"",progressColorGradientBlendMode:"",progressColorGradientLocation1:"",progressColorGradientLocation2:""})},allowReset:""!==o("progressColorGradientDirection")&&90!==o("progressColorGradientDirection")||""!==o("progressColorGradientLocation1")&&0!==o("progressColorGradientLocation1")||""!==o("progressColorGradientLocation2")&&100!==o("progressColorGradientLocation2")||o("progressColorGradientBlendMode")},(0,ue.createElement)(ro,{label:(0,v.__)("Gradient Direction (degrees)",m.i18n),attribute:"progressColorGradientDirection",min:0,max:360,step:10,allowReset:!0,placeholder:"90",helpTooltip:{title:(0,v.__)("Gradient Direction",m.i18n),description:(0,v.__)("Sets the direction (in degrees) of the colors",m.i18n)}}),(0,ue.createElement)(ro,{label:(0,v.sprintf)((0,v.__)("Color %d Location",m.i18n),1),attribute:"progressColorGradientLocation1",sliderMin:0,max:100,step:1,allowReset:!0,placeholder:"0",helpTooltip:{video:"gradient-location",description:(0,v.__)("Sets the placement of each color in relation to the other color",m.i18n)}}),(0,ue.createElement)(ro,{label:(0,v.sprintf)((0,v.__)("Color %d Location",m.i18n),2),attribute:"progressColorGradientLocation2",sliderMin:0,max:100,step:1,allowReset:!0,placeholder:"100",helpTooltip:{video:"gradient-location",description:(0,v.__)("Sets the placement of each color in relation to the other color",m.i18n)}}),(0,ue.createElement)(jn,{label:(0,v.__)("Background Gradient Blend Mode",m.i18n),attribute:"progressColorGradientBlendMode",helpTooltip:{video:"background-blend-mode",description:(0,v.__)("Sets how this background gradient/image blends into the other background",m.i18n)}}))),(0,ue.createElement)(Cn,{label:(0,v.__)("Background Color",m.i18n),attribute:"progressBackgroundColor"}),n&&(0,ue.createElement)(Pc,{label:(0,v.__)("Rounded",m.i18n),attribute:"progressRounded"}),(0,ue.createElement)(Pc,{label:(0,v.__)("Animate",m.i18n),attribute:"progressAnimate",defaultValue:!0}),(0,ue.createElement)(Dn,{label:(0,v.__)("Accessibility Label",m.i18n),attribute:"progressAriaValueText"}))))};Df.defaulProps={isCircle:!1,attrNameTemplate:"%s"},(0,le.addFilter)("stackable.block-component.typography.before","stackable/progress-blocks",(e=>{const{name:t}=(0,$e.useBlockEditContext)();return["stackable/progress-bar","stackable/progress-circle"].includes(t)?(0,ue.createElement)(ue.Fragment,null,"stackable/progress-bar"===t&&(0,ue.createElement)(Dn,{label:(0,v.__)("Progress Bar Text",m.i18n),attribute:"text",isDynamic:!0}),(0,ue.createElement)(Dn,{label:(0,v.__)("Progress Prefix",m.i18n),attribute:"progressValuePrefix"}),(0,ue.createElement)(Dn,{label:(0,v.__)("Progress Suffix",m.i18n),attribute:"progressValueSuffix"})):e}));const Ff=()=>(0,ue.createElement)("div",null);Ff.InspectorControls=Df,Ff.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.4.5",versionDeprecated:""},{isCircle:o=!1,dependencies:a=[]}=t,l=o?".stk-progress-circle":".stk-progress-bar";e.addBlockStyles("progressMax",[{...n,selector:l,styleRule:"--progress-max",attrName:"progressMax",key:"progressMax"}]),e.addBlockStyles("progressValue",[{...n,selector:l,renderIn:"save",styleRule:"--progress-value",attrName:"progressValue",key:"progressValue",format:o?void 0:"%s%"}]),e.addBlockStyles("progressColor1",[{...n,renderCondition:()=>!o,selector:l,styleRule:"--progress-color-1",attrName:"progressColor1",key:"progressColor1-bar",dependencies:["progressColorType","progressColor2",...a]},{...n,renderCondition:()=>o,selector:l,styleRule:"--progress-color-1",attrName:"progressColor1",key:"progressColor1-circle",dependencies:["progressColorType","progressColor2",...a],renderIn:"save",valuePreCallback:(e,t)=>"gradient"===t("progressColorType")?`url(#gradient-${t("uniqueId")})`:e}]),e.addBlockStyles("progressBackgroundColor",[{...n,selector:l,styleRule:"--progress-background",attrName:"progressBackgroundColor",key:"progressBackgroundColor"}]),e.addBlockStyles("progressSize",[{...n,selector:l,responsive:"all",styleRule:"--progress-size",attrName:"progressSize",key:"progressSize",format:"%spx"}]),o&&(e.addBlockStyles("progressColor1",[{...n,selector:l,renderIn:"edit",styleRule:"--progress-color-1",attrName:"progressColor1",key:"progressColor1-circle-var",valuePreCallback:(e,t)=>"gradient"===t("progressColorType")?`url(#gradient-${((t("progressColor1")||"-")+(t("progressColor2")||"-")+(t("progressColorGradientDirection")||"")).replace(/[^0-9A-Z]+/gi,"")})`:e,dependencies:["progressColorType","progressColor2","progressColorGradientDirection",...a]}]),e.addBlockStyles("progressRounded",[{...n,selector:l,styleRule:"--progress-rounded",attrName:"progressRounded",key:"progressRounded",valuePreCallback:e=>{if("string"!=typeof e&&!1!==e)return"round"}}]),e.addBlockStyles("progressThickness",[{...n,selector:l,responsive:"all",styleRule:"--progress-thickness",attrName:"progressThickness",key:"progressThickness",format:"%spx"}])),o||(e.addBlockStyles("progressWidth",[{...n,selector:l,styleRule:"--progress-bar-width",attrName:"progressWidth",key:"progressWidth",hasUnits:"%",responsive:"all",dependencies:["progressWidthUnit",...a]}]),e.addBlockStyles("progressBorderRadius",[{...n,selector:l,styleRule:"--progress-border-radius",attrName:"progressBorderRadius",key:"progressBorderRadius",hasUnits:"px"}]),e.addBlockStyles("progressApplyBarRadius",[{...n,selector:l,styleRule:"--progress-bar-border-radius",attrName:"progressApplyBarRadius",key:"progressApplyBarRadius",valuePreCallback:(e,t)=>{const n=t("progressBorderRadius");return e?n:void 0},format:"%spx",dependencies:["progressBorderRadius",...a]}]),e.addBlockStyles("progressColorGradientBlendMode",[{...n,selector:".stk-progress-bar__bar.stk--has-background-overlay:before",styleRule:"mixBlendMode",attrName:"progressColorGradientBlendMode",key:"progressColorGradientBlendMode",enabledCallback:e=>"gradient"===e("progressColorType"),dependencies:["progressColorType",...a]}]),e.addBlockStyles("progressColor1",[{...n,selector:".stk-progress-bar__bar.stk--has-background-overlay:before",styleRule:"backgroundImage",attrName:"progressColor1",key:"progressColor1-overlay",enabledCallback:e=>"gradient"===e("progressColorType"),valueCallback:(e,t)=>{if(!t("progressColor2"))return;const n=re(t("progressColor2")||"#ffffff",0),o=re(t("progressColor1")||"#3498db",0),a=`${t("progressColorGradientLocation1")||"0"}%`,l=`${t("progressColorGradientLocation2")||"100"}%`,r=t("progressColorGradientDirection");return`linear-gradient(${"string"==typeof r?"90deg":`${r}deg`}, ${t("progressColor1")||n} ${a}, ${t("progressColor2")||o} ${l})`},dependencies:["progressColorType","progressColor1","progressColor2","progressColorGradientLocation1","progressColorGradientLocation2","progressColorGradientDirection",...a]}]))},Ff.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.add({attributes:{progressValue:{type:"string",default:""},progressSize:{stkResponsive:t,type:"number",default:""},progressAnimate:{type:"boolean",default:!0},progressAriaValueText:{type:"string",default:""},progressColorType:{type:"string",default:""},progressColor1:{type:"string",default:""},progressColor2:{type:"string",default:""},progressColorGradientDirection:{type:"number",default:""},progressBackgroundColor:{type:"string",default:""},progressValuePrefix:{type:"string",default:""},progressValueSuffix:{type:"string",default:""},progressMax:{type:"number",default:""},...t?{progressThickness:{stkResponsive:!0,type:"number",default:""},progressRounded:{type:"boolean",default:""}}:{progressWidth:{stkResponsive:!0,type:"number",default:"",stkUnits:"%"},progressBorderRadius:{type:"number",default:"",stkUnits:"px"},progressApplyBarRadius:{type:"boolean",default:""},progressColorGradientLocation1:{type:"number",default:""},progressColorGradientLocation2:{type:"number",default:""},progressColorGradientBlendMode:{type:"string",default:""}}},versionAdded:"3.4.5",versionDeprecated:""})}},1991:(e,t)=>{var n;!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var n=t.length,o=0;o<n;++o)a(e,t[o])}e.prototype=Object.create(null);var n={}.hasOwnProperty,o=/\s+/;function a(e,a){if(a){var l=typeof a;"string"===l?function(e,t){for(var n=t.split(o),a=n.length,l=0;l<a;++l)e[n[l]]=!0}(e,a):Array.isArray(a)?t(e,a):"object"===l?function(e,t){if(t.toString===Object.prototype.toString)for(var o in t)n.call(t,o)&&(e[o]=!!t[o]);else e[t.toString()]=!0}(e,a):"number"===l&&function(e,t){e[t]=!0}(e,a)}}return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];var l=new e;t(l,o);var r=[];for(var i in l)l[i]&&r.push(i);return r.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var r=a.apply(null,n);r&&e.push(r)}}else if("object"===l)if(n.toString===Object.prototype.toString)for(var i in n)o.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},8874:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5985:(e,t,n)=>{"use strict";var o=n(2409);e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,o,a,l,r=e[0]/360,i=e[1]/100,s=e[2]/100;if(0===i)return[l=255*s,l,l];t=2*s-(n=s<.5?s*(1+i):s+i-s*i),a=[0,0,0];for(var c=0;c<3;c++)(o=r+1/3*-(c-1))<0?o++:o>1&&o--,l=6*o<1?t+6*(n-t)*o:2*o<1?n:3*o<2?t+(n-t)*(2/3-o)*6:t,a[c]=255*l;return a}},o.hsl=function(e){var t,n,o=e[0]/255,a=e[1]/255,l=e[2]/255,r=Math.min(o,a,l),i=Math.max(o,a,l),s=i-r;return i===r?t=0:o===i?t=(a-l)/s:a===i?t=2+(l-o)/s:l===i&&(t=4+(o-a)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(r+i)/2,[t,100*(i===r?0:n<=.5?s/(i+r):s/(2-i-r)),100*n]}},2409:e=>{"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},4247:function(e,t){var n,o;void 0===(o="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,o=e.replace(/^v/,"").replace(/\+.*$/,""),a=(n="-",-1===(t=o).indexOf(n)?t.length:t.indexOf(n)),l=o.substring(0,a).split(".");return l.push(o.substring(a+1)),l}function n(e){return isNaN(Number(e))?e:Number(e)}function o(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function a(e,a){[e,a].forEach(o);for(var l=t(e),r=t(a),i=0;i<Math.max(l.length-1,r.length-1);i++){var s=parseInt(l[i]||0,10),c=parseInt(r[i]||0,10);if(s>c)return 1;if(c>s)return-1}var d=l[l.length-1],u=r[r.length-1];if(d&&u){var p=d.split(".").map(n),h=u.split(".").map(n);for(i=0;i<Math.max(p.length,h.length);i++){if(void 0===p[i]||"string"==typeof h[i]&&"number"==typeof p[i])return-1;if(void 0===h[i]||"string"==typeof p[i]&&"number"==typeof h[i])return 1;if(p[i]>h[i])return 1;if(h[i]>p[i])return-1}}else if(d||u)return d?-1:1;return 0}var l=[">",">=","=","<","<="],r={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return a.validate=function(t){return"string"==typeof t&&e.test(t)},a.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===l.indexOf(e))throw new TypeError("Invalid operator, expected one of "+l.join("|"))}(n);var o=a(e,t);return r[n].indexOf(o)>-1},a})?n.apply(t,[]):n)||(e.exports=o)},4863:function(e){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?r((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,o){return e.concat(t).map((function(e){return n(e,o)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t,o){var l={};return o.isMergeableObject(e)&&a(e).forEach((function(t){l[t]=n(e[t],o)})),a(t).forEach((function(a){o.isMergeableObject(t[a])&&e[a]?l[a]=function(e,t){if(!t.customMerge)return r;var n=t.customMerge(e);return"function"==typeof n?n:r}(a,o)(e[a],t[a],o):l[a]=n(t[a],o)})),l}function r(t,a,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||e;var i=Array.isArray(a);return i===Array.isArray(t)?i?r.arrayMerge(t,a,r):l(t,a,r):n(a,r)}return r.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return r(e,n,t)}),{})},r}()},4063:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,a,l;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(l=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=o;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,l[a]))return!1;for(a=o;0!=a--;){var r=l[a];if(!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}},1143:e=>{"use strict";e.exports=function(e,t,n,o,a,l,r,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,l,r,i],d=0;(s=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},4017:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}},6537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7193);t.default=o.isDarkColor,e.exports=t.default},7193:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDarkColor=void 0;var o=n(4017);t.isDarkColor=function(e,t){if(t&&t.override){var n=Object.keys(t.override).find((function(t){return t.toLowerCase()===e.toLowerCase()}));if(void 0!==n)return t.override[n]}var a=(0,o.hexToRgb)(e),l=[a.r/255,a.g/255,a.b/255].map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*l[0]+.7152*l[1]+.0722*l[2]<=.179}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,l){for(var r,i,s=a(e),c=1;c<arguments.length;c++){for(var d in r=Object(arguments[c]))n.call(r,d)&&(s[d]=r[d]);if(t){i=t(r);for(var u=0;u<i.length;u++)o.call(r,i[u])&&(s[i[u]]=r[i[u]])}}return s}},2703:(e,t,n)=>{"use strict";var o=n(414);function a(){}function l(){}l.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,l,r){if(r!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8394:(e,t,n)=>{"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=u(l),i=u(n(5697)),s=u(n(1444)),c=u(n(8497)),d=n(7581);function u(e){return e&&e.__esModule?e:{default:e}}var p=function(){return!0},h=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return g.call(o),o.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},o.justPressedUpDown=!1,o.justMouseEntered=!1,o.pressedSuggestion=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,s.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,a=n.onSuggestionHighlighted,l=n.highlightFirstSuggestion;if(!(0,s.default)(o,e.suggestions)&&o.length>0&&l)this.highlightFirstSuggestion();else if(a){var r=this.getHighlightedSuggestion();r!=t.highlightedSuggestion&&a({suggestion:r})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState((function(a){var l=a.valueBeforeUpDown;return null===t?l=null:null===l&&void 0!==n&&(l=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:l}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,a=n.multiSection,l=n.getSectionSuggestions;return a?l(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,a=o.value,l=o.onChange;t!==a&&l(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,o=e.shouldRenderSuggestions,a=n.value;return t.length>0&&o(a)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,a=t.renderInputComponent,l=t.onSuggestionsFetchRequested,i=t.renderSuggestion,s=t.inputProps,u=t.multiSection,h=t.renderSectionTitle,g=t.id,m=t.getSectionSuggestions,v=t.theme,b=t.getSuggestionValue,f=t.alwaysRenderSuggestions,k=t.highlightFirstSuggestion,y=this.state,w=y.isFocused,C=y.isCollapsed,_=y.highlightedSectionIndex,E=y.highlightedSuggestionIndex,S=y.valueBeforeUpDown,x=f?p:this.props.shouldRenderSuggestions,T=s.value,B=s.onFocus,M=s.onKeyDown,I=this.willRenderSuggestions(this.props),N=f||w&&!C&&I,R=N?n:[],A=o({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=x(T);e.setState({isFocused:!0,isCollapsed:!n}),B&&B(t),n&&l({value:T,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,a=x(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(o({},k?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!a})),a?l({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var a=t.keyCode;switch(a){case 40:case 38:if(C)x(T)&&(l({value:T,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var r,i=o.newHighlightedSectionIndex,s=o.newHighlightedItemIndex;r=null===s?null===S?T:S:e.getSuggestionValueByIndex(i,s),e.updateHighlightedSuggestion(i,s,T),e.maybeCallOnChange(t,r,40===a?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var c=e.getHighlightedSuggestion();if(N&&!f&&e.closeSuggestions(),null!=c){var d=b(c);e.maybeCallOnChange(t,d,"enter"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:d,suggestionIndex:E,sectionIndex:_,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:N&&t.preventDefault();var u=N&&!f;null===S?u||(e.maybeCallOnChange(t,"","escape"),x("")?l({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,S,"escape"),u?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}M&&M(t)}}),H={query:this.getQuery()};return r.default.createElement(c.default,{multiSection:u,items:R,renderInputComponent:a,renderItemsContainer:this.renderSuggestionsContainer,renderItem:i,renderItemData:H,renderSectionTitle:h,getSectionItems:m,highlightedSectionIndex:_,highlightedItemIndex:E,inputProps:A,itemProps:this.itemProps,theme:(0,d.mapToAutowhateverTheme)(v),id:g,ref:this.storeAutowhateverRef})}}]),t}(l.Component);h.propTypes={suggestions:i.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:i.default.func,onSuggestionHighlighted:i.default.func,renderInputComponent:i.default.func,renderSuggestionsContainer:i.default.func,getSuggestionValue:i.default.func.isRequired,renderSuggestion:i.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:i.default.func,alwaysRenderSuggestions:i.default.bool,multiSection:i.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:i.default.bool,highlightFirstSuggestion:i.default.bool,theme:i.default.object,id:i.default.string},h.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:d.defaultTheme,id:"1"};var g=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var o=n.sectionIndex,a=n.itemIndex;e.updateHighlightedSuggestion(o,a),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var o=e.props,a=o.alwaysRenderSuggestions,l=o.onSuggestionSelected,r=o.onSuggestionsFetchRequested;l&&l(t,n),a?r({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,o=n.alwaysRenderSuggestions,a=n.focusInputOnSuggestionClick,l=e.getSuggestionIndices(e.findSuggestionElement(t.target)),r=l.sectionIndex,i=l.suggestionIndex,s=e.getSuggestion(r,i),c=e.props.getSuggestionValue(s);e.maybeCallOnChange(t,c,"click"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:c,suggestionIndex:i,sectionIndex:r,method:"click"}),o||e.closeSuggestions(),!0===a?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,o=t.shouldRenderSuggestions,a=n.value,l=n.onBlur,r=e.getHighlightedSuggestion(),i=o(a);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!i}),l&&l(e.blurEvent,{highlightedSuggestion:r})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,o=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:o,query:e.getQuery()})}};t.default=h},8808:(e,t,n)=>{"use strict";e.exports=n(8394).default},7581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},6514:(e,t,n)=>{"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=p(l),i=p(n(5697)),s=p(n(2383)),c=p(n(8379)),d=p(n(1560)),u=p(n(7489));function p(e){return e&&e.__esModule?e:{default:e}}var h={},g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,o=t.inputProps,a=t.highlightedSectionIndex,l=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var r="ArrowDown"===e.key?"next":"prev",i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.sectionIterator[r]([a,l]),2),s=i[0],c=i[1];o.onKeyDown(e,{newHighlightedSectionIndex:s,newHighlightedItemIndex:c});break;default:o.onKeyDown(e,{highlightedSectionIndex:a,highlightedItemIndex:l})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,s.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,c.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,o=n.id,a=n.items,l=n.renderItem,i=n.renderItemData,s=n.renderSectionTitle,c=n.highlightedSectionIndex,p=n.highlightedItemIndex,h=n.itemProps;return a.map((function(n,a){var g="react-autowhatever-"+o+"-",m=g+"section-"+a+"-",v=0===a;return r.default.createElement("div",t(m+"container","sectionContainer",v&&"sectionContainerFirst"),r.default.createElement(d.default,{section:n,renderSectionTitle:s,theme:t,sectionKeyPrefix:m}),r.default.createElement(u.default,{items:e.sectionsItems[a],itemProps:h,renderItem:l,renderItemData:i,sectionIndex:a,highlightedItemIndex:c===a?p:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:g,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,o=n.id,a=n.renderItem,l=n.renderItemData,i=n.highlightedSectionIndex,s=n.highlightedItemIndex,c=n.itemProps;return r.default.createElement(u.default,{items:e,itemProps:c,renderItem:a,renderItemData:l,highlightedItemIndex:null===i?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+o+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,a=t.multiSection,l=t.renderInputComponent,i=t.renderItemsContainer,s=t.highlightedSectionIndex,c=t.highlightedItemIndex,d=this.state.isInputFocused,u=a?this.renderSections():this.renderItems(),p=null!==u,h=this.getItemId(s,c),g="react-autowhatever-"+n,m=o({role:"combobox","aria-haspopup":"listbox","aria-owns":g,"aria-expanded":p},e("react-autowhatever-"+n+"-container","container",p&&"containerOpen"),this.props.containerProps),v=l(o({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":g,"aria-activedescendant":h},e("react-autowhatever-"+n+"-input","input",p&&"inputOpen",d&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),b=i({containerProps:o({id:g,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:u});return r.default.createElement("div",m,v,b)}}]),t}(l.Component);g.propTypes={id:i.default.string,multiSection:i.default.bool,renderInputComponent:i.default.func,renderItemsContainer:i.default.func,items:i.default.array.isRequired,renderItem:i.default.func,renderItemData:i.default.object,renderSectionTitle:i.default.func,getSectionItems:i.default.func,containerProps:i.default.object,inputProps:i.default.object,itemProps:i.default.oneOfType([i.default.object,i.default.func]),highlightedSectionIndex:i.default.number,highlightedItemIndex:i.default.number,theme:i.default.oneOfType([i.default.object,i.default.array])},g.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return r.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:h,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:h,inputProps:h,itemProps:h,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=g},6844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=c(l),i=c(n(5697)),s=c(n(3130));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var e,n,o;d(this,t);for(var a=arguments.length,l=Array(a),r=0;r<a;r++)l[r]=arguments[r];return n=o=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.storeItemReference=function(e){null!==e&&(o.item=e)},o.onMouseEnter=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onMouseEnter(e,{sectionIndex:n,itemIndex:a})},o.onMouseLeave=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onMouseLeave(e,{sectionIndex:n,itemIndex:a})},o.onMouseDown=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onMouseDown(e,{sectionIndex:n,itemIndex:a})},o.onClick=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onClick(e,{sectionIndex:n,itemIndex:a})},u(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,a=e.renderItem,l=e.renderItemData,i=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete i.sectionIndex,delete i.itemIndex,"function"==typeof i.onMouseEnter&&(i.onMouseEnter=this.onMouseEnter),"function"==typeof i.onMouseLeave&&(i.onMouseLeave=this.onMouseLeave),"function"==typeof i.onMouseDown&&(i.onMouseDown=this.onMouseDown),"function"==typeof i.onClick&&(i.onClick=this.onClick),r.default.createElement("li",o({role:"option"},i,{ref:this.storeItemReference}),a(n,o({isHighlighted:t},l)))}}]),t}(l.Component);p.propTypes={sectionIndex:i.default.number,isHighlighted:i.default.bool.isRequired,itemIndex:i.default.number.isRequired,item:i.default.any.isRequired,renderItem:i.default.func.isRequired,renderItemData:i.default.object.isRequired,onMouseEnter:i.default.func,onMouseLeave:i.default.func,onMouseDown:i.default.func,onClick:i.default.func},t.default=p},7489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=d(l),i=d(n(5697)),s=d(n(6844)),c=d(n(3130));function d(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var e,n,o;u(this,t);for(var a=arguments.length,l=Array(a),r=0;r<a;r++)l[r]=arguments[r];return n=o=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.storeHighlightedItemReference=function(e){o.props.onHighlightedItemChange(null===e?null:e.item)},p(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,c.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,a=t.itemProps,l=t.renderItem,i=t.renderItemData,c=t.sectionIndex,d=t.highlightedItemIndex,u=t.getItemId,p=t.theme,h=t.keyPrefix,g=null===c?h:h+"section-"+c+"-",m="function"==typeof a;return r.default.createElement("ul",o({role:"listbox"},p(g+"items-list","itemsList")),n.map((function(t,n){var h=0===n,v=n===d,b=g+"item-"+n,f=m?a({sectionIndex:c,itemIndex:n}):a,k=o({id:u(c,n),"aria-selected":v},p(b,"item",h&&"itemFirst",v&&"itemHighlighted"),f);return v&&(k.ref=e.storeHighlightedItemReference),r.default.createElement(s.default,o({},k,{sectionIndex:c,isHighlighted:v,itemIndex:n,item:t,renderItem:l,renderItemData:i}))})))}}]),t}(l.Component);h.propTypes={items:i.default.array.isRequired,itemProps:i.default.oneOfType([i.default.object,i.default.func]),renderItem:i.default.func.isRequired,renderItemData:i.default.object.isRequired,sectionIndex:i.default.number,highlightedItemIndex:i.default.number,onHighlightedItemChange:i.default.func.isRequired,getItemId:i.default.func.isRequired,theme:i.default.func.isRequired,keyPrefix:i.default.string.isRequired},h.defaultProps={sectionIndex:null},t.default=h},1560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(7294),l=s(a),r=s(n(5697)),i=s(n(3130));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,a=e.sectionKeyPrefix,r=n(t);return r?l.default.createElement("div",o(a+"title","sectionTitle"),r):null}}]),t}(a.Component);u.propTypes={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},t.default=u},3130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!0;var r={},i=void 0,s=void 0;for(i=0,s=o.length;i<s;i++)r[o[i]]=!0;for(i=0,s=a.length;i<s;i++){var c=a[i],d=e[c],u=t[c];if(d!==u){if(!r[c]||null===d||null===u||"object"!==(void 0===d?"undefined":n(d))||"object"!==(void 0===u?"undefined":n(u)))return!0;var p=Object.keys(d),h=Object.keys(u);if(p.length!==h.length)return!0;for(var g=0,m=p.length;g<m;g++){var v=p[g];if(d[v]!==u[v])return!0}}}return!1}},8497:(e,t,n)=>{"use strict";e.exports=n(6514).default},5112:function(e,t,n){"use strict";var o,a=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(5697)),i=l(n(7294)),s=function(e){function t(n){var o=e.call(this,n)||this;return o.resetDragging=function(){o.frameDragCounter=0,o.setState({draggingOverFrame:!1,draggingOverTarget:!1})},o.handleWindowDragOverOrDrop=function(e){e.preventDefault()},o.handleFrameDrag=function(e){if(t.eventHasFiles(e))return o.frameDragCounter+="dragenter"===e.type?1:-1,1===o.frameDragCounter?(o.setState({draggingOverFrame:!0}),void(o.props.onFrameDragEnter&&o.props.onFrameDragEnter(e))):0===o.frameDragCounter?(o.setState({draggingOverFrame:!1}),void(o.props.onFrameDragLeave&&o.props.onFrameDragLeave(e))):void 0},o.handleFrameDrop=function(e){o.state.draggingOverTarget||(o.resetDragging(),o.props.onFrameDrop&&o.props.onFrameDrop(e))},o.handleDragOver=function(e){t.eventHasFiles(e)&&(o.setState({draggingOverTarget:!0}),!t.isIE()&&o.props.dropEffect&&(e.dataTransfer.dropEffect=o.props.dropEffect),o.props.onDragOver&&o.props.onDragOver(e))},o.handleDragLeave=function(e){o.setState({draggingOverTarget:!1}),o.props.onDragLeave&&o.props.onDragLeave(e)},o.handleDrop=function(e){if(o.props.onDrop&&t.eventHasFiles(e)){var n=e.dataTransfer?e.dataTransfer.files:null;o.props.onDrop(n,e)}o.resetDragging()},o.handleTargetClick=function(e){o.props.onTargetClick&&o.props.onTargetClick(e),o.resetDragging()},o.stopFrameListeners=function(e){e&&(e.removeEventListener("dragenter",o.handleFrameDrag),e.removeEventListener("dragleave",o.handleFrameDrag),e.removeEventListener("drop",o.handleFrameDrop))},o.startFrameListeners=function(e){e&&(e.addEventListener("dragenter",o.handleFrameDrag),e.addEventListener("dragleave",o.handleFrameDrag),e.addEventListener("drop",o.handleFrameDrop))},o.frameDragCounter=0,o.state={draggingOverFrame:!1,draggingOverTarget:!1},o}return a(t,e),t.prototype.componentDidMount=function(){this.startFrameListeners(this.props.frame),this.resetDragging(),window.addEventListener("dragover",this.handleWindowDragOverOrDrop),window.addEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.componentDidUpdate=function(e){e.frame!==this.props.frame&&(this.resetDragging(),this.stopFrameListeners(e.frame),this.startFrameListeners(this.props.frame))},t.prototype.componentWillUnmount=function(){this.stopFrameListeners(this.props.frame),window.removeEventListener("dragover",this.handleWindowDragOverOrDrop),window.removeEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=e.targetClassName,a=e.draggingOverFrameClassName,l=e.draggingOverTargetClassName,r=this.state,s=r.draggingOverTarget,c=o;return r.draggingOverFrame&&(c+=" "+a),s&&(c+=" "+l),i.default.createElement("div",{className:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},i.default.createElement("div",{className:c,onClick:this.handleTargetClick},t))},t.isIE=function(){return"undefined"!=typeof window&&(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>0)},t.eventHasFiles=function(e){var t=!1;if(e.dataTransfer){var n=e.dataTransfer.types;for(var o in n)if("Files"===n[o]){t=!0;break}}return t},t.propTypes={className:r.default.string,targetClassName:r.default.string,draggingOverFrameClassName:r.default.string,draggingOverTargetClassName:r.default.string,onDragOver:r.default.func,onDragLeave:r.default.func,onDrop:r.default.func,onTargetClick:r.default.func,dropEffect:r.default.oneOf(["copy","move","link","none"]),frame:function(e,t,n){var o=e[t];return null==o?new Error("Warning: Required prop `"+t+"` was not specified in `"+n+"`"):o===document||o instanceof HTMLElement?void 0:new Error("Warning: Prop `"+t+"` must be one of the following: document, HTMLElement!")},onFrameDragEnter:r.default.func,onFrameDragLeave:r.default.func,onFrameDrop:r.default.func},t.defaultProps={dropEffect:"copy",frame:"undefined"==typeof window?void 0:window.document,className:"file-drop",targetClassName:"file-drop-target",draggingOverFrameClassName:"file-drop-dragging-over-frame",draggingOverTargetClassName:"file-drop-dragging-over-target"},t}(i.default.PureComponent);t.FileDrop=s},8379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a,l=(a=n(1894))&&a.__esModule?a:{default:a},r=function(e){return e};t.default=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(Array.isArray(e)&&2===e.length?e:[e,null],2),n=t[0],a=t[1];return function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];var c=i.map((function(e){return n[e]})).filter(r);return"string"==typeof c[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,o(c)):c.join(" ")}:{key:e,style:l.default.apply(void 0,[{}].concat(o(c)))}}},e.exports=t.default},1894:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var a,l,r=n(e),i=1;i<arguments.length;i++){a=arguments[i],l=o(Object(a));for(var s=0;s<l.length;s++)r[l[s]]=a[l[s]]}return r}},2408:(e,t,n)=>{"use strict";var o=n(7418),a=60103,l=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var r=60109,i=60110,s=60112;t.Suspense=60113;var c=60115,d=60116;if("function"==typeof Symbol&&Symbol.for){var u=Symbol.for;a=u("react.element"),l=u("react.portal"),t.Fragment=u("react.fragment"),t.StrictMode=u("react.strict_mode"),t.Profiler=u("react.profiler"),r=u("react.provider"),i=u("react.context"),s=u("react.forward_ref"),t.Suspense=u("react.suspense"),c=u("react.memo"),d=u("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}function b(){}function f(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var k=f.prototype=new b;k.constructor=f,o(k,v.prototype),k.isPureReactComponent=!0;var y={current:null},w=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var o,l={},r=null,i=null;if(null!=t)for(o in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)w.call(t,o)&&!C.hasOwnProperty(o)&&(l[o]=t[o]);var s=arguments.length-2;if(1===s)l.children=n;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];l.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===l[o]&&(l[o]=s[o]);return{$$typeof:a,type:e,key:r,ref:i,props:l,_owner:y.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var S=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,o,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case l:s=!0}}if(s)return r=r(s=e),e=""===o?"."+x(s,0):o,Array.isArray(r)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),T(r,t,n,"",(function(e){return e}))):null!=r&&(E(r)&&(r=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(S,"$&/")+"/")+e)),t.push(r)),1;if(s=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var d=o+x(i=e[c],c);s+=T(i,t,n,d,r)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof d)for(e=d.call(e),c=0;!(i=e.next()).done;)s+=T(i=i.value,t,n,d=o+x(i,c++),r);else if("object"===i)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function B(e,t,n){if(null==e)return e;var o=[],a=0;return T(e,o,"","",(function(e){return t.call(n,e,a++)})),o}function M(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function N(){var e=I.current;if(null===e)throw Error(h(321));return e}var R={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:B,forEach:function(e,t,n){B(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return B(e,(function(){t++})),t},toArray:function(e){return B(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var l=o({},e.props),r=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=y.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)w.call(t,d)&&!C.hasOwnProperty(d)&&(l[d]=void 0===t[d]&&void 0!==c?c[d]:t[d])}var d=arguments.length-2;if(1===d)l.children=n;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];l.children=c}return{$$typeof:a,type:e.type,key:r,ref:i,props:l,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},2383:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function a(e){var a=t(e,2),l=a[0],r=a[1];return o?null===r||r===n[l]-1?null===(l=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(l))?[null,null]:[l,0]:[l,r+1]:0===n||r===n-1?[null,null]:null===r?[null,0]:[null,r+1]}return{next:a,prev:function(e){var a=t(e,2),l=a[0],r=a[1];return o?null===r||0===r?null===(l=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(l))?[null,null]:[l,n[l]-1]:[l,r-1]:0===n||0===r?[null,null]:null===r?[null,n-1]:[null,r-1]},isLast:function(e){return null===a(e)[1]}}}},1444:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},3726:function(e,t,n){"use strict";var o;!function(a){if("function"!=typeof l){var l=function(e){return e};l.nonNative=!0}const r=l("plaintext"),i=l("html"),s=l("comment"),c=/<(\w*)>/g,d=/<\/?([^\s\/>]+)/;function u(e,t,n){return h(e=e||"",p(t=t||[],n=n||""))}function p(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=c.exec(e);)t.add(n[1])}else l.nonNative||"function"!=typeof e[l.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function h(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let n=t.allowable_tags,o=t.tag_replacement,a=t.state,l=t.tag_buffer,c=t.depth,d=t.in_quote_char,u="";for(let t=0,p=e.length;t<p;t++){let p=e[t];if(a===r)"<"===p?(a=i,l+=p):u+=p;else if(a===i)switch(p){case"<":if(d)break;c++;break;case">":if(d)break;if(c){c--;break}d="",a=r,l+=">",n.has(g(l))?u+=l:u+=o,l="";break;case'"':case"'":d=p===d?"":d||p,l+=p;break;case"-":"<!-"===l&&(a=s),l+=p;break;case" ":case"\n":if("<"===l){a=r,u+="< ",l="";break}l+=p;break;default:l+=p}else a===s&&(">"===p?("--"==l.slice(-2)&&(a=r),l=""):l+=p)}return t.state=a,t.tag_buffer=l,t.depth=c,t.in_quote_char=d,u}function g(e){let t=d.exec(e);return t?t[1].toLowerCase():null}u.init_streaming_mode=function(e,t){let n=p(e=e||[],t=t||"");return function(e){return h(e||"",n)}},void 0===(o=function(){return u}.call(t,n,t,e))||(e.exports=o)}()},2473:e=>{"use strict";e.exports=function(){}}},l={};function r(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e].call(n.exports,n,n.exports,r),n.exports}r.m=a,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var l={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>l[e]=()=>n[e]));return l.default=()=>n,r.d(a,l),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"data/google-fonts.994007071c9a32044e7e.json",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="stackable:",r.l=(e,t,a,l)=>{if(n[e])n[e].push(t);else{var i,s;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==o+a){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.setAttribute("data-webpack",o+a),i.src=e),n[e]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(h);var a=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(o))),t)return t(o)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={959:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var a=new Promise(((n,a)=>o=e[t]=[n,a]));n.push(o[2]=a);var l=r.p+r.u(t),i=new Error;r.l(l,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),l=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+l+")",i.name="ChunkLoadError",i.type=a,i.request=l,o[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,a,[l,i,s]=n,c=0;if(l.some((t=>0!==e[t]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);s&&s(r)}for(t&&t(n);c<l.length;c++)a=l[c],r.o(e,a)&&e[a]&&e[a][0](),e[l[c]]=0},n=globalThis.webpackChunkstackable=globalThis.webpackChunkstackable||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=r(6900);window.stk=i})();
/home/batcwwjx/public_html/wp-content/plugins/././stackable-ultimate-gutenberg-blocks/dist/stk.js